Páginas filhas
  • DT PE GVFLDC6 - Add fields for Sales Order items on the PGV interface (SC6)

CONTENTS


In development

The field customization feature of the Sales Management Portal is in development.

01. GENERAL DATA


Product:

TOTVS Backoffice

Product Line:

Microsiga Protheus Line

Industry:

Backoffice

Module:

SIGAFAT - Billing

Function:

pgv.customfields - API for integration of custom fields

Scope:

Microsiga Protheus 12

Versions:

Microsiga Protheus 12

Compatible Countries:

All Countries

Operating Systems:

All

Compatible with the following Databases:

All

Access Level:

Level 1 (Customer Access)

Languages:

All


02. DESCRIPTION

Entry point GVFLDC6 allows entering custom fields of the Sales Order Items Table (SC6) to be used by the Sales Management Portal. These fields are used by the API for integration of custom fields (pgv.customfields).  This entry point is executed in the end point displayed below:

    • /api/pgv/customFields/

03. SYNTAX

GVFLDC6() ---> aRet


04. PARAMETERS

None.


05. RETURN


Name

Type

Description

Required

aSC6

Array

Unidimensional array that must contain, in each position, one field of Sales Order items, in character format. Examples:

aSC6 := {}
aSC6 := {"C6_XCUST", "C6_PEDCOM"}

Yes

Allowed Field Types

Only fields of the following types are allowed:

  • Character
  • Numeric
  • Date

The following field types are not allowed:

  • Logical
  • Memo
  • Virtual

06. EXAMPLE

Exemplo
#INCLUDE "PROTHEUS.CH"

//-----------------------------------------------------------
/*/{Protheus.doc} GVFLDC6
    This entry point is called by the API for integration
    of custom fields. To enter which additional
	fields of table SC6, custom or not, should
	be used by PGV besides the default ones
    @type function
    @author Squad CRM/Billing
    @since 4/20/2023
    @version 1.0
/*/
//-----------------------------------------------------------
user function GVFLDC6() as array
	local aSC6:= {} as array
	aAdd(aSC6, "C6_CC")
	aAdd(aSC6, "C6_PEDCOM")
    aAdd(aSC6, "C6_CHASSI")
    aAdd(aSC6, "C6_FCICOD")
    aAdd(aSC6, "C6_OBSCONT")
return aSC6