Documentation ¶
Index ¶
- Constants
- Variables
- func AmountDue(v float64) predicate.Invoice
- func AmountDueEQ(v float64) predicate.Invoice
- func AmountDueGT(v float64) predicate.Invoice
- func AmountDueGTE(v float64) predicate.Invoice
- func AmountDueIn(vs ...float64) predicate.Invoice
- func AmountDueLT(v float64) predicate.Invoice
- func AmountDueLTE(v float64) predicate.Invoice
- func AmountDueNEQ(v float64) predicate.Invoice
- func AmountDueNotIn(vs ...float64) predicate.Invoice
- func And(predicates ...predicate.Invoice) predicate.Invoice
- func AskingPrice(v float64) predicate.Invoice
- func AskingPriceEQ(v float64) predicate.Invoice
- func AskingPriceGT(v float64) predicate.Invoice
- func AskingPriceGTE(v float64) predicate.Invoice
- func AskingPriceIn(vs ...float64) predicate.Invoice
- func AskingPriceLT(v float64) predicate.Invoice
- func AskingPriceLTE(v float64) predicate.Invoice
- func AskingPriceNEQ(v float64) predicate.Invoice
- func AskingPriceNotIn(vs ...float64) predicate.Invoice
- func CompanyName(v string) predicate.Invoice
- func CompanyNameContains(v string) predicate.Invoice
- func CompanyNameContainsFold(v string) predicate.Invoice
- func CompanyNameEQ(v string) predicate.Invoice
- func CompanyNameEqualFold(v string) predicate.Invoice
- func CompanyNameGT(v string) predicate.Invoice
- func CompanyNameGTE(v string) predicate.Invoice
- func CompanyNameHasPrefix(v string) predicate.Invoice
- func CompanyNameHasSuffix(v string) predicate.Invoice
- func CompanyNameIn(vs ...string) predicate.Invoice
- func CompanyNameIsNil() predicate.Invoice
- func CompanyNameLT(v string) predicate.Invoice
- func CompanyNameLTE(v string) predicate.Invoice
- func CompanyNameNEQ(v string) predicate.Invoice
- func CompanyNameNotIn(vs ...string) predicate.Invoice
- func CompanyNameNotNil() predicate.Invoice
- func CreatedAt(v time.Time) predicate.Invoice
- func CreatedAtEQ(v time.Time) predicate.Invoice
- func CreatedAtGT(v time.Time) predicate.Invoice
- func CreatedAtGTE(v time.Time) predicate.Invoice
- func CreatedAtIn(vs ...time.Time) predicate.Invoice
- func CreatedAtLT(v time.Time) predicate.Invoice
- func CreatedAtLTE(v time.Time) predicate.Invoice
- func CreatedAtNEQ(v time.Time) predicate.Invoice
- func CreatedAtNotIn(vs ...time.Time) predicate.Invoice
- func Currency(v string) predicate.Invoice
- func CurrencyContains(v string) predicate.Invoice
- func CurrencyContainsFold(v string) predicate.Invoice
- func CurrencyEQ(v string) predicate.Invoice
- func CurrencyEqualFold(v string) predicate.Invoice
- func CurrencyGT(v string) predicate.Invoice
- func CurrencyGTE(v string) predicate.Invoice
- func CurrencyHasPrefix(v string) predicate.Invoice
- func CurrencyHasSuffix(v string) predicate.Invoice
- func CurrencyIn(vs ...string) predicate.Invoice
- func CurrencyLT(v string) predicate.Invoice
- func CurrencyLTE(v string) predicate.Invoice
- func CurrencyNEQ(v string) predicate.Invoice
- func CurrencyNotIn(vs ...string) predicate.Invoice
- func CustomerName(v string) predicate.Invoice
- func CustomerNameContains(v string) predicate.Invoice
- func CustomerNameContainsFold(v string) predicate.Invoice
- func CustomerNameEQ(v string) predicate.Invoice
- func CustomerNameEqualFold(v string) predicate.Invoice
- func CustomerNameGT(v string) predicate.Invoice
- func CustomerNameGTE(v string) predicate.Invoice
- func CustomerNameHasPrefix(v string) predicate.Invoice
- func CustomerNameHasSuffix(v string) predicate.Invoice
- func CustomerNameIn(vs ...string) predicate.Invoice
- func CustomerNameLT(v string) predicate.Invoice
- func CustomerNameLTE(v string) predicate.Invoice
- func CustomerNameNEQ(v string) predicate.Invoice
- func CustomerNameNotIn(vs ...string) predicate.Invoice
- func DueDate(v time.Time) predicate.Invoice
- func DueDateEQ(v time.Time) predicate.Invoice
- func DueDateGT(v time.Time) predicate.Invoice
- func DueDateGTE(v time.Time) predicate.Invoice
- func DueDateIn(vs ...time.Time) predicate.Invoice
- func DueDateLT(v time.Time) predicate.Invoice
- func DueDateLTE(v time.Time) predicate.Invoice
- func DueDateNEQ(v time.Time) predicate.Invoice
- func DueDateNotIn(vs ...time.Time) predicate.Invoice
- func HasBids() predicate.Invoice
- func HasBidsWith(preds ...predicate.Bid) predicate.Invoice
- func HasInvestor() predicate.Invoice
- func HasInvestorWith(preds ...predicate.Investor) predicate.Invoice
- func HasIssuer() predicate.Invoice
- func HasIssuerWith(preds ...predicate.Issuer) predicate.Invoice
- func HasItems() predicate.Invoice
- func HasItemsWith(preds ...predicate.InvoiceItem) predicate.Invoice
- func ID(id uuid.UUID) predicate.Invoice
- func IDEQ(id uuid.UUID) predicate.Invoice
- func IDGT(id uuid.UUID) predicate.Invoice
- func IDGTE(id uuid.UUID) predicate.Invoice
- func IDIn(ids ...uuid.UUID) predicate.Invoice
- func IDLT(id uuid.UUID) predicate.Invoice
- func IDLTE(id uuid.UUID) predicate.Invoice
- func IDNEQ(id uuid.UUID) predicate.Invoice
- func IDNotIn(ids ...uuid.UUID) predicate.Invoice
- func InvoiceDate(v time.Time) predicate.Invoice
- func InvoiceDateEQ(v time.Time) predicate.Invoice
- func InvoiceDateGT(v time.Time) predicate.Invoice
- func InvoiceDateGTE(v time.Time) predicate.Invoice
- func InvoiceDateIn(vs ...time.Time) predicate.Invoice
- func InvoiceDateLT(v time.Time) predicate.Invoice
- func InvoiceDateLTE(v time.Time) predicate.Invoice
- func InvoiceDateNEQ(v time.Time) predicate.Invoice
- func InvoiceDateNotIn(vs ...time.Time) predicate.Invoice
- func InvoiceNumber(v string) predicate.Invoice
- func InvoiceNumberContains(v string) predicate.Invoice
- func InvoiceNumberContainsFold(v string) predicate.Invoice
- func InvoiceNumberEQ(v string) predicate.Invoice
- func InvoiceNumberEqualFold(v string) predicate.Invoice
- func InvoiceNumberGT(v string) predicate.Invoice
- func InvoiceNumberGTE(v string) predicate.Invoice
- func InvoiceNumberHasPrefix(v string) predicate.Invoice
- func InvoiceNumberHasSuffix(v string) predicate.Invoice
- func InvoiceNumberIn(vs ...string) predicate.Invoice
- func InvoiceNumberLT(v string) predicate.Invoice
- func InvoiceNumberLTE(v string) predicate.Invoice
- func InvoiceNumberNEQ(v string) predicate.Invoice
- func InvoiceNumberNotIn(vs ...string) predicate.Invoice
- func IsApproved(v bool) predicate.Invoice
- func IsApprovedEQ(v bool) predicate.Invoice
- func IsApprovedNEQ(v bool) predicate.Invoice
- func IsLocked(v bool) predicate.Invoice
- func IsLockedEQ(v bool) predicate.Invoice
- func IsLockedNEQ(v bool) predicate.Invoice
- func Not(p predicate.Invoice) predicate.Invoice
- func Or(predicates ...predicate.Invoice) predicate.Invoice
- func Reference(v string) predicate.Invoice
- func ReferenceContains(v string) predicate.Invoice
- func ReferenceContainsFold(v string) predicate.Invoice
- func ReferenceEQ(v string) predicate.Invoice
- func ReferenceEqualFold(v string) predicate.Invoice
- func ReferenceGT(v string) predicate.Invoice
- func ReferenceGTE(v string) predicate.Invoice
- func ReferenceHasPrefix(v string) predicate.Invoice
- func ReferenceHasSuffix(v string) predicate.Invoice
- func ReferenceIn(vs ...string) predicate.Invoice
- func ReferenceIsNil() predicate.Invoice
- func ReferenceLT(v string) predicate.Invoice
- func ReferenceLTE(v string) predicate.Invoice
- func ReferenceNEQ(v string) predicate.Invoice
- func ReferenceNotIn(vs ...string) predicate.Invoice
- func ReferenceNotNil() predicate.Invoice
- func StatusEQ(v Status) predicate.Invoice
- func StatusIn(vs ...Status) predicate.Invoice
- func StatusNEQ(v Status) predicate.Invoice
- func StatusNotIn(vs ...Status) predicate.Invoice
- func StatusValidator(s Status) error
- func TotalAmount(v float64) predicate.Invoice
- func TotalAmountEQ(v float64) predicate.Invoice
- func TotalAmountGT(v float64) predicate.Invoice
- func TotalAmountGTE(v float64) predicate.Invoice
- func TotalAmountIn(vs ...float64) predicate.Invoice
- func TotalAmountIsNil() predicate.Invoice
- func TotalAmountLT(v float64) predicate.Invoice
- func TotalAmountLTE(v float64) predicate.Invoice
- func TotalAmountNEQ(v float64) predicate.Invoice
- func TotalAmountNotIn(vs ...float64) predicate.Invoice
- func TotalAmountNotNil() predicate.Invoice
- func TotalVat(v float64) predicate.Invoice
- func TotalVatEQ(v float64) predicate.Invoice
- func TotalVatGT(v float64) predicate.Invoice
- func TotalVatGTE(v float64) predicate.Invoice
- func TotalVatIn(vs ...float64) predicate.Invoice
- func TotalVatIsNil() predicate.Invoice
- func TotalVatLT(v float64) predicate.Invoice
- func TotalVatLTE(v float64) predicate.Invoice
- func TotalVatNEQ(v float64) predicate.Invoice
- func TotalVatNotIn(vs ...float64) predicate.Invoice
- func TotalVatNotNil() predicate.Invoice
- func ValidColumn(column string) bool
- type OrderOption
- func ByAmountDue(opts ...sql.OrderTermOption) OrderOption
- func ByAskingPrice(opts ...sql.OrderTermOption) OrderOption
- func ByBids(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBidsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCompanyName(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerName(opts ...sql.OrderTermOption) OrderOption
- func ByDueDate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvestor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvestorCount(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceDate(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceNumber(opts ...sql.OrderTermOption) OrderOption
- func ByIsApproved(opts ...sql.OrderTermOption) OrderOption
- func ByIsLocked(opts ...sql.OrderTermOption) OrderOption
- func ByIssuerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReference(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
- func ByTotalVat(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the invoice type in the database. Label = "invoice" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldAskingPrice holds the string denoting the asking_price field in the database. FieldAskingPrice = "asking_price" // FieldIsLocked holds the string denoting the is_locked field in the database. FieldIsLocked = "is_locked" // FieldIsApproved holds the string denoting the is_approved field in the database. FieldIsApproved = "is_approved" // FieldInvoiceNumber holds the string denoting the invoice_number field in the database. FieldInvoiceNumber = "invoice_number" // FieldInvoiceDate holds the string denoting the invoice_date field in the database. FieldInvoiceDate = "invoice_date" // FieldDueDate holds the string denoting the due_date field in the database. FieldDueDate = "due_date" // FieldAmountDue holds the string denoting the amount_due field in the database. FieldAmountDue = "amount_due" // FieldCustomerName holds the string denoting the customer_name field in the database. FieldCustomerName = "customer_name" // FieldReference holds the string denoting the reference field in the database. FieldReference = "reference" // FieldCompanyName holds the string denoting the company_name field in the database. FieldCompanyName = "company_name" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // FieldTotalAmount holds the string denoting the total_amount field in the database. FieldTotalAmount = "total_amount" // FieldTotalVat holds the string denoting the total_vat field in the database. FieldTotalVat = "total_vat" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeItems holds the string denoting the items edge name in mutations. EdgeItems = "items" // EdgeBids holds the string denoting the bids edge name in mutations. EdgeBids = "bids" // EdgeIssuer holds the string denoting the issuer edge name in mutations. EdgeIssuer = "issuer" // EdgeInvestor holds the string denoting the investor edge name in mutations. EdgeInvestor = "investor" // Table holds the table name of the invoice in the database. Table = "invoices" // ItemsTable is the table that holds the items relation/edge. ItemsTable = "invoice_items" // ItemsInverseTable is the table name for the InvoiceItem entity. // It exists in this package in order to avoid circular dependency with the "invoiceitem" package. ItemsInverseTable = "invoice_items" // ItemsColumn is the table column denoting the items relation/edge. ItemsColumn = "invoice_items" // BidsTable is the table that holds the bids relation/edge. BidsTable = "bids" // BidsInverseTable is the table name for the Bid entity. // It exists in this package in order to avoid circular dependency with the "bid" package. BidsInverseTable = "bids" // BidsColumn is the table column denoting the bids relation/edge. BidsColumn = "invoice_bids" // IssuerTable is the table that holds the issuer relation/edge. IssuerTable = "invoices" // IssuerInverseTable is the table name for the Issuer entity. // It exists in this package in order to avoid circular dependency with the "issuer" package. IssuerInverseTable = "issuers" // IssuerColumn is the table column denoting the issuer relation/edge. IssuerColumn = "issuer_invoices" // InvestorTable is the table that holds the investor relation/edge. The primary key declared below. InvestorTable = "investor_invoices" // InvestorInverseTable is the table name for the Investor entity. // It exists in this package in order to avoid circular dependency with the "investor" package. InvestorInverseTable = "investors" )
const DefaultStatus = StatusPending
StatusPending is the default value of the Status enum.
Variables ¶
var ( // DefaultAskingPrice holds the default value on creation for the "asking_price" field. DefaultAskingPrice float64 // DefaultIsLocked holds the default value on creation for the "is_locked" field. DefaultIsLocked bool // DefaultIsApproved holds the default value on creation for the "is_approved" field. DefaultIsApproved bool // DefaultCurrency holds the default value on creation for the "currency" field. DefaultCurrency string // DefaultTotalAmount holds the default value on creation for the "total_amount" field. DefaultTotalAmount float64 // DefaultTotalVat holds the default value on creation for the "total_vat" field. DefaultTotalVat float64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldStatus, FieldAskingPrice, FieldIsLocked, FieldIsApproved, FieldInvoiceNumber, FieldInvoiceDate, FieldDueDate, FieldAmountDue, FieldCustomerName, FieldReference, FieldCompanyName, FieldCurrency, FieldTotalAmount, FieldTotalVat, FieldCreatedAt, }
Columns holds all SQL columns for invoice fields.
var ForeignKeys = []string{
"issuer_invoices",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "invoices" table and are not defined as standalone fields in the schema.
var ( // InvestorPrimaryKey and InvestorColumn2 are the table columns denoting the // primary key for the investor relation (M2M). InvestorPrimaryKey = []string{"investor_id", "invoice_id"} )
Functions ¶
func AmountDue ¶
AmountDue applies equality check predicate on the "amount_due" field. It's identical to AmountDueEQ.
func AmountDueEQ ¶
AmountDueEQ applies the EQ predicate on the "amount_due" field.
func AmountDueGT ¶
AmountDueGT applies the GT predicate on the "amount_due" field.
func AmountDueGTE ¶
AmountDueGTE applies the GTE predicate on the "amount_due" field.
func AmountDueIn ¶
AmountDueIn applies the In predicate on the "amount_due" field.
func AmountDueLT ¶
AmountDueLT applies the LT predicate on the "amount_due" field.
func AmountDueLTE ¶
AmountDueLTE applies the LTE predicate on the "amount_due" field.
func AmountDueNEQ ¶
AmountDueNEQ applies the NEQ predicate on the "amount_due" field.
func AmountDueNotIn ¶
AmountDueNotIn applies the NotIn predicate on the "amount_due" field.
func AskingPrice ¶
AskingPrice applies equality check predicate on the "asking_price" field. It's identical to AskingPriceEQ.
func AskingPriceEQ ¶
AskingPriceEQ applies the EQ predicate on the "asking_price" field.
func AskingPriceGT ¶
AskingPriceGT applies the GT predicate on the "asking_price" field.
func AskingPriceGTE ¶
AskingPriceGTE applies the GTE predicate on the "asking_price" field.
func AskingPriceIn ¶
AskingPriceIn applies the In predicate on the "asking_price" field.
func AskingPriceLT ¶
AskingPriceLT applies the LT predicate on the "asking_price" field.
func AskingPriceLTE ¶
AskingPriceLTE applies the LTE predicate on the "asking_price" field.
func AskingPriceNEQ ¶
AskingPriceNEQ applies the NEQ predicate on the "asking_price" field.
func AskingPriceNotIn ¶
AskingPriceNotIn applies the NotIn predicate on the "asking_price" field.
func CompanyName ¶
CompanyName applies equality check predicate on the "company_name" field. It's identical to CompanyNameEQ.
func CompanyNameContains ¶
CompanyNameContains applies the Contains predicate on the "company_name" field.
func CompanyNameContainsFold ¶
CompanyNameContainsFold applies the ContainsFold predicate on the "company_name" field.
func CompanyNameEQ ¶
CompanyNameEQ applies the EQ predicate on the "company_name" field.
func CompanyNameEqualFold ¶
CompanyNameEqualFold applies the EqualFold predicate on the "company_name" field.
func CompanyNameGT ¶
CompanyNameGT applies the GT predicate on the "company_name" field.
func CompanyNameGTE ¶
CompanyNameGTE applies the GTE predicate on the "company_name" field.
func CompanyNameHasPrefix ¶
CompanyNameHasPrefix applies the HasPrefix predicate on the "company_name" field.
func CompanyNameHasSuffix ¶
CompanyNameHasSuffix applies the HasSuffix predicate on the "company_name" field.
func CompanyNameIn ¶
CompanyNameIn applies the In predicate on the "company_name" field.
func CompanyNameIsNil ¶
CompanyNameIsNil applies the IsNil predicate on the "company_name" field.
func CompanyNameLT ¶
CompanyNameLT applies the LT predicate on the "company_name" field.
func CompanyNameLTE ¶
CompanyNameLTE applies the LTE predicate on the "company_name" field.
func CompanyNameNEQ ¶
CompanyNameNEQ applies the NEQ predicate on the "company_name" field.
func CompanyNameNotIn ¶
CompanyNameNotIn applies the NotIn predicate on the "company_name" field.
func CompanyNameNotNil ¶
CompanyNameNotNil applies the NotNil predicate on the "company_name" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Currency ¶
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func CustomerName ¶
CustomerName applies equality check predicate on the "customer_name" field. It's identical to CustomerNameEQ.
func CustomerNameContains ¶
CustomerNameContains applies the Contains predicate on the "customer_name" field.
func CustomerNameContainsFold ¶
CustomerNameContainsFold applies the ContainsFold predicate on the "customer_name" field.
func CustomerNameEQ ¶
CustomerNameEQ applies the EQ predicate on the "customer_name" field.
func CustomerNameEqualFold ¶
CustomerNameEqualFold applies the EqualFold predicate on the "customer_name" field.
func CustomerNameGT ¶
CustomerNameGT applies the GT predicate on the "customer_name" field.
func CustomerNameGTE ¶
CustomerNameGTE applies the GTE predicate on the "customer_name" field.
func CustomerNameHasPrefix ¶
CustomerNameHasPrefix applies the HasPrefix predicate on the "customer_name" field.
func CustomerNameHasSuffix ¶
CustomerNameHasSuffix applies the HasSuffix predicate on the "customer_name" field.
func CustomerNameIn ¶
CustomerNameIn applies the In predicate on the "customer_name" field.
func CustomerNameLT ¶
CustomerNameLT applies the LT predicate on the "customer_name" field.
func CustomerNameLTE ¶
CustomerNameLTE applies the LTE predicate on the "customer_name" field.
func CustomerNameNEQ ¶
CustomerNameNEQ applies the NEQ predicate on the "customer_name" field.
func CustomerNameNotIn ¶
CustomerNameNotIn applies the NotIn predicate on the "customer_name" field.
func DueDate ¶
DueDate applies equality check predicate on the "due_date" field. It's identical to DueDateEQ.
func DueDateGTE ¶
DueDateGTE applies the GTE predicate on the "due_date" field.
func DueDateLTE ¶
DueDateLTE applies the LTE predicate on the "due_date" field.
func DueDateNEQ ¶
DueDateNEQ applies the NEQ predicate on the "due_date" field.
func DueDateNotIn ¶
DueDateNotIn applies the NotIn predicate on the "due_date" field.
func HasBidsWith ¶
HasBidsWith applies the HasEdge predicate on the "bids" edge with a given conditions (other predicates).
func HasInvestor ¶
HasInvestor applies the HasEdge predicate on the "investor" edge.
func HasInvestorWith ¶
HasInvestorWith applies the HasEdge predicate on the "investor" edge with a given conditions (other predicates).
func HasIssuerWith ¶
HasIssuerWith applies the HasEdge predicate on the "issuer" edge with a given conditions (other predicates).
func HasItemsWith ¶
func HasItemsWith(preds ...predicate.InvoiceItem) predicate.Invoice
HasItemsWith applies the HasEdge predicate on the "items" edge with a given conditions (other predicates).
func InvoiceDate ¶
InvoiceDate applies equality check predicate on the "invoice_date" field. It's identical to InvoiceDateEQ.
func InvoiceDateEQ ¶
InvoiceDateEQ applies the EQ predicate on the "invoice_date" field.
func InvoiceDateGT ¶
InvoiceDateGT applies the GT predicate on the "invoice_date" field.
func InvoiceDateGTE ¶
InvoiceDateGTE applies the GTE predicate on the "invoice_date" field.
func InvoiceDateIn ¶
InvoiceDateIn applies the In predicate on the "invoice_date" field.
func InvoiceDateLT ¶
InvoiceDateLT applies the LT predicate on the "invoice_date" field.
func InvoiceDateLTE ¶
InvoiceDateLTE applies the LTE predicate on the "invoice_date" field.
func InvoiceDateNEQ ¶
InvoiceDateNEQ applies the NEQ predicate on the "invoice_date" field.
func InvoiceDateNotIn ¶
InvoiceDateNotIn applies the NotIn predicate on the "invoice_date" field.
func InvoiceNumber ¶
InvoiceNumber applies equality check predicate on the "invoice_number" field. It's identical to InvoiceNumberEQ.
func InvoiceNumberContains ¶
InvoiceNumberContains applies the Contains predicate on the "invoice_number" field.
func InvoiceNumberContainsFold ¶
InvoiceNumberContainsFold applies the ContainsFold predicate on the "invoice_number" field.
func InvoiceNumberEQ ¶
InvoiceNumberEQ applies the EQ predicate on the "invoice_number" field.
func InvoiceNumberEqualFold ¶
InvoiceNumberEqualFold applies the EqualFold predicate on the "invoice_number" field.
func InvoiceNumberGT ¶
InvoiceNumberGT applies the GT predicate on the "invoice_number" field.
func InvoiceNumberGTE ¶
InvoiceNumberGTE applies the GTE predicate on the "invoice_number" field.
func InvoiceNumberHasPrefix ¶
InvoiceNumberHasPrefix applies the HasPrefix predicate on the "invoice_number" field.
func InvoiceNumberHasSuffix ¶
InvoiceNumberHasSuffix applies the HasSuffix predicate on the "invoice_number" field.
func InvoiceNumberIn ¶
InvoiceNumberIn applies the In predicate on the "invoice_number" field.
func InvoiceNumberLT ¶
InvoiceNumberLT applies the LT predicate on the "invoice_number" field.
func InvoiceNumberLTE ¶
InvoiceNumberLTE applies the LTE predicate on the "invoice_number" field.
func InvoiceNumberNEQ ¶
InvoiceNumberNEQ applies the NEQ predicate on the "invoice_number" field.
func InvoiceNumberNotIn ¶
InvoiceNumberNotIn applies the NotIn predicate on the "invoice_number" field.
func IsApproved ¶
IsApproved applies equality check predicate on the "is_approved" field. It's identical to IsApprovedEQ.
func IsApprovedEQ ¶
IsApprovedEQ applies the EQ predicate on the "is_approved" field.
func IsApprovedNEQ ¶
IsApprovedNEQ applies the NEQ predicate on the "is_approved" field.
func IsLocked ¶
IsLocked applies equality check predicate on the "is_locked" field. It's identical to IsLockedEQ.
func IsLockedEQ ¶
IsLockedEQ applies the EQ predicate on the "is_locked" field.
func IsLockedNEQ ¶
IsLockedNEQ applies the NEQ predicate on the "is_locked" field.
func Reference ¶
Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.
func ReferenceContains ¶
ReferenceContains applies the Contains predicate on the "reference" field.
func ReferenceContainsFold ¶
ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.
func ReferenceEQ ¶
ReferenceEQ applies the EQ predicate on the "reference" field.
func ReferenceEqualFold ¶
ReferenceEqualFold applies the EqualFold predicate on the "reference" field.
func ReferenceGT ¶
ReferenceGT applies the GT predicate on the "reference" field.
func ReferenceGTE ¶
ReferenceGTE applies the GTE predicate on the "reference" field.
func ReferenceHasPrefix ¶
ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.
func ReferenceHasSuffix ¶
ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.
func ReferenceIn ¶
ReferenceIn applies the In predicate on the "reference" field.
func ReferenceIsNil ¶
ReferenceIsNil applies the IsNil predicate on the "reference" field.
func ReferenceLT ¶
ReferenceLT applies the LT predicate on the "reference" field.
func ReferenceLTE ¶
ReferenceLTE applies the LTE predicate on the "reference" field.
func ReferenceNEQ ¶
ReferenceNEQ applies the NEQ predicate on the "reference" field.
func ReferenceNotIn ¶
ReferenceNotIn applies the NotIn predicate on the "reference" field.
func ReferenceNotNil ¶
ReferenceNotNil applies the NotNil predicate on the "reference" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TotalAmount ¶
TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.
func TotalAmountEQ ¶
TotalAmountEQ applies the EQ predicate on the "total_amount" field.
func TotalAmountGT ¶
TotalAmountGT applies the GT predicate on the "total_amount" field.
func TotalAmountGTE ¶
TotalAmountGTE applies the GTE predicate on the "total_amount" field.
func TotalAmountIn ¶
TotalAmountIn applies the In predicate on the "total_amount" field.
func TotalAmountIsNil ¶
TotalAmountIsNil applies the IsNil predicate on the "total_amount" field.
func TotalAmountLT ¶
TotalAmountLT applies the LT predicate on the "total_amount" field.
func TotalAmountLTE ¶
TotalAmountLTE applies the LTE predicate on the "total_amount" field.
func TotalAmountNEQ ¶
TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.
func TotalAmountNotIn ¶
TotalAmountNotIn applies the NotIn predicate on the "total_amount" field.
func TotalAmountNotNil ¶
TotalAmountNotNil applies the NotNil predicate on the "total_amount" field.
func TotalVat ¶
TotalVat applies equality check predicate on the "total_vat" field. It's identical to TotalVatEQ.
func TotalVatEQ ¶
TotalVatEQ applies the EQ predicate on the "total_vat" field.
func TotalVatGT ¶
TotalVatGT applies the GT predicate on the "total_vat" field.
func TotalVatGTE ¶
TotalVatGTE applies the GTE predicate on the "total_vat" field.
func TotalVatIn ¶
TotalVatIn applies the In predicate on the "total_vat" field.
func TotalVatIsNil ¶
TotalVatIsNil applies the IsNil predicate on the "total_vat" field.
func TotalVatLT ¶
TotalVatLT applies the LT predicate on the "total_vat" field.
func TotalVatLTE ¶
TotalVatLTE applies the LTE predicate on the "total_vat" field.
func TotalVatNEQ ¶
TotalVatNEQ applies the NEQ predicate on the "total_vat" field.
func TotalVatNotIn ¶
TotalVatNotIn applies the NotIn predicate on the "total_vat" field.
func TotalVatNotNil ¶
TotalVatNotNil applies the NotNil predicate on the "total_vat" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Invoice queries.
func ByAmountDue ¶
func ByAmountDue(opts ...sql.OrderTermOption) OrderOption
ByAmountDue orders the results by the amount_due field.
func ByAskingPrice ¶
func ByAskingPrice(opts ...sql.OrderTermOption) OrderOption
ByAskingPrice orders the results by the asking_price field.
func ByBids ¶
func ByBids(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBids orders the results by bids terms.
func ByBidsCount ¶
func ByBidsCount(opts ...sql.OrderTermOption) OrderOption
ByBidsCount orders the results by bids count.
func ByCompanyName ¶
func ByCompanyName(opts ...sql.OrderTermOption) OrderOption
ByCompanyName orders the results by the company_name field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByCustomerName ¶
func ByCustomerName(opts ...sql.OrderTermOption) OrderOption
ByCustomerName orders the results by the customer_name field.
func ByDueDate ¶
func ByDueDate(opts ...sql.OrderTermOption) OrderOption
ByDueDate orders the results by the due_date field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvestor ¶
func ByInvestor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvestor orders the results by investor terms.
func ByInvestorCount ¶
func ByInvestorCount(opts ...sql.OrderTermOption) OrderOption
ByInvestorCount orders the results by investor count.
func ByInvoiceDate ¶
func ByInvoiceDate(opts ...sql.OrderTermOption) OrderOption
ByInvoiceDate orders the results by the invoice_date field.
func ByInvoiceNumber ¶
func ByInvoiceNumber(opts ...sql.OrderTermOption) OrderOption
ByInvoiceNumber orders the results by the invoice_number field.
func ByIsApproved ¶
func ByIsApproved(opts ...sql.OrderTermOption) OrderOption
ByIsApproved orders the results by the is_approved field.
func ByIsLocked ¶
func ByIsLocked(opts ...sql.OrderTermOption) OrderOption
ByIsLocked orders the results by the is_locked field.
func ByIssuerField ¶
func ByIssuerField(field string, opts ...sql.OrderTermOption) OrderOption
ByIssuerField orders the results by issuer field.
func ByItems ¶
func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByItems orders the results by items terms.
func ByItemsCount ¶
func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
ByItemsCount orders the results by items count.
func ByReference ¶
func ByReference(opts ...sql.OrderTermOption) OrderOption
ByReference orders the results by the reference field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTotalAmount ¶
func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
ByTotalAmount orders the results by the total_amount field.
func ByTotalVat ¶
func ByTotalVat(opts ...sql.OrderTermOption) OrderOption
ByTotalVat orders the results by the total_vat field.