Skip to content

Commit 30618ad

Browse files
authored
Merge pull request resilient-tech#3773 from karm1000/correct-calc-total-taxable-value
fix: update taxable value calculation using `transfer_qty`
2 parents 1177bf1 + 5e6bdb1 commit 30618ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

india_compliance/public/js/taxes_controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ india_compliance.taxes_controller = class TaxesController {
139139
if (this.frm.doc.doctype === "Subcontracting Receipt") {
140140
amount = calculateAmount(row.qty, row.rate, "amount");
141141
} else if (this.frm.doc.doctype === "Stock Entry") {
142-
amount = calculateAmount(row.qty, row.basic_rate, "basic_amount");
142+
amount = calculateAmount(row.transfer_qty, row.basic_rate, "basic_amount");
143143
}
144144

145145
row.taxable_value = amount;
146+
this.frm.refresh_field("items");
146147
}
147148

148149
async update_tax_amount() {

0 commit comments

Comments
 (0)