Merge pull request #23476 from anupamvs/subscription-invoice-issue

fix: Payment Schedule not fetching
This commit is contained in:
Deepesh Garg 2020-10-12 20:34:43 +05:30 committed by GitHub
commit 1137d8bd33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,13 +345,14 @@ class Subscription(Document):
invoice.set_taxes()
# Due date
invoice.append(
'payment_schedule',
{
'due_date': add_days(invoice.posting_date, cint(self.days_until_due)),
'invoice_portion': 100
}
)
if self.days_until_due:
invoice.append(
'payment_schedule',
{
'due_date': add_days(invoice.posting_date, cint(self.days_until_due)),
'invoice_portion': 100
}
)
# Discounts
if self.additional_discount_percentage: