Merge pull request #42588 from ruthra-kumar/round_off_account_for_opening

refactor: separate round off account for opening
This commit is contained in:
ruthra kumar
2024-09-06 10:10:23 +05:30
committed by GitHub
11 changed files with 260 additions and 16 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
)