invoicecontrol

package
v0.0.0-...-4d78421 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the invoicecontrol type in the database.
	Label = "invoice_control"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldInvoiceNumberPrefix holds the string denoting the invoice_number_prefix field in the database.
	FieldInvoiceNumberPrefix = "invoice_number_prefix"
	// FieldCreditMemoNumberPrefix holds the string denoting the credit_memo_number_prefix field in the database.
	FieldCreditMemoNumberPrefix = "credit_memo_number_prefix"
	// FieldInvoiceTerms holds the string denoting the invoice_terms field in the database.
	FieldInvoiceTerms = "invoice_terms"
	// FieldInvoiceFooter holds the string denoting the invoice_footer field in the database.
	FieldInvoiceFooter = "invoice_footer"
	// FieldInvoiceLogoURL holds the string denoting the invoice_logo_url field in the database.
	FieldInvoiceLogoURL = "invoice_logo_url"
	// FieldInvoiceDateFormat holds the string denoting the invoice_date_format field in the database.
	FieldInvoiceDateFormat = "invoice_date_format"
	// FieldInvoiceDueAfterDays holds the string denoting the invoice_due_after_days field in the database.
	FieldInvoiceDueAfterDays = "invoice_due_after_days"
	// FieldInvoiceLogoWidth holds the string denoting the invoice_logo_width field in the database.
	FieldInvoiceLogoWidth = "invoice_logo_width"
	// FieldShowAmountDue holds the string denoting the show_amount_due field in the database.
	FieldShowAmountDue = "show_amount_due"
	// FieldAttachPdf holds the string denoting the attach_pdf field in the database.
	FieldAttachPdf = "attach_pdf"
	// FieldShowInvoiceDueDate holds the string denoting the show_invoice_due_date field in the database.
	FieldShowInvoiceDueDate = "show_invoice_due_date"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// Table holds the table name of the invoicecontrol in the database.
	Table = "invoice_controls"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "invoice_controls"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "invoice_controls"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
)
View Source
const DefaultInvoiceDateFormat = InvoiceDateFormatInvoiceDateFormatMDY

InvoiceDateFormatInvoiceDateFormatMDY is the default value of the InvoiceDateFormat enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultInvoiceNumberPrefix holds the default value on creation for the "invoice_number_prefix" field.
	DefaultInvoiceNumberPrefix string
	// InvoiceNumberPrefixValidator is a validator for the "invoice_number_prefix" field. It is called by the builders before save.
	InvoiceNumberPrefixValidator func(string) error
	// DefaultCreditMemoNumberPrefix holds the default value on creation for the "credit_memo_number_prefix" field.
	DefaultCreditMemoNumberPrefix string
	// CreditMemoNumberPrefixValidator is a validator for the "credit_memo_number_prefix" field. It is called by the builders before save.
	CreditMemoNumberPrefixValidator func(string) error
	// DefaultInvoiceDueAfterDays holds the default value on creation for the "invoice_due_after_days" field.
	DefaultInvoiceDueAfterDays uint8
	// InvoiceDueAfterDaysValidator is a validator for the "invoice_due_after_days" field. It is called by the builders before save.
	InvoiceDueAfterDaysValidator func(uint8) error
	// DefaultInvoiceLogoWidth holds the default value on creation for the "invoice_logo_width" field.
	DefaultInvoiceLogoWidth uint16
	// InvoiceLogoWidthValidator is a validator for the "invoice_logo_width" field. It is called by the builders before save.
	InvoiceLogoWidthValidator func(uint16) error
	// DefaultShowAmountDue holds the default value on creation for the "show_amount_due" field.
	DefaultShowAmountDue bool
	// DefaultAttachPdf holds the default value on creation for the "attach_pdf" field.
	DefaultAttachPdf bool
	// DefaultShowInvoiceDueDate holds the default value on creation for the "show_invoice_due_date" field.
	DefaultShowInvoiceDueDate bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for invoicecontrol fields.

