engine & database changes - primavera bss...linha integer proposal line number artigo string...

43
Engine & Database Changes V 8.0 Version 1.1 September 2011

Upload: others

Post on 22-Jul-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Engine & Database Changes V 8.0

Version 1.1

September 2011

Page 2: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 2

Index

Index ................................................................................................................................. 2

Introduction ....................................................................................................................... 6

Object Model ...................................................................................................................... 7

Business Entities (BE) ......................................................................................................7

CrmBEActividade (new) .................................................................................................... 7

CrmBELinhaOVendaCicloVenda (new) ................................................................................. 7

CrmBELinhaPropostaOPV (new) .......................................................................................... 7

CrmBELinhasPropostaOPV (new) ........................................................................................ 8

CrmBEOportunidade (new) ................................................................................................ 8

CrmBEParametros (new) ................................................................................................... 8

CrmBEPropostaOPV (new) ................................................................................................. 8

CrmBEPropostasOPV (new)................................................................................................ 9

CrmBETipoActividade (new) ............................................................................................... 9

Gcp Business Entities that were changed to Crm Business Entities: ......................................... 9

GcpBEDocumentoLiq ...................................................................................................... 11

GcpBEMovimentoBancario ............................................................................................... 11

GcpBEDocumentoTesouraria ............................................................................................ 11

RhpBECategoriaEscalao ................................................................................................... 11

RhpBECategoriaEscaloes ................................................................................................. 12

RhpBEIRTRemCategoria .................................................................................................. 12

RhpBEMovimento ........................................................................................................... 12

RhpBEProcRemuneracao ................................................................................................. 13

RhpBERemuneracaoIncidencia ......................................................................................... 13

Business Services (BS) .................................................................................................. 13

BSActividades ................................................................................................................ 13

BSTiposActividades ........................................................................................................ 14

CrmBSActividades .......................................................................................................... 14

CrmBSOportunidades ..................................................................................................... 14

CrmBSPropostas ............................................................................................................ 14

GcpBSLiquidacoes .......................................................................................................... 14

ICrmBSActividades ......................................................................................................... 14

Page 3: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 3

ICrmBSEntidadesExternas ............................................................................................... 14

IRhpBSCategoriasProfissionais ......................................................................................... 15

StdBSADU..................................................................................................................... 15

StdBSDefinicaoBD .......................................................................................................... 16

StdBSDialogos ............................................................................................................... 16

StdBSFicheiros .............................................................................................................. 16

StdBSMail ..................................................................................................................... 17

StdBSMapas .................................................................................................................. 17

StdBSTransaccoes .......................................................................................................... 18

StdBSVbaHost ............................................................................................................... 18

StdBSVbaProjecto .......................................................................................................... 19

StdBSVbaProjecto .......................................................................................................... 19

StdBSXML ..................................................................................................................... 19

Data Services (DS) ......................................................................................................... 20

BSActividades ................................................................................................................ 20

BSTiposActividades ........................................................................................................ 20

CrmDSActividades .......................................................................................................... 20

CrmDSOportunidades ..................................................................................................... 21

GcpDSClientes ............................................................................................................... 21

GcpDSLiquidacoes .......................................................................................................... 21

GcpDSMovimentosBancos, .............................................................................................. 21

GcpDSOutrosTerceiro ..................................................................................................... 22

ICrmDSActividades ........................................................................................................ 22

IRhpDSCategoriasProfissionais ......................................................................................... 22

IRhpDSInstrumentos ...................................................................................................... 23

Object GcpDSTesouraria, ................................................................................................ 23

STDDS ......................................................................................................................... 24

StdDSDefinicaoBD .......................................................................................................... 24

Data Model ....................................................................................................................... 26

Tables ............................................................................................................................ 26

AgentesQuimicos ........................................................................................................... 26

AntigoCadastroSegSocial ................................................................................................. 27

AreasFormacao .............................................................................................................. 27

Avencas........................................................................................................................ 27

Page 4: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 4

CabecCompras .............................................................................................................. 27

CabecDoc ..................................................................................................................... 27

CabecDocRascunhos ....................................................................................................... 27

CabecInternos ............................................................................................................... 28

CabecOportunidadesVenda .............................................................................................. 28

CabecTesouraria ............................................................................................................ 28

CabLiq .......................................................................................................................... 28

CaixaPostos .................................................................................................................. 29

CaixaPostosContas ......................................................................................................... 29

CategoriasEscaloes ......................................................................................................... 29

COP_Parametros ............................................................................................................ 29

Cursos.......................................................................................................................... 29

Cursos Ocorrencias ........................................................................................................ 30

DescritivosCRM (New) .................................................................................................... 30

DocumentosBancos ........................................................................................................ 30

EAPMapasAmortizacoes ................................................................................................... 30

EAPMapasMaisMenosValias .............................................................................................. 32

EmissaoQuadroPessoal ................................................................................................... 34

EntidadesFormadoras ..................................................................................................... 34

FuncCursos ................................................................................................................... 34

Funcionarios .................................................................................................................. 35

GCPDocumentosRascunho ............................................................................................... 35

GPR_DiarioTrabalho ....................................................................................................... 35

HorasExtras .................................................................................................................. 36

IECHistoricoCategorias .................................................................................................... 36

Independentes .............................................................................................................. 36

InstrumentoRemCategorias ............................................................................................. 37

LigacaoCCorrentesRHP .................................................................................................... 37

LimitesIsencaoRemuneracoes .......................................................................................... 37

