Merge pull request #23476 from anupamvs/subscription-invoice-issue
fix: Payment Schedule not fetching
This commit is contained in:
commit
1137d8bd33
@ -345,13 +345,14 @@ class Subscription(Document):
|
|||||||
invoice.set_taxes()
|
invoice.set_taxes()
|
||||||
|
|
||||||
# Due date
|
# Due date
|
||||||
invoice.append(
|
if self.days_until_due:
|
||||||
'payment_schedule',
|
invoice.append(
|
||||||
{
|
'payment_schedule',
|
||||||
'due_date': add_days(invoice.posting_date, cint(self.days_until_due)),
|
{
|
||||||
'invoice_portion': 100
|
'due_date': add_days(invoice.posting_date, cint(self.days_until_due)),
|
||||||
}
|
'invoice_portion': 100
|
||||||
)
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# Discounts
|
# Discounts
|
||||||
if self.additional_discount_percentage:
|
if self.additional_discount_percentage:
|
||||||
|
Loading…
Reference in New Issue
Block a user