accountingcontrol

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 accountingcontrol type in the database.
	Label = "accounting_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"
	// FieldRecThreshold holds the string denoting the rec_threshold field in the database.
	FieldRecThreshold = "rec_threshold"
	// FieldRecThresholdAction holds the string denoting the rec_threshold_action field in the database.
	FieldRecThresholdAction = "rec_threshold_action"
	// FieldAutoCreateJournalEntries holds the string denoting the auto_create_journal_entries field in the database.
	FieldAutoCreateJournalEntries = "auto_create_journal_entries"
	// FieldJournalEntryCriteria holds the string denoting the journal_entry_criteria field in the database.
	FieldJournalEntryCriteria = "journal_entry_criteria"
	// FieldRestrictManualJournalEntries holds the string denoting the restrict_manual_journal_entries field in the database.
	FieldRestrictManualJournalEntries = "restrict_manual_journal_entries"
	// FieldRequireJournalEntryApproval holds the string denoting the require_journal_entry_approval field in the database.
	FieldRequireJournalEntryApproval = "require_journal_entry_approval"
	// FieldEnableRecNotifications holds the string denoting the enable_rec_notifications field in the database.
	FieldEnableRecNotifications = "enable_rec_notifications"
	// FieldHaltOnPendingRec holds the string denoting the halt_on_pending_rec field in the database.
	FieldHaltOnPendingRec = "halt_on_pending_rec"
	// FieldCriticalProcesses holds the string denoting the critical_processes field in the database.
	FieldCriticalProcesses = "critical_processes"
	// FieldDefaultRevAccountID holds the string denoting the default_rev_account_id field in the database.
	FieldDefaultRevAccountID = "default_rev_account_id"
	// FieldDefaultExpAccountID holds the string denoting the default_exp_account_id field in the database.
	FieldDefaultExpAccountID = "default_exp_account_id"
	// 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"
	// EdgeDefaultRevAccount holds the string denoting the default_rev_account edge name in mutations.
	EdgeDefaultRevAccount = "default_rev_account"
	// EdgeDefaultExpAccount holds the string denoting the default_exp_account edge name in mutations.
	EdgeDefaultExpAccount = "default_exp_account"
	// Table holds the table name of the accountingcontrol in the database.
	Table = "accounting_controls"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "accounting_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 = "accounting_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"
	// DefaultRevAccountTable is the table that holds the default_rev_account relation/edge.
	DefaultRevAccountTable = "accounting_controls"
	// DefaultRevAccountInverseTable is the table name for the GeneralLedgerAccount entity.
	// It exists in this package in order to avoid circular dependency with the "generalledgeraccount" package.
	DefaultRevAccountInverseTable = "general_ledger_accounts"
	// DefaultRevAccountColumn is the table column denoting the default_rev_account relation/edge.
	DefaultRevAccountColumn = "default_rev_account_id"
	// DefaultExpAccountTable is the table that holds the default_exp_account relation/edge.
	DefaultExpAccountTable = "accounting_controls"
	// DefaultExpAccountInverseTable is the table name for the GeneralLedgerAccount entity.
	// It exists in this package in order to avoid circular dependency with the "generalledgeraccount" package.
	DefaultExpAccountInverseTable = "general_ledger_accounts"
	// DefaultExpAccountColumn is the table column denoting the default_exp_account relation/edge.
	DefaultExpAccountColumn = "default_exp_account_id"
)
View Source
const DefaultJournalEntryCriteria = JournalEntryCriteriaOnShipmentBill

JournalEntryCriteriaOnShipmentBill is the default value of the JournalEntryCriteria enum.

View Source
const DefaultRecThresholdAction = RecThresholdActionHalt

RecThresholdActionHalt is the default value of the RecThresholdAction 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
	// DefaultRecThreshold holds the default value on creation for the "rec_threshold" field.
	DefaultRecThreshold int8
	// RecThresholdValidator is a validator for the "rec_threshold" field. It is called by the builders before save.
	RecThresholdValidator func(int8) error
	// DefaultAutoCreateJournalEntries holds the default value on creation for the "auto_create_journal_entries" field.
	DefaultAutoCreateJournalEntries bool
	// DefaultRestrictManualJournalEntries holds the default value on creation for the "restrict_manual_journal_entries" field.
	DefaultRestrictManualJournalEntries bool
	// DefaultRequireJournalEntryApproval holds the default value on creation for the "require_journal_entry_approval" field.
	DefaultRequireJournalEntryApproval bool
	// DefaultEnableRecNotifications holds the default value on creation for the "enable_rec_notifications" field.
	DefaultEnableRecNotifications bool
	// DefaultHaltOnPendingRec holds the default value on creation for the "halt_on_pending_rec" field.
	DefaultHaltOnPendingRec bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for accountingcontrol fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "accounting_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 AutoCreateJournalEntries