LinhasCompras .............................................................................................................. 37

LinhasPropostasOPV (New) .............................................................................................. 37

LinhasTC2 ..................................................................................................................... 38

LogParametros .............................................................................................................. 38

MapaAux (Removed) ...................................................................................................... 38

Page 5: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 5

MotivosEstorno .............................................................................................................. 39

MovimentosBancos ......................................................................................................... 39

MovimentosFluxo ........................................................................................................... 39

MovimentosFuncionarios ................................................................................................. 39

MovimentosIndependentes .............................................................................................. 39

Paises .......................................................................................................................... 40

ParametrosCRM (New) .................................................................................................... 40

ParametrosGCP.............................................................................................................. 40

Profissoes ..................................................................................................................... 41

PropostasOPV (New)....................................................................................................... 41

Remuneracoes ............................................................................................................... 42

ResumoIva ................................................................................................................... 42

Tarefas ......................................................................................................................... 42

TC1.............................................................................................................................. 42

TiposCurso .................................................................................................................... 43

TiposTarefa ................................................................................................................... 43

TMP_Empresas .............................................................................................................. 43

Page 6: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 6

Introduction

This document presents the changes made to the engines and to the database since the v7.55 to v8.00. Only the changes registered

are mentioned.

In order to get a more precise and complete information, you are recommended to read the various documents

available in the PRIMAVERA KnowledgeBase, mainly “Engines Documentation” and “Database Documentation”.

PKB

Engines Documentation

Database Documentation

Page 7: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 7

Object Model

Business Entities (BE)

CrmBEActividade (new)

Property Type Description Change Type*1

IdFaseOVenda String Sales Opportunity phase identifier C

CrmBELinhaOVendaCicloVenda (new)

Property Type Description Change Type

ObrigaDocInterno Boolean Internal document required. R

ObrigaEncEfectuada Boolean Order required R

DescricaoFase String Phase description C

ObrigaCotacao Boolean Phase requires a quotation document C

ObrigaEncomenda Boolean Phase requires an order document C

Obrigatoria Boolean Mandatory phase C

CrmBELinhaPropostaOPV (new)

Property Type Description Change Type

IdOportunidade String Sales Opportunity phase identifier

C

NumProposta Integer Proposal number C

Linha Integer Proposal line number

Artigo String Item Code

Descricao String Item description C

Unidade String C

Quantidade Double Quantity C

FactorConv Double Conversion Factor for the base unit

C

PrecoCusto Double Cost price C

PrecoVenda Double Sale price C

Desconto1 Double Discount 1 (%) C

Desconto2 Double Discount 2 (%) C

Desconto3 Double Discount 3 (%) C

1 Change Type possible values: C – created; U – updated; R - removed

Page 8: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 8

Desconto Double Discount (%) C

ValorDesconto Double Discount Value C

Rentabilidade Double Profitability C

Margem Double Margin (%) C

Observacoes String Comments C

CrmBELinhasPropostaOPV (new)

Class that identifies a collection of Sales Opportunities Proposals Lines (Linhas de Propostas de Oportunidade de Venda).

CrmBEOportunidade (new)

Property Type Description Change Type

Moeda String Currency code. C

Resumo String Opportunity summary C

CrmBEParametros (new)

Property Type Description Change Type

TipoDocCotacao String Quotation document type. R

SerieCotacao String Quotation document series. R

TipoDocEncomenda String Order document type. C

SerieEncomenda String Order document series. C

MostraDocumento Boolean Indicates if the documents are shown to the user when saving.

C

CrmBEPropostaOPV (new)

Property Type Description Change Type

IdOportunidade String Sales Opportunity phase identifier

C

NumProposta Integer Proposal number. C

Descricao String Proposal description C

NaoTotalizadora Boolean Indicates that the proposal does not contribute to the totals of the sales opportunity.

C

Tipo Integer Proposal Type (0- Main; 1-Optional; 2- Alternative; 3-Supplemen;)

C

ModuloOrigem String Document that originated the proposal module

C

IdCabecOrigem String Document that originated the C

Page 9: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 9

proposal identifier

ModoPagamento String Payment term. C

CondPagamento String Payment condition. C

DescontoEntidade Double Entity discount (%). C

DescontoFinanceiro Double Financial discount(%) C

Valor Double Proposal Value C

ValorDesconto Double Discount Value C

Custo Double Proposal cost C

Rentabilidade Double Proposal profitability C

Margem Proposal margin. C

Observacoes Double Proposal remarks C

DocumentosGerados String Indicates whether there are already generated document to the proposal.

C

Linhas CrmBELinhasPropostaOPV

Proposal lines collection C

CrmBEPropostasOPV (new)

Class that identifies a collection of Sales Opportunities Proposals (Propostas de Oportunidade de Venda).

CrmBETipoActividade (new)

Property Type Description Change Type

TipoContacto String Contact type identifier to associate with the activities.

C

Gcp Business Entities that were changed to Crm Business Entities:

GcpBEActividade >> CrmBEActividade

GcpBEActividadeDoc >> CrmBEActividadeDoc

GcpBEActividadeDocs >> CrmBEActividadeDocs GcpBEAttach >> CrmBEAttach GcpBEAttachs >> CrmBEAttachs GcpBEAutorizacao >> CrmBEAutorizacao GcpBECampanha >> CrmBECampanha GcpBECicloVenda >> CrmBECicloVenda

Page 10: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 10

