commonified some purchase code, added test case for auto inventory accounting for purchase invoice

This commit is contained in:
Anand Doshi
2013-02-27 18:10:30 +05:30
parent 9d794fccc1
commit 4a7248ee0b
7 changed files with 186 additions and 80 deletions

View File

@@ -86,4 +86,11 @@ class AccountsController(TransactionBase):
from `tabItem` where name in (%s) and is_stock_item='Yes'""" % \
(", ".join((["%s"]*len(item_codes))),), item_codes)]
return self._stock_items
return self._stock_items
@property
def company_abbr(self):
if not hasattr(self, "_abbr"):
self._abbr = webnotes.conn.get_value("Company", self.doc.company, "abbr")
return self._abbr