taxtank-core 0.28.73 → 0.28.75

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.
@@ -12769,6 +12769,18 @@
12769
12769
  _this.isHydra = true;
12770
12770
  return _this;
12771
12771
  }
12772
+ SoleBusinessLossService.prototype.listenEvents = function () {
12773
+ this.listenBusinessCreated();
12774
+ };
12775
+ /**
12776
+ * Listen business created because we create prior year losses together with business
12777
+ */
12778
+ SoleBusinessLossService.prototype.listenBusinessCreated = function () {
12779
+ var _this = this;
12780
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(function () {
12781
+ _this.resetCache();
12782
+ });
12783
+ };
12772
12784
  return SoleBusinessLossService;
12773
12785
  }(RestService));
12774
12786
  SoleBusinessLossService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SoleBusinessLossService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
@@ -19038,7 +19050,7 @@
19038
19050
  var _this = this;
19039
19051
  var _a;
19040
19052
  _this = _super.call(this, {
19041
- description: new forms.FormControl(item.description, forms.Validators.required),
19053
+ description: new forms.FormControl(item.description, [forms.Validators.required, forms.Validators.maxLength(SoleInvoiceItemForm.maxDescriptionLength)]),
19042
19054
  quantity: new forms.FormControl(item.quantity, forms.Validators.required),
19043
19055
  price: new forms.FormControl(item.price, forms.Validators.required),
19044
19056
  isGST: new forms.FormControl({ value: item.isGST || false, disabled: !((_a = item.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) }),
@@ -19048,6 +19060,7 @@
19048
19060
  }
19049
19061
  return SoleInvoiceItemForm;
19050
19062
  }(AbstractForm));
19063
+ SoleInvoiceItemForm.maxDescriptionLength = 255;
19051
19064
 
19052
19065
  /**
19053
19066
  * Form is divided into two groups, since the creation of Sole invoice takes place in two steps: