...
...
Índice |
---|
Product Line: | Microsiga Protheus® |
Industry: | Services |
Module: | SIGAFIS - Tax Records |
Function: | MaFisInilLoad |
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 MaFisInLoad function adds a new item to the MATXFIS internal array of items (aNFItem). This item can be added with all blank elements or, if the basic data is entered when transmitting parameter aItemLoad, this data will be loaded into the new item, such as Product Code, TIO, or Quantity.
The function can also be used to trim the item values of the header totalizers (aNFCab) as required by the application to be developed. If the item entered in the nItem parameter already exists, and the lEstorno parameter is set to .T., the values for this item will be reversed from the totalizing elements of the tax document header (aNFCab).
The MaFisIniLoad() function is the best way to add an item when using MATXFIS and should always be prioritized in relation to the use of the MaFisAdd() function, since it is faster because it does not recalculate the item for each loaded item. It must be used within the loops of the application items, so that each item read in the loop calls the function, transmitting the current item as a parameter of the nItem parameter. If application uses MsGetDados() and aCols for handling the items, the items generated by MaFisIniLoad() must always be in the same order in which the aCols items were formed, because the aCols and the aNFItem must be synchronized in any situation.
Order | Parameter | Type | Description |
---|---|---|---|
01 | nItem | Numeric | Array item ANFItem that must be initialized |
02 | aItemLoad | Array | Optimization array (data that can be loaded when creating the item) |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="14c50f85-d5b4-499a-9cf1-fcbf40b4cebe"><ac:plain-text-body><![CDATA[
[01] | Character | Product Code |
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8bd4fa0b-56f8-432b-bab7-0c4540c17c8b"><ac:plain-text-body><![CDATA[
[02] |
| Character | TIO Code |
]]></ac:plain-text-body></ac:structured-macro>
[03] |
Numeric | ISS value of the item |
]]></ac:plain-text-body></ac:structured-macro>
[04] | Numeric | Item quantity |
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="938cad26-b6e5-4bc6-99a8-44ae292e9c9f"><ac:plain-text-body><![CDATA[
[05] | Character | Number of original invoice |
[ |
06] | Character | Series of original invoice |
]]></ac:plain-text-body></ac:structured-macro>
[07] | Numeric | RecNo of SB1 |
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9a361b4b-24f9-4187-9076-1b1b427193bf"><ac:plain-text-body><![CDATA[
[08] | Numeric | RecNo of SF4 |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ca24da60-6355-45c3-8d8c-af27721b1c37"><ac:plain-text-body><![CDATA[
[09] | Numeric | Original Invoice RecNo (SD1/SD2) |
[ |
10] | Character | Product batch |
[ |
11] | Character | Product Sub-Batch |
]]></ac:plain-text-body></ac:structured-macro>
03 | lEstorno | Logical | If the item already exists, whether the value of the aNFCab totalizers should be reversed or not |
...