mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 10:45:29 +00:00
make sure default apply_discount_on is set when creating invoice
This commit is contained in:
@@ -269,6 +269,8 @@ class Subscriptions(Document):
|
||||
# Discounts
|
||||
if self.apply_additional_discount:
|
||||
invoice.apply_discount_on = self.apply_additional_discount
|
||||
else:
|
||||
invoice.apply_discount_on = 'Grand Total'
|
||||
|
||||
if self.additional_discount_percentage:
|
||||
invoice.additional_discount_percentage = self.additional_discount_percentage
|
||||
|
||||
Reference in New Issue
Block a user