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
ClVO
[AttExternalCollection(typeof(ClVO), new string[] { "cl.no", "no", "cl.estab", "estab" })]
public ClVO ClVO { get; }
Property Value
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
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
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
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
ccInfo
[AttVirtualField]
[AttHidden]
public string ccInfo { get; set; }
Property Value
ccStamp
Stamp of customer current account movement ccstamp
[AttForeignKey(typeof(CcVO), HiddenField = false)]
[AttLenght(25)]
public string ccStamp { get; set; }
Property Value
clstamp
[AttVirtualField]
[AttHidden]
public string clstamp { get; set; }
Property Value
debtDate
The debt date.
[AttLenght(1)]
[AttIndex]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttList]
public DateTime debtDate { get; set; }
Property Value
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
dluctStamp
Stamp of Deadlines of Uncollectible Customer Transactions dluctStamp
[AttForeignKey(typeof(DluctVO))]
[AttLenght(25)]
public string dluctStamp { get; set; }
Property Value
estab
Customer establishment
[AttLenght(6)]
[AttPrimaryKey]
[AttGama(Gamas.Advanced)]
[AttLogInfo(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
public int estab { get; set; }
Property Value
exchDif
Exchange difference.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal exchDif { get; set; }
Property Value
market
Market.
[AttVirtualField]
[AttLenght(1)]
public int market { get; }
Property Value
moeda
[AttLenght(11)]
[AttEntityAvailable(typeof(CcVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string moeda { get; set; }
Property Value
name
Customer name
[AttLenght(100)]
[AttMandatory]
[AttLogInfo(0)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
public string name { get; set; }
Property Value
no
Customer number
[AttLenght(10)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public decimal no { get; set; }
Property Value
pendFllPd
Pending fully paid.
[AttLenght(1)]
public bool pendFllPd { get; set; }
Property Value
totalDebt
Total debt.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal totalDebt { get; set; }
Property Value
totalDebtm
Total debt in foreign currency.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal totalDebtm { get; set; }
Property Value
typeOfDebt
Type of debt
[AttLenght(10)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DebtType typeOfDebt { get; set; }
Property Value
uctDate
The uncollectible movement date.
[AttLenght(1)]
[AttIndex]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttList]
public DateTime uctDate { get; set; }
Property Value
uctNo
Uncollectible movement number
[AttPrimaryKey]
[AttLenght(10)]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public decimal uctNo { get; set; }
Property Value
uctStamp
Single registration field, used to link others to this entity.
[AttLenght(25)]
public string uctStamp { get; set; }
Property Value
Remarks
This field uniquely identifies the record (primary key by default).
Explicit Interface Implementations
CanIntegrate()
Returns true if integration is available
bool CanIntegrate()
Returns
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
GetPendingIntegrationsCommands(int)
PHCCmdSql GetPendingIntegrationsCommands(int year = 0)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
HasAccountingIntegration()
Mostly used on document configurations It retrieves the permission to integrated document of a given nature
bool HasAccountingIntegration()
Returns
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
adate
Accounting Date
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }
Returns
docarchivalnumber
ID: Journal + Period + DocNumber
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }
Returns
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
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
integrationErrors
Accounting integrations message errors
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }
Returns
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
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
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
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; }