mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
[perpetual accounting] [minor] create jv to book stock received but not billed
This commit is contained in:
@@ -20,8 +20,10 @@ class DocType:
|
|||||||
previous_val = cint(webnotes.conn.get_value("Accounts Settings",
|
previous_val = cint(webnotes.conn.get_value("Accounts Settings",
|
||||||
None, "perpetual_accounting"))
|
None, "perpetual_accounting"))
|
||||||
if cint(self.doc.perpetual_accounting) != previous_val:
|
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()
|
validate_stock_and_account_balance()
|
||||||
|
create_stock_in_hand_jv(reverse=cint(self.doc.perpetual_accounting) < previous_val)
|
||||||
|
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
for key in ["perpetual_accounting"]:
|
for key in ["perpetual_accounting"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user