mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
commonified some purchase code, added test case for auto inventory accounting for purchase invoice
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user