Table of Contents

Class CommissionVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("Commission", 20230213)]
[AttTableVOInfo(typeof(CommissionAttInfo))]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableGama(Gamas.Advanced)]
[AttTableOrderBy("clearanceDate", "D")]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge })]
public class CommissionVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
CommissionVO

Properties

Cm3VO

[AttExternalCollection(typeof(Cm3VO), new string[] { "[Cm3].[cm3stamp]", "[Commission].[cm3stamp]" })]
public Cm3VO Cm3VO { get; }

Property Value

Cm3VO

clearanceDate

Date of clearance the issued this commission

[AttList]
public DateTime clearanceDate { get; set; }

Property Value

DateTime

cm3stamp

[AttForeignKey(typeof(Cm3VO), HiddenField = false, CanDuplicate = true)]
[AttLenght(25)]
[AttMandatory]
public string cm3stamp { get; set; }

Property Value

string

commissionSalesOrigin

stamp of commission from sales that originated this supervision commission

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string commissionSalesOrigin { get; set; }

Property Value

string

commissionstamp

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

Property Value

string

isProfitCommission

Indicates whether the commission is profit or sales

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool isProfitCommission { get; set; }

Property Value

bool

obs

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

Property Value

string

originLabel

[AttVirtualField]
public string originLabel { get; set; }

Property Value

string

oristamp

Stamp of processing that originated this commission

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string oristamp { get; set; }

Property Value

string

paid

Indicates whether the commission is paid or not

[AttList]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool paid { get; set; }

Property Value

bool

payedBy

[AttVirtualField]
public CommissionPayedBy payedBy { get; set; }

Property Value

CommissionPayedBy

payedByLabel

[AttVirtualField]
public string payedByLabel { get; set; }

Property Value

string

referalDateEnd

End date of commission clearance

[AttMandatory]
public DateTime referalDateEnd { get; set; }

Property Value

DateTime

referalDateIni

Initial date of commission clearance

[AttMandatory]
public DateTime referalDateIni { get; set; }

Property Value

DateTime

regDate

Date of regularization

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime regDate { get; set; }

Property Value

DateTime

regValue

Ammount included in payments of this commission

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

Property Value

decimal

salesProfit

Profit value that originated this commission value

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

Property Value

decimal

salesValue

Sales value that originated this commission value

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

Property Value

decimal

salesman

[AttLenght(100)]
[AttList]
public string salesman { get; set; }

Property Value

string

sourceLines

[AttCollection(typeof(CommissionLineVO))]
public List<CommissionLineVO> sourceLines { get; set; }

Property Value

List<CommissionLineVO>

stamp

Stamp of record that is regularizing this commission can be a stamp of:

  • Expenses
  • Dossier
  • Variable Payslip
[AttLenght(25)]
public string stamp { get; set; }

Property Value

string

supervisorLines

[AttCollection(typeof(SupervisorLineVO))]
public List<SupervisorLineVO> supervisorLines { get; set; }

Property Value

List<SupervisorLineVO>

table

Table of me stamp can be a table of:

  • Expenses
  • Dossier
  • Variable Payslip
[AttLenght(25)]
public string table { get; set; }

Property Value

string

totalValue

Ammount gathered from all ft commissions. This will be the commission value to provide to this salesman

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

Property Value

decimal

type

this commission is for value or for extra value

[AttLenght(19, 6)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public CommissionType type { get; set; }

Property Value

CommissionType

typeLabel

[AttLocale(typeof(CommissionAttInfo), new string[] { "[Commission].[type]" })]
[AttList]
[AttVirtualField]
public string typeLabel { get; set; }

Property Value

string