Páginas filhas
  • MaFisIni Function

CONTENTS

01. OVERVIEW

Product Line:

Microsiga Protheus®

Industry:

Services

Module:

SIGAFIS - Tax Records

Function:

MaFisIni

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 MaFisIni() function is responsible for initiating the entire MATXFIS process. It is the function that forms the array aNFCab (Tax Document Header) using the data entered in the parameters transmitted by the function, SX6 parameters, data from the Clients (SA1) and/or Suppliers (SA2) and Financial Nature (SED) tables, thus forming the tax document that will be generated.
 

03. HOW TO USE

The MaFisIni() function must be used in any operation involving MATXFIS, it must always be used before loading any item, as it builds the header (aNFCab) with data that interfere directly with the calculations of the items, the code architecture requires that the header be formed before the items are included and should only be called once for each tax document.

When, in some cases, there is a need and/or possibility that the header data is changed, as is the case with invoice inclusion interfaces, it is necessary to call the MaFisAlt() function with the header reference that needs to be changed, MaFisAlt("NF_UFORIGEM", cNovoUF) to redo the internal array (aNFCab) with the new information, and, according to the reference, redo the calculations of all items.

04. PARAMETERS

Order

Parameter

Type

Description

01

cCodCliFor

Character

Customer or supplier code

02

cCampo

Character

Supplier or customer store

03

cCliFor

Character

C:Customer, F:Supplier

04

cTipoNF

Character

Invoice Type ("N","D","B","C","P","I")

05

cTpCliFor

Character

Type of Customer/Supplier

06

aRelImp

Array

List of taxes supported in the file

07

cTpComp

Character

Type of complement

08

lInsere

Logical

Allows you to add taxes to the footer .T./.F.

09

cAliasP

Character

Products File Alias - ("SBI" for Store Front)

10

cRotina

Character

Name of the routine that is using the function

11

cTipoDoc

Character

Document Type

12

cEspecie

Character

Kind of document

13

cCodProsp

Character

Prospect code and store

14

cGrpCliFor

Character

Customer Group

15

cRecolheISS

Character

Pay ISS

16

cCliEnt

Character

Delivery customer code on the outgoing invoice

17

cLojEnt

Character

Delivery customer store delivery on the outgoing invoice

18

aTransp

Array

Carrier information [01]-State,[02]-TPTRANS

19

lEmiteNF

Logical

If it is issuing an invoice or tax receipt (Sigaloja)

20

lCalcIPI

Logical

Defines if IPI is calculated (SIGALOJA)

21

cPedido

Character

Sales Order

22

cCliFat

Character

Billing customer

23

cLojcFat

Character

Billing Customer Store