mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
fix: Discount and taxes in return document should follow the reference document (#41911)
* fix: Discount and taxes in return document should follow the reference document * fix: Ignore Pricing rule on debit/credit note if created against PI/SI with test cases * fix: linter issue
This commit is contained in:
@@ -1988,6 +1988,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
let item_rates = {};
|
||||
let item_tax_templates = {};
|
||||
|
||||
if (me.frm.doc.is_return && me.frm.doc.return_against) return;
|
||||
|
||||
$.each(this.frm.doc.items || [], function(i, item) {
|
||||
if (item.item_code) {
|
||||
// Use combination of name and item code in case same item is added multiple times
|
||||
|
||||
Reference in New Issue
Block a user