fix: check if selling price exists then set it

This commit is contained in:
Saqib Ansari
2020-03-31 18:48:35 +05:30
parent 1dd0c8f54c
commit 954276ff0e

View File

@@ -438,7 +438,8 @@ class SalesInvoice(SellingController):
selling_price_list = customer_price_list or customer_group_price_list or pos.get('selling_price_list')
self.set('selling_price_list', selling_price_list)
if selling_price_list:
self.set('selling_price_list', selling_price_list)
if not for_validate:
self.update_stock = cint(pos.get("update_stock"))