mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Merge pull request #42750 from frappe/mergify/bp/version-15-hotfix/pr-40964
fix: price list when invoice created from timesheet (backport #40964)
This commit is contained in:
@@ -379,6 +379,9 @@ def make_sales_invoice(source_name, item_code=None, customer=None, currency=None
|
||||
target.project = timesheet.parent_project
|
||||
if customer:
|
||||
target.customer = customer
|
||||
default_price_list = frappe.get_value("Customer", customer, "default_price_list")
|
||||
if default_price_list:
|
||||
target.selling_price_list = default_price_list
|
||||
|
||||
if currency:
|
||||
target.currency = currency
|
||||
|
||||
Reference in New Issue
Block a user