[perpetual accounting] gl entries based on stock_value difference in sl entries

This commit is contained in:
Nabin Hait
2013-08-26 16:53:30 +05:30
parent aeba24ee81
commit 27994c216a
20 changed files with 399 additions and 352 deletions

View File

@@ -61,10 +61,9 @@ class DocType:
wh = {
"doctype":"Warehouse",
"warehouse_name": whname,
"company": self.doc.name
"company": self.doc.name,
}
if cint(webnotes.defaults.get_global_default("perpetual_accounting")):
wh.update({"account": "Stock In Hand - " + self.doc.abbr})
wh.update({"account": "Stock In Hand - " + self.doc.abbr})
webnotes.bean(wh).insert()