[perpetual accounting] [minor] create jv to book stock received but not billed

This commit is contained in:
Nabin Hait 2013-08-09 14:42:48 +05:30
parent 95c748eb67
commit fd6a650e12

View File

@ -20,8 +20,10 @@ class DocType:
previous_val = cint(webnotes.conn.get_value("Accounts Settings",
None, "perpetual_accounting"))
if cint(self.doc.perpetual_accounting) != previous_val:
from accounts.utils import validate_stock_and_account_balance
from accounts.utils import validate_stock_and_account_balance, \
create_stock_in_hand_jv
validate_stock_and_account_balance()
create_stock_in_hand_jv(reverse=cint(self.doc.perpetual_accounting) < previous_val)
def on_update(self):
for key in ["perpetual_accounting"]: