[Enhance] Standalone debit/credit note (#14269)

* [Enhance] Standalone debit/credit note

* Test cases

* Test cases and documentation

* Removed credit, debit note links from accounts module
This commit is contained in:
rohitwaghchaure
2018-06-11 12:02:14 +05:30
committed by Nabin Hait
parent 3639b85663
commit 7048925016
20 changed files with 519 additions and 122 deletions

View File

@@ -82,6 +82,9 @@ class AccountsController(TransactionBase):
if self.doctype == 'Purchase Invoice':
self.validate_paid_amount()
if self.doctype in ['Purchase Invoice', 'Sales Invoice'] and self.is_return:
self.validate_qty()
def validate_invoice_documents_schedule(self):
self.validate_payment_schedule_dates()
self.set_due_date()