GcpBEContacto >> CrmBEContacto GcpBEContactos >> CrmBEContactos GcpBEEntidadeExterna >> CrmBEEntidadeExterna GcpBEEntidadesExternas >> CrmBeEntidadesExternas GcpBELicencaGcp >> CrmBELicenca GcpBELinhaActividadeCampanha >> CrmBELinhaActividadeCampanha GcpBELinhaActividadeEntidade >> CrmBELinhaActividadeEntidade GcpBELinhaActividadeNota >> CrmBELinhaActividadeNota GcpBEBELinhaActividadeOVenda >> CrmBELinhaActividadeOVenda GcpBELinhaAutorizacao >> CrmBELinhaAutorizacao GcpBELinhaCicloVenda >> CrmBELinhaCicloVenda GcpBELinhaContactoActividade >> CrmBELinhaContactoActividade GcpBELinhaContactoEntidade >> CrmBELinhaContactoEntidade GcpBELinhaContactoNota >> CrmBELinhaContactoNota GcpBELinhaContactoOVEnda >> CrmBELinhaContactoOVEnda

GcpBELinhaOVendaConcorrente >> CrmBELinhaOVendaConcorrente

GcpBELinhaOVendaNota >> CrmBELinhaOVendaNota

GcpBELinhasActividadeCampanhas >> CrmBELinhasActividadeCampanhas

GcpBELinhasActividadeEntidades >> CrmBELinhasActividadeEntidades GcpBELinhasActividadeNotas >> CrmBELinhasActividadeNotas GcpBELinhasActividadeOVenda >> CrmBELinhasActividadeOVenda GcpBELinhasAutorizacao >> CrmBELinhasAutorizacao GcpBELinhasCicloVenda >> CrmBELinhasCicloVenda GcpBELinhasContactoActividade >> CrmBELinhasContactoActividade GcpBELinhasContactoEntidade >> CrmBELinhasContactoEntidade GcpBELinhasContactoNota >>CrmBELinhasContactoNota GcpBELinhasContactoOVenda >> CrmBELinhasContactoOVenda GcpBELinhasOVendaCicloVenda >> CrmBELinhasOVendaCicloVenda

Page 11: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 11

GcpBELinhasOVendaConcorrente >> CrmBELinhasOVendaConcorrente

GcpBELinhasOVendaNota >> CrmBELinhasOVendaNota

GcpBEModoResposta >> CrmBEModoResposta

GcpBEOrigemContacto >> CrmBEOrigemContacto

GcpBEPeriodicidade >> CrmBEPeriodicidade

GcpBETipoContacto >> CrmBETipoContacto

GcpBETipos >> CrmBETipos GcpBETituloAcademico >> CrmBETituloAcademico

GcpBEDocumentoLiq

Property Type Description Change Type

DataIntroducao DateTime Data de introdução do documento C

GcpBEMovimentoBancario

Property Type Description Change Type

DataIntroducao DateTime Data de introdução do documento C

GcpBEDocumentoTesouraria

Property Type Description Change Type

DataIntroducao DateTime Data de introdução do documento C

RhpBECategoriaEscalao

Property Type Description Change Type

Descricao String User as also the possibility to define the respective

descriptions for the step of the respective category

selected.

C

Indice R

Page 12: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 12

RhpBECategoriaEscaloes

Updated class

RhpBEIRTRemCategoria

Property Type Description Change Type

Escalao Integer This parameter allows users to indicate what step of the

category. C

Base Boolean This parameter allows users to configure what

remunerations should be considered as base

remunerations.

R

RhpBEMovimento

Property Type Description Change Type

CategoriaEscalao Integer This parameter allows users to indicate what step

of the category. C

Base Boolean Remove property R

TotalBaseProcessamentoIliquidoEfectivo Double Remove property R

TotalBaseProcessamentoIliquido Double Remove property R

TotalBaseProcessamentoLiquido Double Remove property C

ValorVBaseIncidenciaIliquidoEfectivo Double This property will store the sum of effective gross

value of all remunerations included in the

calculation that are configured to be considered as

base remuneration for the % Remunerations.

C

ValorVBaseIncidenciaIliquido Double This property will store the sum of gross value of

all remunerations included in the calculation that

are configured to be considered as base

remuneration for the % Remunerations.

C

ValorVBaseIncidenciaLiquido Double This property will store the sum of liquid value of

all remunerations included in the calculation that

are configured to be considered as base

remuneration for the % Remunerations.

C

RemuneracoesBaseIncidencia Varchar(200) This property will store all the remunerations used

for the calculations of a percentage

Remuneration.

C

Page 13: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 13

RhpBEProcRemuneracao

Property Type Description Change Type

ValorVBaseIncidenciaIliquidoEfectivo Double This property will store the sum of effective gross

value of all remunerations included in the

calculation that are configured to be considered as

base remuneration for the % Remunerations.

C

ValorVBaseIncidenciaIliquido Double This property will store the sum of gross value of

all remunerations included in the calculation that

are configured to be considered as base

remuneration for the % Remunerations.

C

RhpBERemuneracaoIncidencia

Property Type Description Change Type

Remuneracao String %Remuneration C

Instrumento String Instrumento associated C

RemuneracaoBaseIncidencia String Base Remuneration for the

Instrumento in the

Remuneration

C

Business Services (BS)

BSActividades

DaContactoDefeitoEntidade

Parameter Type Description Possible values

TipoEntidade IN Entity type

Entidade IN Entity code

TipoTarefa IN Activity type

Page 14: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 14

BSTiposActividades

New method:: DaValorAtributoID

Parameter Type Description Possible values

