taxtank-core 0.33.35 → 0.33.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,9 +5,6 @@ export class SoleInvoiceCollection extends Collection {
5
5
  getOverdue() {
6
6
  return this.filter((invoice) => invoice.isOverdue());
7
7
  }
8
- getPending() {
9
- return this.filter((invoice) => invoice.isPending());
10
- }
11
8
  getPaid(transactions) {
12
9
  return this.filter(invoice => invoice.grossPrice > 0
13
10
  && transactions.getAmountPerInvoice().get(invoice.id) >= invoice.grossPrice);
@@ -27,7 +24,6 @@ export class SoleInvoiceCollection extends Collection {
27
24
  invoicesByState.add(SoleInvoiceStateEnum.PAID, this.getPaid(transactions));
28
25
  invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.PAID).toArray()));
29
26
  invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
30
- invoicesByState.add(SoleInvoiceStateEnum.PENDING, unpaidInvoices.getPending());
31
27
  return invoicesByState;
32
28
  }
33
29
  getUnpaidAmount(transactions) {
@@ -37,4 +33,4 @@ export class SoleInvoiceCollection extends Collection {
37
33
  return flatten(this.map(invoice => invoice.allocate(bankTransaction, amount)));
38
34
  }
39
35
  }
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvc29sZS9zb2xlLWludm9pY2UuY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBRXJDL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UcmFuc2FjdGlvbkNvbGxlY3Rpb24pOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLnN1bUJ5KCdncm9zc1ByaWNlJykgLSB0cmFuc2FjdGlvbnMuZ2V0QnlJbnZvaWNlcyh0aGlzKS5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgfVxuXG4gIGFsbG9jYXRlKGJhbmtUcmFuc2FjdGlvbjogQmFua1RyYW5zYWN0aW9uLCBhbW91bnQ/OiBudW1iZXIpOiBUcmFuc2FjdGlvbltdIHtcbiAgICByZXR1cm4gZmxhdHRlbih0aGlzLm1hcChpbnZvaWNlID0+IGludm9pY2UuYWxsb2NhdGUoYmFua1RyYW5zYWN0aW9uLCBhbW91bnQpKSk7XG4gIH1cbn1cbiJdfQ==
@@ -5,6 +5,5 @@ export var SoleInvoiceStateEnum;
5
5
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OPEN"] = 2] = "OPEN";
6
6
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["PAID"] = 3] = "PAID";
7
7
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 4] = "OVERDUE";
8
- SoleInvoiceStateEnum[SoleInvoiceStateEnum["PENDING"] = 5] = "PENDING";
9
8
  })(SoleInvoiceStateEnum || (SoleInvoiceStateEnum = {}));
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLXN0YXRlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS9zb2xlLWludm9pY2Utc3RhdGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxvQkFPWDtBQVBELFdBQVksb0JBQW9CO0lBQzlCLHVFQUFZLENBQUE7SUFDWixpRUFBUyxDQUFBO0lBQ1QsK0RBQVEsQ0FBQTtJQUNSLCtEQUFRLENBQUE7SUFDUixxRUFBVyxDQUFBO0lBQ1gscUVBQVcsQ0FBQTtBQUNiLENBQUMsRUFQVyxvQkFBb0IsS0FBcEIsb0JBQW9CLFFBTy9CIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gU29sZUludm9pY2VTdGF0ZUVudW0ge1xuICBDQU5DRUxFRCA9IDAsXG4gIERSQUZUID0gMSxcbiAgT1BFTiA9IDIsXG4gIFBBSUQgPSAzLFxuICBPVkVSRFVFID0gNCxcbiAgUEVORElORyA9IDUsXG59XG4iXX0=
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLXN0YXRlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS9zb2xlLWludm9pY2Utc3RhdGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxvQkFNWDtBQU5ELFdBQVksb0JBQW9CO0lBQzlCLHVFQUFZLENBQUE7SUFDWixpRUFBUyxDQUFBO0lBQ1QsK0RBQVEsQ0FBQTtJQUNSLCtEQUFRLENBQUE7SUFDUixxRUFBVyxDQUFBO0FBQ2IsQ0FBQyxFQU5XLG9CQUFvQixLQUFwQixvQkFBb0IsUUFNL0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBTb2xlSW52b2ljZVN0YXRlRW51bSB7XG4gIENBTkNFTEVEID0gMCxcbiAgRFJBRlQgPSAxLFxuICBPUEVOID0gMixcbiAgUEFJRCA9IDMsXG4gIE9WRVJEVUUgPSA0LFxufVxuIl19
@@ -5,11 +5,11 @@ export class SoleInvoiceItemForm extends AbstractForm {
5
5
  constructor(item) {
6
6
  super({
7
7
  description: new UntypedFormControl(item.description, [Validators.required, Validators.maxLength(SoleInvoiceItemForm.maxDescriptionLength)]),
8
- quantity: new UntypedFormControl(item.quantity, [Validators.required, Validators.min(1)]),
8
+ quantity: new UntypedFormControl(item.quantity, [Validators.required]),
9
9
  price: new UntypedFormControl(item.price, Validators.required),
10
10
  isGST: new UntypedFormControl({ value: item.isGST || false, disabled: !item.chartAccounts?.isGST }),
11
11
  chartAccounts: new UntypedFormControl(item.chartAccounts, Validators.required),
12
12
  }, item);
13
13
  }
14
14
  }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLWl0ZW0uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9zb2xlL3NvbGUtaW52b2ljZS1pdGVtLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRWhELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVoRSxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsWUFBNkI7YUFDN0QseUJBQW9CLEdBQUcsR0FBRyxDQUFDO0lBRWxDLFlBQVksSUFBcUI7UUFDL0IsS0FBSyxDQUFDO1lBQ0osV0FBVyxFQUFFLElBQUksa0JBQWtCLENBQ2pDLElBQUksQ0FBQyxXQUFXLEVBQ2hCLENBQUMsVUFBVSxDQUFDLFFBQVEsRUFBRSxVQUFVLENBQUMsU0FBUyxDQUFDLG1CQUFtQixDQUFDLG9CQUFvQixDQUFDLENBQUMsQ0FDdEY7WUFDRCxRQUFRLEVBQUUsSUFBSSxrQkFBa0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aWRhdG9ycyB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcblxuZXhwb3J0IGNsYXNzIFNvbGVJbnZvaWNlSXRlbUZvcm0gZXh0ZW5kcyBBYnN0cmFjdEZvcm08U29sZUludm9pY2VJdGVtPiB7XG4gIHN0YXRpYyBtYXhEZXNjcmlwdGlvbkxlbmd0aCA9IDI1NTtcblxuICBjb25zdHJ1Y3RvcihpdGVtOiBTb2xlSW52b2ljZUl0ZW0pIHtcbiAgICBzdXBlcih7XG4gICAgICBkZXNjcmlwdGlvbjogbmV3IFVudHlwZWRGb3JtQ29udHJvbChcbiAgICAgICAgaXRlbS5kZXNjcmlwdGlvbixcbiAgICAgICAgW1ZhbGlkYXRvcnMucmVxdWlyZWQsIFZhbGlkYXRvcnMubWF4TGVuZ3RoKFNvbGVJbnZvaWNlSXRlbUZvcm0ubWF4RGVzY3JpcHRpb25MZW5ndGgpXVxuICAgICAgKSxcbiAgICAgIHF1YW50aXR5OiBuZXcgVW50eXBlZEZvcm1Db250cm9sKGl0ZW0ucXVhbnRpdHksIFtWYWxpZGF0b3JzLnJlcXVpcmVkXSksXG4gICAgICBwcmljZTogbmV3IFVudHlwZWRGb3JtQ29udHJvbChpdGVtLnByaWNlLCBWYWxpZGF0b3JzLnJlcXVpcmVkKSxcbiAgICAgIGlzR1NUOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKHsgdmFsdWU6IGl0ZW0uaXNHU1QgfHwgZmFsc2UsIGRpc2FibGVkOiAhaXRlbS5jaGFydEFjY291bnRzPy5pc0dTVCB9KSxcbiAgICAgIGNoYXJ0QWNjb3VudHM6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woaXRlbS5jaGFydEFjY291bnRzLCBWYWxpZGF0b3JzLnJlcXVpcmVkKSxcbiAgICB9LCBpdGVtKTtcbiAgfVxufVxuIl19
