fix: recalculate totals after setting quotation conversion rate

This commit is contained in:
ervishnucs
2026-06-28 09:53:38 +05:30
parent 31ee3f1923
commit e61d299e63

View File

@@ -39,6 +39,7 @@ def make_quotation(source_name: str, target_doc: str | Document | None = None):
target_doc.conversion_rate = get_exchange_rate(
target_doc.currency, company_currency, target_doc.transaction_date, "for_selling"
)
target_doc.run_method("calculate_taxes_and_totals")
return target_doc