kCouponGenerationRule
Coupon Generation Rule
Info
Inherits from kDataObject\kDataBasic
Properties
Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
---|---|---|---|---|---|---|---|---|
StartAt | tkDateTime | Rule Start Date | - | |||||
EndAt | tkDateTime | Rule End Date | - | |||||
StartValidityFormula | tkDateFormula | Coupon Validity Start Formula | - | |||||
EndValidityFormula | tkDateFormula | Coupon Validity End Formula | - | |||||
DiscountAmount | tkAmount | Amount of Discount | - | |||||
DiscountAmount.Value | tkValue | Amount | - | |||||
DiscountAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
DiscountPercentage | tkPercentage | Percentage of Discount | - | |||||
DiscountMethod | tkCouponDiscountMethod | Discount Method | - | |||||
CouponType | kCouponType | Coupon Type | - | |||||
MaxAmount | tkAmount | Discount Max Amount | - | |||||
MaxAmount.Value | tkValue | Amount | - | |||||
MaxAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
MinReceiptAmount | tkAmount | Min Receipt Amount | - | |||||
MinReceiptAmount.Value | tkValue | Amount | - | |||||
MinReceiptAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
MinReceiptPercentage | tkValue | Min Receipt Discount Percentage | - | |||||
IgnorePromotion | tkYesNo | Ignore Promotional sales | - | |||||
MinAmountCalcType | tkMinAmountCalcType | Minimum amount calculation type | - | |||||
Stores | kStore | Enabled Store Cluster | - | |||||
Products | kProduct | Enabled Product Cluster | - | |||||
Combinable | tkYesNo | Combinable with other Coupons | - | |||||
ManualIssueAllowed | tkYesNo | Manual Issuing allowed | - | |||||
BarcodeType | tkCouponCodeGenerationType | Barcode Generation Type | - | |||||
UsageLocationRestriction | tkCouponLocationValidity | Locations restrictions | - | |||||
MustReadCard | tkCouponMustReadCard | Only for Loyalty Customer | - | |||||
WeekdayValidity | tkWeekly | Weekdays validity | - | |||||
WeekdayValidity.Monday | tkYesNo | Monday | - | |||||
WeekdayValidity.Tuesday | tkYesNo | Tuesday | - | |||||
WeekdayValidity.Wednesday | tkYesNo | Wednesday | - | |||||
WeekdayValidity.Thursday | tkYesNo | Thursday | - | |||||
WeekdayValidity.Friday | tkYesNo | Friday | - | |||||
WeekdayValidity.Saturday | tkYesNo | Saturday | - | |||||
WeekdayValidity.Sunday | tkYesNo | Sunday | - | |||||
Inherited from kDataBasic | ||||||||
Code | tkCode | Code | ||||||
Description | tkTranslatableDescription | Description | - | |||||
Remark | kRemark | Remark | Owned | - | ||||
Inherited from kDataObject | ||||||||
Id | tkUnique | Id | ||||||
ClassName | tkCode | Class Name | ||||||
CreatedBy | tkCode | Created BY | - | |||||
LastModifiedBy | tkCode | Last Modified By | - | |||||
CreatedDate | tkDateTime | Created Date | - | |||||
LastModifiedDate | tkDateTime | Last Modified Date | - | |||||
RevisionNumber | tkInteger | Revision Number | - | |||||
WorkflowStatus | kWorkflowStatus | Workflow Status | - | |||||
OwnedOnRequest | tkYesNo | Is owned on request | - | |||||
Origin | kSystem | Origin | - | |||||
LastModifiedProcess | tkGuid | Last process | - |
(E) : Type have an event assigned to it, look at type documentation for mode details
(A) : Property have an autocoderole, look autocoderole grid for mode details
Events
When | Method Name | Module | Parameters | On | Off | Asynch |
---|---|---|---|---|---|---|
beforeinsert (I) | OnInitWorkFlow | kCoreServices | ||||
afterinsert (I) | AutoTransition | kCoreServices | ||||
afterupdate (I) | AutoTransition | kCoreServices | workflowstatus |
IncrementalSearch
Inherited from kDataBasic
- class : kDataBasic
- searchproperty : description,code
- displayproperties : code,description
Used By
Class | Property |
---|---|
kCrm_RecurrentCommunicationTemplate | CouponGenerationRule |
kCouponRule | CouponGenerationRule |
kCrm_ComunicationHeader | CouponGenerationRule |
kPromoBenefit | CouponGenerationRule |