kPromoDefinition_Benefits
kPromoDefinition_Benefits
Info
Inherits from kDataObject\kPromoBenefit
Properties
| Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
|---|---|---|---|---|---|---|---|---|
| Inherited from kPromoBenefit | ||||||||
| Type | tkPromoBenefitType | |||||||
| Target | tkPromoBenefitTarget | - | ||||||
| SelectRule | tkPromoSelectRule | - | ||||||
| TargetProductCluster | kProduct | On Request | - | <> Coupon,Message | ||||
| GroupByTriggerLinesProduct | tkYesNo | Group by Lines Product | - | |||||
| ApplyBestProductsGroupingForCustomer | tkYesNo | Apply Best Products Grouping for Customer | - | |||||
| SplitDiscountAmountRecursively | tkYesNo | Split same discount amount on each product (no proportional split) | - | |||||
| DiscountSplitType | tkDiscountSplitType | Discount Split Type | - | |||||
| ReturnRequest | tkYesNo | Return Request | - | |||||
| Percentage | tkPercentage | Discount Percentage | - | DiscountPercentage,DiscountPercentageOnLessExpensive,DiscountPercentageOnMostExpensive | ||||
| Amount | tkAmount | Amount | - | DiscountAmount,FixedUnitPrice,GlobalAmount,DiscountAmountOnLessExpensive,DiscountAmountOnMostExpensive,FixedUnitPriceOnLessExpensive,FixedUnitPriceOnMostExpensive | ||||
| Amount.Value | tkValue | Amount | - | |||||
| Amount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| PriceGroup | kSalesPriceGroup | Sales PriceGroup | - | ApplyPriceList | ||||
| LoyaltyPoints | tkLoyaltyPoint | Loyalty Points | - | LoyaltyPoints | ||||
| LoyaltyPointsMultiplier | tkInteger | Loyalty Points Multiplier | - | LoyaltyPointsMultiplier | ||||
| LoyaltyTransactionReasonCode | kLoyaltyTransactionReasonCode | Loyalty Transaction Reason Code | - | LoyaltyPoints, LoyaltyPointsMultiplier | ||||
| LoyaltyProgram | kLoyaltyProgram | Loyalty Points Program | - | |||||
| LoyaltyPointsAmountStep | tkAmount | Loyalty Points Amount Step | - | |||||
| LoyaltyPointsAmountStep.Value | tkValue | Amount | - | |||||
| LoyaltyPointsAmountStep.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| CouponRule | kCouponRule | Coupon Rule | - | To ignore. Replaced by CouponGenerationRule | ||||
| CouponGenerationRule | kCouponGenerationRule | Coupon Rule | - | |||||
| Message | kReceiptMessage | Message | - | Message | ||||
| DiscountReasonCode | kSalesDiscountReasonCode | Reason Code | - | |||||
| ReceiptDescription | tkTranslatableDescription | Receipt Description | - | |||||
| NrItems | tkIntegerPositive | Nr Items Involved | - | ApplyPriceList | ||||
| NrTickets | tkIntegerPositive | Nr Tickets to generate | - | Raffle Tickets | ||||
| Contest | kPromoContest | Contest | - | |||||
| Raffle | kRaffle | Raffle | - | |||||
| AtLeastOneTicketAvailable | tkYesNo | Enable the benefit even if the number of ticket available il less than the required | - | |||||
| ReceiptComment | kPromoReceiptComment | Receipt Comment | - | |||||
| ApplyRounding | tkYesNo | Apply Rounding | - | |||||
| Rounding | tkRoundingRule | Rounding | - | |||||
| Rounding.RoundingValue | tkDecimal2Digits | Rounding Value | - | |||||
| Rounding.RoundingType | tkRoundingType | Rounding Type | - | |||||
| Rounding.UseIntermediateValue | tkYesNo | Use Intermediate Value | - | |||||
| 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 kDataObject
- class : kDataObject
- searchproperty : id
- displayproperties : id,ClassName
- displaytextproperties : id,ClassName