feat: add totalExcludingTax property and update GL entry calculations

This commit is contained in:
Ahmed Bouhuolia
2024-12-12 12:49:52 +02:00
parent 8cd1b36a02
commit d640dc1f40
8 changed files with 24 additions and 14 deletions

View File

@@ -68,6 +68,14 @@ export default class ItemEntry extends TenantModel {
return this.subtotal - this.discountAmount;
}
/**
* Total (excluding tax).
* @returns {number}
*/
get totalExcludingTax() {
return this.subtotalExcludingTax - this.discountAmount;
}
/**
* Item entry amount.
* Amount of item entry that may include or exclude tax.