mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +00:00
no -ve balance accepted in sales and purchase invoice
This commit is contained in:
@@ -27,7 +27,8 @@ from webnotes.model.utils import round_floats_in_doc
|
||||
from controllers.accounts_controller import AccountsController
|
||||
|
||||
class BuyingController(AccountsController):
|
||||
def validate(self):
|
||||
def validate(self):
|
||||
super(BuyingController, self).validate()
|
||||
if self.meta.get_field("currency"):
|
||||
self.company_currency = get_company_currency(self.doc.company)
|
||||
self.validate_conversion_rate("currency", "conversion_rate")
|
||||
@@ -37,7 +38,7 @@ class BuyingController(AccountsController):
|
||||
|
||||
# IMPORTANT: enable this only when client side code is similar to this one
|
||||
# self.calculate_taxes_and_totals()
|
||||
|
||||
|
||||
# set total in words
|
||||
self.set_total_in_words()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user