Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

Version 1 Next »

Purpose

Purpose of this article is to describe the underlying logic for generated electronic signatures and clarify how signature-input is mapped to MXT concepts. 

Introduction

In accordance with NF requirements, electronic signatures are created when storing:

  • GTT (ticket revenue)
  • GTF (invoice revenue)
  • GTP (daily closing)
  • GTM (monthly closing)
  • GTA (annual closing)
  • Eventlog entries

Base 64url encoded electronic signature is created and stored for GTT, GTF, GTP, GTM, GTA, eventlog in accordance with format requirements. Hence, a 4 digit signature extract is printed on ticket or invoice (position 3, 7, 13, 19 of signature)

An example string for electronic signature is for GTT:

2000:750|1000:1999|0550:100,2849,20200419152534,18,SALE,N

GTT signature


ParameterData
Amounts (tax incl) brokendown per VAT rateFetch amounts per VAT rate from nf525_reservation_tax
Total Tax. incl amount of the ticketFetch total amount from nf525_reservation_tax_total
Operation timestampFetch from nf525_reservation_tax_total column ENTRYDATE 
Document number (unique) Fetch from nf525_reservation_tax_total column DOCUMENT_ID
Operation type (SALE / REFUND)Fetch from nf525_reservation_tax_total column DOCUMENT_TYPE
Previous signature Y/NPopulate based on presence previous signature
Previous signature (if present)Fetch from nf525_reservation_tax_total column PREVIOUS_SIGNATURE


GTF signature

ParameterData
Amounts (tax incl) brokendown per VAT rateFetch amounts per VAT rate from nf525_reservation_tax
Total amount of the invoiceFetch total amount from nf525_reservation_tax_total
Timestamp of the operationFetch from nf525_reservation_tax_total column ENTRYDATE 
Invoice numberFetch from nf525_reservation_tax_total column DOCUMENT_ID
Document typeFetch from nf525_reservation_tax_total column DOCUMENT_TYPE
Company name (B2B) or customer name (B2C)For Customer bill: fetch customer lastname
For Paying Customer bill: fetch companyname if populated, otherwise customer name
For Agent bill: fetch DC name
Customer zip codeFor Customer bill: fetch customer zipcode
For Paying Customer bill: fetch PC zipcode
For Agent bill: fetch fetch DC zipcode
VAT number of customerFor Customer bill: do not fetch
For Paying Customer bill: fetch from Paying Customer details
For Agent bill: fetch from DC
Previous signature Y/NPopulate based on presence previous signature
Previous signature (in case present)Fetch from nf525_reservation_tax_total column PREVIOUS_SIGNATURE


Grand Total signature

ParameterData
Amounts (tax incl) brokendown per VAT rateFetch from nf525_reservation_tax table based on RESERVATION_TAX_TOTAL_ID for created closing total
Cumulative Grand Total of periodFetch from nf525_reservation_tax_total table column ABSOLUTE_TOTAL for grand total created
Cumulative Perpetual Grand Total (real value)Fetch from nf525_reservation_tax_total table column RELATIVE_TOTAL for grand total created
Timestamp of the operationFetch from nf525_reservation_tax_total table column ENTRY_DATE
Unique ID of periodFetch from nf525_reservation_tax_total table column DOCUMENT_ID
Previous signature Y/NCheck for previous signature for grand_total_type
Previous signature (if present)Use grand_total_type previous signature, if present 
Document typeFetch from nf525_reservation_tax_total table column DOCUMENT_TYPE


Eventlog entry signature

ParameterData
Continuous IDNew DB column in nf525_eventlog table, to be implemented via this ticket.
Event codeIn nf525_eventlog table, fetch from column EVENT_TYPE
Additional informationIn nf525_eventlog table, fetch from column NEW_VALUE_DESCRIPTION
TimestampIn nf525_eventlog table, fetch from column EVENT_TIME
Operator codeIn nf525_eventlog table, fetch from column EMPLOYEE
POS codeIn nf525_eventlog table, fetch from column CONCERN_ID
Previous signature Y/NCheck if previous entry with electronic signature is present
Previous signatureIn nf525_eventlog table, fetch from column PREVIOUS_SIGNATURE

Fiscal Archive signature

ParameterData
Tax incl. amounts brokendown per vat rateFrom table nf525_reservation_tax, use total sum of column RESOURCE_AMOUNT_INCL_TAX, separated per value in column TAX_PERCENTAGE (using a pipe | as separator)
Tax incl. amounts of the periodFrom table nf525_reservation_tax_total, use total sum of GRAND_TOTAL column for selected data range
Operation timestampTimestamp of Fiscal Archive creation
Terminal/POS codeUse AO code
Operation typeHardcoded 'archiving'
Previous signature Y/NCheck if signature is present
If present, previous electronic signature Previous Fiscal Archive electronic signature
  • No labels