View Source
var ForeignKeys = []string{
	"business_unit_id",
	"organization_id",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "invoice_controls" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func AttachPdf

func AttachPdf(v bool) predicate.InvoiceControl

AttachPdf applies equality check predicate on the "attach_pdf" field. It's identical to AttachPdfEQ.

func AttachPdfEQ

func AttachPdfEQ(v bool) predicate.InvoiceControl

AttachPdfEQ applies the EQ predicate on the "attach_pdf" field.

func AttachPdfNEQ

func AttachPdfNEQ(v bool) predicate.InvoiceControl

AttachPdfNEQ applies the NEQ predicate on the "attach_pdf" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.InvoiceControl

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.InvoiceControl

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.InvoiceControl

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.InvoiceControl

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.InvoiceControl

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.InvoiceControl

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.InvoiceControl

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.InvoiceControl

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.InvoiceControl

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreditMemoNumberPrefix

func CreditMemoNumberPrefix(v string) predicate.InvoiceControl

CreditMemoNumberPrefix applies equality check predicate on the "credit_memo_number_prefix" field. It's identical to CreditMemoNumberPrefixEQ.

func CreditMemoNumberPrefixContains

func CreditMemoNumberPrefixContains(v string) predicate.InvoiceControl

CreditMemoNumberPrefixContains applies the Contains predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixContainsFold

func CreditMemoNumberPrefixContainsFold(v string) predicate.InvoiceControl

CreditMemoNumberPrefixContainsFold applies the ContainsFold predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixEQ

func CreditMemoNumberPrefixEQ(v string) predicate.InvoiceControl

CreditMemoNumberPrefixEQ applies the EQ predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixEqualFold

func CreditMemoNumberPrefixEqualFold(v string) predicate.InvoiceControl

CreditMemoNumberPrefixEqualFold applies the EqualFold predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixGT

func CreditMemoNumberPrefixGT(v string) predicate.InvoiceControl

CreditMemoNumberPrefixGT applies the GT predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixGTE

func CreditMemoNumberPrefixGTE(v string) predicate.InvoiceControl

CreditMemoNumberPrefixGTE applies the GTE predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixHasPrefix

func CreditMemoNumberPrefixHasPrefix(v string) predicate.InvoiceControl

CreditMemoNumberPrefixHasPrefix applies the HasPrefix predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixHasSuffix

func CreditMemoNumberPrefixHasSuffix(v string) predicate.InvoiceControl

CreditMemoNumberPrefixHasSuffix applies the HasSuffix predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixIn

func CreditMemoNumberPrefixIn(vs ...string) predicate.InvoiceControl

CreditMemoNumberPrefixIn applies the In predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixLT

func CreditMemoNumberPrefixLT(v string) predicate.InvoiceControl

CreditMemoNumberPrefixLT applies the LT predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixLTE

func CreditMemoNumberPrefixLTE(v string) predicate.InvoiceControl

CreditMemoNumberPrefixLTE applies the LTE predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixNEQ

func CreditMemoNumberPrefixNEQ(v string) predicate.InvoiceControl

CreditMemoNumberPrefixNEQ applies the NEQ predicate on the "credit_memo_number_prefix" field.

func CreditMemoNumberPrefixNotIn

func CreditMemoNumberPrefixNotIn(vs ...string) predicate.InvoiceControl

CreditMemoNumberPrefixNotIn applies the NotIn predicate on the "credit_memo_number_prefix" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.InvoiceControl

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.InvoiceControl

HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" edge with a given conditions (other predicates).

func HasOrganization

func HasOrganization() predicate.InvoiceControl

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.InvoiceControl

HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.InvoiceControl

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.InvoiceControl

IDNotIn applies the NotIn predicate on the ID field.

func InvoiceDateFormatEQ

func InvoiceDateFormatEQ(v InvoiceDateFormat) predicate.InvoiceControl

InvoiceDateFormatEQ applies the EQ predicate on the "invoice_date_format" field.

func InvoiceDateFormatIn

func InvoiceDateFormatIn(vs ...InvoiceDateFormat) predicate.InvoiceControl

InvoiceDateFormatIn applies the In predicate on the "invoice_date_format" field.

func InvoiceDateFormatNEQ

func InvoiceDateFormatNEQ(v InvoiceDateFormat) predicate.InvoiceControl

InvoiceDateFormatNEQ applies the NEQ predicate on the "invoice_date_format" field.

func InvoiceDateFormatNotIn

func InvoiceDateFormatNotIn(vs ...InvoiceDateFormat) predicate.InvoiceControl

InvoiceDateFormatNotIn applies the NotIn predicate on the "invoice_date_format" field.

func InvoiceDateFormatValidator

func InvoiceDateFormatValidator(idf InvoiceDateFormat) error

InvoiceDateFormatValidator is a validator for the "invoice_date_format" field enum values. It is called by the builders before save.

func InvoiceDueAfterDays

func InvoiceDueAfterDays(v uint8) predicate.InvoiceControl

InvoiceDueAfterDays applies equality check predicate on the "invoice_due_after_days" field. It's identical to InvoiceDueAfterDaysEQ.

func InvoiceDueAfterDaysEQ

func InvoiceDueAfterDaysEQ(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysEQ applies the EQ predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysGT

func InvoiceDueAfterDaysGT(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysGT applies the GT predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysGTE

func InvoiceDueAfterDaysGTE(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysGTE applies the GTE predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysIn

func InvoiceDueAfterDaysIn(vs ...uint8) predicate.InvoiceControl

InvoiceDueAfterDaysIn applies the In predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysLT

func InvoiceDueAfterDaysLT(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysLT applies the LT predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysLTE

func InvoiceDueAfterDaysLTE(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysLTE applies the LTE predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysNEQ

func InvoiceDueAfterDaysNEQ(v uint8) predicate.InvoiceControl

InvoiceDueAfterDaysNEQ applies the NEQ predicate on the "invoice_due_after_days" field.

func InvoiceDueAfterDaysNotIn

func InvoiceDueAfterDaysNotIn(vs ...uint8) predicate.InvoiceControl

InvoiceDueAfterDaysNotIn applies the NotIn predicate on the "invoice_due_after_days" field.

func InvoiceFooter

func InvoiceFooter(v string) predicate.InvoiceControl

InvoiceFooter applies equality check predicate on the "invoice_footer" field. It's identical to InvoiceFooterEQ.

func InvoiceFooterContains

func InvoiceFooterContains(v string) predicate.InvoiceControl

InvoiceFooterContains applies the Contains predicate on the "invoice_footer" field.

func InvoiceFooterContainsFold

func InvoiceFooterContainsFold(v string) predicate.InvoiceControl

InvoiceFooterContainsFold applies the ContainsFold predicate on the "invoice_footer" field.

func InvoiceFooterEQ

func InvoiceFooterEQ(v string) predicate.InvoiceControl

InvoiceFooterEQ applies the EQ predicate on the "invoice_footer" field.

func InvoiceFooterEqualFold

func InvoiceFooterEqualFold(v string) predicate.InvoiceControl

InvoiceFooterEqualFold applies the EqualFold predicate on the "invoice_footer" field.

func InvoiceFooterGT

func InvoiceFooterGT(v string) predicate.InvoiceControl

InvoiceFooterGT applies the GT predicate on the "invoice_footer" field.

func InvoiceFooterGTE

func InvoiceFooterGTE(v string) predicate.InvoiceControl

InvoiceFooterGTE applies the GTE predicate on the "invoice_footer" field.

func InvoiceFooterHasPrefix

func InvoiceFooterHasPrefix(v string) predicate.InvoiceControl

InvoiceFooterHasPrefix applies the HasPrefix predicate on the "invoice_footer" field.

func InvoiceFooterHasSuffix

func InvoiceFooterHasSuffix(v string) predicate.InvoiceControl

InvoiceFooterHasSuffix applies the HasSuffix predicate on the "invoice_footer" field.

func InvoiceFooterIn

func InvoiceFooterIn(vs ...string) predicate.InvoiceControl

InvoiceFooterIn applies the In predicate on the "invoice_footer" field.

func InvoiceFooterIsNil

func InvoiceFooterIsNil() predicate.InvoiceControl

InvoiceFooterIsNil applies the IsNil predicate on the "invoice_footer" field.

func InvoiceFooterLT

func InvoiceFooterLT(v string) predicate.InvoiceControl

InvoiceFooterLT applies the LT predicate on the "invoice_footer" field.

func InvoiceFooterLTE

func InvoiceFooterLTE(v string) predicate.InvoiceControl

InvoiceFooterLTE applies the LTE predicate on the "invoice_footer" field.

func InvoiceFooterNEQ

func InvoiceFooterNEQ(v string) predicate.InvoiceControl

InvoiceFooterNEQ applies the NEQ predicate on the "invoice_footer" field.

func InvoiceFooterNotIn

func InvoiceFooterNotIn(vs ...string) predicate.InvoiceControl

InvoiceFooterNotIn applies the NotIn predicate on the "invoice_footer" field.

func InvoiceFooterNotNil

func InvoiceFooterNotNil() predicate.InvoiceControl

InvoiceFooterNotNil applies the NotNil predicate on the "invoice_footer" field.

func InvoiceLogoURL

func InvoiceLogoURL(v string) predicate.InvoiceControl

InvoiceLogoURL applies equality check predicate on the "invoice_logo_url" field. It's identical to InvoiceLogoURLEQ.

func InvoiceLogoURLContains

func InvoiceLogoURLContains(v string) predicate.InvoiceControl

InvoiceLogoURLContains applies the Contains predicate on the "invoice_logo_url" field.

func InvoiceLogoURLContainsFold

func InvoiceLogoURLContainsFold(v string) predicate.InvoiceControl

InvoiceLogoURLContainsFold applies the ContainsFold predicate on the "invoice_logo_url" field.

func InvoiceLogoURLEQ

func InvoiceLogoURLEQ(v string) predicate.InvoiceControl

InvoiceLogoURLEQ applies the EQ predicate on the "invoice_logo_url" field.

func InvoiceLogoURLEqualFold

func InvoiceLogoURLEqualFold(v string) predicate.InvoiceControl

InvoiceLogoURLEqualFold applies the EqualFold predicate on the "invoice_logo_url" field.

func InvoiceLogoURLGT

func InvoiceLogoURLGT(v string) predicate.InvoiceControl

InvoiceLogoURLGT applies the GT predicate on the "invoice_logo_url" field.

func InvoiceLogoURLGTE

func InvoiceLogoURLGTE(v string) predicate.InvoiceControl

InvoiceLogoURLGTE applies the GTE predicate on the "invoice_logo_url" field.

func InvoiceLogoURLHasPrefix

func InvoiceLogoURLHasPrefix(v string) predicate.InvoiceControl

InvoiceLogoURLHasPrefix applies the HasPrefix predicate on the "invoice_logo_url" field.

func InvoiceLogoURLHasSuffix

func InvoiceLogoURLHasSuffix(v string) predicate.InvoiceControl

InvoiceLogoURLHasSuffix applies the HasSuffix predicate on the "invoice_logo_url" field.

func InvoiceLogoURLIn

func InvoiceLogoURLIn(vs ...string) predicate.InvoiceControl

InvoiceLogoURLIn applies the In predicate on the "invoice_logo_url" field.

func InvoiceLogoURLIsNil

func InvoiceLogoURLIsNil() predicate.InvoiceControl

InvoiceLogoURLIsNil applies the IsNil predicate on the "invoice_logo_url" field.

func InvoiceLogoURLLT

func InvoiceLogoURLLT(v string) predicate.InvoiceControl

InvoiceLogoURLLT applies the LT predicate on the "invoice_logo_url" field.

func InvoiceLogoURLLTE

func InvoiceLogoURLLTE(v string) predicate.InvoiceControl

InvoiceLogoURLLTE applies the LTE predicate on the "invoice_logo_url" field.

func InvoiceLogoURLNEQ

func InvoiceLogoURLNEQ(v string) predicate.InvoiceControl

InvoiceLogoURLNEQ applies the NEQ predicate on the "invoice_logo_url" field.

func InvoiceLogoURLNotIn

func InvoiceLogoURLNotIn(vs ...string) predicate.InvoiceControl

InvoiceLogoURLNotIn applies the NotIn predicate on the "invoice_logo_url" field.

func InvoiceLogoURLNotNil

func InvoiceLogoURLNotNil() predicate.InvoiceControl

InvoiceLogoURLNotNil applies the NotNil predicate on the "invoice_logo_url" field.

func InvoiceLogoWidth

func InvoiceLogoWidth(v uint16) predicate.InvoiceControl

InvoiceLogoWidth applies equality check predicate on the "invoice_logo_width" field. It's identical to InvoiceLogoWidthEQ.

func InvoiceLogoWidthEQ

func InvoiceLogoWidthEQ(v uint16) predicate.InvoiceControl

InvoiceLogoWidthEQ applies the EQ predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthGT

func InvoiceLogoWidthGT(v uint16) predicate.InvoiceControl

InvoiceLogoWidthGT applies the GT predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthGTE

func InvoiceLogoWidthGTE(v uint16) predicate.InvoiceControl

InvoiceLogoWidthGTE applies the GTE predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthIn

func InvoiceLogoWidthIn(vs ...uint16) predicate.InvoiceControl

InvoiceLogoWidthIn applies the In predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthLT

func InvoiceLogoWidthLT(v uint16) predicate.InvoiceControl

InvoiceLogoWidthLT applies the LT predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthLTE

func InvoiceLogoWidthLTE(v uint16) predicate.InvoiceControl

InvoiceLogoWidthLTE applies the LTE predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthNEQ

func InvoiceLogoWidthNEQ(v uint16) predicate.InvoiceControl

InvoiceLogoWidthNEQ applies the NEQ predicate on the "invoice_logo_width" field.

func InvoiceLogoWidthNotIn

func InvoiceLogoWidthNotIn(vs ...uint16) predicate.InvoiceControl

InvoiceLogoWidthNotIn applies the NotIn predicate on the "invoice_logo_width" field.

func InvoiceNumberPrefix

func InvoiceNumberPrefix(v string) predicate.InvoiceControl

InvoiceNumberPrefix applies equality check predicate on the "invoice_number_prefix" field. It's identical to InvoiceNumberPrefixEQ.

func InvoiceNumberPrefixContains

func InvoiceNumberPrefixContains(v string) predicate.InvoiceControl

InvoiceNumberPrefixContains applies the Contains predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixContainsFold

func InvoiceNumberPrefixContainsFold(v string) predicate.InvoiceControl

InvoiceNumberPrefixContainsFold applies the ContainsFold predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixEQ

func InvoiceNumberPrefixEQ(v string) predicate.InvoiceControl

InvoiceNumberPrefixEQ applies the EQ predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixEqualFold

func InvoiceNumberPrefixEqualFold(v string) predicate.InvoiceControl

InvoiceNumberPrefixEqualFold applies the EqualFold predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixGT

func InvoiceNumberPrefixGT(v string) predicate.InvoiceControl

InvoiceNumberPrefixGT applies the GT predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixGTE

func InvoiceNumberPrefixGTE(v string) predicate.InvoiceControl

InvoiceNumberPrefixGTE applies the GTE predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixHasPrefix

func InvoiceNumberPrefixHasPrefix(v string) predicate.InvoiceControl

InvoiceNumberPrefixHasPrefix applies the HasPrefix predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixHasSuffix

func InvoiceNumberPrefixHasSuffix(v string) predicate.InvoiceControl

InvoiceNumberPrefixHasSuffix applies the HasSuffix predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixIn

func InvoiceNumberPrefixIn(vs ...string) predicate.InvoiceControl

InvoiceNumberPrefixIn applies the In predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixLT

func InvoiceNumberPrefixLT(v string) predicate.InvoiceControl

InvoiceNumberPrefixLT applies the LT predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixLTE

func InvoiceNumberPrefixLTE(v string) predicate.InvoiceControl

InvoiceNumberPrefixLTE applies the LTE predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixNEQ

func InvoiceNumberPrefixNEQ(v string) predicate.InvoiceControl

InvoiceNumberPrefixNEQ applies the NEQ predicate on the "invoice_number_prefix" field.

func InvoiceNumberPrefixNotIn

func InvoiceNumberPrefixNotIn(vs ...string) predicate.InvoiceControl

InvoiceNumberPrefixNotIn applies the NotIn predicate on the "invoice_number_prefix" field.

func InvoiceTerms

func InvoiceTerms(v string) predicate.InvoiceControl

InvoiceTerms applies equality check predicate on the "invoice_terms" field. It's identical to InvoiceTermsEQ.

func InvoiceTermsContains

func InvoiceTermsContains(v string) predicate.InvoiceControl

InvoiceTermsContains applies the Contains predicate on the "invoice_terms" field.

func InvoiceTermsContainsFold

func InvoiceTermsContainsFold(v string) predicate.InvoiceControl

InvoiceTermsContainsFold applies the ContainsFold predicate on the "invoice_terms" field.

func InvoiceTermsEQ

func InvoiceTermsEQ(v string) predicate.InvoiceControl

InvoiceTermsEQ applies the EQ predicate on the "invoice_terms" field.

func InvoiceTermsEqualFold

func InvoiceTermsEqualFold(v string) predicate.InvoiceControl

InvoiceTermsEqualFold applies the EqualFold predicate on the "invoice_terms" field.

func InvoiceTermsGT

func InvoiceTermsGT(v string) predicate.InvoiceControl

InvoiceTermsGT applies the GT predicate on the "invoice_terms" field.

func InvoiceTermsGTE

func InvoiceTermsGTE(v string) predicate.InvoiceControl

InvoiceTermsGTE applies the GTE predicate on the "invoice_terms" field.

func InvoiceTermsHasPrefix

func InvoiceTermsHasPrefix(v string) predicate.InvoiceControl

InvoiceTermsHasPrefix applies the HasPrefix predicate on the "invoice_terms" field.

func InvoiceTermsHasSuffix

func InvoiceTermsHasSuffix(v string) predicate.InvoiceControl

InvoiceTermsHasSuffix applies the HasSuffix predicate on the "invoice_terms" field.

func InvoiceTermsIn

func InvoiceTermsIn(vs ...string) predicate.InvoiceControl

InvoiceTermsIn applies the In predicate on the "invoice_terms" field.

func InvoiceTermsIsNil

func InvoiceTermsIsNil() predicate.InvoiceControl

InvoiceTermsIsNil applies the IsNil predicate on the "invoice_terms" field.

func InvoiceTermsLT

func InvoiceTermsLT(v string) predicate.InvoiceControl

InvoiceTermsLT applies the LT predicate on the "invoice_terms" field.

func InvoiceTermsLTE

func InvoiceTermsLTE(v string) predicate.InvoiceControl

InvoiceTermsLTE applies the LTE predicate on the "invoice_terms" field.

func InvoiceTermsNEQ

func InvoiceTermsNEQ(v string) predicate.InvoiceControl

InvoiceTermsNEQ applies the NEQ predicate on the "invoice_terms" field.

func InvoiceTermsNotIn

func InvoiceTermsNotIn(vs ...string) predicate.InvoiceControl

InvoiceTermsNotIn applies the NotIn predicate on the "invoice_terms" field.

func InvoiceTermsNotNil

func InvoiceTermsNotNil() predicate.InvoiceControl

InvoiceTermsNotNil applies the NotNil predicate on the "invoice_terms" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ShowAmountDue

func ShowAmountDue(v bool) predicate.InvoiceControl

ShowAmountDue applies equality check predicate on the "show_amount_due" field. It's identical to ShowAmountDueEQ.

func ShowAmountDueEQ

func ShowAmountDueEQ(v bool) predicate.InvoiceControl

ShowAmountDueEQ applies the EQ predicate on the "show_amount_due" field.

func ShowAmountDueNEQ

func ShowAmountDueNEQ(v bool) predicate.InvoiceControl

ShowAmountDueNEQ applies the NEQ predicate on the "show_amount_due" field.

func ShowInvoiceDueDate

func ShowInvoiceDueDate(v bool) predicate.InvoiceControl

ShowInvoiceDueDate applies equality check predicate on the "show_invoice_due_date" field. It's identical to ShowInvoiceDueDateEQ.

func ShowInvoiceDueDateEQ

func ShowInvoiceDueDateEQ(v bool) predicate.InvoiceControl

ShowInvoiceDueDateEQ applies the EQ predicate on the "show_invoice_due_date" field.

func ShowInvoiceDueDateNEQ

func ShowInvoiceDueDateNEQ(v bool) predicate.InvoiceControl

ShowInvoiceDueDateNEQ applies the NEQ predicate on the "show_invoice_due_date" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.InvoiceControl

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.InvoiceControl

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.InvoiceControl

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.InvoiceControl

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.InvoiceControl

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.InvoiceControl

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.InvoiceControl

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.InvoiceControl

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.InvoiceControl

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type InvoiceDateFormat

type InvoiceDateFormat string

InvoiceDateFormat defines the type for the "invoice_date_format" enum field.

const (
	InvoiceDateFormatInvoiceDateFormatMDY InvoiceDateFormat = "InvoiceDateFormatMDY"
	InvoiceDateFormatInvoiceDateFormatDMY InvoiceDateFormat = "InvoiceDateFormatDMY"
	InvoiceDateFormatInvoiceDateFormatYMD InvoiceDateFormat = "InvoiceDateFormatYMD"
	InvoiceDateFormatInvoiceDateFormatYDM InvoiceDateFormat = "InvoiceDateFormatYDM"
)

InvoiceDateFormat values.

func (InvoiceDateFormat) String

func (idf InvoiceDateFormat) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the InvoiceControl queries.

func ByAttachPdf

func ByAttachPdf(opts ...sql.OrderTermOption) OrderOption

ByAttachPdf orders the results by the attach_pdf field.

func ByBusinessUnitField

func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitField orders the results by business_unit field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreditMemoNumberPrefix

func ByCreditMemoNumberPrefix(opts ...sql.OrderTermOption) OrderOption

ByCreditMemoNumberPrefix orders the results by the credit_memo_number_prefix field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInvoiceDateFormat

func ByInvoiceDateFormat(opts ...sql.OrderTermOption) OrderOption

ByInvoiceDateFormat orders the results by the invoice_date_format field.

func ByInvoiceDueAfterDays

func ByInvoiceDueAfterDays(opts ...sql.OrderTermOption) OrderOption

ByInvoiceDueAfterDays orders the results by the invoice_due_after_days field.

func ByInvoiceFooter

func ByInvoiceFooter(opts ...sql.OrderTermOption) OrderOption

ByInvoiceFooter orders the results by the invoice_footer field.

func ByInvoiceLogoURL

func ByInvoiceLogoURL(opts ...sql.OrderTermOption) OrderOption

ByInvoiceLogoURL orders the results by the invoice_logo_url field.

func ByInvoiceLogoWidth

func ByInvoiceLogoWidth(opts ...sql.OrderTermOption) OrderOption

ByInvoiceLogoWidth orders the results by the invoice_logo_width field.

func ByInvoiceNumberPrefix

func ByInvoiceNumberPrefix(opts ...sql.OrderTermOption) OrderOption

ByInvoiceNumberPrefix orders the results by the invoice_number_prefix field.

func ByInvoiceTerms

func ByInvoiceTerms(opts ...sql.OrderTermOption) OrderOption

ByInvoiceTerms orders the results by the invoice_terms field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByShowAmountDue

func ByShowAmountDue(opts ...sql.OrderTermOption) OrderOption

ByShowAmountDue orders the results by the show_amount_due field.

func ByShowInvoiceDueDate

func ByShowInvoiceDueDate(opts ...sql.OrderTermOption) OrderOption

ByShowInvoiceDueDate orders the results by the show_invoice_due_date field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL