View Source SoftBank.Amount (soft_bank v1.2.3)

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

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.

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.

Link to this function

select_type(query, type)

View Source
Link to this function

validate_amount_type(model)

View Source