@@ -46,9 +46,6 @@ export class SoleInvoice extends SoleInvoiceBase {
46
46
  isOpen() {
47
47
  return this.status === SoleInvoiceStatusesEnum.OPEN;
48
48
  }
49
- isPending() {
50
- return this.isOpen() && this.dateTo > new Date(Date.now() - (60 * 60 * 24 * 1000));
51
- }
52
49
  /**
53
50
  * overdue next day after dateTo
54
51
  */
@@ -139,4 +136,4 @@ __decorate([
139
136
  __decorate([
140
137
  Type(() => BankAccount)
141
138
  ], SoleInvoice.prototype, "bankAccount", void 0);
142
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9zb2xlL3NvbGUtaW52b2ljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDdkQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLHNCQUFzQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDakYsT0FBTyxFQUFFLFdBQVcsRUFBbUIsTUFBTSxTQUFTLENBQUM7QUFDdkQsT0FBTyxFQUFFLHlCQUF5QixFQUF5QixNQUFNLG1CQUFtQixDQUFDO0FBQ3JGLE9BQU8sRUFBRSxXQUFXLEVBQUUscUJBQXFCLEVBQUUsTUF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ID0gcGxhaW5Ub0NsYXNzKFRyYW5zYWN0aW9uLCBpdGVtLnRvVHJhbnNhY3Rpb24oKSk7XG4gICAgICB0cmFuc2FjdGlvbi5kYXRlID0gZGF0ZTtcbiAgICAgIHRyYW5zYWN0aW9uLmFtb3VudCA9IGl0ZW0uZ2V0VG90YWxQcmljZSh0aGlzLnRheFR5cGUpICogYWxsb2NhdGlvbkNvZWZmaWNpZW50O1xuXG4gICAgICByZXR1cm4gdHJhbnNhY3Rpb247XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -1581,7 +1581,6 @@ var SoleInvoiceStateEnum;
1581
1581
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OPEN"] = 2] = "OPEN";
1582
1582
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["PAID"] = 3] = "PAID";
1583
1583
  SoleInvoiceStateEnum[SoleInvoiceStateEnum["OVERDUE"] = 4] = "OVERDUE";
1584
- SoleInvoiceStateEnum[SoleInvoiceStateEnum["PENDING"] = 5] = "PENDING";
1585
1584
  })(SoleInvoiceStateEnum || (SoleInvoiceStateEnum = {}));
