chore: control reposting of future gl entries with flags (#20775)

This commit is contained in:
Saqib
2020-03-02 15:19:28 +05:30
committed by GitHub
parent 27163e60bb
commit a6bf96322b
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class StockController(AccountsController):
gl_entries = self.get_gl_entries(warehouse_account)
make_gl_entries(gl_entries, from_repost=from_repost)
if repost_future_gle:
if (repost_future_gle or self.flags.repost_future_gle):
items, warehouses = self.get_items_and_warehouses()
update_gl_entries_after(self.posting_date, self.posting_time, warehouses, items,
warehouse_account, company=self.company)