IDTipoActividade IN Activity type identifier.

Atributo IN Field code to be returned.

CrmBSActividades

Method Description Change Type

ListaActividades Method renamed to LstTiposActividade U

LstActividade Activity list C

LstActividadesRelacionadas Related activities list C

LstAnexos Attachment list C

CrmBSOportunidades

Method Return Change Type

ActualizaPropostasOPV None C

EditaPropostasOPV CrmBEPropostasOPV C

CrmBSPropostas

New class for processing sales opportunities proposals.

GcpBSLiquidacoes

ValidaActualizacao: added entry date validation

ICrmBSActividades

Method Description Change Type

ListaActividades Method renamed to LstTiposActividade U

LstActividade Activity list C

LstActividadesRelacionadas Related activities list C

LstAnexos Attachment list C

ICrmBSEntidadesExternas

Method TransformarNoutraEntidadeBE method updated:

Page 15: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 15

Parameter Type Description Possible values

EntidadeExterna IN CrmBEEntidadeExterna

EntidadeResultante IN String

TipoEntidadeResultante IN String

ModoPagamento IN String

ModoRecebimento IN String

CondicaoPagamento IN String

IRhpBSCategoriasProfissionais

New public Method LstEscaloesCategoria - Lists the set of brackets defined for a category

Parameters Type Description Change Type

sCategoria String Category identifier C

New public Method GetNextStepCode – suggests the code for a new step record.

Parameters Type Description Change Type

sCategoria String Category identifier C

New public Method GetStepDescription – reads the description for a specific category step.

Parameters Type Description Change Type

sCategoria String Category identifier C

iEscalao Integer Identifier of the bracket to check C

New public Method ExistsStep– Verifies if a specific step exists for a specific category.

Parameters Type Description Change Type

sCategoria String Category identifier C

iEscalao Integer Identifier of the bracket to check C

StdBSADU

Method DaInfoExecucoes removed.

Method DaInfoExecucoesEX renamed to DaInfoExecucoes. - Returnsthe data of user alerts.

Parameters Type Description Change Type

Page 16: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 16

strIdAlerta String User alert identifier

lngTotalExec Long User alert total executions.

lngExecSucesso Long Total of successful executions of user Alert

lngExecManuais Long Manual executions

lngTempoMedioExec Long

StdBSDefinicaoBD

Method EditaDefCampo returns a StdBEDefCampoEx object.

Method EditaDefTabela removed

Method EditaDefTabelaEx renamed to EditaDefTabela. – Returns a collection with the definition of all the fields in a database table.

Parameters Type Description Change Type

strTabela String Table Name C

strNomeBD String Database Name C

Method ListaIndicesTabela removed.

Method ListaIndicesTabelaEx renamed to ListaIndicesTabela (new signature) – Returns a collection with all existing indexes on a

given table.

Parameters Type Description Change Type

strTabela String Table Name

strNomeBD String Database Name

StdBSDialogos

Method ConfiguraImpressora removed.

Method ConfiguraImpressoraEx renamed to ConfiguraImpressora (new signature). - Displays the printer configuration dialog.

StdBSFicheiros

Method CompactaPasta removed.

Method CompactaPastaEx renamed to CompactaPasta (new signature). - Compress a folder to a file.

Page 17: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 17

Parameters Type Description Change Type

strPasta String Folder identifier

ByRef strFicheiroZip String

intNivelCompressao Integer = 8 Compression level

StdBSMail

Method EnviaMail removed.

Method EnviaMailEx renamed to EnviaMail. – Send a email message.

Parameters Type Description Change Type

Perfil As String String MAPI profile name

ParaQuem String Contents of the field TO

CC String Contents of the field CC

BCC String Contents of the field BCC

Assunto String Message subject

Mensagem String Message body

AttachFich String Attachments list

MostraJanela Boolean = True Indicates if should be shown the configuration

window of the message before sending.

useSMTP Boolean = False Indicates if the message should e«be sent using

SMTP

EliminarFich String Delete the attachments after sending

ModoServico Boolean = False

StdBSMapas

Method AddParametro removed.

Method AddParametroEx renamed to AddParametro. – Add a parameter to the map.

Parameters Type Description Change Type

Page 18: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 18

sNomeParametro Variant Parameter name

vValor Variant Value

Method Impressora removed.

Method ImpressoraEx removed.

Method ImpressoraEx2 renamed to Impressora. - Definition of the printer .

Parameters Type Description Change Type

strAbvtApl As String = vbNullString Module abbreviation identifier

lnBatchMode Boolean = False Indicates the Batch mode

StdBSTransaccoes

Method BloqueiaTabela removed.

Method BloqueiaTabelaEx renamed to BloqueiaTabela - Locks a table

Parameters Type Description Change Type

Transaccao StdBETransaccao Object with the definitions of a transaction

Tabela String Table identifier

StdBSVbaHost

Method GuardaProjecto removed.

Method GuardaProjectoEx renamed to GuardaProjecto (new signature). – Saves the project.

Parameters Type Description Change Type

blnForcar Boolean = False Forces the save.

Method AbreProjecto removed.

Method AbreProjectoEx removed.

Method AbreProjectoEx2 renamed to AbreProjecto. (new signature) – Opens the project.

Page 19: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 19

Parameters Type Description Change Type

strAbvtApl String = vbNullString Module abbreviation identifier

blnBatchMode Boolean = False Indicates the Batch mode

StdBSVbaProjecto

Method GuardaProjecto removed.

