Vibecode Reference Manual

kVoucher

Voucher


Info


Inherits from kDataObject\kDataBasic



Properties


Name

Type

Label

List

Owned

Cluster

Mandatory

Unique

Note

Status

tkVoucherStatus

Status

check mark

Barcode

tkCode

Barcode

check mark

check mark

(A)

BarcodeType

tkLoyaltyBarcodeType

Barcode Type

-

(A)

VoucherType

kVoucherType

Voucher Type

check mark

Product

kProduct

Product

check mark

(A)

ProductsIncluded

kProduct

Product Included

List

Not Owned

-

ProductsUpgrade

kProduct

Products Upgrade

List

Not Owned

-

ProductAllocated

kProduct

Product Allocated

-

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

-

(A)

BusinessDocument

tkDescription

Business Document

-

Receipt

tkDescription

Receipt

-

IsPhysicalCard

tkYesNo

Is Physical Card

-

(A)

ExternalReferenceNumber

tkDescription

External Ref Number

-

ExternalReferenceType

tkDescription

External Ref Type

-

ExternalReferenceDateTime

tkDateTime

External Ref Date Time

-

ExternalReferenceLine

tkDescription

External Ref Line

-

AllocateExternalReferenceNumber

tkDescription

Allocate External Ref Number

-

AllocateExternalReferenceType

tkDescription

Allocate External Ref Type

-

AllocateExternalReferenceDateTime

tkDateTime

Allocate External Ref Date Time

-

AllocateExternalReferenceLine

tkDescription

Allocate External Ref Line

-

CreatedByStore

kStore

Created by Store

-

IssuedByStore

kStore

Issued by Store

-

IssueDate

tkDateTime

Date of Issue

-

UsedByStore

kStore

Used by Store

-

RedeemByStore

kStore

Redeemed by Store

-

ExpiryDate

tkDateTime

Expiry Date

-

LastAllocationDate

tkDateTime

Allocation Date

-

LastRedeemDate

tkDateTime

Redeem Date

-

LastBlockDate

tkDateTime

Block Date

-

LastSuspendDate

tkDateTime

Suspend 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

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

-

(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

V

property

VoucherType.StandardPrefix

4

fixed

##date:yyyy##

sequence

BaseVoucherSeq

6

0

left

VoucherType.StandardPrefix

random

100000

0

5

0

left

barcode

cross mark

insert

property

code

description

cross mark

insert

property

code

standardprefix

cross mark

insert

property

VoucherType.StandardPrefix

product

cross mark

insert

property

VoucherType.product

VatCode

cross mark

insert

property

VoucherType.product.vatcode

IsPhysicalCard

cross mark

insert

property

VoucherType.IsPhysicalCard

barcodetype

cross mark

insert

fixed

2

(I) : Autocoderole is defined in parent class



Events


When

Method Name

Module

Parameters

On

Off

Asynch

beforeinsert (I)

OnInitWorkFlow

kCoreServices

afterinsert (I)

AutoTransition

kCoreServices

afterupdate (I)

AutoTransition

kCoreServices

workflowstatus

(I) : Event is defined in parent class



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

kReceiptLine

Voucher

kReceiptPayment

Voucher