Table of Contents

Class PromotionsVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Promotions to apply on FT or BO(CL).

[AttTable("promotions", 20230502)]
[AttTableGama(Gamas.Advanced)]
[AttTableVOInfo(typeof(PromotionsAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.RequiresAdminAccess })]
public class PromotionsVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
PromotionsVO

Properties

accumulateDiscounts

With this field we will know if the promotions discounts will accumulate with CL discounts

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool accumulateDiscounts { get; set; }

Property Value

bool

clDiscountType

Client discount Type

[AttLenght(18)]
public string clDiscountType { get; set; }

Property Value

string

Remarks

Length 18.

clType

Client Type

[AttLenght(18)]
public string clType { get; set; }

Property Value

string

Remarks

Length 18.

discount1

Percentage of Discount 1.

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

Property Value

decimal

Remarks

Lenght of 6, where the units are 2 and decimals are 2.

discount2

Percentage of Discount 2.

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

Property Value

decimal

Remarks

Lenght of 6, where the units are 2 and decimals are 2.

finalDate

This field is the date will finish the promotion

[AttFieldType(AttFieldType.InputTypes.date)]
[AttMandatory]
[AttList]
public DateTime finalDate { get; set; }

Property Value

DateTime

finalHour

This field is the hour will finish the promotion

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.shortTime)]
[AttMandatory]
[AttList(Inactive = true)]
public string finalHour { get; set; }

Property Value

string

inactive

This field is to inactive the promotion

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttList]
public bool inactive { get; set; }

Property Value

bool

initialDate

This field is the date will start the promotion

[AttFieldType(AttFieldType.InputTypes.date)]
[AttMandatory]
[AttLogInfo(2)]
[AttList]
public DateTime initialDate { get; set; }

Property Value

DateTime

initialHour

This field is the hour will start the promotion

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.shortTime)]
[AttMandatory]
[AttList(Inactive = true)]
public string initialHour { get; set; }

Property Value

string

payY

This field is take X articles you just pay Y.

[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.quantity)]
[AttMinValue(0)]
public decimal payY { get; set; }

Property Value

decimal

Remarks

Lenght of 2.

priority

This field is the priority of promotion

[AttLenght(2)]
[AttMinValue(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMandatory]
[AttList]
public int priority { get; set; }

Property Value

int

promoDesignInSt

This field is to add on st design when create an FT or BO (example : ADUFE - Promotions 10% discount)

[AttLenght(60)]
[AttMandatory]
[AttList(Inactive = true)]
public string promoDesignInSt { get; set; }

Property Value

string

promoResume

Resume of Promotions.

Contains the resume about the promotion

[AttLenght(50)]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string promoResume { get; set; }

Property Value

string

promotionsTypeName

Name of the promotion type

[AttLenght(50)]
[AttLocale(typeof(PromotionsAttInfo), new string[] { "[promotions].[promotionstype]" })]
public string promotionsTypeName { get; set; }

Property Value

string

promotionsstamp

Stamp of Promotions.

Contains the unique key registry identification of discounts by product/customer that is used to link to other tables.

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

Property Value

string

Remarks

Length 25.

This field is primary key.

promotionstype

This field store the promotion type

[AttLenght(1)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public PromotionsType promotionstype { get; set; }

Property Value

PromotionsType

refBrandToApply

Article Brand to apply the promotion

[AttLenght(18)]
public string refBrandToApply { get; set; }

Property Value

string

Remarks

Length 18.

refEndsWithToApply

Article ref ends to apply the promotion

[AttLenght(18)]
public string refEndsWithToApply { get; set; }

Property Value

string

Remarks

Length 18.

refModelToApply

Article model to apply the promotion

[AttLenght(18)]
public string refModelToApply { get; set; }

Property Value

string

Remarks

Length 18.

refStartsWithToApply

Article ref starts to apply the promotion

[AttLenght(18)]
public string refStartsWithToApply { get; set; }

Property Value

string

Remarks

Length 18.

refStfamiToApply

stfamiToApply to apply the promotion

[AttLenght(18)]
public string refStfamiToApply { get; set; }

Property Value

string

Remarks

Length 18.

refToApply

Article ref to apply the promotion

[AttLenght(18)]
public string refToApply { get; set; }

Property Value

string

Remarks

Length 18.

takeX

This field is give N articles for free when you buy more than T.

[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.quantity)]
[AttMinValue(0)]
public decimal takeX { get; set; }

Property Value

decimal

Remarks

Lenght of 2.

valueToApply

The new Amount to apply in promotion.

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

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

Non Duplicable Field.