Method GuardaProjectoEx renamed to GuardaProjecto. (new signature) - Saves the VBA project in the database.

Parameters Type Description Change Type

blnForcar Boolean = False Forces the save

StdBSVbaProjecto

Method AbreProjecto removed.

Method AbreProjectoEx renamed to AbreProjecto. (new signature) – Opens project

Parameters Type Description Change Type

Chave String Key identifier

Titulo String Title identifier

blnBatchMode Boolean = False Batch Mode

ProjectItems As Collection Project Itens Collection

GuardarInicialFicheiro Boolean Saves initial file

StdBSXML

Method MakeSimpleNode removed.

Method MakeSimpleNodeEx renamed to MakeSimpleNode (new signature) – Simple element construction (without attributes).

Parameters Type Description Change Type

strQuery String Query to select the father element

strName String Element name

Page 20: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 20

vntNodeValue Variant Element value

Data Services (DS)

BSActividades

New Method: DaContactoDefeitoEntidade

Parameter Type Description Possible values

TipoEntidade IN Entity type

Entidade IN Entity code

TipoTarefa IN Activity type

Contacto OUT Contact code associated with the entity.

BSTiposActividades

New Method: DaValorAtributoID

Parameter Type Description Possible values

IDTipoActividade IN Activity type identifier

Atributo IN Field code to be returned.

CrmDSActividades

Método Descrição Change Type

ListaActividades Returns the list of all types of activities Method renamed to LstTiposActividade

U

LstActividade Gives activity list Parameters:

IDActividade: Activity ID Executes the CRM_TarefasFiltradas Stored Procedure

C

LstActividades Gives activities list Parameters:

DataInicio: Start Date

DataFim: End date

Prioridades: Priorities

Estados: States

Tipos: Activities type

TextoEntidade: Search text for entities

TextoContacto: Search text for contacts

Texto: Search text for the description

Page 21: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 21

Executes CRM_TarefasFiltradas Stored Procedure

LstActividadesRelacionadas Related activities list Parameters:

IDActividade: Activity Id Executes CRM_RastreabilidadeActividades Stored Procedure

C

LstAnexos Gives activity attachments Parameters:

IDActividade: Activity Id

strPercursoAnexos: Folder path where the attachments are saved

Executes CRM_AnexosActividades Stored Procedure

C

CrmDSOportunidades

Method Return Change Type

ListaDocumentos StdBELista C

CrmDSPropostas: New class for processing sales opportunities proposals.

GcpDSClientes

Edita: Functions were changed to edit new field

Actualiza: Functions were changed to update field

GcpDSLiquidacoes

Edita: Functions were changed to edit new field

Actualiza: Functions were changed to update field

GcpDSMovimentosBancos,

Edita: Functions were changed to edit new field

Actualiza: Functions were changed to update field

Page 22: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 22

GcpDSOutrosTerceiro

Edita: Functions were changed to edit new field

Actualiza: Functions were changed to update field

ICrmDSActividades

Método Descrição Change Type

ListaActividades Returns the list of all activities types. Method renamed to LstTiposActividade

U

LstActividade Activity list Parameters:

IDActividade: Activity Id Executes CRM_TarefasFiltradas Stored Procedure

C

LstActividades Gives activities list Parameters:

DataInicio: Start Date

DataFim: End date

Prioridades: Priorities

Estados: States

Tipos: Activities type

TextoEntidade: Search text for entities

TextoContacto: Search text for contacts

Texto: Search text for the description Executes CRM_TarefasFiltradas Stored Procedure

LstActividadesRelacionadas Related activities list Parameters:

IDActividade: Activity Id Executes CRM_RastreabilidadeActividades Stored Procedure

C

LstAnexos Gives activity attachments Parameters:

IDActividade: Activity Id

strPercursoAnexos: Folder path where the attachments are saved

Executes CRM_AnexosActividades Stored Procedure

C

IRhpDSCategoriasProfissionais

New public Methods LstEscaloesCategoria

Parameters Type Description Change Type

Page 23: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 23

sCategoria String C

New public Methods GetNextStepCode – suggests the code for a new step record.

Parameters Type Description Change Type

sCategoria String C

New public Methods GetStepDescription – reads the description for a specific category step.

Parameters Type Description Change Type

sCategoria String C

iEscalao Integer C

New public Methods ExistsStep– Verifies if a specific step exists for a specific category.

Parameters Type Description Change Type

sCategoria String C

iEscalao Integer C

IRhpDSInstrumentos

Update Method LstRemuneracoesCategoria

Parameters Type Description Change Type

Instrumento String C

sCategoria String C

Object GcpDSTesouraria,

Edita: Functions were changed to edit new field

Actualiza: Functions were changed to update field

Page 24: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 24

STDDS

StdDSDefinicaoBD

Method EditaCampo removed.

Method EditaCampoEX removed

Method EditaCampoEX2 renamed to EditaCampo (new signature). - Returns the definition of a field from a table

Parameters Type Description Change Type

strTabela String Table name

strCampo String Field name

strNome String Database name

Method EditaDefTabela removed.

Method EditaDefTabelaEx renamed to EditaDefTabela (new signature).

Parameters Type Description Change Type

strTabela String Table Name

strNomeBD String Database Name

Method DaDefinicaoView removed.

Method DaDefinicaoViewEx renamed to DaDefinicaoView (new signature). – Returns the definition of a view

Parameters Type Description Change Type

strNomeView String View Name

strNomeBD String Database Name

Method DaDefinicaoStoredProcedure removed.

