mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
fix: unset commission and sales partner on consolidated sales invoice
This commit is contained in:
@@ -338,6 +338,11 @@ class POSInvoiceMergeLog(Document):
|
|||||||
invoice.flags.ignore_pos_profile = True
|
invoice.flags.ignore_pos_profile = True
|
||||||
invoice.pos_profile = ""
|
invoice.pos_profile = ""
|
||||||
|
|
||||||
|
# Unset Commission Section
|
||||||
|
invoice.set("sales_partner", None)
|
||||||
|
invoice.set("commission_rate", 0)
|
||||||
|
invoice.set("total_commission", 0)
|
||||||
|
|
||||||
return invoice
|
return invoice
|
||||||
|
|
||||||
def get_new_sales_invoice(self):
|
def get_new_sales_invoice(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user