mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
Merge branch 'hotfix' into 17902
This commit is contained in:
@@ -15,6 +15,9 @@ class calculate_taxes_and_totals(object):
|
|||||||
self.calculate()
|
self.calculate()
|
||||||
|
|
||||||
def calculate(self):
|
def calculate(self):
|
||||||
|
if not len(self.doc.get("items")):
|
||||||
|
return
|
||||||
|
|
||||||
self.discount_amount_applied = False
|
self.discount_amount_applied = False
|
||||||
self._calculate()
|
self._calculate()
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ def place_order():
|
|||||||
quotation.flags.ignore_permissions = True
|
quotation.flags.ignore_permissions = True
|
||||||
quotation.submit()
|
quotation.submit()
|
||||||
|
|
||||||
if quotation.lead:
|
if quotation.quotation_to == 'Lead' and quotation.party_name:
|
||||||
# company used to create customer accounts
|
# company used to create customer accounts
|
||||||
frappe.defaults.set_user_default("company", quotation.company)
|
frappe.defaults.set_user_default("company", quotation.company)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user