1586
1585
 
1587
1586
  var SoleInvoiceStatusesEnum;
@@ -5042,9 +5041,6 @@ class SoleInvoice extends SoleInvoice$1 {
5042
5041
  isOpen() {
5043
5042
  return this.status === SoleInvoiceStatusesEnum.OPEN;
5044
5043
  }
5045
- isPending() {
5046
- return this.isOpen() && this.dateTo > new Date(Date.now() - (60 * 60 * 24 * 1000));
5047
- }
5048
5044
  /**
5049
5045
  * overdue next day after dateTo
5050
5046
  */
@@ -8437,9 +8433,6 @@ class SoleInvoiceCollection extends Collection {
8437
8433
  getOverdue() {
8438
8434
  return this.filter((invoice) => invoice.isOverdue());
8439
8435
  }
8440
- getPending() {
8441
- return this.filter((invoice) => invoice.isPending());
8442
- }
8443
8436
  getPaid(transactions) {
8444
8437
  return this.filter(invoice => invoice.grossPrice > 0
8445
8438
  && transactions.getAmountPerInvoice().get(invoice.id) >= invoice.grossPrice);
@@ -8459,7 +8452,6 @@ class SoleInvoiceCollection extends Collection {
8459
8452
  invoicesByState.add(SoleInvoiceStateEnum.PAID, this.getPaid(transactions));
8460
8453
  invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.PAID).toArray()));
8461
8454
  invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
8462
- invoicesByState.add(SoleInvoiceStateEnum.PENDING, unpaidInvoices.getPending());
8463
8455
  return invoicesByState;
8464
8456
  }
8465
8457
  getUnpaidAmount(transactions) {
@@ -21580,7 +21572,7 @@ class SoleInvoiceItemForm extends AbstractForm {
21580
21572
  constructor(item) {
21581
21573
  super({
21582
21574
  description: new UntypedFormControl(item.description, [Validators.required, Validators.maxLength(SoleInvoiceItemForm.maxDescriptionLength)]),
21583
- quantity: new UntypedFormControl(item.quantity, [Validators.required, Validators.min(1)]),
21575
+ quantity: new UntypedFormControl(item.quantity, [Validators.required]),
21584
21576
  price: new UntypedFormControl(item.price, Validators.required),
21585
21577
  isGST: new UntypedFormControl({ value: item.isGST || false, disabled: !item.chartAccounts?.isGST }),
21586
21578
  chartAccounts: new UntypedFormControl(item.chartAccounts, Validators.required),