func AutoCreateJournalEntries(v bool) predicate.AccountingControl

AutoCreateJournalEntries applies equality check predicate on the "auto_create_journal_entries" field. It's identical to AutoCreateJournalEntriesEQ.

func AutoCreateJournalEntriesEQ

func AutoCreateJournalEntriesEQ(v bool) predicate.AccountingControl

AutoCreateJournalEntriesEQ applies the EQ predicate on the "auto_create_journal_entries" field.

func AutoCreateJournalEntriesNEQ

func AutoCreateJournalEntriesNEQ(v bool) predicate.AccountingControl

AutoCreateJournalEntriesNEQ applies the NEQ predicate on the "auto_create_journal_entries" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.AccountingControl

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AccountingControl

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AccountingControl

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AccountingControl

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AccountingControl

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AccountingControl

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AccountingControl

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

func CreatedAtNotIn

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

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

func CriticalProcesses

func CriticalProcesses(v string) predicate.AccountingControl

CriticalProcesses applies equality check predicate on the "critical_processes" field. It's identical to CriticalProcessesEQ.

func CriticalProcessesContains

func CriticalProcessesContains(v string) predicate.AccountingControl

CriticalProcessesContains applies the Contains predicate on the "critical_processes" field.

func CriticalProcessesContainsFold

func CriticalProcessesContainsFold(v string) predicate.AccountingControl

CriticalProcessesContainsFold applies the ContainsFold predicate on the "critical_processes" field.

func CriticalProcessesEQ

func CriticalProcessesEQ(v string) predicate.AccountingControl

CriticalProcessesEQ applies the EQ predicate on the "critical_processes" field.

func CriticalProcessesEqualFold

func CriticalProcessesEqualFold(v string) predicate.AccountingControl

CriticalProcessesEqualFold applies the EqualFold predicate on the "critical_processes" field.

func CriticalProcessesGT

func CriticalProcessesGT(v string) predicate.AccountingControl

CriticalProcessesGT applies the GT predicate on the "critical_processes" field.

func CriticalProcessesGTE

func CriticalProcessesGTE(v string) predicate.AccountingControl

CriticalProcessesGTE applies the GTE predicate on the "critical_processes" field.

func CriticalProcessesHasPrefix

func CriticalProcessesHasPrefix(v string) predicate.AccountingControl

CriticalProcessesHasPrefix applies the HasPrefix predicate on the "critical_processes" field.

func CriticalProcessesHasSuffix

func CriticalProcessesHasSuffix(v string) predicate.AccountingControl

CriticalProcessesHasSuffix applies the HasSuffix predicate on the "critical_processes" field.

func CriticalProcessesIn

func CriticalProcessesIn(vs ...string) predicate.AccountingControl

CriticalProcessesIn applies the In predicate on the "critical_processes" field.

func CriticalProcessesIsNil

func CriticalProcessesIsNil() predicate.AccountingControl

CriticalProcessesIsNil applies the IsNil predicate on the "critical_processes" field.

func CriticalProcessesLT

func CriticalProcessesLT(v string) predicate.AccountingControl

CriticalProcessesLT applies the LT predicate on the "critical_processes" field.

func CriticalProcessesLTE

func CriticalProcessesLTE(v string) predicate.AccountingControl

CriticalProcessesLTE applies the LTE predicate on the "critical_processes" field.

func CriticalProcessesNEQ

func CriticalProcessesNEQ(v string) predicate.AccountingControl

CriticalProcessesNEQ applies the NEQ predicate on the "critical_processes" field.

func CriticalProcessesNotIn

func CriticalProcessesNotIn(vs ...string) predicate.AccountingControl

CriticalProcessesNotIn applies the NotIn predicate on the "critical_processes" field.

func CriticalProcessesNotNil

func CriticalProcessesNotNil() predicate.AccountingControl

CriticalProcessesNotNil applies the NotNil predicate on the "critical_processes" field.

func DefaultExpAccountID

func DefaultExpAccountID(v uuid.UUID) predicate.AccountingControl

