taxtank-core 0.32.129 → 0.32.131

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ export class BankTransactionCollection extends Collection {
60
60
  */
61
61
  getByBankAccounts(bankAccounts) {
62
62
  const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
63
- return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
63
+ return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
64
64
  }
65
65
  /**
66
66
  * get list of transactions by provided ids of bank accounts
@@ -128,4 +128,4 @@ export class BankTransactionCollection extends Collection {
128
128
  return this.debitTransactions.getAllocatedAmount(allocations);
129
129
  }
130
130
  }
131
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2JhbmstdHJhbnNhY3Rpb24uY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUVsRixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBSTFDOztHQUVHO0FBQ0gsTUFBTSwwQkFBMEIsR0FBVyxFQUFFLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQztBQUU1RDs7Ozs7R0FLRztBQUNILE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxVQUEyQjtJQUN4RSxTQUFTO1FBQ1AsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFFRDs7T0FFRztJQUNILG9CQUFvQixDQUFDLFdBQTRDO1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KGJhbmtUcmFuc2FjdGlvbjogQmFua1RyYW5zYWN0aW9uKTogYm9vbGVhbiA9PiAhYmFua1RyYW5zYWN0aW9uLmlzQWxsb2NhdGVkKGFsbG9jYXRpb25zKSk7XG4gIH1cblxuICAvKipcbiAgICogQWxsb2NhdGVkIHN1bSBvZiBjcmVkaXQgdHJhbnNhY3Rpb25zXG4gICAqL1xuICBnZXRDcmVkaXRBbW91bnQoYWxsb2NhdGlvbnM6IFRyYW5zYWN0aW9uQWxsb2NhdGlvbkNvbGxlY3Rpb24pOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmNyZWRpdFRyYW5zYWN0aW9ucy5nZXRBbGxvY2F0ZWRBbW91bnQoYWxsb2NhdGlvbnMpO1xuICB9XG5cbiAgLyoqXG4gICAqIEFsbG9jYXRlZCBzdW0gb2YgZGViaXQgdHJhbnNhY3Rpb25zXG4gICAqL1xuICBnZXREZWJpdEFtb3VudChhbGxvY2F0aW9uczogVHJhbnNhY3Rpb25BbGxvY2F0aW9uQ29sbGVjdGlvbik6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuZGViaXRUcmFuc2FjdGlvbnMuZ2V0QWxsb2NhdGVkQW1vdW50KGFsbG9jYXRpb25zKTtcbiAgfVxufVxuIl19
@@ -9,9 +9,7 @@ import { SoleInvoiceStatusesEnum } from '../../db/Enums/sole-invoice-statuses.en
9
9
  import { BankAccount } from '../bank';
10
10
  import { SoleInvoiceTaxTypeEnum } from '../../db/Enums/sole-invoice-tax-type.enum';
11
11
  import { SoleInvoiceItemCollection } from '../../collections';
12
- import ceil from 'lodash/ceil';
13
12
  import { Transaction, TransactionAllocation } from '../transaction';
14
- import round from 'lodash/round';
15
13
  export class SoleInvoice extends SoleInvoiceBase {
16
14
  constructor() {
17
15
  super(...arguments);
@@ -29,13 +27,13 @@ export class SoleInvoice extends SoleInvoiceBase {
29
27
  * total without GST
30
28
  */
31
29
  get netPrice() {
32
- return ceil(this.itemsCollection.getTotalPrice(this.taxType), 2);
30
+ return this.itemsCollection.getTotalPrice(this.taxType);
33
31
  }
34
32
  /**
35
33
  * total + GST
36
34
  */
37
35
  get grossPrice() {
38
- return ceil(this.itemsCollection.getTotalPrice(this.taxType, true), 2);
36
+ return this.itemsCollection.getTotalPrice(this.taxType, true);
39
37
  }
40
38
  get gstAmount() {
41
39
  return this.grossPrice - this.netPrice;
@@ -116,7 +114,7 @@ export class SoleInvoice extends SoleInvoiceBase {
116
114
  return this.items.map((item) => {
117
115
  const transaction = plainToClass(Transaction, item.toTransaction());
118
116
  transaction.date = date;
119
- transaction.amount = round(item.getTotalPrice(this.taxType) * allocationCoefficient, 2);
117
+ transaction.amount = item.getTotalPrice(this.taxType) * allocationCoefficient;
120
118
  return transaction;
121
119
  });
122
120
  }
@@ -142,4 +140,4 @@ __decorate([
142
140
  __decorate([
143
141
  Type(() => BankAccount)
144
142
  ], SoleInvoice.prototype, "bankAccount", void 0);
145
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9zb2xlL3NvbGUtaW52b2ljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsSUFBSSxlQUFlLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxJQU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hhbiBpbnZvaWNlIHVuYWxsb2NhdGVkIGFtb3VudCB0aGVuIHdlIGhhdmUgdG8gYWxsb2NhdGUgaXRzIGl0ZW1zIHByb3BvcnRpYW5hbGx5XG4gICAgY29uc3QgYWxsb2NhdGlvbkNvZWZmaWNpZW50OiBudW1iZXIgPSBhbW91bnQgPyBhbW91bnQgLyB0aGlzLmdyb3NzUHJpY2UgOiAxO1xuXG4gICAgcmV0dXJuIHRoaXMuaXRlbXMubWFwKChpdGVtOiBTb2xlSW52b2ljZUl0ZW0pID0+IHtcbiAgICAgIGNvbnN0IHRyYW5zYWN0aW9uID0gcGxhaW5Ub0NsYXNzKFRyYW5zYWN0aW9uLCBpdGVtLnRvVHJhbnNhY3Rpb24oKSk7XG4gICAgICB0cmFuc2FjdGlvbi5kYXRlID0gZGF0ZTtcbiAgICAgIHRyYW5zYWN0aW9uLmFtb3VudCA9IGl0ZW0uZ2V0VG90YWxQcmljZSh0aGlzLnRheFR5cGUpICogYWxsb2NhdGlvbkNvZWZmaWNpZW50O1xuXG4gICAgICByZXR1cm4gdHJhbnNhY3Rpb247XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -19,7 +19,6 @@ import orderBy from 'lodash/orderBy';
19
19
  import uniq from 'lodash/uniq';
20
20
  import moment from 'moment';
21
21
  import { DateRange } from 'moment-range';
22
- import ceil from 'lodash/ceil';
23
22
  import round from 'lodash/round';
24
23
  import range from 'lodash/range';
25
24
  import { Validators, FormGroup, FormArray, UntypedFormControl, UntypedFormArray, UntypedFormGroup, FormControl } from '@angular/forms';
@@ -5024,13 +5023,13 @@ class SoleInvoice extends SoleInvoice$1 {
5024
5023
  * total without GST
5025
5024
  */
5026
5025
  get netPrice() {
5027
- return ceil(this.itemsCollection.getTotalPrice(this.taxType), 2);
5026
+ return this.itemsCollection.getTotalPrice(this.taxType);
5028
5027
  }
5029
5028
  /**
5030
5029
  * total + GST
5031
5030
  */
5032
5031
  get grossPrice() {
5033
- return ceil(this.itemsCollection.getTotalPrice(this.taxType, true), 2);
5032
+ return this.itemsCollection.getTotalPrice(this.taxType, true);
5034
5033
  }
5035
5034
  get gstAmount() {
5036
5035
  return this.grossPrice - this.netPrice;
@@ -5111,7 +5110,7 @@ class SoleInvoice extends SoleInvoice$1 {
5111
5110
  return this.items.map((item) => {
5112
5111
  const transaction = plainToClass(Transaction, item.toTransaction());
5113
5112
  transaction.date = date;
5114
- transaction.amount = round(item.getTotalPrice(this.taxType) * allocationCoefficient, 2);
5113
+ transaction.amount = item.getTotalPrice(this.taxType) * allocationCoefficient;
5115
5114
  return transaction;
5116
5115
  });
5117
5116
  }
@@ -9109,7 +9108,7 @@ class BankTransactionCollection extends Collection {
9109
9108
  */
9110
9109
  getByBankAccounts(bankAccounts) {
9111
9110
  const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
9112
- return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
9111
+ return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
9113
9112
  }
9114
9113
  /**
9115
9114
  * get list of transactions by provided ids of bank accounts