kVoucher
Gift Card
Info
Inherits from kDataObject\kDataBasic
Properties
Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
---|---|---|---|---|---|---|---|---|
Status | tkLoyaltyVoucherStatus | Status | ![]() | |||||
Barcode | tkCode | Barcode | ![]() | ![]() | (A) | |||
BarcodeType | tkLoyaltyBarcodeType | Barcode Type | - | (A) | ||||
VoucherType | kVoucherType | Voucher Type | ![]() | |||||
Product | kProduct | Product | ![]() | (A) | ||||
ProductsIncluded | kProduct | Product Included | List | Not Owned | - | |||
ProductsUpgrade | kProduct | Products Upgrade | List | Not Owned | - | |||
ProductAllocated | kProduct | Product Allocated | - | |||||
ProductUpgraded | kProduct | Product Upgraded | - | |||||
StandardPrefix | tkCode | Standard Prefix | - | (A) | ||||
Stores | kStore | Stores | List | Not Owned | - | |||
Category | kVoucherCategory | Category | - | |||||
EffectivePrice | tkPrice | Effective Price | - | prezzo di listino corrente (compreso promo) | ||||
EffectivePrice.Value | tkValue | Price | - | |||||
EffectivePrice.Currency | kCurrency | Currency | - | |||||
EffectivePrice.UnitOfMeasure | kUnitOfMeasure | UOM | - | TODO: true only if tkvalue<>0 | ||||
OfficialPrice | tkPrice | Official Price | - | prezzo ufficiale | ||||
OfficialPrice.Value | tkValue | Price | - | |||||
OfficialPrice.Currency | kCurrency | Currency | - | |||||
OfficialPrice.UnitOfMeasure | kUnitOfMeasure | UOM | - | TODO: true only if tkvalue<>0 | ||||
Discount | tkAmount | Discount | - | |||||
Discount.Value | tkValue | Amount | - | |||||
Discount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
Amount | tkAmount | Amount | - | Price - Discount | ||||
Amount.Value | tkValue | Amount | - | |||||
Amount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
LoyaltyCustomer | kLoyaltyCustomer | Customer | - | |||||
Batch | kVoucherBatch | Voucher Generation Batch | - | |||||
Carnet | kCarnet | Carnet | - | |||||
VATCode | kVATCode | VAT Code | - | |||||
BusinessDocument | tkDescription | Business Document | - | |||||
Receipt | tkDescription | Receipt | - | |||||
IsPhysicalCard | tkYesNo | Is Physical Card | - | |||||
ExternalAllocationId | tkDescription | External Allocation Id | - | |||||
RefExternalAllocation | tkDescription | External Allocation Ref | - | |||||
IssuedByStore | kStore | Issued by Store | - | |||||
IssueDate | tkDateTime | Date of Issue | - | |||||
UsedByStore | kStore | Used by Store | - | |||||
ExpiryDate | tkDateTime | Expiry Date | - | |||||
LastAllocationDate | tkDateTime | Allocation Date | - | |||||
LastRedeemDate | tkDateTime | Redeem Date | - | |||||
LastBlockDate | tkDateTime | Block Date | - | |||||
FirstTransaction | tkDateTime | Date/Time of the first Transaction | - | |||||
LastTransaction | tkDateTime | Date/Time of the last Transaction | - | |||||
LinkForExtension | tkDescription | Link For Validity Extension | - | |||||
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
Autocoderoles
Property | Ignore user input | When | Code part | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type | Value | Start | Length | Fill Char | Dir | Seq. Suf. | Prefix | Limit Len | |||
code | ![]() | insert | fixed | V | |||||||
property | VoucherType.StandardPrefix | 4 | |||||||||
fixed | ##date:yyyy## | ||||||||||
sequence | BaseVoucherSeq | 6 | 0 | left | VoucherType.StandardPrefix | ||||||
random | 100000 | 0 | 5 | 0 | left | ||||||
barcode | ![]() | insert | property | code | |||||||
description | ![]() | insert | property | code | |||||||
standardprefix | ![]() | insert | property | VoucherType.StandardPrefix | |||||||
product | ![]() | insert | property | VoucherType.product | |||||||
barcodetype | ![]() | insert | fixed | 2 |
Events
When | Method Name | Module | Parameters | On | Off | Asynch |
---|---|---|---|---|---|---|
beforeinsert (I) | OnInitWorkFlow | kCoreServices | ||||
afterinsert (I) | AutoTransition | kCoreServices | ||||
afterupdate (I) | AutoTransition | kCoreServices | workflowstatus |
IncrementalSearch
- class : kVoucher
- searchproperty : code,vouchertype.code,status
- displayproperties : code,vouchertype.code,status
- displaypropertiesnames : status
- displaytextproperties : code,vouchertype.code,status
Used By
Class | Property |
---|---|
kVoucherTransaction | Voucher |
kCarnet | Vouchers |