mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
fix: price list when invoice created from timesheet
This commit is contained in:
committed by
GitHub
parent
fc835ed6b1
commit
39d6df7c7d
@@ -389,6 +389,9 @@ def make_sales_invoice(source_name, item_code=None, customer=None, currency=None
|
||||
target.project = timesheet.parent_project
|
||||
if customer:
|
||||
target.customer = customer
|
||||
customer_doc = frappe.get_doc("Customer", customer)
|
||||
if customer_doc and customer_doc.default_price_list:
|
||||
target.selling_price_list = customer_doc.default_price_list
|
||||
|
||||
if currency:
|
||||
target.currency = currency
|
||||
|
||||
Reference in New Issue
Block a user