Vibecode Reference Manual

kCoupon

Coupon


Info


Inherits from kDataObject\kDataBasic



Properties


Name

Type

Label

List

Owned

Cluster

Mandatory

Unique

Note

StandardPrefix

tkShortString

Standard Prefix

-

Barcode

tkCode

Barcode

check mark

check mark

BarcodeType

tkLoyaltyBarcodeType

Barcode Type

-

CouponType

kCouponType

Coupon Type

check mark

StartDate

tkDateTime

Start Date

-

EndDate

tkDateTime

End Date

-

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

Method of Discount Application

-

Status

tkCouponStatus

Status

-

UnlimitedUse

tkYesNo

Unlimited Use

-

LoyaltyCustomer

kLoyaltyCustomer

Loyalty Customer

-

MinPurchaseAmount

tkAmount

Min Purchase Amount

-

MinPurchaseAmount.Value

tkValue

Amount

-

MinPurchaseAmount.Currency

kCurrency

Currency

-

mandatory(true) {TODO: Mandatory only if Value<>0}

MaxDiscountValue

tkAmount

Max Discount Value

-

MaxDiscountValue.Value

tkValue

Amount

-

MaxDiscountValue.Currency

kCurrency

Currency

-

mandatory(true) {TODO: Mandatory only if Value<>0}

UsedInStore

kStore

Used In Store

-

IssueStore

kStore

Issued Store

-

RedeemedDocumentReference

tkDescription

Redeemed Document Reference

-

IssuedDocumentReference

tkDescription

Issued Document Reference

-

Batch

kCouponBatch

Coupon Batch

-

Inherited from kDataBasic

Code

tkCode

Code

check mark

check mark

Description

tkTranslatableDescription

Description

-

Remark

kRemark

Remark

Owned

-

Inherited from kDataObject

Id

tkUnique

Id

check mark

check mark

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 upon request

-

Origin

kSystem

Origin

-

LastModifiedProcess

tkGuid

Last process

-

Extension

Booking Setup

Location

Booking Location

List

Not Owned

-

Channel

Channel

List

Not Owned

-

AvailabilityRanges

Available from

List

Owned

-

ChannelShowBanner

Show Banner on Channel

List

Not Owned

-

HideCouponCodeInReservation

tkYesNo

Hide Coupon Code In Reservation

-

MultiUseCouponInReservation

tkYesNo

Use Coupon multiple time in a reservation

-

MultiUseLimit

tkSmallIntPositive

Multiple use limit

-

RequireHumanCheck

tkYesNo

Require Human Check

-

(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



Autocoderoles


Property

Ignore user input

When

Code part

Type

Value

Start

Length

Fill Char

Dir

Seq. Suf.

Prefix

Limit Len

code

cross mark

insert

fixed

VIBECODE

sequence

couponno

7

0

left

fixed

B

(I) : Autocoderole is defined in parent class



Events


When

Method Name

Module

Parameters

On

Off

Asynch

afterupdate

OmniCommerce_Coupon_EventChanged

kOmniCommerce

afterupdate

SendToCuda

kVNDC

Status

beforeinsert (I)

OnInitWorkFlow

kCoreServices

afterinsert (I)

AutoTransition

kCoreServices

afterupdate (I)

AutoTransition

kCoreServices

workflowstatus

(I) : Event is defined in parent class



IncrementalSearch


  • class : kCoupon

  • searchproperty : barcode

  • displayproperties : barcode,description

  • displaytextproperties : barcode,description


Inherited



Used By