CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
COREPOS\Fannie\API\item\StandardAccounting Class Reference
Inheritance diagram for COREPOS\Fannie\API\item\StandardAccounting:
COREPOS\Fannie\API\item\Accounting

Static Public Member Functions

static toPurchaseCode ($code)
 
static toSaleCode ($code)
 
static perStoreCode ($code, $store_id)
 
- Static Public Member Functions inherited from COREPOS\Fannie\API\item\Accounting
static toPurchaseCode ($code)
 
static toSaleCode ($code)
 
static perStoreCode ($code, $store_id)
 

Detailed Description

Sale account numbers start with four. Purchase account numbers start with five. Store IDs are appended to account numbers with a hyphen.

Member Function Documentation

static COREPOS\Fannie\API\item\StandardAccounting::perStoreCode (   $code,
  $store_id 
)
static

Convert a chart of account number to a store-specific value

Parameters
$code[string] account number
$store_id[int] store identifier
Returns
[string] modified account number
static COREPOS\Fannie\API\item\StandardAccounting::toPurchaseCode (   $code)
static

Convert a sales chart of account number to the corresponding purchases account number

Parameters
$code[string] sales account number
Returns
[string] purchase account number
static COREPOS\Fannie\API\item\StandardAccounting::toSaleCode (   $code)
static

Convert a purchasing chart of account number to the corresponding sales account number

Parameters
$code[string] purchasing account number
Returns
[string] sale account number

The documentation for this class was generated from the following file: