Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The Accounting Export Interface allow to account manager to have more control and capacity to solve issues immediately.

The accounting export has basic initialization and custom parameterization available for every SecuTix customer.

Prerequisites

Check with Platform team that the generic query is installed for the institution.

Set up

Create an export interface of type "Accounting"

New Interface →  Exports →  Accounting

The field "Accounting code required" is not taken into account (will disappear in the future, for the moment set the "No" value).

Fill the values on the previous image, which should all be provided by the SecuTix customer.

Schedules

It is possible to generate two different reports, PNM or CSV formats.

New schedule

Generate CSV accounting file

Mandatory fields:

Line types, by default: Sales, VAT and Payments

With headers, by default: marked

Generate PNM accounting file

Mandatory fields:

Line types, by default: Sales, VAT and Payments


Rest of fields for CSV and PNM:

Email recipient(s: Who are the receivers of the reports, separated by ;

Ordering: Fields by which to order accounting lines in file created, separated by ,

Computed fields: Formulas to calculate values for each file column pasted one after another. Max capacity of the box 4.000 characters (Following custom parameter box format). See details below. (Default CSV formula or PNM formula, also specified below)

Encoding, by default UTF-8

End of line, by default Unix

Only order ids, generate a file with only the specified orders

File to upload, to ignore

How to write Formulas for "Computed fields":

Formulas

"Constant text" : returns any text contained within " "

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

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

_field_value : returns value of field_value 

MANDATORY(_field_value) :  field_value is mandatory and if no value given in raw data, file is not created and error is logged

FORMAT(field;format) : value of field will be formatted according to format

Available Formats (for FORMAT() formula)

0.00

az09 → abcdefghijklmnopqrstuvwxyz1234567890 

dd.mm.yyyy

ddmmyyyy

mm.aaaa

IF(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).

IFERROR(value;value_if_error) : returns value if possible, and if not, value_if_error

OR(value_1;value_2;…;value_n);true_value;false_value : if any of the conditions (value_1value_2, etc.) return true, returns true_value; if all of the conditions return false, returns false_value 

value_1&value_2&value_n : concatenates value_1 with value_2, etc. 

value_a=value_b : returns true if value_a is equal to value_b, else returns false

Examples:

Default CSV formula:

Code journal="ID"
N de compte=IF(_line_type=SALE;_accounting_code_1;_line_type=VAT;_vat_accounting_code_1;_payment_method_internal_name)
Piece="Ventes-"&FORMAT(_order_date;dd-MM-yyyy)
Libelle=IF(_line_type=SALE;_name&" -(part à "&FORMAT(_vat_rate;0.00)&"%-)";IF(_line_type=VAT;"TVA collectée à "&FORMAT(_vat_rate;0.00)&"%";"Paiement "&_payment_method_internal_name))
Debit=IF(_credit_debit=D;_amount;0.00)
Credit=IF(_credit_debit=C;_amount;0.00)
Analytique=IF(_line_type=SALE;_accounting_code_2;"")

Default PNM formula:

code_journal="VTE"
date_de_piece=FORMAT(_order_date;yyMMdd)
compte_general=IF(OR(_line_type=SALE;_line_type=ANALYTIC);_accounting_code_1;_line_type=VAT;_vat_accounting_code_1;_accounting_code_1)
type_de_compte=IF(_line_type=ANALYTIC;"A";"G")
compte_auxiliaire_ou_analytique=IF(_line_type=ANALYTIC;_accounting_code_2;"")
reference_ecriture=_invoice_number
libelle=IF(OR(_line_type=SALE;_line_type=ANALYTIC);IF(_delayed_payment=Yes;"Vente "&IFERROR(_purchaser_structure_name;_purchaser_last_name&", "&_purchaser_first_name);_name);IF(_line_type=VAT;"TVA collectée à "&FORMAT(_vat_rate;0.00)&"%";_payment_method_internal_name))
mode_de_paiement="S"
date_d_echeance=IFERROR(_invoice_date;IFERROR(_order_date;""))
sens=_credit_debit
montant_en_monnaie_de_tenue_de_compte=_amount
type_d_ecriture="N"
zone_reservee=_sales_channel_code
code_iso_de_la_monnaie="EUR"

Data examples, can be used in formulas:

Field name Example value
_line_id101053675867
_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
_kindCB
_accounting_code_170120
_accounting_code_2700000
_accounting_code_3CA9
_accounting_code_4
_accounting_code_5
_nameCB
_product_familyINT_PRODFAM/SPORTING
_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 / 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




  • No labels