diff --git a/apps/quickbooks_online/utils.py b/apps/quickbooks_online/utils.py index 618449a5..2796d3e5 100644 --- a/apps/quickbooks_online/utils.py +++ b/apps/quickbooks_online/utils.py @@ -732,9 +732,8 @@ def purchase_object_payload(self, purchase_object, line, payment_type, account_r exchange_rate = self.connection.exchange_rates.get_by_source(source_currency_code=purchase_object.currency) purchase_object_payload['ExchangeRate'] = exchange_rate['Rate'] if "Rate" in exchange_rate else 1 - if isinstance(purchase_object, CreditCardPurchase): - purchase_object.exchange_rate = purchase_object_payload['ExchangeRate'] - purchase_object.save(update_fields=['exchange_rate']) + purchase_object.exchange_rate = purchase_object_payload['ExchangeRate'] + purchase_object.save(update_fields=['exchange_rate']) if general_settings.import_tax_codes: if general_settings.is_tax_override_enabled: