[Fix] Asset gl entry not creating for non perpetual
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user