Merge pull request #24700 from deepeshgarg007/rounding_issue_fix

fix: Issue on posting inter-warehouse transfer invoice
This commit is contained in:
Deepesh Garg 2021-02-27 17:30:01 +05:30 committed by GitHub
commit 6fdd859a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1059,7 +1059,8 @@ class SalesInvoice(SellingController):
)
def make_gle_for_rounding_adjustment(self, gl_entries):
if flt(self.rounding_adjustment, self.precision("rounding_adjustment")) and self.base_rounding_adjustment:
if flt(self.rounding_adjustment, self.precision("rounding_adjustment")) and self.base_rounding_adjustment \
and not self.is_internal_transfer():
round_off_account, round_off_cost_center = \
get_round_off_account_and_cost_center(self.company)