mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 03:28:32 +00:00
GL Control rewrite and many other cleanup using inheritence
This commit is contained in:
@@ -22,8 +22,9 @@ from webnotes.utils import flt
|
||||
from buying.utils import get_item_details
|
||||
from setup.utils import get_company_currency
|
||||
|
||||
from utilities.transaction_base import TransactionBase
|
||||
class BuyingController(TransactionBase):
|
||||
from controllers.accounts_controller import AccountsController
|
||||
|
||||
class BuyingController(AccountsController):
|
||||
def validate(self):
|
||||
if self.meta.get_field("currency"):
|
||||
self.company_currency = get_company_currency(self.doc.company)
|
||||
|
||||
Reference in New Issue
Block a user