fix: custom conversion factor field not mapped from job card to stock entry

This commit is contained in:
Rohit Waghchaure 2021-06-04 10:53:44 +05:30
parent 7437748a1d
commit af4794b2d1

View File

@ -433,6 +433,7 @@ def make_material_request(source_name, target_doc=None):
def make_stock_entry(source_name, target_doc=None): def make_stock_entry(source_name, target_doc=None):
def update_item(obj, target, source_parent): def update_item(obj, target, source_parent):
target.t_warehouse = source_parent.wip_warehouse target.t_warehouse = source_parent.wip_warehouse
if not target.conversion_factor:
target.conversion_factor = 1 target.conversion_factor = 1
def set_missing_values(source, target): def set_missing_values(source, target):