refactor: use separate round off for opening entries

This commit is contained in:
ruthra kumar
2024-08-02 11:49:50 +05:30
parent a5b228549c
commit 88e68168e3
7 changed files with 59 additions and 14 deletions

View File

@@ -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
)