Product Line: | Microsiga Protheus® |
Industry: | Services |
Module: | SIGAFIS - Tax Records |
Function: | MaFisRet |
Scope: | Microsiga Protheus 12 |
Versions: | Microsiga Protheus 12 |
Operating Systems: | All |
Compatible with the following databases: | All |
Access Level: | Level 1 (Customer Access) |
Languages: | All |
The MaFisIniLoad function returns the content. In the case of tax values, for example, it will return the values already calculated from the tax reference entered in the cCampo parameter. When reporting references "IT_" and "LF_", the returned values will be from the item entered in the parameter nItem, internal array aNFItem, and references "NF_" will return contents of the internal array aNFCab, thus eliminating the transmission of nItem.
Thus, we can consider that:
Used practically in all application types, it serves to obtain the tax value calculated by MATXFIS at the time of the function call and/or any other content of MATXFIS internal header and item array, and can also be used to obtain tax record values, tax reference "LF_", and obtain values such as the Accounting Value and other values that are not proper to the item.
Several valid references are available, and, to identify them, perform the following steps:
1 - Knowing in which Table/Field the value will be written at the end of the processing, you can find the reference in the data dictionary, in the X3_VALID field.
2 - Use the function: MaFisRelImp(cProg,aAlias), where cProg is the program running, but the parameter can be transmitted as "", and aAlias is the table where the references will be searched, for example SD2 for the document item, and SF2 for the header. The return will be a list of all the references that are used for recording in the table.
Order | Parameter | Type | Description |
01 | nItem | Numeric | Array item number aNfItem required for "IT_" and "LF" references in cCampo |
02 | cCampo | Character | Reference of the field whose value you want to get, or the content of the aNFCab and aNFItem arrays. For header references, enter "NF_xxxxx", and for references of the items, enter "IT_xxxxx" and "LF_xxxxx" . |
Order | Return | Type | Description |
01 | Content of the reference searched | All as reference | Tax Reference Content in the internal arrays aNFCab and aNFItem at the time of function call |
Important!