refactor: use separate round off for opening entries
This commit is contained in:
@@ -1266,7 +1266,11 @@ class AccountsController(TransactionBase):
|
||||
d.exchange_gain_loss = difference
|
||||
|
||||
def make_precision_loss_gl_entry(self, gl_entries):
|
||||
round_off_account, round_off_cost_center = get_round_off_account_and_cost_center(
|
||||
(
|
||||
round_off_account,
|
||||
round_off_cost_center,
|
||||
round_off_for_opening,
|
||||
) = get_round_off_account_and_cost_center(
|
||||
self.company, "Purchase Invoice", self.name, self.use_company_roundoff_cost_center
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user