Method DaDefinicaoStoredProcedureEx renamed to DaDefinicaoStoredProcedure (new signature). - Returns the definition of a

stored procedure

Page 25: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 25

Parameters Type Description Change Type

strNomeSP String Stored procedure Name

strNomeBD String Database Name

Method DaDefinicaoUserDefinedFunction removed.

Method DaDefinicaoUserDefinedFunctionEx renamed to DaDefinicaoUserDefinedFunction (new signature). - Returns the

definition of an user defined function.

Parameters Type Description Change Type

strNomeUDF String User defined function Name

strNomeBD String Database Name

Method DaChavePrimariaTabela removed.

Method DaChavePrimariaTabelaEx renamed to DaChavePrimariaTabela (new signature). - Returns the primary key of a table.

Parameters Type Description Change Type

strNomeTabela String Table Name

strNomeBD String Database Name

Method ListaChavesEstrangeirasTabela removed.

Method ListaChavesEstrangeirasTabelaEx renamed to ListaChavesEstrangeirasTabela (new signature). - Returns the foreign

keys of a table.

Parameters Type Description Change Type

strNomeTabela String Table Name

strNomeBD String Database Name

Method ListaCheckConstraintsTabela removed.

Page 26: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 26

Method ListaCheckConstraintsTabelaEx renamed to ListaCheckConstraintsTabela (new signature). - Returns the check

constraints of a table.

Parameters Type Description Change Type

strNomeTabela String Table Name

strNomeBD String Database Name

Method ListaValoresDefeitoTabela removed.

Method ListaValoresDefeitoTabelaEx renamed to ListaValoresDefeitoTabela (new signature). - Returns the default values of a

table.

Parameters Type Description Change Type

strNomeTabela String Table Name

strNomeBD String Database Name

Method ListaIndicesTabela removed.

Method ListaIndicesTabelaEx renamed to ListaIndicesTabela (new signature). – Returns a collection with all existing indexes on a

table.

Parameters Type Description Change Type

strTabela String Table Name

strNomeBD String Database Name

Data Model

Tables

AgentesQuimicos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

NumeroOrdem varchar (10) Yes C

Page 27: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 27

AntigoCadastroSegSocial

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

DescargaCC Bit C

AreasFormacao

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

CNAEF varchar (15) yes C

CNAEFDescricao varchar (100) Yes C

Avencas

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

UltimoDiaMes bit Yes

CabecCompras

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Pais nvarchar(2) Yes

CabecDoc

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

IdOportunidade uniqueid Yes C

NumProposta smallint Yes C

Pais nvarchar Yes C

PaisFac nvarchar Yes C

CabecDocRascunhos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Page 28: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 28

IdOportunidade uniqueidentifier yes C

NumProposta smallint Yes C

Pais nvarchar (2) yes C

PaisFac nvarchar (2) yes C

CabecInternos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Pais nvarchar(2) Yes C

CabecOportunidadesVenda

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

DataUltimaAct datetime X C

Moeda nvarchar(3) X C

ObraID uniqueidentifier

Resumo text X C

Foreign keys

Type Columns Reference Table

Reference Columns

Change Type

FK Moeda Moedas Moeda C

CabecTesouraria

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

DataIntroducao datetime NULL

CabLiq

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

DataIntroducao datetime NULL

Page 29: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 29

CaixaPostos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

ContaComissaoMB nvarchar(5) yes X

RubricaComissaoMB nvarchar(35) yes X

CaixaPostosContas

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

CaixaPosto nvarchar(3) X C

Conta nvarchar(5) X

Movim nvarchar(5) X C

CategoriasEscaloes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Escalao int No 1 X U

Descricao varchar(50) Yes C

Indice R

COP_Parametros

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Moeda nvarchar(3) Yes x C

Cursos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

TipoCertificado varchar(2) C

Page 30: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 30

Cursos Ocorrencias

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Horario varchar(10) yes C

DescritivosCRM (New)

Column Data Type Possible values

Allow Nulls?

Default PK FK Change Type

Categoria nvarchar (10) C

Descricao nvarchar](100) C

Id uniqueidentifier x C

TipoDescritivo tinyint X C

DocumentosBancos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

ValorMinimo float yes C

EAPMapasAmortizacoes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

AceiteFiscal bit yes C

Ajuste decimal(28, 10) yes C

AmAcumuladaActual decimal(28, 10) yes C

AmExercicioBase decimal(28, 10) yes C

AmImpNaoAceite decimal(28, 10) yes C

AmortizacaoImpAnte decimal(28, 10) yes C

Page 31: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 31

AmortizacaoImpPeriodo decimal(28, 10) yes C

ClassFiscalDescricao varchar(100) yes C

Classificacao smallint yes C

ClassificacaoDescr nvarchar(100) Yes

C

ClassificacaoFiscal nvarchar(100) yes C

CodigJustificacao nvarchar(25) yes C

Conta nvarchar(20) yes C

ContaDescricao nvarchar(50) yes C

DataUtilizacao datetime yes C

DefeitoAcumulado decimal(28, 10) yes C

Estabelecimento nvarchar(50) yes C

Exercicio smallint yes C

ExercicioProcessamento smallint yes C

FAssociada nvarchar(25) yes C

Ficha nvarchar(25) yes C

FichaDescricao nvarchar(100) yes C

FichaGrupo nvarchar(25) yes C

IdLinha uniqueidentifier X C

IdProcessamentoPC uniqueidentifier yes X C

