mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
no -ve balance accepted in sales and purchase invoice
This commit is contained in:
@@ -21,6 +21,10 @@ from webnotes.utils import flt
|
||||
from utilities.transaction_base import TransactionBase
|
||||
|
||||
class AccountsController(TransactionBase):
|
||||
def validate(self):
|
||||
if self.meta.get_field("grand_total"):
|
||||
self.validate_value("grand_total", ">=", 0)
|
||||
|
||||
def get_gl_dict(self, args, cancel=None):
|
||||
"""this method populates the common properties of a gl entry record"""
|
||||
if cancel is None:
|
||||
|
||||
Reference in New Issue
Block a user