DefaultExpAccountID applies equality check predicate on the "default_exp_account_id" field. It's identical to DefaultExpAccountIDEQ.

func DefaultExpAccountIDEQ

func DefaultExpAccountIDEQ(v uuid.UUID) predicate.AccountingControl

DefaultExpAccountIDEQ applies the EQ predicate on the "default_exp_account_id" field.

func DefaultExpAccountIDIn

func DefaultExpAccountIDIn(vs ...uuid.UUID) predicate.AccountingControl

DefaultExpAccountIDIn applies the In predicate on the "default_exp_account_id" field.

func DefaultExpAccountIDIsNil

func DefaultExpAccountIDIsNil() predicate.AccountingControl

DefaultExpAccountIDIsNil applies the IsNil predicate on the "default_exp_account_id" field.

func DefaultExpAccountIDNEQ

func DefaultExpAccountIDNEQ(v uuid.UUID) predicate.AccountingControl

DefaultExpAccountIDNEQ applies the NEQ predicate on the "default_exp_account_id" field.

func DefaultExpAccountIDNotIn

func DefaultExpAccountIDNotIn(vs ...uuid.UUID) predicate.AccountingControl

DefaultExpAccountIDNotIn applies the NotIn predicate on the "default_exp_account_id" field.

func DefaultExpAccountIDNotNil

func DefaultExpAccountIDNotNil() predicate.AccountingControl

DefaultExpAccountIDNotNil applies the NotNil predicate on the "default_exp_account_id" field.

func DefaultRevAccountID

func DefaultRevAccountID(v uuid.UUID) predicate.AccountingControl

DefaultRevAccountID applies equality check predicate on the "default_rev_account_id" field. It's identical to DefaultRevAccountIDEQ.

func DefaultRevAccountIDEQ

func DefaultRevAccountIDEQ(v uuid.UUID) predicate.AccountingControl

DefaultRevAccountIDEQ applies the EQ predicate on the "default_rev_account_id" field.

func DefaultRevAccountIDIn

func DefaultRevAccountIDIn(vs ...uuid.UUID) predicate.AccountingControl

DefaultRevAccountIDIn applies the In predicate on the "default_rev_account_id" field.

func DefaultRevAccountIDIsNil

func DefaultRevAccountIDIsNil() predicate.AccountingControl

DefaultRevAccountIDIsNil applies the IsNil predicate on the "default_rev_account_id" field.

func DefaultRevAccountIDNEQ

func DefaultRevAccountIDNEQ(v uuid.UUID) predicate.AccountingControl

DefaultRevAccountIDNEQ applies the NEQ predicate on the "default_rev_account_id" field.

func DefaultRevAccountIDNotIn

func DefaultRevAccountIDNotIn(vs ...uuid.UUID) predicate.AccountingControl

DefaultRevAccountIDNotIn applies the NotIn predicate on the "default_rev_account_id" field.

func DefaultRevAccountIDNotNil

func DefaultRevAccountIDNotNil() predicate.AccountingControl

DefaultRevAccountIDNotNil applies the NotNil predicate on the "default_rev_account_id" field.

func EnableRecNotifications

func EnableRecNotifications(v bool) predicate.AccountingControl

EnableRecNotifications applies equality check predicate on the "enable_rec_notifications" field. It's identical to EnableRecNotificationsEQ.

func EnableRecNotificationsEQ

func EnableRecNotificationsEQ(v bool) predicate.AccountingControl

EnableRecNotificationsEQ applies the EQ predicate on the "enable_rec_notifications" field.

func EnableRecNotificationsNEQ

func EnableRecNotificationsNEQ(v bool) predicate.AccountingControl

EnableRecNotificationsNEQ applies the NEQ predicate on the "enable_rec_notifications" field.

func HaltOnPendingRec

func HaltOnPendingRec(v bool) predicate.AccountingControl

HaltOnPendingRec applies equality check predicate on the "halt_on_pending_rec" field. It's identical to HaltOnPendingRecEQ.

func HaltOnPendingRecEQ

func HaltOnPendingRecEQ(v bool) predicate.AccountingControl

HaltOnPendingRecEQ applies the EQ predicate on the "halt_on_pending_rec" field.

func HaltOnPendingRecNEQ

func HaltOnPendingRecNEQ(v bool) predicate.AccountingControl

HaltOnPendingRecNEQ applies the NEQ predicate on the "halt_on_pending_rec" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.AccountingControl

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

