taxtank-core 0.22.2 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10078,6 +10078,10 @@
10078
10078
  });
10079
10079
  Object.defineProperty(TaxSummary.prototype, "taxPercent", {
10080
10080
  get: function () {
10081
+ // Check if netAmount is not 0 to avoid division by zero
10082
+ if (!this.summary.netAmount) {
10083
+ return 0;
10084
+ }
10081
10085
  return this.summary.items.findByCategory(exports.TaxReturnCategoryListEnum.GROSS_TAX_PAYABLE).amount / this.summary.netAmount;
10082
10086
  },
10083
10087
  enumerable: false,
@@ -15638,11 +15642,8 @@
15638
15642
  }
15639
15643
  RegisterClientForm.prototype.submit = function (data) {
15640
15644
  if (data === void 0) { data = {}; }
15641
- return _super.prototype.submit.call(this, { password: this.get('password').submit().password });
15642
- var formValue = _super.prototype.submit.call(this);
15643
- if (!formValue) {
15644
- return null;
15645
- }
15645
+ var _a;
15646
+ return _super.prototype.submit.call(this, { password: (_a = this.get('password').submit()) === null || _a === void 0 ? void 0 : _a.password });
15646
15647
  };
15647
15648
  return RegisterClientForm;
15648
15649
  }(AbstractForm));