Skip to content

[pull] develop from frappe:develop#365

Merged
pull[bot] merged 2 commits into
thispl:developfrom
frappe:develop
Jun 20, 2026
Merged

[pull] develop from frappe:develop#365
pull[bot] merged 2 commits into
thispl:developfrom
frappe:develop

Conversation

@pull

@pull pull Bot commented Jun 20, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

When an Employee Advance in a currency different from the Expense Claim's
currency was fetched (e.g. a USD advance pulled into an INR claim), its
amounts were appended in the advance's own currency. Those row fields are
interpreted in the claim currency, so the values were never converted and
the advance/grand totals came out wrong.

get_expense_claim_advances now converts advance_paid / unclaimed_amount /
allocated_amount / return_amount into the claim currency (using
advance_rate / claim_rate) when the currencies differ, and stores the row
exchange rate as the claim rate so base-amount calculation stays
consistent. Same-currency advances (incl. the existing exchange gain/loss
flow) are unchanged.

Adds a test for fetching a foreign-currency advance into a base-currency
claim.

Closes #4402
GL entries against an Employee Advance must be in the advance's own
currency, so a cross-currency advance cannot be adjusted against a claim
and breaks on submit. Exclude mismatched-currency advances from the
fetch (query + form filter) instead of converting their amounts.
@pull pull Bot locked and limited conversation to collaborators Jun 20, 2026
@pull pull Bot added the ⤵️ pull label Jun 20, 2026
@pull pull Bot merged commit e7970db into thispl:develop Jun 20, 2026
12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant