Skip to content

Commit

Permalink
fix: price list when invoice created from timesheet
Browse files Browse the repository at this point in the history
(cherry picked from commit 39d6df7)
  • Loading branch information
Nihantra-Patel authored and mergify[bot] committed Aug 13, 2024
1 parent 2258432 commit 536dc47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/projects/doctype/timesheet/timesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Expand Down

0 comments on commit 536dc47

Please sign in to comment.