Set due date in purchase invoice based on suppler invoice date (#12395)

This commit is contained in:
rohitwaghchaure
2018-01-17 16:23:04 +05:30
committed by Nabin Hait
parent 91fd29a963
commit da941af687
2 changed files with 5 additions and 2 deletions

View File

@@ -666,7 +666,7 @@ class AccountsController(TransactionBase):
self.remove(item)
def set_payment_schedule(self):
posting_date = self.get("posting_date") or self.get("transaction_date")
posting_date = self.get("bill_date") or self.get("posting_date") or self.get("transaction_date")
date = self.get("due_date")
due_date = date or posting_date
grand_total = self.get("rounded_total") or self.grand_total