PmtLayawayPlan Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

PmtLayawayPlan Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

PmtLayawayPlan Table

Collapse All Expand All

iVend Database Database : PmtLayawayPlan Table

Description

Defines the plan through which the items can be put on layaways to the customers.

Properties

Creation Date

4/13/2015 12:00 PM

File Group

PRIMARY

Text File Group

 

System Object

dbimages_boolean-false

Published for Replication

dbimages_boolean-false

Rows

1

Data Space Used

8.00 KB

Index Space Used

8.00 KB

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

Primary Key

LayawayPlanKey

System generated Primary key of the table.

VarWChar

50

 

 

 

 

Id

Refers to the layaway plan's Id

VarWChar

20

 

 

 

 

Description

Refers to the layaway plan's description.

VarWChar

100

dbimages_tick

 

 

 

IsActive

Flag to check whether the plan is active or not.

Boolean

1

 

 

 

 

InstallmentCount

Default number of installments in which the amount is to be returned.

Integer

4

 

 

 

 

MinInstallmentCount

Minimum number of installments in which the amount is to be returned.

Integer

4

 

 

 

 

MaxInstallmentCount

Maximum number of installments in which the amount is to be returned.

Integer

4

 

 

 

 

DurationType

Refers to the duration type

Valid values are:

Weekly = 0

Monthly = 1

Quarterly = 2

Halfyearly = 3

Yearly = 4

Duration = 5

Integer

4

 

 

 

 

InstallmentDuration

If DurationType has been specified as Duration, then the field stores installment duration time in days.

Integer

4

 

 

 

 

FirstInstallmentDue

Days in which the first installment is due.

Integer

4

 

 

 

 

TolerenceDays

For future use

Integer

4

 

 

 

 

InstallmentTaxMethod

For future use

Integer

4

 

 

 

 

InventoryAllocationMethod

Speicifies the method as per which the inventory is allocated.

Valid values are:

Sale = 0

Delivery = 1

Integer

4

 

 

 

 

DepositType

Specifies whether whether the initial deposit is in amount or percentage.

Valid values are:

Amount = 0

Percentage = 1

Integer

4

dbimages_tick

 

 

 

Deposit

Refers to the deposit value.

Numeric

9 (20,5)

dbimages_tick

 

 

 

CreatedBy

Reference of user who has created this record. See also Security User

VarWChar

50

 

 

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

 

 

 

ModifiedBy

Reference of user who has modified this record. See also Security User

VarWChar

50

 

 

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

 

 

 

IsDeleted

Value is True if the record has been deleted from the system. Record is always Soft Deleted

Boolean

1

 

 

 

 

MinimumDeliveryPercentage

Stores the value as minimum percentage of amount that is required for the delivery of product.

Numeric

9 (20,5)

 

((0))

 

 

SubsidiaryKey

Reference key of the Subsidiary. See also Subsidiary

VarWChar

50

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

PK_PmtLayawayPlan

 

dbimages_tick

dbimages_tick

Objects that depend on PmtLayawayPlan

 

Database Object

Object Type

Description

Dep Level

GetMobileReplicationData procedure

GetMobileReplicationData

Stored Procedure

 

1

TrxGenerateLayawayInstallments procedure

TrxGenerateLayawayInstallments

Stored Procedure

Generates Layaway installments for the Layaway transaction

1

TrxGenerateLayawayInstallmentsForSaleLevel procedure

TrxGenerateLayawayInstallmentsForSaleLevel

Stored Procedure

Generates Layaway installments for the Layaway transaction

1

TrxGetLaybyInstallmentPlan procedure

TrxGetLaybyInstallmentPlan

Stored Procedure

Computes the Layaway details like Duration, Starting Date etc for the layaway depending on the Layaway Plan

1

TrxInventoryUpdateLaybyItem procedure

TrxInventoryUpdateLaybyItem

Stored Procedure

 

2

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[PmtLayawayPlan](

[LayawayPlanKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Id] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Description] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[IsActive] [bit] NOT NULL,

[InstallmentCount] [int] NOT NULL,

[MinInstallmentCount] [int] NOT NULL,

[MaxInstallmentCount] [int] NOT NULL,

[DurationType] [int] NOT NULL,

[InstallmentDuration] [int] NOT NULL,

[FirstInstallmentDue] [int] NOT NULL,

[TolerenceDays] [int] NOT NULL,

[InstallmentTaxMethod] [int] NOT NULL,

[InventoryAllocationMethod] [int] NOT NULL,

[DepositType] [int] NULL,

[Deposit] [numeric](20, 5) NULL,

[CreatedBy] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Created] [datetime] NOT NULL,

[ModifiedBy] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Modified] [datetime] NOT NULL,

[IsDeleted] [bit] NOT NULL,

[MinimumDeliveryPercentage] [numeric](20, 5) NOT NULL,

[SubsidiaryKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

CONSTRAINT [PK_PmtLayawayPlan] PRIMARY KEY CLUSTERED

(

[LayawayPlanKey] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

ALTER TABLE [dbo].[PmtLayawayPlan] ADD CONSTRAINT [DF_PmtLayawayPlan_MinimumDeliveryPercentage] DEFAULT ((0)) FOR [MinimumDeliveryPercentage]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.