Table of Contents

Class UctVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Uncollectible Customer Transactions

[AttTable("Uct", 20240109)]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.UseDimensions })]
[AttTableOrderBy("debtDate", OrderTypes.Descending)]
[AttTableVOInfo(typeof(UctAttInfo))]
[AttTableMaintenance(typeof(UctMaintenance))]
[AttRelationShip(typeof(ClVO), RelationShipTypes.OneToOne, new string[] { "[Uct].[no]", "[Cl].[no]", "[Uct].[estab]", "[Cl].[estab]" })]
public class UctVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
UctVO

Remarks

Movimentos Incobráveis de Clientes

Properties

CcVO

[AttExternalCollection(typeof(CcVO), new string[] { "cc.ccstamp", "ccstamp" })]
public CcVO CcVO { get; }

Property Value

CcVO

ClVO

[AttExternalCollection(typeof(ClVO), new string[] { "cl.no", "no", "cl.estab", "estab" })]
public ClVO ClVO { get; }

Property Value

ClVO

ccCredit

Current account credit amount.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal ccCredit { get; set; }

Property Value

decimal

ccCreditm

Current account credit amount in foreign currency.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal ccCreditm { get; set; }

Property Value

decimal

ccDebt

Current account debit amount.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal ccDebt { get; set; }

Property Value

decimal

ccDebtm

Current account debit amount in foreign currency.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal ccDebtm { get; set; }

Property Value

decimal

ccInfo

[AttVirtualField]
[AttHidden]
public string ccInfo { get; set; }

Property Value

string

ccStamp

Stamp of customer current account movement ccstamp

[AttForeignKey(typeof(CcVO), HiddenField = false)]
[AttLenght(25)]
public string ccStamp { get; set; }

Property Value

string

clstamp

[AttVirtualField]
[AttHidden]
public string clstamp { get; set; }

Property Value

string

debtDate

The debt date.

[AttLenght(1)]
[AttIndex]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttList]
public DateTime debtDate { get; set; }

Property Value

DateTime

debtPct

Debt percentage.

[AttLenght(6, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMaxValue(100)]
public decimal debtPct { get; set; }

Property Value

decimal

dluctStamp

Stamp of Deadlines of Uncollectible Customer Transactions dluctStamp

[AttForeignKey(typeof(DluctVO))]
[AttLenght(25)]
public string dluctStamp { get; set; }

Property Value

string

estab

Customer establishment

[AttLenght(6)]
[AttPrimaryKey]
[AttGama(Gamas.Advanced)]
[AttLogInfo(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
public int estab { get; set; }

Property Value

int

exchDif

Exchange difference.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal exchDif { get; set; }

Property Value

decimal

market

Market.

[AttVirtualField]
[AttLenght(1)]
public int market { get; }

Property Value

int

moeda

[AttLenght(11)]
[AttEntityAvailable(typeof(CcVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string moeda { get; set; }

Property Value

string

name

Customer name

[AttLenght(100)]
[AttMandatory]
[AttLogInfo(0)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
public string name { get; set; }

Property Value

string

no

Customer number

[AttLenght(10)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public decimal no { get; set; }

Property Value

decimal

pendFllPd

Pending fully paid.

[AttLenght(1)]
public bool pendFllPd { get; set; }

Property Value

bool

totalDebt

Total debt.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal totalDebt { get; set; }

Property Value

decimal

totalDebtm

Total debt in foreign currency.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal totalDebtm { get; set; }

Property Value

decimal

typeOfDebt

Type of debt

[AttLenght(10)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DebtType typeOfDebt { get; set; }

Property Value

DebtType

uctDate

The uncollectible movement date.

[AttLenght(1)]
[AttIndex]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttList]
public DateTime uctDate { get; set; }

Property Value

DateTime

uctNo

Uncollectible movement number

[AttPrimaryKey]
[AttLenght(10)]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public decimal uctNo { get; set; }

Property Value

decimal

uctStamp

Single registration field, used to link others to this entity.

[AttLenght(25)]
public string uctStamp { get; set; }

Property Value

string

Remarks

This field uniquely identifies the record (primary key by default).

Explicit Interface Implementations

CanIntegrate()

Returns true if integration is available

bool CanIntegrate()

Returns

bool

CleanIntegrationErrors()

Cleans the accounting integration errors

void CleanIntegrationErrors()

GetIntegrationConfig(int)

Returns a specific accounting integration config if is setted on series of document otherwise returns nothing

PHCResult GetIntegrationConfig(int year)

Parameters

Nome Tipo Descrição
year int

Returns

PHCResult

GetPendingIntegrationsCommands(int)

PHCCmdSql GetPendingIntegrationsCommands(int year = 0)

Parameters

Nome Tipo Descrição
year int

Returns

PHCCmdSql

HasAccountingIntegration()

Mostly used on document configurations It retrieves the permission to integrated document of a given nature

bool HasAccountingIntegration()

Returns

bool

LogIntegrationErrors(List<MessageVO>)

Logs the accounting integration errors

void LogIntegrationErrors(List<MessageVO> errorMessages)

Parameters

Nome Tipo Descrição
errorMessages List<MessageVO>

accounted

Mark document as accounted

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }

Returns

bool

adate

Accounting Date

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }

Returns

DateTime

docarchivalnumber

ID: Journal + Period + DocNumber

[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }

Returns

string

documentdescription

Description of the document type (DC)

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string documentdescription { get; set; }

Returns

string

documentid

Id of the accounting document (DC)

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal documentid { get; set; }

Returns

decimal

integrationErrors

Accounting integrations message errors

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }

Returns

string

isaccounting

Is true if the document is in integrating process

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool isaccounting { get; set; }

Returns

bool

journaldescription

Description of the journal (DI)

[AttLenght(200)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string journaldescription { get; set; }

Returns

string

journalid

Journal code (DI).

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal journalid { get; set; }

Returns

decimal

year

Year of Document (PCY).

[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
int year { get; set; }

Returns

int