|
<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > PrcSurcharge Table |
Navigation: iVend Database Database > Tables >
iVend 6.6 Database Help
PrcSurcharge Table
Collapse All Expand All
iVend Database Database : PrcSurcharge Table |
Description
Defines a list of surcharges that have been defined in the system. Surcharges can be applicable both at the Sale and Purchase side
Properties
Creation Date |
4/13/2015 12:00 PM |
File Group |
PRIMARY |
Text File Group |
|
System Object |
|
Published for Replication |
|
Rows |
6 |
Data Space Used |
8.00 KB |
Index Space Used |
8.00 KB |
Columns
|
Column Name |
Description |
Datatype |
Length |
Allow Nulls |
Default |
Formula |
|
SurchargeKey |
Primary Key |
VarWChar |
50 |
|
|
|
|
Id |
Id for surcharge |
VarWChar |
20 |
|
|
|
|
Description |
Description for surcharge |
VarWChar |
100 |
|
|
|
|
AmountType |
Amount type for surcharge. Valid values are: Amount = 0 Percentage = 1 |
Integer |
4 |
|
|
|
|
Amount |
Amount for surcharge |
Numeric |
9 (20,5) |
|
|
|
|
IsTaxable |
Check whether the surcharge is taxable or not |
Boolean |
1 |
|
|
|
|
TaxCodeKey |
Reference key for sales taxcode. See also Tax |
VarWChar |
50 |
|
|
|
|
PurchaseTaxCodeKey |
Reference key for purchase taxcode. See also Tax |
VarWChar |
50 |
|
|
|
|
IsDiscountable |
Check whether the surcharge is discountable or not |
Boolean |
1 |
|
|
|
|
IsRefundable |
Check whether the surcharge is refundable or not |
Boolean |
1 |
|
|
|
|
Type |
For future use |
Integer |
4 |
|
|
|
|
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 |
|
|
|
|
IsPaymentDiscountSurcharge |
Value is True if the Surcharge has to be used as Payment Discount Surcharge |
Boolean |
1 |
|
((0)) |
|
|
LoadOnItemCost |
Specifies if the surcharge is to be loaded on the item cost while calculating the average item cost. |
Boolean |
1 |
|
((0)) |
|
|
SubsidiaryKey |
Reference key of the Subsidiary. See also Subsidiary |
VarWChar |
50 |
|
((0)) |
|
Indexes
Index |
Description |
Primary |
Unique |
|
|
|
Objects that depend on PrcSurcharge
|
Database Object |
Object Type |
Description |
Dep Level |
|
Stored Procedure |
|
1 |
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[PrcSurcharge]( [SurchargeKey] [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, [AmountType] [int] NOT NULL, [Amount] [decimal](20, 5) NOT NULL, [IsTaxable] [bit] NOT NULL, [TaxCodeKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [PurchaseTaxCodeKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [IsDiscountable] [bit] NOT NULL, [IsRefundable] [bit] NOT NULL, [Type] [int] NOT 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, [IsPaymentDiscountSurcharge] [bit] NULL, [LoadOnItemCost] [bit] NULL, [SubsidiaryKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, CONSTRAINT [PK_PrcSurcharge] PRIMARY KEY CLUSTERED ( [SurchargeKey] 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].[PrcSurcharge] ADD CONSTRAINT [DF_PrcSurcharge_IsPaymentDiscountSurcharge] DEFAULT ((0)) FOR [IsPaymentDiscountSurcharge] ALTER TABLE [dbo].[PrcSurcharge] ADD CONSTRAINT [DF_PrcSurcharge_LoadOnItemCost] DEFAULT ((0)) FOR [LoadOnItemCost] ALTER TABLE [dbo].[PrcSurcharge] ADD CONSTRAINT [DF_PrcSurcharge_SubsidiaryKey] DEFAULT ((0)) FOR [SubsidiaryKey] |
See Also
© 2019 All Rights Reserved.
Send comments on this topic.