From 536dc47eb062f7d512b0909a920f09592e528e49 Mon Sep 17 00:00:00 2001 From: "Nihantra C. Patel" <141945075+Nihantra-Patel@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:09:27 +0530 Subject: [PATCH] fix: price list when invoice created from timesheet (cherry picked from commit 39d6df7c7d225cb946a640e980fcc5bafb1c6a2d) --- erpnext/projects/doctype/timesheet/timesheet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py index 5b9b5c9a9f6..5cd4e68b17f 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.py +++ b/erpnext/projects/doctype/timesheet/timesheet.py @@ -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