IdProcessamentoPF uniqueidentifier yes X C

ImparidadeAcumulada decimal(28, 10) yes C

ImparidadeExercicio decimal(28, 10) yes C

ImparidadeRecup decimal(28, 10) yes C

Individual bit yes C

IndividualMapa bit C

Justificacoes nvarchar(100) yes C

LimiteFiscal decimal(28, 10) yes C

Page 32: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 32

Mapa nvarchar(25) yes C

MetodoDep smallint yes C

Periodicidade bit yes C

PlanoContab nvarchar(25) yes C

PlanoFiscal nvarchar(25) yes C

ReduzidoValor bit C

Reparacao bit Yes C

TaxaAmortizacao real Yes C

TaxaDepreciacao real Yes C

TaxasPerdidasAcc decimal(28, 10) C

TipoImo nvarchar(15) Yes C

ValorActualFiscal decimal(28, 10) Yes C

ValorAquisicaoFiscal decimal(28, 10) Yes C

ValorContab decimal(28, 10) Yes C

VidaUtil smallint Yes C

EAPMapasMaisMenosValias

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

AceiteFiscal bit Yes C

AmAccActualFiscal decimal(28, 10) Yes C

AmAcFiscal decimal(28, 10) Yes C

AmaAcumulada decimal(28, 10) Yes C

AmAcumuladaActual decimal(28, 10) Yes C

AmortImpAcetites decimal(28, 10) C

AmortizacaoImparidade decimal(28, 10) Yes C

Page 33: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 33

AnoAquisicao smallint Yes C

ClassFiscalDescricao varchar(100) Yes C

Classificacao smallint Yes C

ClassificacaoDescr nvarchar(100) Yes

C

ClassificacaoFiscal nvarchar(100) Yes C

Coeficiente real Yes C

Conta nvarchar(20) Yes C

ContaDescricao nvarchar(50) Yes C

DefeitoAcumulado decimal(28, 10) C

Estabelecimento nvarchar(50) Yes C

Exercicio smallint Yes C

FAssociada nvarchar(25) Yes C

Ficha nvarchar(25) Yes C

FichaDescricao nvarchar(100) Yes C

FichaGrupo nvarchar(25) Yes C

IdLinha uniqueidentifier X C

IdProcessamentoPC uniqueidentifier Yes X C

IdProcessamentoPF uniqueidentifier Yes X C

ImparidadeAccFiscal decimal(28, 10) Yes C

ImparidadeAcumulada decimal(28, 10) Yes C

Individual bit Yes C

IndividualMapa bit C

MaisMenosValiaCbl decimal(28, 10) Yes C

MaisMenosValiaFscl decimal(28, 10) Yes C

Mapa nvarchar(25) Yes C

NaoTributada decimal(28, 10) Yes C

PlanoContab nvarchar(25) Yes C

Page 34: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 34

PlanoFiscal nvarchar(25) Yes C

Reparacao bit Yes C

SinalMMValiaCbl nvarchar(25) Yes C

SinalMMValiaFscl nvarchar(25) Yes C

TipoImo nvarchar(15) Yes C

ValorAquisicaoContab decimal(28, 10) Yes C

ValorAquisicaoFiscal decimal(28, 10) Yes C

ValorRealizacao decimal(28, 10) Yes C

EmissaoQuadroPessoal

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Nome nvarchar(80) U

EntidadesFormadoras

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

TipoEntidade Varchar(2)

FuncCursos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Duracao real

Horario varchar(10) Yes

Iniciativa varchar(2)

PeriodoRefFormacao varchar(10) Yes

SituacaoFrequencia varchar(2)

Page 35: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 35

Funcionarios

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

AplicabilidadeIRCT varchar(10) yes

CategoriaEscalao int Yes X C

ContribuinteNaoResid

ente

nvarchar(20) yes

GCPDocumentosRascunho

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

DataGravacao datetime Yes

EntComercial nvarchar(12) Yes

EntFacturacao nvarchar(12) Yes

Filial nvarchar(5) Yes

Id uniqueidentifier

Modulo char Yes

Observacoes ntext Yes

Serie nvarchar(5) Yes

TipoDoc nvarchar(5) Yes

TipoEntComercial nvarchar(1) Yes

TipoEntFacturacao nvarchar(1) Yes

TotalDoc float Yes

Utilizador varchar(20) Yes

GPR_DiarioTrabalho

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

TempoSobreposCT real C

TempoSobreposOper real C

Page 36: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 36

HorasExtras

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

MagneticoSegSocialR

etroactivo

nvarchar(3) Yes

TipoRendimentoNaoR

esidentes

nvarchar(5) Yes x

IECHistoricoCategorias

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Categoria nvarchar(10) x C

DataFinal datetime Yes C

DataInicial datetime Yes C

Id uniqueidentifier X C

ValorIEC float Yes C

Independentes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

CodSegSocial nvarchar(3) Yes x

ContribuinteNaoResid

ente

nvarchar(20) Yes C

Nacionalidade nvarchar(3) Yes C

NumBeneficiario nvarchar(15) Yes C

PercIncidencia real Yes C

RubricaIndependentes nvarchar(35) Yes C

Page 37: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 37

InstrumentoRemCategorias

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

DataAplicacao datetime

Escalao int 1 X C

IDLinha uniqueidentifier

LigacaoCCorrentesRHP

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

EntidadeAcores nvarchar(12) Yes C

EntidadeMadeira nvarchar(12) Yes C

EntidadeNaoResidentes nvarchar(12) Yes C

