Interface ICctBSPendentes
Classe utilizada para obter serviços e regras de negócio sobre Contas Correntes - Pendentes.
Namespace: ICctBS100
Assembly: ICctBS100.dll
Syntax
[ComVisible(true)]
[Guid("CB6AF3DC-904E-48E4-9606-402743C32187")]
public interface ICctBSPendentes
Methods
Actualiza(CctBEPendente)
Actualiza o documento pendente na base de dados.
Declaration
void Actualiza(CctBEPendente ClsPendente)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente |
Actualiza(CctBEPendente, ref String)
Actualiza o documento pendente na base de dados.
Declaration
void Actualiza(CctBEPendente ClsPendente, ref string strAvisos)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
Actualiza(CctBEPendente, ref String, ref String)
Actualiza o documento pendente na base de dados.
Declaration
void Actualiza(CctBEPendente ClsPendente, ref string strAvisos, ref string IdDocLiqRet)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
System.String | IdDocLiqRet | Identifica o documento de retenção. |
Actualiza(CctBEPendente, ref String, ref String, ref String)
Actualiza o documento pendente na base de dados.
Declaration
void Actualiza(CctBEPendente ClsPendente, ref string strAvisos, ref string IdDocLiqRet, ref string IdDocLiqRetGar)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
System.String | IdDocLiqRet | Identifica o documento de retenção. |
System.String | IdDocLiqRetGar | Identifica o documento de garantia de retenção. |
ActualizaPendente(CctBEPendente, String)
Actualiza o documento pendente na base de dados.
Declaration
void ActualizaPendente(CctBEPendente ClsPendente, string strAvisos = "")
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
ActualizaPendenteTransferencia(CctBEPendente, String)
Actualiza pendente de transferência.
Declaration
void ActualizaPendenteTransferencia(CctBEPendente ClsPendente, string strAvisos = "")
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
ActualizaTransferencia(CctBEPendente, String)
Actualiza transferência.
Declaration
void ActualizaTransferencia(CctBEPendente ClsPendente, string strAvisos = "")
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | strAvisos | Devolve os avisos encontrados durante a actualização. |
ActualizaValorAtributo(String, String, Int32, Int32, String, String, String, Int32, String, Object)
Actualiza o valor de um atributo do Pendente.
Declaration
void ActualizaValorAtributo(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, string Atributo, dynamic Valor)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
System.String | Atributo | Identifica o atributo a actualizar. |
System.Object | Valor | Identifica o valor a gravar no atributo seleccionado. |
ActualizaValorAtributoID(String, String, String, Object)
Actualiza o valor de um atributo do pendente.
Declaration
void ActualizaValorAtributoID(string IDHistorico, string Estado, string Atributo, dynamic Valor)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
System.String | Atributo | Identifica o atributo a actualizar. |
System.Object | Valor | Identifica o valor a gravar no atributo seleccionado. |
ActualizaValorAtributos(String, String, Int32, Int32, String, String, String, Int32, StdBECampos)
Actualiza o valor de um conjunto de atributos do pendente.
Declaration
void ActualizaValorAtributos(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, StdBECampos Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
StdBECampos | Atributos | Identifica os atributos e os respectivos valores a actualizar. |
ActualizaValorAtributosID(String, String, StdBECampos)
Actualiza o valor de um conjunto de atributos do Pendente.
Declaration
void ActualizaValorAtributosID(string IDHistorico, string Estado, StdBECampos Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
StdBECampos | Atributos | Identifica os atributos e os respectivos valores a actualizar. |
ActualizaValorPendente(String, String, String, String, Int32, String, Int32, Int32, Double)
Actualiza o valor pendente.
Declaration
void ActualizaValorPendente(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, int NumTransferencia, int NumPrestacao, double ValorPendente)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento externo. |
System.String | Estado | Identifica o estado. |
System.Int32 | NumTransferencia | Número da transferência. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Double | ValorPendente | Valor do pendente. |
AdicionaRetencao(CctBEPendente, Double, Double, Double)
Adiciona uma retenção ao pendente
Declaration
void AdicionaRetencao(CctBEPendente objPendente, double Incidencia, double TotalRetencao, double PercentagemRetencao)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | objPendente | |
System.Double | Incidencia | O valor onde incidiu o percentagem de retenção |
System.Double | TotalRetencao | Total da retenção a adicionar |
System.Double | PercentagemRetencao | Percentagem usada para calcular a retenção |
CalculaDataVencimento(DateTime, String, Int32, String, String)
Calcula data de vencimento.
Declaration
DateTime CalculaDataVencimento(DateTime DataDoc, string CondPag, int Dias = 0, string TipoEntidade = "", string Entidade = "")
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | DataDoc | Data do documento. |
System.String | CondPag | Código da condição de pagamento. |
System.Int32 | Dias | |
System.String | TipoEntidade | Código do tipo de entidade |
System.String | Entidade | Código da entidade |
Returns
Type | Description |
---|---|
System.DateTime |
CalculaRetencoes(Double, Double, CctBEPendente)
Efectua o calculo das retenções.
Declaration
CctBEResumoRetencoes CalculaRetencoes(double ValorTotal, double TotalIva, CctBEPendente objPendente)
Parameters
Type | Name | Description |
---|---|---|
System.Double | ValorTotal | Identifica o valor total. |
System.Double | TotalIva | Identifica o total do Iva |
CctBEPendente | objPendente |
Returns
Type | Description |
---|---|
CctBEResumoRetencoes |
CalculaTotalRetencao(CctBEResumoRetencoes)
Efectua o calculo das retenções.
Declaration
double CalculaTotalRetencao(CctBEResumoRetencoes objRetencoes)
Parameters
Type | Name | Description |
---|---|---|
CctBEResumoRetencoes | objRetencoes |
Returns
Type | Description |
---|---|
System.Double |
CalculaTotalRetencaoGarantia(CctBEResumoRetencoes)
Efectua o calculo das retenções de garantia.
Declaration
double CalculaTotalRetencaoGarantia(CctBEResumoRetencoes objRetencoes)
Parameters
Type | Name | Description |
---|---|---|
CctBEResumoRetencoes | objRetencoes |
Returns
Type | Description |
---|---|
System.Double |
CompensaDocumentos(String, CctBEPendente)
Compensa dois documentos
Declaration
void CompensaDocumentos(string IDDocumentoOrigem, CctBEPendente objDoc)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Id documento original |
CctBEPendente | objDoc | Documento de estorno |
CompensaDocumentosID(String, String)
Compensa dois documentos
Declaration
void CompensaDocumentosID(string IDDocumentoOrigem, string IDDocumento)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Id documento original |
System.String | IDDocumento |
DaDefCamposUtil()
Devolve as definições dos campos do utilizador.
Declaration
StdBEDefCamposUtil DaDefCamposUtil()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaDefCamposUtilLinhas()
Devolve a definição de linhas doas campos do utilizador.
Declaration
StdBEDefCamposUtil DaDefCamposUtilLinhas()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaValorAtributo(String, String, Int32, Int32, String, String, String, Int32, String)
Devolve o valor de um atributo do Pendente.
Declaration
dynamic DaValorAtributo(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, string Atributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
System.String | Atributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributoID(String, String, String)
Devolve o valor de um atributo do Pendente.
Declaration
dynamic DaValorAtributoID(string IDHistorico, string Estado, string Atributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
System.String | Atributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributoIDLock(String, String, String)
Devolve o valor de um atributo do Pendente.
Declaration
dynamic DaValorAtributoIDLock(string IDHistorico, string Estado, string Atributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
System.String | Atributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributoLock(String, String, Int32, Int32, String, String, String, Int32, String)
Devolve o valor de um atributo do Pendente.
Declaration
dynamic DaValorAtributoLock(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, string Atributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
System.String | Atributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributos(String, String, Int32, Int32, String, String, String, Int32, String[])
Devolve o valor de um conjunto de atributos do Pendente.
Declaration
StdBECampos DaValorAtributos(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorAtributosID(String, String, String[])
Devolve o valor de um conjunto de atributos do Pendente.
Declaration
StdBECampos DaValorAtributosID(string IDHistorico, string Estado, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorAtributosIDLock(String, String, String[])
Devolve o valor de um conjunto de atributos do Pendente.
Declaration
StdBECampos DaValorAtributosIDLock(string IDHistorico, string Estado, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Estado do pendente. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorAtributosLock(String, String, Int32, Int32, String, String, String, Int32, String[])
Devolve o valor de um conjunto de atributos do Pendente.
Declaration
StdBECampos DaValorAtributosLock(string Modulo, string TipoDoc, int NumDocInt, int NumPrestacao, string Serie, string Filial, string Estado, int NumTransferencia, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.Int32 | NumDocInt | Identifica o numero do documento. |
System.Int32 | NumPrestacao | Identifica o numero da prestação. |
System.String | Serie | Identifica a série do pendente. |
System.String | Filial | Identifica a filial do pendente. |
System.String | Estado | Identifica o estado do pendente. |
System.Int32 | NumTransferencia | Identifica o numero da transferencia. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorOriginal(String, String, String, String, Int32, String, ref Double, ref String, ref Double, ref Boolean, ref Double, ref Double, Int32, Int32)
Devolve o valor original.
Declaration
void DaValorOriginal(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, ref double ValorOriginal, ref string MoedaOriginal, ref double CambioOriginal, ref bool MoedaUEMOriginal, ref double CambioMBaseOriginal, ref double CambioMAltOriginal, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento. M - Contas Correntes, V - Vendas, C - Compras. |
System.String | TipoDoc | Código do tipo de documento. |
System.String | strSerie | Série do documento. |
System.Int32 | NumDoc | Número do documento. |
System.String | Estado | Identifica o estado. |
System.Double | ValorOriginal | Valor Original. |
System.String | MoedaOriginal | Moeda Original. |
System.Double | CambioOriginal | Câmbio Original. |
System.Boolean | MoedaUEMOriginal | Moeda de trabalho Original. |
System.Double | CambioMBaseOriginal | Câmbio da moeda base original. |
System.Double | CambioMAltOriginal | Câmbio da moeda alternativa original. |
System.Int32 | NumPrestacao | Número de prestação do documento. |
System.Int32 | NumTransferencia | Número de transferência do documento. |
Edita(String, String, String, String, Int32, Int32, Int32)
Edita o documento pendente.
Declaration
CctBEPendente Edita(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento pendente. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
Returns
Type | Description |
---|---|
CctBEPendente |
EditaID(String)
Edita um pendente.
Declaration
CctBEPendente EditaID(string IDHistorico)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico |
Returns
Type | Description |
---|---|
CctBEPendente |
EditaPendenteEstado(String, String, String, String, Int32, String, Int32, Int32)
Edita o documento pendente.
Declaration
CctBEPendente EditaPendenteEstado(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, int NumTransferencia, int NumPrestacao = 1)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento pendente. |
System.String | Estado | Estado do pendente. |
System.Int32 | NumTransferencia | Número de transferência. |
System.Int32 | NumPrestacao | Número da prestação. |
Returns
Type | Description |
---|---|
CctBEPendente |
EditaPendenteEstadoID(String, String)
Edita o documento pendente.
Declaration
CctBEPendente EditaPendenteEstadoID(string IDHistorico, string Estado)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | ID do Histórico. |
System.String | Estado | Estado do pendente. |
Returns
Type | Description |
---|---|
CctBEPendente |
EditaPendentesContratoFactoring(String)
Edita todos os pendentes atuais de um determinado contrato de factoring de fornecedor
Declaration
CctBEPendentes EditaPendentesContratoFactoring(string ContratoFactoring)
Parameters
Type | Name | Description |
---|---|---|
System.String | ContratoFactoring |
Returns
Type | Description |
---|---|
CctBEPendentes | CctBEPendentes |
EditaPendentesDoc(String, String, Int32, String, String, Boolean)
Edita todos os pendentes actuais de um determinado documento
Declaration
CctBEPendentes EditaPendentesDoc(string Modulo, string TipoDoc, int NumDocInt, string Serie, string Filial, bool IgnoraLiquidados = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | Modulo | Módulo do documento |
System.String | TipoDoc | Tipo de documento |
System.Int32 | NumDocInt | Número do documento |
System.String | Serie | Série do documento |
System.String | Filial | Filial do documento |
System.Boolean | IgnoraLiquidados | Permite trazer apenas os documentos não liquidados |
Returns
Type | Description |
---|---|
CctBEPendentes |
EstornaDocumento(String, CctBEPendente, String, String)
Gravar Estorno
Declaration
bool EstornaDocumento(string IDDocumentoOrigem, CctBEPendente DocEstrono, string Motivo, string Avisos = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Id Documento Origem |
CctBEPendente | DocEstrono | Documento de Estorno |
System.String | Motivo | Motivo Estorno |
System.String | Avisos | Avisos |
Returns
Type | Description |
---|---|
System.Boolean | Se gravou com Sucesso |
Existe(String, String, String, String, Int32, Int32, Int32)
Verifica se o documento pendente existe em pendentes.
Declaration
bool Existe(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDocInt, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDocInt | Número do documento pendente. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
Returns
Type | Description |
---|---|
System.Boolean |
ExisteDocExterno(String, String, String, String, String, String, String, Int32, Int32)
Verifica se o documento pendente existe em pendentes.
Declaration
bool ExisteDocExterno(string Filial, string Modulo, string TipoDoc, string strSerie, string NumDoc, string TipoEntidade, string Entidade, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.String | NumDoc | Número do documento externo. |
System.String | TipoEntidade | Tipo da entidade pendente. |
System.String | Entidade | Código da entidade pendente. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
Returns
Type | Description |
---|---|
System.Boolean |
ExisteID(String)
Verifica a existencia de um pendente no historico.
Declaration
bool ExisteID(string IDHistorico)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico |
Returns
Type | Description |
---|---|
System.Boolean |
ExistePendenteEstado(String, String, String, String, Int32, String, Int32, Int32)
Verifica se o documento pendente existe em pendentes.
Declaration
bool ExistePendenteEstado(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDocInt, string Estado, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDocInt | Número do documento pendente. |
System.String | Estado | Estado do pendente. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da Transferência. |
Returns
Type | Description |
---|---|
System.Boolean |
ExistePendenteEstadoID(String, String)
Verifica a existencia de um estado associado ao pendente.
Declaration
bool ExistePendenteEstadoID(string IDHistorico, string Estado)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Identifica o estado. |
Returns
Type | Description |
---|---|
System.Boolean |
IncrementarValorPendente(String, String, String, String, Int32, Double, String, Int32, Int32)
Incrementa o valor pendente.
Declaration
void IncrementarValorPendente(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, double Valor, string Estado, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento externo. |
System.Double | Valor | Valor a incrementar. |
System.String | Estado | Identifica o estado. |
System.Int32 | NumPrestacao | Número de prestação. |
System.Int32 | NumTransferencia | Número de transferência. |
LstExtracto(CctBEParamsCCTExtracto)
Lista para carregamento da grelha do extracto.
Declaration
StdBELista LstExtracto(CctBEParamsCCTExtracto Params)
Parameters
Type | Name | Description |
---|---|---|
CctBEParamsCCTExtracto | Params | Objecto com os parametros necessários para a consulta. |
Returns
Type | Description |
---|---|
StdBELista |
LstMovimentosTesourariaLiquidacao(String)
Devolve uma lista dos movimentos de tesouraria liquidados.
Declaration
StdBELista LstMovimentosTesourariaLiquidacao(string IDHistorico)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | Identifica o id do histórico. |
Returns
Type | Description |
---|---|
StdBELista |
LstPendentes(String, String, String, String, String, String, DateTime, DateTime, String, Int32, ref Boolean, Boolean, ref Double[])
Devolve uma lista com os pendentes. A lista tem a seguinte estrutura:
Declaration
StdBELista LstPendentes(string TipoEntidade, string EntidadeInicial, string EntidadeFinal, string TipoConta, string Moeda, string Obra, DateTime DataVencimentoIni, DateTime DataVencimentoFim, string MoedaTrab, int TipoCambio, ref bool EntidadesAssociadas, bool AgrupaIdade, ref double[] Saldos)
Parameters
Type | Name | Description |
---|---|---|
System.String | TipoEntidade | Identifica o tipo de entidade. |
System.String | EntidadeInicial | Identifica a entidade inicial de um intervalo de entidades. |
System.String | EntidadeFinal | Identifica a entidade final de um intervalo de entidades (apenas se o parametro EntidadesAssociadas fôr Falso). |
System.String | TipoConta | Lista que identifica o(s) tipo(s) de conta a analisar, no Formato Conta, Estado, Modulo, Documento. Ex: "(TipoConta = 'CCC' AND (Estado IN ('PEN')) AND ( ((Modulo='V' AND TipoDoc IN ('DV', 'FA', 'NC', 'ND', 'VD'))) OR ((Modulo='C' AND TipoDoc IN ('VFA', 'VNC', 'VND', 'VVD'))) OR ((Modulo='M' AND TipoDoc IN ('ADC', 'CSG', 'FA', 'FAC', 'NCC', 'NDC', 'NDF', 'VEC'))))) OR (TipoConta = 'CLR' AND (Estado IN ('ACT', 'DES', 'EAC')) AND ( ((Modulo='M' AND TipoDoc IN ('LTC')))))". 'PriGlobal: IGNORE |
System.String | Moeda | Identifica a moeda dos pendentes. |
System.String | Obra | Identifica o Id da obra a que estão associados os pendentes. |
System.DateTime | DataVencimentoIni | Identifica a data de vencimento inicial de um intervalo. |
System.DateTime | DataVencimentoFim | Identifica a data de vencimento final de um intervalo. |
System.String | MoedaTrab | Identifica a moeda de trabalho (a moeda em que vão ser apresentados os valores). |
System.Int32 | TipoCambio | Identifica o Tipo de Câmbio a ser utilizado (Histórico/Actual). |
System.Boolean | EntidadesAssociadas | Identifica se a lista de epdentes inclui a lista das entidades associades. No caso afirmativo apenas será considarada a EntidadeIncial. |
System.Boolean | AgrupaIdade | |
System.Double[] | Saldos | Array que vai devolver os saldos dos Valores Pendentes pela seguinte ordem (Total Pendente Original, Total Pendente Actual, Total Pendente Original Corrigido, Total Pendente Actual Corrigido) |
Returns
Type | Description |
---|---|
StdBELista |
LstPendentesALiquidar(String, String, String, String, DateTime, String)
Devolve uma lista com os pendentes a liquidar.
Declaration
StdBELista LstPendentesALiquidar(string Entidade, string TipoEntidade, string TipoConta, string Moeda, DateTime DataLimite, string Estados)
Parameters
Type | Name | Description |
---|---|---|
System.String | Entidade | Identifica a entidade. |
System.String | TipoEntidade | Identifica o tipo de entidade. |
System.String | TipoConta | Identifica o tipo de conta. |
System.String | Moeda | Identifica a moeda dos pendentes. |
System.DateTime | DataLimite | Identifica a data até à qual os pendentes serão considerados. |
System.String | Estados | Identifica os estados dos pendentes a considerar. |
Returns
Type | Description |
---|---|
StdBELista |
LstPendentesAPagar(String, String, String, String, String, String, String)
Devolve uma lista com os pendentes a pagar.
Declaration
StdBELista LstPendentesAPagar(string Entidade, string TipoEntidade, string TipoConta, string Moeda, string Estados, string Filial = "", string Projectos = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | Entidade | Identifica a entidade. |
System.String | TipoEntidade | Identifica o tipo de entidade. |
System.String | TipoConta | Identifica o tipo de conta. |
System.String | Moeda | Identifica a moeda dos pendentes. |
System.String | Estados | Identifica os estados dos pendentes. |
System.String | Filial | Identifica a filial seleccionada. |
System.String | Projectos | Identifica os projectos. |
Returns
Type | Description |
---|---|
StdBELista |
LstPendentesAReceber(String, String, String, String, String, String, String)
Devolve uma lista com os pendentes a receber.
Declaration
StdBELista LstPendentesAReceber(string Entidade, string TipoEntidade, string TipoConta, string Moeda, string Estados, string Filial = "", string Projectos = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | Entidade | Identifica a entidade. |
System.String | TipoEntidade | Identifica o tipo de entidade. |
System.String | TipoConta | Identifica o tipo de conta. |
System.String | Moeda | Identifica a moeda dos pendentes. |
System.String | Estados | Identifica os estados dos pendentes. |
System.String | Filial | Identifica a filial seleccionada. |
System.String | Projectos | Identifica os projectos. |
Returns
Type | Description |
---|---|
StdBELista |
LstPendentesCliente(String)
Listagem de pendentes por cliente.
Declaration
StdBELista LstPendentesCliente(string Cliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | Cliente | Código do cliente. |
Returns
Type | Description |
---|---|
StdBELista |
NumInternoPendente(String, String, String, String, String, String, String, Int32, Int32)
Devolve o número interno do documento pendente.
Declaration
int NumInternoPendente(string Filial, string Modulo, string TipoDoc, string Serie, string NumDoc, string TipoEntidade, string Entidade, int NumPrestacao = 1, int NumTransferancia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | Serie | Série do documento pendente. |
System.String | NumDoc | Número do documento externo. |
System.String | TipoEntidade | Tipo da entidade pendente. |
System.String | Entidade | Código da entidade pendente. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferancia | Número da transferência. |
Returns
Type | Description |
---|---|
System.Int32 |
PreencheCompensacao(ref CctBEDocumentoLiq, String, CctBEPendente)
Preenche documento de compensação
Declaration
void PreencheCompensacao(ref CctBEDocumentoLiq objLiq, string IDDocumentoOrigem, CctBEPendente objDoc)
Parameters
Type | Name | Description |
---|---|---|
CctBEDocumentoLiq | objLiq | Documento de compensação |
System.String | IDDocumentoOrigem | Id documento original |
CctBEPendente | objDoc | Documento de estorno |
PreencheCompensacaoID(ref CctBEDocumentoLiq, String, String)
Preenche documento de compensação
Declaration
void PreencheCompensacaoID(ref CctBEDocumentoLiq objLiq, string IDDocumentoOrigem, string IDDocumento)
Parameters
Type | Name | Description |
---|---|---|
CctBEDocumentoLiq | objLiq | Documento de compensação |
System.String | IDDocumentoOrigem | Id documento original |
System.String | IDDocumento | Id documento de estorno |
PreencheDadosDocumentoEstorno(String, String, String, String, String)
Preenche documento de estorno
Declaration
CctBEPendente PreencheDadosDocumentoEstorno(string IDDocumentoOrigem, string Documento, string Serie, string MotivoEstorno, string Observacoes)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Identificador do documento orginal |
System.String | Documento | Tipo Documento |
System.String | Serie | Serie |
System.String | MotivoEstorno | Motivo de Estorno |
System.String | Observacoes | Observações |
Returns
Type | Description |
---|---|
CctBEPendente | Documento de estorno |
PreencheDadosDocumentoEstorno(String, String, String, String, String, ref DateTime)
Preenche documento de estorno
Declaration
CctBEPendente PreencheDadosDocumentoEstorno(string IDDocumentoOrigem, string Documento, string Serie, string MotivoEstorno, string Observacoes, ref DateTime DataDocumentoEstorno)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Identificador do documento orginal |
System.String | Documento | Tipo Documento |
System.String | Serie | Serie |
System.String | MotivoEstorno | Motivo de Estorno |
System.String | Observacoes | Observações |
System.DateTime | DataDocumentoEstorno | Data Documento de Estorno |
Returns
Type | Description |
---|---|
CctBEPendente | Documento de estorno |
PreencheDadosDocumentoEstorno(String, String, String, String, String, ref DateTime, ref DateTime)
Preenche documento de estorno
Declaration
CctBEPendente PreencheDadosDocumentoEstorno(string IDDocumentoOrigem, string Documento, string Serie, string MotivoEstorno, string Observacoes, ref DateTime DataDocumentoEstorno, ref DateTime DataIntroducao)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Identificador do documento orginal |
System.String | Documento | Tipo Documento |
System.String | Serie | Serie |
System.String | MotivoEstorno | Motivo de Estorno |
System.String | Observacoes | Observações |
System.DateTime | DataDocumentoEstorno | Data Documento de Estorno |
System.DateTime | DataIntroducao | Data de Introdução |
Returns
Type | Description |
---|---|
CctBEPendente | Documento de estorno |
PreencheDadosDocumentoEstorno(String, String, String, String, String, ref DateTime, ref DateTime, CctBEPendente)
Preenche documento de estorno
Declaration
CctBEPendente PreencheDadosDocumentoEstorno(string IDDocumentoOrigem, string Documento, string Serie, string MotivoEstorno, string Observacoes, ref DateTime DataDocumentoEstorno, ref DateTime DataIntroducao, CctBEPendente DocOrigem)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDDocumentoOrigem | Identificador do documento orginal |
System.String | Documento | Tipo Documento |
System.String | Serie | Serie |
System.String | MotivoEstorno | Motivo de Estorno |
System.String | Observacoes | Observações |
System.DateTime | DataDocumentoEstorno | Data Documento de Estorno |
System.DateTime | DataIntroducao | Data de Introdução |
CctBEPendente | DocOrigem | Documento origem |
Returns
Type | Description |
---|---|
CctBEPendente | Documento de estorno |
PreencheDadosRelacionados(CctBEPendente)
Preenche o documento pendente com os valores sugeridos por defeito de acordo com a opção escolhida.
Declaration
CctBEPendente PreencheDadosRelacionados(CctBEPendente ClsPendente)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente |
Returns
Type | Description |
---|---|
CctBEPendente |
PreencheDadosRelacionados(CctBEPendente, ref Int32)
Preenche o documento pendente com os valores sugeridos por defeito de acordo com a opção escolhida.
Declaration
CctBEPendente PreencheDadosRelacionados(CctBEPendente ClsPendente, ref int Preenche)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.Int32 | Preenche | Opção que permite preencher o documento de pendente. Objecto do tipo: PreencheRelacaoPendentes. |
Returns
Type | Description |
---|---|
CctBEPendente |
PreencheRegimeIva(CctBEPendente)
Dado um documento com os dados minimos preenchidos, preenche o campo RegimeIva através das regras dos campos RegimeIvaReembolsos e EspacoFiscal.
Declaration
CctBEPendente PreencheRegimeIva(CctBEPendente Documento)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | Documento | Documento a utilizar no preenchimento. |
Returns
Type | Description |
---|---|
CctBEPendente |
Remove(String, String, String, String, Int32, Int32, Int32, Boolean)
Remove o documento pendente.
Declaration
void Remove(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDocInt, int NumPrestacao = 1, int NumTransferencia = 0, bool Conversao = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDocInt | |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
System.Boolean | Conversao | Indica se é chamado numa transformação de documentos. |
RemoveID(String)
Remove o documento pendente.
Declaration
void RemoveID(string IDHistorico)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | Identificador do pendente no histórico. |
RemovePendente(String, String, String, String, Int32, String, Int32, Int32)
Remove pendente.
Declaration
void RemovePendente(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, int NumTransferencia, int NumPrestacao = 1)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento externo. |
System.String | Estado | Identificador do Estado. |
System.Int32 | NumTransferencia | Identificador do Número de Tranferência. |
System.Int32 | NumPrestacao | Número da prestação. |
RemovePendenteEstadoID(String, String)
Remove o estado associado a um pendente.
Declaration
void RemovePendenteEstadoID(string IDHistorico, string Estado)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | Estado | Identifica o estado. |
RemovePendenteGerado(String, String, String, Int32, String, String, String, String, Int32, String, Int32, Int32)
Remove o documento pendente gerado.
Declaration
void RemovePendenteGerado(string FilialLiq, string TipoDocLiq, string strSerieLiq, int NumDocLiq, string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, int NumTransferencia, int NumPrestacao = 1)
Parameters
Type | Name | Description |
---|---|---|
System.String | FilialLiq | Código da filial do documento de liquidação. |
System.String | TipoDocLiq | Código do tipo do documento de liquidação . |
System.String | strSerieLiq | Série da Liquidacao. |
System.Int32 | NumDocLiq | Número do documento do documento de liquidação. |
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento pendente. |
System.String | Estado | Estado do pendente. |
System.Int32 | NumTransferencia | Número da transferência. |
System.Int32 | NumPrestacao | Número da prestação. |
SQLQueryConsultaExtracto(CctBEParamsCCTExtracto)
Devolve a instrução SQL para a consulta do extracto.
Declaration
string SQLQueryConsultaExtracto(CctBEParamsCCTExtracto Params)
Parameters
Type | Name | Description |
---|---|---|
CctBEParamsCCTExtracto | Params | Objecto com os parametros necessários para a consulta. |
Returns
Type | Description |
---|---|
System.String |
SQLQueryConsultaPendentes(CctBEParamsCCTPendentes)
Devolve a instrução SQL para a consulta de pendentes.
Declaration
string SQLQueryConsultaPendentes(CctBEParamsCCTPendentes Params)
Parameters
Type | Name | Description |
---|---|---|
CctBEParamsCCTPendentes | Params | Objecto com os parametros necessários para a consulta. |
Returns
Type | Description |
---|---|
System.String |
ValidaActualizacao(CctBEPendente, ref String)
Efectua as validações necessárias à actualização do documento.
Declaration
bool ValidaActualizacao(CctBEPendente ClsPendente, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaActualizacao(CctBEPendente, ref String, ref String)
Declaration
bool ValidaActualizacao(CctBEPendente ClsPendente, ref string StrErro, ref string StrAvisos)
Parameters
Type | Name | Description |
---|---|---|
CctBEPendente | ClsPendente | |
System.String | StrErro | |
System.String | StrAvisos |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaRemocao(String, String, String, String, Int32, ref String, Int32, Int32, Boolean)
Efectua as validações necessárias para a remoção do documento
Declaration
bool ValidaRemocao(string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, ref string StrErro, int NumPrestacao = 1, int NumTransferencia = 0, bool Conversao = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | Filial | Código da filial. |
System.String | Modulo | Módulo do documento pendente. |
System.String | TipoDoc | Código do tipo do documento pendente. |
System.String | strSerie | Série do documento pendente. |
System.Int32 | NumDoc | Número do documento pendente. |
System.String | StrErro | Devolve a descrição do erro. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
System.Boolean | Conversao | Identifica se o documento é convertido. |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaRemocaoGerado(String, String, String, Int32, String, String, String, String, Int32, String, ref String, Int32, Int32)
Efectua as validações necessárias para a remoção do documento gerado
Declaration
bool ValidaRemocaoGerado(string FilialLiq, string TipoDocLiq, string strSerieLiq, int NumDocLiq, string Filial, string Modulo, string TipoDoc, string strSerie, int NumDoc, string Estado, ref string StrErro, int NumPrestacao = 1, int NumTransferencia = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | FilialLiq | Código da filial. |
System.String | TipoDocLiq | Código do tipo do documento pendente. |
System.String | strSerieLiq | Série do documento pendente. |
System.Int32 | NumDocLiq | Número do documento pendente. |
System.String | Filial | Identifica a filial. |
System.String | Modulo | Identifica o modulo. |
System.String | TipoDoc | Identifica o tipo de documento. |
System.String | strSerie | Identifica a série. |
System.Int32 | NumDoc | Identifica o numero do documento. |
System.String | Estado | Identifica o estado. |
System.String | StrErro | Descrição do erro devolvido pela função. |
System.Int32 | NumPrestacao | Número da prestação. |
System.Int32 | NumTransferencia | Número da transferência. |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaRemocaoID(String, ref String)
Efectua a validação da remoção de um pendente.
Declaration
bool ValidaRemocaoID(string IDHistorico, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
System.String | IDHistorico | |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |