taxtank-core 2.1.40 → 2.1.42

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.
package/index.d.ts CHANGED
@@ -6088,6 +6088,10 @@ declare abstract class RestService$1<BaseModel, Model extends AbstractModel, Col
6088
6088
  protected orderByDesc: boolean;
6089
6089
  roles: UserRolesEnum$1[];
6090
6090
  mercureTopic: string;
6091
+ /**
6092
+ * HTTP error codes to ignore without toast and rethrow.
6093
+ */
6094
+ skipErrorCodes: number[];
6091
6095
  /**
6092
6096
  * flag to use error messages from api or default ones
6093
6097
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
@@ -8382,6 +8386,7 @@ declare class ClientCouponService extends RestService$1<ServicePromoCode, Servic
8382
8386
  collectionClass: typeof Collection;
8383
8387
  endpointUri: string;
8384
8388
  disabledMethods: RestMethod[];
8389
+ skipErrorCodes: number[];
8385
8390
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientCouponService, never>;
8386
8391
  static ɵprov: i0.ɵɵInjectableDeclaration<ClientCouponService>;
8387
8392
  }
@@ -10605,9 +10610,9 @@ declare class SoleDetailsForm extends AbstractForm<SoleDetails> {
10605
10610
  */
10606
10611
  declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implements IEventListener {
10607
10612
  private invoice;
10608
- private soleDetailsGST;
10613
+ private gst;
10609
10614
  private defaultTemplate;
10610
- constructor(invoice: SoleInvoice, soleDetailsGST: boolean, defaultTemplate: SoleInvoiceTemplate);
10615
+ constructor(invoice: SoleInvoice, gst: boolean, defaultTemplate: SoleInvoiceTemplate);
10611
10616
  get items(): FormArray;
10612
10617
  listenEvents(): void;
10613
10618
  addItem(): void;
@@ -10729,9 +10734,9 @@ declare enum FormValidationsEnum {
10729
10734
  * @TODO Alex: extend transaction form(s) when transaction forms refactored
10730
10735
  */
10731
10736
  declare class AllocationRuleTransactionForm extends AbstractForm<AllocationRuleTransaction> implements IEventListener {
10732
- private isGST;
10737
+ private soleDetails;
10733
10738
  includeDisabledFields: boolean;
10734
- constructor(transaction: AllocationRuleTransaction, isGST: boolean);
10739
+ constructor(transaction: AllocationRuleTransaction, soleDetails: SoleDetails);
10735
10740
  /**
10736
10741
  * @TODO Alex: move to abstract form, universal method getArray(arrayName)
10737
10742
  */
@@ -10743,7 +10748,9 @@ declare class AllocationRuleTransactionForm extends AbstractForm<AllocationRuleT
10743
10748
  buildTransactions(transaction: AllocationRuleTransaction): AllocationRuleTransaction[];
10744
10749
  submit(): AllocationRuleTransaction;
10745
10750
  listenEvents(): void;
10751
+ private watchBusiness;
10746
10752
  private listenChartAccountsChanges;
10753
+ private updateGst;
10747
10754
  /**
10748
10755
  * Child transaction allowance depends on tank type.
10749
10756
  * Also chart accounts are different, so we just reset child transactions when tank type changed
@@ -10764,9 +10771,9 @@ declare class AllocationRuleTransactionForm extends AbstractForm<AllocationRuleT
10764
10771
  * @TODO move aux methods like isSplittable/isTaxFieldHidden/etc (used in view with ngIf) to properties to improve perf
10765
10772
  */
10766
10773
  declare class AllocationRuleForm extends AbstractForm<AllocationRule> implements IEventListener {
10767
- private isGST;
10774
+ private soleDetails;
10768
10775
  chartAccountsCategories: ChartAccountsCategoryEnum[];
10769
- constructor(rule: AllocationRule, rules: AllocationRuleCollection, isGST: boolean);
10776
+ constructor(rule: AllocationRule, rules: AllocationRuleCollection, soleDetails: SoleDetails);
10770
10777
  get conditionsArray(): FormArray;
10771
10778
  get childTransactionsArray(): FormArray;
10772
10779
  get transactionFormGroup(): AllocationRuleTransactionForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "2.1.40",
3
+ "version": "2.1.42",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.1.3",