LimitesIsencaoRemuneracoes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Desconto nvarchar(5) X

ValorIsencao varchar (100) U

PercIncidencia float Yes

LinhasCompras

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

AcertoIVA float Yes

LinhasPropostasOPV (New)

Column Data Type Possible values

Allow Nulls?

Default PK FK Change Type

Artigo nvarchar (48) Yes X

Desconto float Yes

Desconto1 float Yes

Desconto2 float Yes

Desconto3 float Yes

Page 38: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 38

Descricao nvarchar (512) Yes

FactorConv float Yes

IdOportunidade uniqueidentifier X

Linha smallint X

Margem float Yes

NumProposta smallint X

Observacoes nvarchar (255) Yes

PrecoCusto float Yes

PrecoVenda float Yes

Quantidade float Yes

Rentabilidade float Yes

Unidade nvarchar (5) Yes X

ValorDesconto float Yes

LinhasTC2

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

HorasDias Tinyint C

LogParametros

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Chave varchar(25) X U

Valor varchar(100) Yes U

MapaAux (Removed)

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Bem nvarchar(25) X R

Page 39: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 39

Campo1 float Yes R

Campo2 float Yes R

Campo3 float Yes R

Campo4 float Yes R

Campo5 float Yes R

Mapa smallint X R

Posto smallint X R

MotivosEstorno

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

MovimentaStock bit C

MovimentosBancos

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

DataIntroducao datetime Yes

MovimentosFluxo

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Modulo nvarchar(1) Yes C

MovimentosFuncionarios

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

CategoriaEscalao int Yes X C

DomicilioFiscal smallint

MovimentosIndependentes

Column Data Type

Possible values Allow Nulls?

Default PK FK Change Type

SegSocialPercIncidencia real Yes

ValorSegSocialEntPatronal float Yes

ValorSegSocialIncidencia float Yes

Page 40: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 40

ValorSegSocialIndep float Yes

Paises

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

ISOA2 nvarchar(2) Yes

ISOA3 nvarchar(3) Yes

ISON nvarchar(3) yes

ParametrosCRM (New)

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

Calendario nvarchar (10) Yes C

CriarContactosAutomaticos bit C

Email nvarchar (10) Yes C

FecharOPVAutomaticamente bit C

Id tinyint C

MostraDocumento bit 1/0 Yes C

SerieCotacao nvarchar (5) Yes X C

SerieEncomenda nvarchar (5) Yes X C

TipoContactosAutomaticos nvarchar (15) Yes X C

TipoDocCotacao nvarchar(5) Yes X C

TipoDocEncomenda nvarchar(5) Yes X C

Foreign keys

Type Columns Reference Table

Reference Columns

Change Type

FK TipoDocCotacao DocumentosVenda Documento C

FK TipoDocCotacao,SerieCotacao SeriesVendas TipoDoc,Serie C

FK TipoDocEncomenda DocumentosVenda Documento C

FK TipoDocEncomenda,SerieEncomenda SeriesVendas TipoDoc,Serie C

ParametrosGCP

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

GeraAssinatura bit

LimiteAcerto float Yes

PermiteAcertosIVA bit yes

CriarContactosAutoma R

Page 41: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 41

ticos

FecharOPVAutomaticamente

R

TiposdeContactosAutomaticos

R

Profissoes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Activo bit yes C

Observacoes nvarchar(200) yes C

PropostasOPV (New)

Column Data Type Possible values

Allow Nulls?

Default PK FK Change Type

CondPagamento nvarchar (2) Yes X

Custo float Yes

DescontoEntidade float Yes

DescontoFinanceiro float Yes

Descricao nvarchar (255) Yes

IdCabecOrigem uniqueidentifier Yes

IdOportunidade uniqueidentifier X

Margem float Yes

ModoPagamento nvarchar (5) Yes X

ModuloOrigem char (1) Yes

NaoTotalizadora bit Yes

NumProposta smallint X

Observacoes Text Yes

Rentabilidade float Yes

Tipo smallint

Valor float Yes

ValorDesconto float Yes

Page 42: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 42

Remuneracoes

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

MagneticoSegSocialRetroactivo

nvarchar(3) Yes

SituacaoRetroactCGA nvarchar(3) Yes X

TipoRendimentoNaoResidentes

nvarchar(5) Yes X

ResumoIva

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

AcertoIVA float Yes C

Tarefas

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

IdFaseOVenda uniqueIdentifier X C

Foreign keys

Type Columns Reference Table

Reference Columns

Change Type

FK IdFaseOVenda LinhasCicloVenda Id C

TC1

Column Data Type Possible values

Allow Nulls? Default PK FK Change Type

ValorBonificacaoINEMFC decimal(12,2) yes

Page 43: Engine & Database Changes - PRIMAVERA BSS...Linha Integer Proposal line number Artigo String Item Code Descricao String Item description C Unidade String C Quantidade Double CQuantity

Pg 43

TiposCurso

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

Modalidade varchar(2)

TiposTarefa

Column Data Type Possible values

Nulls ?

Default PK FK Change Type

TemplateEmail nvarchar (512)

TipoContacto nvarchar(15) X C

Foreign keys

Type Columns Reference Table

Reference Columns

Change Type

FK TipoContacto TipoContactos TipoContacto C

TMP_Empresas

Column Data Type Possible values Allow Nulls?

Default PK FK Change Type

CodigoGLN

EmpresaFormacao

IFEntrepostoFiscal

IFNumOperador

IFTipoOperador

IFTrataIEC