taxtank-core 2.1.26 → 2.1.27
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.
|
@@ -9258,7 +9258,11 @@ class SoleInvoiceCollection extends Collection {
|
|
|
9258
9258
|
return this.sumBy('grossPrice');
|
|
9259
9259
|
}
|
|
9260
9260
|
toTransactions() {
|
|
9261
|
-
return this.map(invoice => invoice.items.map(item => item.toTransaction({
|
|
9261
|
+
return this.map(invoice => invoice.items.map(item => item.toTransaction({
|
|
9262
|
+
business: invoice.business,
|
|
9263
|
+
claimAmount: item.totalPrice,
|
|
9264
|
+
date: invoice.dateFrom,
|
|
9265
|
+
})).flat()).flat();
|
|
9262
9266
|
}
|
|
9263
9267
|
}
|
|
9264
9268
|
|