Merge pull request #47191 from rohitwaghchaure/fixed-github-47076

fix: expense account in stock entry
This commit is contained in:
rohitwaghchaure
2025-04-22 13:15:33 +05:30
committed by GitHub

View File

@@ -790,6 +790,7 @@ def make_stock_entry(source_name, target_doc=None):
"uom": "stock_uom",
"job_card_item": "job_card_item",
},
"field_no_map": ["expense_account"],
"postprocess": update_item,
"condition": lambda doc: (
flt(doc.ordered_qty, doc.precision("ordered_qty"))