Skip to content

Commit ade6acc

Browse files
authored
Merge pull request #50800 from frappe/mergify/bp/version-15-hotfix/pr-50772
fix: use posting_date instead of bill_date from purchase invoice (backport #50772)
2 parents ff1ca9d + bd795f5 commit ade6acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpnext/assets/doctype/asset/asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ def get_values_from_purchase_doc(purchase_doc_name, item_code, doctype):
12061206

12071207
return {
12081208
"company": purchase_doc.company,
1209-
"purchase_date": purchase_doc.get("bill_date") or purchase_doc.get("posting_date"),
1209+
"purchase_date": purchase_doc.get("posting_date"),
12101210
"gross_purchase_amount": flt(first_item.base_net_amount),
12111211
"asset_quantity": first_item.qty,
12121212
"cost_center": first_item.cost_center or purchase_doc.get("cost_center"),

0 commit comments

Comments
 (0)