PrintReceipt::replaceMainTemplateMacro
Replaces macro in given main receipt template
Signature
public function replaceMainTemplateMacro(
$rcptTemplate,
[string
$tplCurDate = '',
[string
$tplCurTime = '',
[string
$tplCurDateNoDelims = '',
[string
$tplCurTimeNoDelims = '',
[string
$tplInvoiceNum = '',
[string
$tplMonthCnt = '',
[string
$tplPayForPeriodStr = '',
[string
$tplPayTillMnthYr = '',
[string
$tplPayTillDate = '',
[string
$tplSrvName = '',
[string
$tplContract = '',
[string
$tplContractDate = '',
[string
$tplRealName = '',
[string
$tplCity = '',
[string
$tplStreet = '',
[string
$tplBuild = '',
[string
$tplApt = '',
[string
$tplAPT2 = '',
[string
$tplEAddrPostCode = '',
[string
$tplEAddrTwnDstr = '',
[string
$tplEAddrExt = '',
[string
$tplPhone = '',
[string
$tplMobile = '',
[string
$tplInn = '',
[string
$tploshadCS = '',
[string
$tplTariff = '',
[integer
$tplTrfPrice = 0,
[integer
$tplTrfPriceCoins = 0,
[integer
$tplTrfPriceDecimals = 0,
[integer
$tplSumm = 0,
[integer
$tplSummCoins = 0,
[integer
$tplSummDecimals = 0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] )
Parameters
$rcptTemplate
—
$tplCurDate
—
string
$tplCurTime
—
string
$tplCurDateNoDelims
—
string
$tplCurTimeNoDelims
—
string
$tplInvoiceNum
—
string
$tplMonthCnt
—
string
$tplPayForPeriodStr
—
string
$tplPayTillMnthYr
—
string
$tplPayTillDate
—
string
$tplSrvName
—
string
$tplContract
—
string
$tplContractDate
—
string
$tplRealName
—
string
$tplCity
—
string
$tplStreet
—
string
$tplBuild
—
string
$tplApt
—
string
$tplAPT2
—
string
$tplEAddrPostCode
—
string
$tplEAddrTwnDstr
—
string
$tplEAddrExt
—
string
$tplPhone
—
string
$tplMobile
—
string
$tplInn
—
string
$tploshadCS
—
string
$tplTariff
—
string
$tplTrfPrice
—
integer
$tplTrfPriceCoins
—
integer
$tplTrfPriceDecimals
—
integer
$tplSumm
—
integer
$tplSummCoins
—
integer
$tplSummDecimals
—
integer
Returns
- mixed