mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: gle issue in internal transfer(Purchase) (#24830)
This commit is contained in:
@@ -968,7 +968,7 @@ class PurchaseInvoice(BuyingController):
|
|||||||
# base_rounding_adjustment may become zero due to small precision
|
# base_rounding_adjustment may become zero due to small precision
|
||||||
# eg: rounding_adjustment = 0.01 and exchange rate = 0.05 and precision of base_rounding_adjustment is 2
|
# eg: rounding_adjustment = 0.01 and exchange rate = 0.05 and precision of base_rounding_adjustment is 2
|
||||||
# then base_rounding_adjustment becomes zero and error is thrown in GL Entry
|
# then base_rounding_adjustment becomes zero and error is thrown in GL Entry
|
||||||
if self.rounding_adjustment and self.base_rounding_adjustment:
|
if not self.is_internal_transfer() and self.rounding_adjustment and self.base_rounding_adjustment:
|
||||||
round_off_account, round_off_cost_center = \
|
round_off_account, round_off_cost_center = \
|
||||||
get_round_off_account_and_cost_center(self.company)
|
get_round_off_account_and_cost_center(self.company)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user