package Modules\Invoice
inherited_from \InvoiceFactory

 Methods

CommitTransaction()

CommitTransaction() 
Inherited

Delete()

Delete() 
Inherited

ExecuteSQL()

ExecuteSQL($query, $ph = NULL, $limit = NULL, $page = NULL
Inherited

Parameters

$query

$ph

$limit

$page

FailTransaction()

FailTransaction() 
Inherited

RetryExecuteSQL()

RetryExecuteSQL($query, $ph = NULL, $retry_max_attempts = 2, $sleep = 5
Inherited

Parameters

$query

$ph

$retry_max_attempts

$sleep

Save()

Save($reset_data = TRUE, $force_lookup = FALSE
Inherited

Parameters

$reset_data

$force_lookup

StartTransaction()

StartTransaction() 
Inherited

__construct()

__construct() 
Inherited

__toString()

__toString() 
Inherited

addLog()

addLog($log_action) 
Inherited

Parameters

$log_action

bulkDelete()

bulkDelete($ids) 
Inherited

Parameters

$ids

calcShipping()

calcShipping($transactions = NULL, $ship_to_contact_id = NULL, $shipping_policy_id = NULL, $currency_id = NULL
Inherited

Parameters

$transactions

$ship_to_contact_id

$shipping_policy_id

$currency_id

calcTaxes()

calcTaxes($transactions = NULL, $bill_to_contact_id = NULL, $ship_to_contact_id = NULL
Inherited

Parameters

$transactions

$bill_to_contact_id

$ship_to_contact_id

cancelShippingLabel()

cancelShippingLabel() 
Inherited

clearData()

clearData() 
Inherited

clearGeoCode()

clearGeoCode($data_diff = NULL
Inherited

Parameters

$data_diff

clearShippingLabel()

clearShippingLabel() 
Inherited

convertFlexArray()

convertFlexArray($array) 
Inherited

Parameters

$array

decodeInvoiceNumber()

decodeInvoiceNumber($number) 
InheritedStatic

Parameters

$number

deleteAllTransactions()

deleteAllTransactions($type_id = NULL, $ignore_ids = NULL, $ignore_product_type_id = NULL
Inherited

Parameters

$type_id

$ignore_ids

$ignore_product_type_id

deleteShippingTransactions()

deleteShippingTransactions() 
Inherited

deleteTaxTransactions()

deleteTaxTransactions() 
Inherited

determineStatus()

determineStatus() 
Inherited

emailInvoice()

emailInvoice($ship_to = TRUE, $other_address = NULL
Inherited

Parameters

$ship_to

$other_address

fromBool()

fromBool($value) 
Inherited

Parameters

$value

getAMFMessageID()

getAMFMessageID() 
Inherited

getAPISearchByCompanyIdAndArrayCriteria()

getAPISearchByCompanyIdAndArrayCriteria($company_id, $filter_data, $limit = NULL, $page = NULL, $where = NULL, $order = NULL

Parameters

$company_id

$filter_data

$limit

$page

$where

$order

getAll()

getAll($limit = NULL, $page = NULL, $where = NULL, $order = NULL

Parameters

$limit

$page

$where

$order

getBillingContact()

getBillingContact() 
Inherited

getByClientIdAndClientContactID()

getByClientIdAndClientContactID($client_id, $client_contact_id, $where = NULL, $order = NULL

Parameters

$client_id

$client_contact_id

$where

$order

getByClientIdAndCompanyId()

getByClientIdAndCompanyId($client_id, $company_id, $limit = NULL, $page = NULL, $where = NULL, $order = NULL

Parameters

$client_id

$company_id

$limit

$page

$where

$order

getByCompanyIDArray()

getByCompanyIDArray($id, $include_blank = TRUE

Parameters

$id

$include_blank

getByCompanyId()

getByCompanyId($id, $limit = NULL, $page = NULL, $where = NULL, $order = NULL

Parameters

$id

$limit

$page

$where

$order

getById()

getById($id, $where = NULL, $order = NULL

Parameters

$id

$where

$order

getByIdAndClientId()

getByIdAndClientId($id, $client_id, $where = NULL, $order = NULL

Parameters

$id

$client_id

$where

$order

getByIdAndClientIdAndCompanyId()

getByIdAndClientIdAndCompanyId($id, $client_id, $company_id, $where = NULL, $order = NULL

Parameters

$id

$client_id

$company_id

$where

$order

getByIdAndCompanyId()

getByIdAndCompanyId($id, $company_id, $limit = NULL, $page = NULL, $where = NULL, $order = NULL

Parameters

$id

$company_id

$limit

$page

$where

$order

getCache()

getCache($cache_id, $group_id = NULL
Inherited

Parameters

$cache_id

$group_id

getCallerFunction()

getCallerFunction() 
Inherited

getClient()

getClient() 
Inherited

getClientContactObject()

getClientContactObject($client_contact_id) 
Inherited

Parameters

$client_contact_id

getClientObject()

getClientObject() 
Inherited

getColumn()

getColumn($column) 
Inherited

Parameters

$column

getColumnList()

getColumnList() 
Inherited

getCompany()

getCompany() 
Inherited

getCompanyGenericMapData()

getCompanyGenericMapData($company_id, $object_type_id, $id, $variable) 
Inherited

Parameters

$company_id

$object_type_id

$id

$variable

getCreatedAndUpdatedColumns()

getCreatedAndUpdatedColumns($data, $include_columns = NULL
Inherited

Parameters

$data

$include_columns

getCreatedBy()

getCreatedBy() 
Inherited

getCreatedDate()

getCreatedDate() 
Inherited

getCurrency()

getCurrency() 
Inherited

getCurrencyObject()

getCurrencyObject() 
Inherited

getCurrent()

getCurrent() 
Inherited

getCurrentRow()

getCurrentRow($offset = 1
Inherited

Parameters

$offset

getCustomsData()

getCustomsData($transactions = NULL
Inherited

Parameters

$transactions

getDateRangeSQL()

getDateRangeSQL($str, $column, $format = 'epoch', $include_blank_dates = FALSE
Inherited

Parameters

$str

$column

$format

$include_blank_dates

getDeleted()

getDeleted() 
Inherited

getDeletedBy()

getDeletedBy() 
Inherited

getDeletedDate()

getDeletedDate() 
Inherited

getEmptyRecordSet()

getEmptyRecordSet($id = NULL
Inherited

Parameters

$id

getEnableCalcShipping()

getEnableCalcShipping() 
Inherited

getEnableSystemLogDetail()

getEnableSystemLogDetail() 
Inherited

getGenericObject()

getGenericObject($list_factory, $id, $variable, $list_factory_method = 'getById', $id_method = 'getID'
Inherited

Parameters

$list_factory

$id

$variable

$list_factory_method

$id_method

getIDSByListFactory()

getIDSByListFactory($lf) 
Inherited

Parameters

$lf

getId()

getId() 
Inherited

getInvoice()

getInvoice($ilf = NULL, $company_id = NULL
Inherited

Parameters

$ilf

$company_id

getInvoiceConfigObject()

getInvoiceConfigObject() 
Inherited

getInvoiceDate()

getInvoiceDate() 
Inherited

getInvoiceNumber()

getInvoiceNumber() 
Inherited

getIterator()

getIterator() 
Inherited

getLabelId()

getLabelId() 
Inherited

getNextInsertId()

getNextInsertId() 
Inherited

getObjectAsArray()

getObjectAsArray($include_columns = NULL
Inherited

Parameters

$include_columns

getOldStatus()

getOldStatus() 
Inherited

getOptions()

getOptions($name, $parent = NULL
Inherited

Parameters

$name

$parent

getOrderDate()

getOrderDate() 
Inherited

getOtherContact()

getOtherContact() 
Inherited

getOtherID1()

getOtherID1() 
Inherited

getOtherID2()

getOtherID2() 
Inherited

getOtherID3()

getOtherID3() 
Inherited

getOtherID4()

getOtherID4() 
Inherited

getOtherID5()

getOtherID5() 
Inherited

getPackingSlip()

getPackingSlip($ilf = NULL, $company_id = NULL
Inherited

Parameters

$ilf

$company_id

getPaymentRequiredDate()

getPaymentRequiredDate() 
Inherited

getPermissionColumns()

getPermissionColumns($data, $object_user_id, $created_by_id, $permission_children_ids = NULL, $include_columns = NULL
Inherited

Parameters

$data

$object_user_id

$created_by_id

$permission_children_ids

$include_columns

getPrivateNote()

getPrivateNote() 
Inherited

getProductTransactionArray()

getProductTransactionArray() 
Inherited

getProgressBarObject()

getProgressBarObject() 
Inherited

getPublicNote()

getPublicNote() 
Inherited

getPurchaseOrderNumber()

getPurchaseOrderNumber() 
Inherited

getRecordCount()

getRecordCount() 
Inherited

getSalesContact()

getSalesContact() 
Inherited

getSalesContactUserObject()

getSalesContactUserObject() 
Inherited

getSequenceName()

getSequenceName() 
Inherited

getShipmentPackages()

getShipmentPackages($transactions = NULL
Inherited

Parameters

$transactions

getShippedDate()

getShippedDate() 
Inherited

getShippingContact()

getShippingContact() 
Inherited

getShippingLabel()

getShippingLabel() 
Inherited

getShippingLabelFileName()

getShippingLabelFileName($label_number = 1, $company_id = NULL, $client_id = NULL, $invoice_id = NULL
Inherited

Parameters

$label_number

$company_id

$client_id

$invoice_id

getShippingLabelStoragePath()

getShippingLabelStoragePath($company_id = NULL, $client_id = NULL
Inherited

Parameters

$company_id

$client_id

getShippingOptionData()

getShippingOptionData($ship_to_contact_id = NULL, $shipment_packages_arr = NULL, $customs_data = NULL, $currency_id = NULL
Inherited

Parameters

$ship_to_contact_id

$shipment_packages_arr

$customs_data

$currency_id

getShippingOptions()

getShippingOptions($shipping_option_arr = NULL, $currency_id = NULL, $include_prices = TRUE
Inherited

Parameters

$shipping_option_arr

$currency_id

$include_prices

getShippingPolicy()

getShippingPolicy() 
Inherited

getShippingPolicyIDsByShipToID()

getShippingPolicyIDsByShipToID($client_contact_id) 
Inherited

Parameters

$client_contact_id

getShippingPolicyObject()

getShippingPolicyObject($shipping_policy_id = NULL
Inherited

Parameters

$shipping_policy_id

getShippingPolicyService()

getShippingPolicyService() 
Inherited

getStatus()

getStatus() 
Inherited

getTable()

getTable($strip_quotes = FALSE
Inherited

Parameters

$strip_quotes

getTag()

getTag() 
Inherited

getTaxPolicyCodesByTaxPolicyIDs()

getTaxPolicyCodesByTaxPolicyIDs($tax_policy_ids) 
Inherited

Parameters

$tax_policy_ids

getTaxPolicyIDsByBillToIDAndShipToID()

getTaxPolicyIDsByBillToIDAndShipToID($bill_to_client_contact_id, $ship_to_client_contact_id) 
Inherited

Parameters

$bill_to_client_contact_id

$ship_to_client_contact_id

getTaxPolicyIDsByProductId()

getTaxPolicyIDsByProductId($product_id) 
Inherited

Parameters

$product_id

getTotalArray()

getTotalArray($transactions = NULL, $include_unconfirmed_transactions = FALSE, $previous_total_array = FALSE
Inherited

Parameters

$transactions

$include_unconfirmed_transactions

$previous_total_array

getTotalOwing()

getTotalOwing($transactions = NULL, $include_unconfirmed_transactions = FALSE
Inherited

Parameters

$transactions

$include_unconfirmed_transactions

getTrackingNumber()

getTrackingNumber() 
Inherited

getTrackingNumberURL()

getTrackingNumberURL() 
Inherited

getTransactionArray()

getTransactionArray() 
Inherited

getTransactionMode()

getTransactionMode() 
Inherited

getTypeLabel()

getTypeLabel() 
Inherited

getUpdatedBy()

getUpdatedBy() 
Inherited

getUpdatedDate()

getUpdatedDate() 
Inherited

getValidSQLColumns()

getValidSQLColumns($array, $strict = TRUE, $additional_fields = NULL
Inherited

Parameters

$array

$strict

$additional_fields

getVariableToFunctionMap()

getVariableToFunctionMap($data = NULL
Inherited

Parameters

$data

handleDefaultPayment()

handleDefaultPayment() 
Inherited

insertShippingTransactions()

insertShippingTransactions($data) 
Inherited

Parameters

$data

insertTaxTransactions()

insertTaxTransactions($tax_arr) 
Inherited

Parameters

$tax_arr

isNew()

isNew($force_lookup = FALSE
Inherited

Parameters

$force_lookup

isSave()

isSave() 
Inherited

isShipableProducts()

isShipableProducts($transactions = NULL
Inherited

Parameters

$transactions

isShippingLabelExists()

isShippingLabelExists($label_number = 1
Inherited

Parameters

$label_number

isValid()

isValid($ignore_warning = TRUE
Inherited

Parameters

$ignore_warning

isWarning()

isWarning() 
Inherited

mergeIncludeAndExcludePolicyIDs()

mergeIncludeAndExcludePolicyIDs($policy_ids_a, $policy_ids_b) 
Inherited

Parameters

$policy_ids_a

$policy_ids_b

postSave()

postSave() 
Inherited

preSave()

preSave() 
Inherited

removeCache()

removeCache($cache_id = NULL, $group_id = NULL
Inherited

Parameters

$cache_id

$group_id

saveCache()

saveCache($data, $cache_id, $group_id = NULL
Inherited

Parameters

$data

$cache_id

$group_id

serializeRS()

serializeRS($rs) 
Inherited

Parameters

$rs

setAMFMessageID()

setAMFMessageID($id) 
Inherited

Parameters

$id

setBillingContact()

setBillingContact($id) 
Inherited

Parameters

$id

setCacheLifeTime()

setCacheLifeTime($secs) 
Inherited

Parameters

$secs

setClient()

setClient($id) 
Inherited

Parameters

$id

setCreatedAndUpdatedColumns()

setCreatedAndUpdatedColumns($data, $variable_to_function_map = array()
Inherited

Parameters

$data

$variable_to_function_map

setCreatedBy()

setCreatedBy($id = NULL
Inherited

Parameters

$id

setCreatedDate()

setCreatedDate($epoch = NULL
Inherited

Parameters

$epoch

setCurrency()

setCurrency($id) 
Inherited

Parameters

$id

setDeleted()

setDeleted($bool) 
Inherited

Parameters

$bool

setDeletedBy()

setDeletedBy($id = NULL
Inherited

Parameters

$id

setDeletedDate()

setDeletedDate($epoch = NULL
Inherited

Parameters

$epoch

setEnableCalcShipping()

setEnableCalcShipping($bool) 
Inherited

Parameters

$bool

setEnableSystemLogDetail()

setEnableSystemLogDetail($bool) 
Inherited

Parameters

$bool

setGenericObject()

setGenericObject($obj, $variable) 
Inherited

Parameters

$obj

$variable

setId()

setId($id) 
Inherited

Parameters

$id

setInvoiceDate()

setInvoiceDate($epoch) 
Inherited

Parameters

$epoch

setObjectFromArray()

setObjectFromArray($data) 
Inherited

Parameters

$data

setOldStatus()

setOldStatus($value) 
Inherited

Parameters

$value

setOrderDate()

setOrderDate($epoch) 
Inherited

Parameters

$epoch

setOtherContact()

setOtherContact($id) 
Inherited

Parameters

$id

setOtherID1()

setOtherID1($value) 
Inherited

Parameters

$value

setOtherID2()

setOtherID2($value) 
Inherited

Parameters

$value

setOtherID3()

setOtherID3($value) 
Inherited

Parameters

$value

setOtherID4()

setOtherID4($value) 
Inherited

Parameters

$value

setOtherID5()

setOtherID5($value) 
Inherited

Parameters

$value

setPaymentRequiredDate()

setPaymentRequiredDate($epoch) 
Inherited

Parameters

$epoch

setPrivateNote()

setPrivateNote($value) 
Inherited

Parameters

$value

setProgressBarObject()

setProgressBarObject($obj) 
Inherited

Parameters

$obj

setPublicNote()

setPublicNote($value) 
Inherited

Parameters

$value

setPurchaseOrderNumber()

setPurchaseOrderNumber($value) 
Inherited

Parameters

$value

setQueryStatementTimeout()

setQueryStatementTimeout($milliseconds = NULL
Inherited

Parameters

$milliseconds

setSalesContact()

setSalesContact($id) 
Inherited

Parameters

$id

setShippedDate()

setShippedDate($epoch) 
Inherited

Parameters

$epoch

setShippingContact()

setShippingContact($id) 
Inherited

Parameters

$id

setShippingPolicy()

setShippingPolicy($id) 
Inherited

Parameters

$id

setShippingPolicyService()

setShippingPolicyService($id) 
Inherited

Parameters

$id

setStatus()

setStatus($value) 
Inherited

Parameters

$value

setTag()

setTag($tags) 
Inherited

Parameters

$tags

setTrackingNumber()

setTrackingNumber($value) 
Inherited

Parameters

$value

setTransaction()

setTransaction($data) 
Inherited

Parameters

$data

setTransactionMode()

setTransactionMode($mode = ''
Inherited

Parameters

$mode

setUpdatedBy()

setUpdatedBy($id = NULL
Inherited

Parameters

$id

setUpdatedDate()

setUpdatedDate($epoch = NULL
Inherited

Parameters

$epoch

toBool()

toBool($value) 
Inherited

Parameters

$value

unassignAllTransactions()

unassignAllTransactions($type_id = NULL, $ignore_ids = NULL, $ignore_product_type_id = NULL
Inherited

Parameters

$type_id

$ignore_ids

$ignore_product_type_id

unserializeRS()

unserializeRS($rs) 
Inherited

Parameters

$rs

_getFactoryOptions()

_getFactoryOptions($name, $parent = NULL
Inherited

Parameters

$name

$parent

_getVariableToFunctionMap()

_getVariableToFunctionMap($data) 
Inherited

Parameters

$data

castInteger()

castInteger($int, $type = 'int'
Inherited

Parameters

$int

$type

getColumnsFromAliases()

getColumnsFromAliases($columns, $aliases) 
Inherited

Parameters

$columns

$aliases

getDatabaseType()

getDatabaseType() 
Inherited

getGEOMAsTextFunction()

getGEOMAsTextFunction($sql) 
Inherited

Parameters

$sql

getListSQL()

getListSQL($array, $ph = NULL, $cast = FALSE
Inherited

Parameters

$array

$ph

$cast

getSQLStringAggregate()

getSQLStringAggregate($sql, $glue) 
Inherited

Parameters

$sql

$glue

getSQLToEpochFunction()

getSQLToEpochFunction($sql) 
Inherited

Parameters

$sql

getSQLToTimeFunction()

getSQLToTimeFunction($sql) 
Inherited

Parameters

$sql

getSQLToTimeStampFunction()

getSQLToTimeStampFunction() 
Inherited

getSortSQL()

getSortSQL($array, $strict = TRUE, $additional_fields = NULL
Inherited

Parameters

$array

$strict

$additional_fields

getWhereClauseSQL()

getWhereClauseSQL($columns, $args, $type, $ph, $query_stub = NULL, $and = TRUE
Inherited

Parameters

$columns

$args

$type

$ph

$query_stub

$and

getWhereSQL()

getWhereSQL($array, $append_where = FALSE
Inherited

Parameters

$array

$append_where

handleSQLSyntax()

handleSQLSyntax($arg) 
Inherited

Parameters

$arg

stripSQLSyntax()

stripSQLSyntax($arg) 
Inherited

Parameters

$arg

getInsertQuery()

getInsertQuery() 
Inherited

getRecordSetColumnList()

getRecordSetColumnList($rs) 
Inherited

Parameters

$rs

getUpdateQuery()

getUpdateQuery() 
Inherited

parseColumnName()

parseColumnName($column) 
Inherited

Parameters

$column

 Properties

 

$data

$data 

Default

array()
 

$old_data

$old_data 

Default

array()
 

$validate_only

$validate_only 

Default

FALSE
 

$AMF_message_id

$AMF_message_id 

Default

NULL
 

$calc_shipping

$calc_shipping 

Default

FALSE
 

$client_contact_obj

$client_contact_obj 

Default

NULL
 

$client_obj

$client_obj 

Default

NULL
 

$currency_obj

$currency_obj 

Default

NULL
 

$enable_system_log_detail

$enable_system_log_detail 

Default

TRUE
 

$invoice_config_obj

$invoice_config_obj 

Default

NULL
 

$next_insert_id

$next_insert_id 

Default

NULL
 

$pk_sequence_name

$pk_sequence_name 

Default

'invoice_id_seq'
 

$progress_bar_obj

$progress_bar_obj 

Default

NULL
 

$sales_contact_user_obj

$sales_contact_user_obj 

Default

NULL
 

$shipping_policy_obj

$shipping_policy_obj 

Default

NULL
 

$table

$table 

Default

'invoice'