taxtank-core 0.30.135 → 0.30.137

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.
@@ -32,6 +32,7 @@ export declare class CollectionDictionary<Collection extends BaseCollection<Abst
32
32
  */
33
33
  get(key: string | number): Collection;
34
34
  /**
35
+ * @TODO bad name, it just gets items by keys, same as get method by multiple keys
35
36
  * Join several collections by ids, return collection of uniq models (skip duplicates)
36
37
  */
37
38
  merge(keys: number[] | string[]): Collection;
@@ -2,5 +2,6 @@ export declare enum SoleInvoiceStatusesEnum {
2
2
  CANCELED = 0,
3
3
  DRAFT = 1,
4
4
  PENDING = 2,
5
- PAID = 3
5
+ PAID = 3,
6
+ PAID_CASH = 4
6
7
  }
@@ -50,6 +50,7 @@ export declare class SoleInvoice extends SoleInvoiceBase {
50
50
  isCancelled(): boolean;
51
51
  isPending(): boolean;
52
52
  isPaid(): boolean;
53
+ isPaidCash(): boolean;
53
54
  isOverdue(): boolean;
54
55
  isUnpaid(): boolean;
55
56
  /**
@@ -83,6 +83,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
83
83
  */
84
84
  isAllocated(allocations: TransactionAllocationCollection): boolean;
85
85
  getAllocatedAmount(allocations: TransactionAllocationCollection): number;
86
+ /**
87
+ * @TODO vik TT-3363
88
+ */
86
89
  getAllocatedClaimAmount(allocations: TransactionAllocationCollection): number;
87
90
  getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
88
91
  /**
@@ -23,9 +23,9 @@ export declare class TransactionCalculationService {
23
23
  getAllocatedTransactions(transactions: TransactionCollection, allocations: TransactionAllocationCollection): TransactionCollection;
24
24
  getUnallocatedInvoices(invoices: SoleInvoiceCollection, allocations: TransactionAllocationCollection): SoleInvoiceCollection;
25
25
  /**
26
- * Get invoices allocated amounts grouped bu invoice id
26
+ * Get invoices paid amounts grouped by invoice id
27
27
  */
28
- getAllocationsAmountsByInvoiceId(allocations: TransactionAllocationCollection, invoices: SoleInvoiceCollection): Dictionary<number>;
28
+ getInvoicePaidAmountById(allocations: TransactionAllocationCollection, invoices: SoleInvoiceCollection): Dictionary<number>;
29
29
  getInvoicesUnallocatedAmount(invoices: SoleInvoiceCollection, allocations: TransactionAllocationCollection): number;
30
30
  getTransactionsByInvoices(invoices: SoleInvoiceCollection, transactions: TransactionCollection): CollectionDictionary<TransactionCollection>;
31
31
  getAllocationsByInvoices(invoices: SoleInvoiceCollection, allocations: TransactionAllocationCollection): CollectionDictionary<TransactionAllocationCollection>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.135",
3
+ "version": "0.30.137",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",