Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameSyntax

Explanation

Constant"Constant text"

returns any text contained within " "

**to include brackets () as part of constant text, each bracket must be preceded by - , e.g. " -(part á "&FORMAT(_vat_rate;0.00)&"% -)"

**& symbol should be avoided as literal text wherever possible

Variable_field_valuereturns value of field_value 
MandatoryMANDATORY(_field_value) field_value is mandatory and if no value given in raw data, file is not created and error is logged
FormatFORMAT(field;format)

value of field will be formatted according to format

Available Formats (for FORMAT() formula)

0.00

az09 → abcdefghijklmnopqrstuvwxyz1234567890 

ddmmyy

ddmmyyyy

dd/MM/yy

dd/MM/yyyy

dd.mmMM.yyyy

ddmmyyyy

yy

dd.MM.yyyymm.aaaa

IfIF(logical_test;value_if_true;else) if logical_test returns true, value_if_true will be returned (and analysed if it is a formula), otherwise else will be returned (and analysed if it is a formula)
If errorIFERROR(value;value_if_error)returns value if not empty/null, and if value=empty/null, value_if_error
OrOR(value_1;value_2;…;value_n);true_value;false_valueif any of the conditions (value_1value_2, etc.) return true, returns true_value; if all of the conditions return false, returns false_value 
Concatenatevalue_1&value_2&value_nconcatenates value_1 with value_2, etc
Equalvalue_a=value_breturns true if value_a is equal to value_b, else returns false

...

Field name Example value
_order_date25.02.2023
_payment_date25.02.2023
_order_id20995
_line_id10228546422575
_typeDIRECT_PAYMENT / SALE / CREDIT_WAIT_ACCOUNT / DEBIT_WAIT_ACCOUNT / COMPENSATION_SALE / DEBIT_CREDIT_NOTE / REFUND / REFUND_CLIENT / VAT
_kindCOMPOSED_PRODUCT / CHARGES / SINGLE_ENTRY 
_accounting_code_1Visa / Credit / Pending / Voucher 
_accounting_code_2700000
_accounting_code_3CA9
_accounting_code_4
_accounting_code_5
_nameGift voucher / Championship / Cap / Season ticket
_product_familyINT_PRODFAM/SPORTING / INT_PRODFAM/GOODS / INT_PRODFAM/MEM
_item_date2022-10-14 18:30:00.0
_amount48000.00
_vat_rate5500
_vatcode_id15255
_operator_namePLC_TS
_contact_number10228546376027
_payment_saleP / S
_line_type

PAYMENT / SALE / VAT / ANALYTIC / ANALYTIC_2 / COMPENSATION_SALE / COMPENSATION_PAYMENT

_payment_currencyEUR
_payment_method_codeCB
_payment_method_internal_nameCarte Bancaire
_card_typeVISA
_amount_without_vat48000
_credit_debitC / D
_vat_accounting_code_144571402
_vat_accounting_code_2
_vat_accounting_code_3
_vat_accounting_code_4
_vat_accounting_code_5
_invoice_numberSPORT-0000021
_invoice_date08.01.2023
_purchaser_contact_number38791
_purchaser_structure_nameFEDERAL EXPRESS FRANCE
_purchaser_first_nameJoe
_purchaser_last_nameBloggs
_sales_channel_codeTS
_sales_channel_internal_nameTicketshop Grand Public
_sc_accounting_code_1CA9
_sc_accounting_code_270121000
_sc_accounting_code_3
_sc_accounting_code_4
_sc_accounting_code_5
_delayed_paymentYes / No
_logical_seat_category_codeCat1 / Cat2 / Cat3 / Cat4 / Visitor
_product_codePark / Champ / Season
_season_codeY
_file_number4578
_audience_categoryFULL

...