update tax amount after discount amount in purchase cycle
This commit is contained in:
parent
53ba64b653
commit
b893972486
@ -153,4 +153,5 @@ execute:frappe.delete_doc("Page", "stock-ledger")
|
||||
execute:frappe.delete_doc("Page","stock-level")
|
||||
erpnext.patches.v5_0.reclculate_planned_operating_cost_in_production_order
|
||||
erpnext.patches.v5_0.repost_requested_qty
|
||||
erpnext.patches.v5_0.fix_taxes_and_totals_in_party_currency
|
||||
erpnext.patches.v5_0.fix_taxes_and_totals_in_party_currency
|
||||
erpnext.patches.v5_0.update_tax_amount_after_discount_in_purchase_cycle
|
@ -0,0 +1,16 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.db.sql("""
|
||||
update
|
||||
`tabPurchase Taxes and Charges`
|
||||
set
|
||||
tax_amount_after_discount_amount = tax_amount,
|
||||
base_tax_amount_after_discount_amount = base_tax_amount
|
||||
where
|
||||
ifnull(tax_amount_after_discount_amount, 0) = 0
|
||||
and ifnull(base_tax_amount_after_discount_amount, 0) = 0
|
||||
""")
|
Loading…
x
Reference in New Issue
Block a user