Fix converted price rounding (0 decimal places, not 2)
Django CI/CD / test (push) Failing after 5m49s
Staging deployment / deploy (push) Successful in 1m10s
Staging deployment / comment (push) Has been skipped
Staging deployment / teardown (push) Has been skipped
Django CI/CD / build-and-push (push) Has been skipped
Django CI/CD / test (push) Failing after 5m49s
Staging deployment / deploy (push) Successful in 1m10s
Staging deployment / comment (push) Has been skipped
Staging deployment / teardown (push) Has been skipped
Django CI/CD / build-and-push (push) Has been skipped
round(..., 0) matches the original floatformat(..., 0) intent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ def convert_prices():
|
||||
if rate:
|
||||
_save_converted_price(
|
||||
purchase,
|
||||
round(purchase.price * rate, 2),
|
||||
round(purchase.price * rate, 0),
|
||||
needs_update,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user