Páginas filhas
  • DT PE GVFLDC5 - Add fields to Sales Order Header on the PGV interface (SC5)

CONTEÚDO



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 GVFLDC5 allows entering custom fields of the Sales Order Header Table (SC5) 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

GVFLDC5() ---> aRet


04. PARAMETERS

None.

05. RETURN


Name

Type

Description

Required

aSC5

Array

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

aSC5 := {}
aSC5 := {"C5_XCUST", "C5_PESOL"}

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


Example
#INCLUDE "PROTHEUS.CH"

//-----------------------------------------------------------
/*/{Protheus.doc} GVFLDC5
    This entry point is called by the API for integration
    of custom fields. To enter which additional
	fields of table SC5, 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 GVFLDC5()
	local aSC5:= {}
	aAdd(aSC5, "C5_PESOL")
	aAdd(aSC5, "C5_PBRUTO")
	aAdd(aSC5, "C5_RECFAUT")
	aAdd(aSC5, "C5_DATA1")
	aAdd(aSC5, "C5_VOLUME1")
return aSC5