[fix] Uncheck Is POS option while creating return entry against POS Invoice

This commit is contained in:
Nabin Hait 2015-07-29 15:40:59 +05:30
parent 746c162055
commit 9117af3077

View File

@ -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):