Merge pull request #18154 from netchampfaris/fix-price-list-on-website-d
fix: Honor price list in Shopping Cart Settings
This commit is contained in:
		
						commit
						94b3dd1db2
					
				| @ -251,11 +251,13 @@ def _get_cart_quotation(party=None): | ||||
| 	if quotation: | ||||
| 		qdoc = frappe.get_doc("Quotation", quotation[0].name) | ||||
| 	else: | ||||
| 		[company, price_list] = frappe.db.get_value("Shopping Cart Settings", None, ["company", "price_list"]) | ||||
| 		qdoc = frappe.get_doc({ | ||||
| 			"doctype": "Quotation", | ||||
| 			"naming_series": get_shopping_cart_settings().quotation_series or "QTN-CART-", | ||||
| 			"quotation_to": party.doctype, | ||||
| 			"company": frappe.db.get_value("Shopping Cart Settings", None, "company"), | ||||
| 			"company": company, | ||||
| 			"selling_price_list": price_list, | ||||
| 			"order_type": "Shopping Cart", | ||||
| 			"status": "Draft", | ||||
| 			"docstatus": 0, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user