func HasBusinessUnitWith

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

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

func HasDefaultExpAccount

func HasDefaultExpAccount() predicate.AccountingControl

HasDefaultExpAccount applies the HasEdge predicate on the "default_exp_account" edge.

func HasDefaultExpAccountWith

func HasDefaultExpAccountWith(preds ...predicate.GeneralLedgerAccount) predicate.AccountingControl

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

func HasDefaultRevAccount

func HasDefaultRevAccount() predicate.AccountingControl

HasDefaultRevAccount applies the HasEdge predicate on the "default_rev_account" edge.

func HasDefaultRevAccountWith

func HasDefaultRevAccountWith(preds ...predicate.GeneralLedgerAccount) predicate.AccountingControl

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

func HasOrganization

func HasOrganization() predicate.AccountingControl

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

func HasOrganizationWith

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

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.AccountingControl

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.AccountingControl

IDNotIn applies the NotIn predicate on the ID field.

func JournalEntryCriteriaEQ

func JournalEntryCriteriaEQ(v JournalEntryCriteria) predicate.AccountingControl

JournalEntryCriteriaEQ applies the EQ predicate on the "journal_entry_criteria" field.

func JournalEntryCriteriaIn

func JournalEntryCriteriaIn(vs ...JournalEntryCriteria) predicate.AccountingControl

JournalEntryCriteriaIn applies the In predicate on the "journal_entry_criteria" field.

func JournalEntryCriteriaNEQ

func JournalEntryCriteriaNEQ(v JournalEntryCriteria) predicate.AccountingControl

JournalEntryCriteriaNEQ applies the NEQ predicate on the "journal_entry_criteria" field.

func JournalEntryCriteriaNotIn

func JournalEntryCriteriaNotIn(vs ...JournalEntryCriteria) predicate.AccountingControl

JournalEntryCriteriaNotIn applies the NotIn predicate on the "journal_entry_criteria" field.

func JournalEntryCriteriaValidator

func JournalEntryCriteriaValidator(jec JournalEntryCriteria) error

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RecThreshold

func RecThreshold(v int8) predicate.AccountingControl

RecThreshold applies equality check predicate on the "rec_threshold" field. It's identical to RecThresholdEQ.

func RecThresholdActionEQ

func RecThresholdActionEQ(v RecThresholdAction) predicate.AccountingControl

RecThresholdActionEQ applies the EQ predicate on the "rec_threshold_action" field.

func RecThresholdActionIn

func RecThresholdActionIn(vs ...RecThresholdAction) predicate.AccountingControl

RecThresholdActionIn applies the In predicate on the "rec_threshold_action" field.

func RecThresholdActionNEQ

func RecThresholdActionNEQ(v RecThresholdAction) predicate.AccountingControl

RecThresholdActionNEQ applies the NEQ predicate on the "rec_threshold_action" field.

func RecThresholdActionNotIn

func RecThresholdActionNotIn(vs ...RecThresholdAction) predicate.AccountingControl

RecThresholdActionNotIn applies the NotIn predicate on the "rec_threshold_action" field.

func RecThresholdActionValidator

func RecThresholdActionValidator(rta RecThresholdAction) error

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

func RecThresholdEQ

func RecThresholdEQ(v int8) predicate.AccountingControl

RecThresholdEQ applies the EQ predicate on the "rec_threshold" field.

func RecThresholdGT

func RecThresholdGT(v int8) predicate.AccountingControl

RecThresholdGT applies the GT predicate on the "rec_threshold" field.

func RecThresholdGTE

func RecThresholdGTE(v int8) predicate.AccountingControl

RecThresholdGTE applies the GTE predicate on the "rec_threshold" field.

func RecThresholdIn

func RecThresholdIn(vs ...int8) predicate.AccountingControl

RecThresholdIn applies the In predicate on the "rec_threshold" field.

func RecThresholdLT

func RecThresholdLT(v int8) predicate.AccountingControl

RecThresholdLT applies the LT predicate on the "rec_threshold" field.

func RecThresholdLTE

func RecThresholdLTE(v int8) predicate.AccountingControl

RecThresholdLTE applies the LTE predicate on the "rec_threshold" field.

func RecThresholdNEQ

func RecThresholdNEQ(v int8) predicate.AccountingControl

RecThresholdNEQ applies the NEQ predicate on the "rec_threshold" field.

