[fix] Uncheck Is POS option while creating return entry against POS Invoice
This commit is contained in:
parent
746c162055
commit
9117af3077
@ -107,6 +107,8 @@ def make_return_doc(doctype, source_name, target_doc=None):
|
||||
doc.is_return = 1
|
||||
doc.return_against = source.name
|
||||
doc.ignore_pricing_rule = 1
|
||||
if doctype == "Sales Invoice":
|
||||
doc.is_pos = 0
|
||||
doc.run_method("calculate_taxes_and_totals")
|
||||
|
||||
def update_item(source_doc, target_doc, source_parent):
|
||||
|
Loading…
x
Reference in New Issue
Block a user