mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
[fix] [minor] is_pos zero when mapping
This commit is contained in:
@@ -357,7 +357,12 @@ def make_delivery_note(source_name, target_doclist=None):
|
|||||||
return [d.fields for d in doclist]
|
return [d.fields for d in doclist]
|
||||||
|
|
||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def make_sales_invoice(source_name, target_doclist=None):
|
def make_sales_invoice(source_name, target_doclist=None):
|
||||||
|
def set_missing_values(source, target):
|
||||||
|
bean = webnotes.bean(target)
|
||||||
|
bean.doc.is_pos = 0
|
||||||
|
bean.run_method("onload_post_render")
|
||||||
|
|
||||||
def update_item(obj, target, source_parent):
|
def update_item(obj, target, source_parent):
|
||||||
target.export_amount = flt(obj.export_amount) - flt(obj.billed_amt)
|
target.export_amount = flt(obj.export_amount) - flt(obj.billed_amt)
|
||||||
target.amount = target.export_amount * flt(source_parent.conversion_rate)
|
target.amount = target.export_amount * flt(source_parent.conversion_rate)
|
||||||
|
|||||||
@@ -387,6 +387,7 @@ def make_sales_invoice(source_name, target_doclist=None):
|
|||||||
|
|
||||||
def update_accounts(source, target):
|
def update_accounts(source, target):
|
||||||
si = webnotes.bean(target)
|
si = webnotes.bean(target)
|
||||||
|
si.doc.is_pos = 0
|
||||||
si.run_method("onload_post_render")
|
si.run_method("onload_post_render")
|
||||||
|
|
||||||
si.set_doclist(si.doclist.get({"parentfield": ["!=", "entries"]}) +
|
si.set_doclist(si.doclist.get({"parentfield": ["!=", "entries"]}) +
|
||||||
|
|||||||
Reference in New Issue
Block a user