kCarnet
Carnet
Info
Inherits from kDataObject\kDataBasic
Properties
| Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
|---|---|---|---|---|---|---|---|---|
| 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 | - | |||||
| 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 | kCarnetBatch | Carnet Generation Batch | - | |||||
| VATCode | kVATCode | VAT Code | - | |||||
| BusinessDocument | tkDescription | Business Document | - | |||||
| Receipt | tkDescription | Receipt | - | |||||
| UsageLimit | tkIntegerPositive | Usage Limit | - | |||||
| IsPhysicalCard | tkYesNo | Is Physical Card | - | |||||
| CreatedByStore | kStore | Created by Store | - | |||||
| 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 | CarnetType.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 | ||||||||
| description | insert | property | code | ||||||||
| temporarybarcode | insert | fixed | TC | ||||||||
| property | CarnetType.StandardPrefix | 4 | |||||||||
| fixed | ##date:yyyy## | ||||||||||
| sequence | BaseCarnetSeq | 6 | 0 | left | CarnetType.StandardPrefix | ||||||
| random | 100000 | 0 | 5 | 0 | left | ||||||
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,carnettype.code
- displayproperties : code,carnettype.code