Invoicex v1.0.0-rc.17 Invoicex.Document View Source

A helper module for Document context.

Link to this section Summary

Functions

Returns a sorted list of discounts, items and taxes for specified Invoicex.Document.Group

Returns a sorted list of discounts, items and taxes for specified Invoicex.Document.Invoice

Checks if every item in list from changeset have properly set order

Link to this section Functions

Link to this function build_group_list(changeset) View Source
build_group_list(Ecto.Changeset.t() | Ecto.Schema.t()) :: [Ecto.Schema.t()]

Returns a sorted list of discounts, items and taxes for specified Invoicex.Document.Group.

Returns a sorted list of discounts, items and taxes for specified Invoicex.Document.Invoice.

Link to this function validate_orders(changeset, list, messages) View Source
validate_orders(Ecto.Changeset.t(), list(), map()) :: Ecto.Changeset.t()

Checks if every item in list from changeset have properly set order.