[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:
committed by
Nabin Hait
parent
3639b85663
commit
7048925016
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user