From 60091d2d1fb4b95c790df9276c24123881e4a38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 26 Jan 2021 15:50:10 +0300 Subject: [PATCH] document inclusive tax calculate issue solved --- resources/assets/js/views/common/documents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/views/common/documents.js b/resources/assets/js/views/common/documents.js index 00b5fcc46..890151636 100644 --- a/resources/assets/js/views/common/documents.js +++ b/resources/assets/js/views/common/documents.js @@ -165,14 +165,14 @@ const app = new Vue({ inclusive_total += inclusive.tax_rate; // tax price - item.tax_ids[inclusive.tax_index].price = item.grand_total / (1 + inclusive.tax_rate / 100); + item.tax_ids[inclusive.tax_index].price = item.grand_total- (item.grand_total / (1 + inclusive.tax_rate / 100)); totals_taxes = this.calculateTotalsTax(totals_taxes, inclusive.tax_id, inclusive.tax_name, item.tax_ids[inclusive.tax_index].price); }, this); let item_base_rate = item.grand_total / (1 + inclusive_total / 100); - item.grand_total = item.grand_total - item_base_rate; + //item.grand_total = item.grand_total + item_base_rate; item.total = item_base_rate + item_discount; }