SoftBank.Amount (soft_bank v0.1.3) View Source

An Amount represents the individual debit or credit for a given account and is part of a balanced entry.

Link to this section Summary

Functions

Creates an amount changeset associated with a SoftBank.Entry and SoftBank.Account. A type ("credit" or "debit"), as well as, an amount greater than 0 must be specified.

Link to this section Functions

Link to this function

changeset(model, params \\ %{})

View Source

Creates an amount changeset associated with a SoftBank.Entry and SoftBank.Account. A type ("credit" or "debit"), as well as, an amount greater than 0 must be specified.