func RecThresholdNotIn

func RecThresholdNotIn(vs ...int8) predicate.AccountingControl

RecThresholdNotIn applies the NotIn predicate on the "rec_threshold" field.

func RequireJournalEntryApproval

func RequireJournalEntryApproval(v bool) predicate.AccountingControl

RequireJournalEntryApproval applies equality check predicate on the "require_journal_entry_approval" field. It's identical to RequireJournalEntryApprovalEQ.

func RequireJournalEntryApprovalEQ

func RequireJournalEntryApprovalEQ(v bool) predicate.AccountingControl

RequireJournalEntryApprovalEQ applies the EQ predicate on the "require_journal_entry_approval" field.

func RequireJournalEntryApprovalNEQ

func RequireJournalEntryApprovalNEQ(v bool) predicate.AccountingControl

RequireJournalEntryApprovalNEQ applies the NEQ predicate on the "require_journal_entry_approval" field.

func RestrictManualJournalEntries

func RestrictManualJournalEntries(v bool) predicate.AccountingControl

RestrictManualJournalEntries applies equality check predicate on the "restrict_manual_journal_entries" field. It's identical to RestrictManualJournalEntriesEQ.

func RestrictManualJournalEntriesEQ

func RestrictManualJournalEntriesEQ(v bool) predicate.AccountingControl

RestrictManualJournalEntriesEQ applies the EQ predicate on the "restrict_manual_journal_entries" field.

func RestrictManualJournalEntriesNEQ

func RestrictManualJournalEntriesNEQ(v bool) predicate.AccountingControl

RestrictManualJournalEntriesNEQ applies the NEQ predicate on the "restrict_manual_journal_entries" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AccountingControl

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AccountingControl

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AccountingControl

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AccountingControl

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AccountingControl

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AccountingControl

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AccountingControl

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

func UpdatedAtNotIn

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

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 JournalEntryCriteria

type JournalEntryCriteria string

JournalEntryCriteria defines the type for the "journal_entry_criteria" enum field.

const (
	JournalEntryCriteriaOnShipmentBill       JournalEntryCriteria = "OnShipmentBill"
	JournalEntryCriteriaOnReceiptOfPayment   JournalEntryCriteria = "OnReceiptOfPayment"
	JournalEntryCriteriaOnExpenseRecognition JournalEntryCriteria = "OnExpenseRecognition"
)

JournalEntryCriteria values.

func (JournalEntryCriteria) String

func (jec JournalEntryCriteria) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the AccountingControl queries.

func ByAutoCreateJournalEntries

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

ByAutoCreateJournalEntries orders the results by the auto_create_journal_entries 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 ByCriticalProcesses

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

ByCriticalProcesses orders the results by the critical_processes field.

func ByDefaultExpAccountField

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

ByDefaultExpAccountField orders the results by default_exp_account field.

func ByDefaultExpAccountID

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

ByDefaultExpAccountID orders the results by the default_exp_account_id field.

func ByDefaultRevAccountField

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

ByDefaultRevAccountField orders the results by default_rev_account field.

func ByDefaultRevAccountID

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

ByDefaultRevAccountID orders the results by the default_rev_account_id field.

func ByEnableRecNotifications

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

ByEnableRecNotifications orders the results by the enable_rec_notifications field.

func ByHaltOnPendingRec

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

ByHaltOnPendingRec orders the results by the halt_on_pending_rec field.

func ByID

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

ByID orders the results by the id field.

func ByJournalEntryCriteria

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

ByJournalEntryCriteria orders the results by the journal_entry_criteria field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByRecThreshold

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

ByRecThreshold orders the results by the rec_threshold field.

func ByRecThresholdAction

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

ByRecThresholdAction orders the results by the rec_threshold_action field.

func ByRequireJournalEntryApproval

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

ByRequireJournalEntryApproval orders the results by the require_journal_entry_approval field.

func ByRestrictManualJournalEntries

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

ByRestrictManualJournalEntries orders the results by the restrict_manual_journal_entries field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type RecThresholdAction

type RecThresholdAction string

RecThresholdAction defines the type for the "rec_threshold_action" enum field.

const (
	RecThresholdActionHalt RecThresholdAction = "Halt"
	RecThresholdActionWarn RecThresholdAction = "Warn"
)

RecThresholdAction values.

func (RecThresholdAction) String

func (rta RecThresholdAction) String() string

Jump to

Keyboard shortcuts

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