[Fix] Asset gl entry not creating for non perpetual

This commit is contained in:
Rohit Waghchaure
2018-05-16 18:16:08 +05:30
parent 64076730a1
commit 421697250b
7 changed files with 152 additions and 88 deletions

View File

@@ -33,6 +33,10 @@ class StockController(AccountsController):
items, warehouses = self.get_items_and_warehouses()
update_gl_entries_after(self.posting_date, self.posting_time, warehouses, items,
warehouse_account)
elif self.doctype in ['Purchase Receipt', 'Purchase Invoice']:
gl_entries = []
gl_entries = self.get_asset_gl_entry(gl_entries)
make_gl_entries(gl_entries, from_repost=from_repost)
def get_gl_entries(self, warehouse_account=None, default_expense_account=None,
default_cost_center=None):