kCarnet
Carnet
Info
Inherits from kDataObject\kDataBasic
Properties
Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
---|---|---|---|---|---|---|---|---|
Status | tkLoyaltyVoucherStatus | Status | ![]() | |||||
BarcodeType | tkLoyaltyBarcodeType | Barcode Type | - | (A) | ||||
Barcode | tkCode | Barcode | ![]() | ![]() | (A) | |||
TemporaryBarcode | tkCode | Temporary Barcode | ![]() | ![]() | (A) | |||
CarnetType | kCarnetType | Carnet Type | ![]() | |||||
Product | kProduct | Product | ![]() | (A) | ||||
Stores | kStore | Stores | List | Not Owned | - | |||
StandardPrefix | tkCode | Standard Prefix | - | (A) | ||||
Category | kCarnetCategory | Category | - | |||||
UsageLimit | tkIntegerPositive | Usage Limit | - | |||||
Vouchers | kVoucher | Vouchers Included | List | Not Owned | - | |||
GiftCards | kGiftCard | GiftCards Included | List | Not Owned | - | |||
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 | Carnet Generation Batch | - | |||||
VATCode | kVATCode | VAT Code | - | |||||
BusinessDocument | tkDescription | Business Document | - | |||||
Receipt | tkDescription | Receipt | - | |||||
UseLimit | tkIntegerPositive | Use Limit | - | |||||
IsPhysicalCard | tkYesNo | Is Physical Card | - | |||||
IssuedByStore | kStore | Issued by Store | - | |||||
IssueDate | tkDateTime | Date of Issue | - | |||||
ExpiryDate | tkDateTime | Expiry Date | - | |||||
FirstTransaction | tkDateTime | Date/Time of the first Transaction | - | |||||
LastTransaction | tkDateTime | Date/Time of the last Transaction | - | |||||
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 | C | |||||||
property | CarnetType.StandardPrefix | 4 | |||||||||
fixed | ##date:yyyy## | ||||||||||
sequence | BaseCarnetSeq | 6 | 0 | left | VoucherType.StandardPrefix | ||||||
random | 100000 | 0 | 5 | 0 | left | ||||||
barcode | ![]() | insert | property | code | |||||||
barcodetype | ![]() | insert | fixed | 2 | |||||||
standardprefix | ![]() | insert | property | CarnetType.StandardPrefix | |||||||
product | ![]() | insert | property | CarnetType.product | |||||||
temporarybarcode | ![]() | insert | fixed | TC | |||||||
property | CarnetType.StandardPrefix | 4 | |||||||||
fixed | ##date:yyyy## | ||||||||||
sequence | BaseCarnetSeq | 6 | 0 | left | VoucherType.StandardPrefix | ||||||
random | 100000 | 0 | 5 | 0 | left | ||||||
checksum | gtin-22 |
Events
When | Method Name | Module | Parameters | On | Off | Asynch |
---|---|---|---|---|---|---|
beforeinsert (I) | OnInitWorkFlow | kCoreServices | ||||
afterinsert (I) | AutoTransition | kCoreServices | ||||
afterupdate (I) | AutoTransition | kCoreServices | workflowstatus |
IncrementalSearch
- class : kCarnet
- searchproperty : code,product,status
- displayproperties : code,vouchertype.code,status
- displaypropertiesnames : status
Used By
Class | Property |
---|---|
kVoucher | Carnet |