ash_double_entry different currency
Working with USD and creating transfers from
which makes sense, but where did the
I added some
and the changeset comes in with
Creating a transfer with
So where is an appropriate place to take our
AshPhoenix.Form.submit() works as expected. I added additional accounts with a different currency, EUR, and this fails with:which makes sense, but where did the
:USD come from if both accounts have :EUR currencies?I added some
IO.inspects to AshDoubleEntry.Transfer.Changes.VerifyTransferand the changeset comes in with
:USDCreating a transfer with
:EUR works from iex:So where is an appropriate place to take our
form_params.amount and create an appropriate instance of Money with the correct currency? Would it be in the App.Ledger.Transfer.create code interface with a custom_input or somewhere else?