Consultation of outstanding confirmation transactions at the terminal
In the event of a power outage, situations may occur in which the automation need to query transactions that are pending confirmation. This that is, transactions that need to be confirmed (or not) via FinalizaFuncaoSiTefInterativo.
#
Number of transactions pending confirmation on the terminalThis function is used by the terminal to know how many transactions were carried out in the event of a power outage and are pending an automation action, via function call FinalizaFuncaoSiTefInterativo.
int ObtemQuantidadeTransacoesPendentes (TaxDate, TaxCoupon)
ASCII Interface
ObtemQuantidadeTransacoesPendentesA (Result, TaxDate, TaxCoupon)
Parameter | Type | Standard interface | ASCII interface | Description |
---|---|---|---|---|
Result | Output, by value | Not used | Fixed 6 | Contains the result of the response to the routine call. |
TaxDate | Input, by value | char * | Fixed 8 | Tax Date in YYYYMMDD format |
TaxCoupon | Input, by value | char * | Max. 20 | Tax Coupon number corresponding to the sale |
The routine returns the number of pending transactions for the document informed tax, or -13 if the document was not found Supervisor.
#
Query pending transactions on the terminalIt is possible to consult all pending confirmation information from the terminal.
This functionality is initiated through the function IniciaFuncaoSiTefInterativo with the Function parameter (first parameter routine input) assuming the value 130 and the other parameters with their usual values.
In particular, this function will disregard parameters relating to the fiscal document.
IMPORTANT: This routine only starts the request process. If the return is 10000, the process must continue through the routine ContinuaFuncaoSiTefInterativo until it returns a final result other than 10000.
The following fields will be returned for automation.
FieldType | Description |
---|---|
210 | Total number of pending issues, listed in the data blocks below |
160 | TaxCoupon |
161 | Payment Coupon Identification Number |
163 | TaxDate |
164 | TaxTime |
211 | Original “Function” Code |
1319 | Original transaction value |
#
Query pending transactions in a specific tax documentIn a similar way to the previous item, it is possible to consult the data referring to a single tax document.
To do so, use the function IniciaFuncaoSiTefInterativo by passing the Function parameter the value 131 and the other parameters with their values usual. In this case, the parameters relating to the fiscal document.
The fields returned are identical to the previous item.