Páginas filhas
  • MaFisIniLoad Function

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

CONTENTS

...

Índice

CONTENTS

01. OVERVIEW

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

02

...

. DESCRIPTION

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

03. HOW TO USE

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.

04. PARAMETERS

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>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="52f2fc2a-7788-438f-948d-8cca7c720f20"><ac:plain-text-body><![CDATA[

 

[03]

  

Numeric  

ISS value of the item

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a8eaf801-c30c-4875-a0c4-6da70d742c53"><ac:plain-text-body><![CDATA[

 

[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

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8e16e673-c61c-4a1c-a1c4-4441cba32ba8"><ac:plain-text-body><!

[

CDATA[

 

[

06]  

Character

Series of original invoice

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b31c7a11-713b-4490-9bc8-208849d6a1ea"><ac:plain-text-body><![CDATA[

 

[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:plain-text-body></ac:structured-macro>

<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)

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="212c7943-7b80-430d-a62b-6a7e3ce84bfb"><ac:plain-text-body><!

[

CDATA[

 

[

10]  

Character

Product batch

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6f1f1c3a-0779-4427-9160-494e5966b23b"><ac:plain-text-body><!

[

CDATA[

 

[

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

...