taxtank-core 0.30.135 → 0.30.136

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.
@@ -1640,6 +1640,7 @@ class CollectionDictionary {
1640
1640
  return this.items[key] ? this.items[key] : this.createCollection([]);
1641
1641
  }
1642
1642
  /**
1643
+ * @TODO bad name, it just gets items by keys, same as get method by multiple keys
1643
1644
  * Join several collections by ids, return collection of uniq models (skip duplicates)
1644
1645
  */
1645
1646
  merge(keys) {
@@ -4509,6 +4510,7 @@ var SoleInvoiceStatusesEnum;
4509
4510
  SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
4510
4511
  SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PENDING"] = 2] = "PENDING";
4511
4512
  SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PAID"] = 3] = "PAID";
4513
+ SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PAID_CASH"] = 4] = "PAID_CASH";
4512
4514
  })(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
4513
4515
 
4514
4516
  var SoleInvoiceTaxTypeEnum;
@@ -4592,6 +4594,9 @@ class SoleInvoice extends SoleInvoice$1 {
4592
4594
  isPaid() {
4593
4595
  return this.status === SoleInvoiceStatusesEnum.PAID;
4594
4596
  }
4597
+ isPaidCash() {
4598
+ return this.status === SoleInvoiceStatusesEnum.PAID_CASH;
4599
+ }
4595
4600
  isOverdue() {
4596
4601
  return this.isPending() && this.dateTo < new Date();
4597
4602
  }
@@ -6251,6 +6256,9 @@ class Transaction extends Transaction$1 {
6251
6256
  getAllocatedAmount(allocations) {
6252
6257
  return allocations.filterBy('transaction.id', this.id).sumBy('amount');
6253
6258
  }
6259
+ /**
6260
+ * @TODO vik TT-3363
6261
+ */
6254
6262
  getAllocatedClaimAmount(allocations) {
6255
6263
  let coef = 1;
6256
6264
  if (this.isSoleTank() && this.isIncome() && this.isGST) {