Logic Table Docs

650
Logic SQL Table Documentation Johnson Group 1/24/2011 9:03:54AM Table: ACChannelizer AC Channelizer This table is used to backup the local Auto-Count database ACChannelizer table. This table may be deleted in the future. Indexes on Description ACNumber, Channelizer Primary key, clustered Type Column ACNumber int Table Not Used Channelizer tinyint Table Not Used Description varchar (50) Table Not Used OnTime int Table Not Used RestTime int Table Not Used Constraint Column Field Constraints ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999) Channelizer ([Channelizer] >= 0 and [Channelizer] <= 20) OnTime ([OnTime] >= 0 and [OnTime] <= 999999) RestTime ([RestTime] >= 0 and [RestTime] <= 999999) Page 1 JohnsonGroup

Transcript of Logic Table Docs

Page 1: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACChannelizer AC Channelizer

This table is used to backup the local Auto-Count database ACChannelizer

table. This table may be deleted in the future.

Indexes on Description

ACNumber, Channelizer Primary key, clustered

TypeColumn

ACNumber int Table Not Used

Channelizer tinyint Table Not Used

Description varchar (50) Table Not Used

OnTime int Table Not Used

RestTime int Table Not Used

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Channelizer ([Channelizer] >= 0 and [Channelizer] <= 20)

OnTime ([OnTime] >= 0 and [OnTime] <= 999999)

RestTime ([RestTime] >= 0 and [RestTime] <= 999999)

Page 1JohnsonGroup

Page 2: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACConfigData AC Config Data

This table is used to backup the local Auto-Count database ACConfigData

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (50) Holds the variable name

sValue varchar (50) Holds the variables value

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Page 2JohnsonGroup

Page 3: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACCostCenters AC Cost Centers

This table is used to backup the local Auto-Count database ACCostCenters

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (35) .

CostCenter varchar (5) Labor Cost Center code

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Page 3JohnsonGroup

Page 4: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AccountingGrps Accounting Grps

For internal use only. This table lists the accounting groups (or transaction

types) that the Accounting program will recognize.

Indexes on Description

GroupNumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

APTransaction AcctgGroup

ARTransaction AcctgGroup

GLAccountData AcctgGroup

TypeColumn

GroupNumber tinyint The group number, which identifies the transaction type:

1 = A/R Invoicing, A/R Memos, and Finished Goods Invoicing

2 = A/R Cash Receipts

3 = A/P Invoicing

4 = A/P Checks and Cash Disbursements

7 = G/J Transactions

GroupName varchar (2) A two character description of the type of accounting transaction.

BF for Balance Forward

AR for Accounts Receivable

CR for Cash Receipt

AP for Accounts Payable

CD for Cash Disbursements

GJ for General Journal

ConstraintColumn

Field Constraints

GroupNumber ([GroupNumber] >= 0 and [GroupNumber] <= 9)

Page 4JohnsonGroup

Page 5: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AccountingLog Accounting Log

Used to record critical changes to the accounting tables and provide restart

and trouble shooting capabilities for Accounting procedures. It is currently

used by: Date Change

Indexes on Description

AcctLogKey Primary key, clustered

TypeColumn

AcctLogKey int Artificial key for AccountingLog table.

Program varchar (20) The name of the program creating this log record (for example, datechg). The

programs using this log will check for an incomplete log (no end date) when

starting up.

UserName varchar (128) Log name of user running 'Program.'

ProgramData varchar (100) Data required to restart the 'Program' if necessary. The data will be stored in a

pipe delimited string and will be different for each program using this table.

StartDate datetime Date, and eventually, time stamp of when the Program was started.

EndDate datetime Date, and eventually, time stamp of when the Program successfully completed.

An empty end date means the Program is still running or was unexpectedly

aborted and requires a controlled restart. Whenever End Date is empty,

SV102,54 should hold the value of the program that is, or should be, running.

ConstraintColumn

Field Constraints

AcctLogKey ([AcctLogKey] >= 0 and [AcctLogKey] <= 999999)

Page 5JohnsonGroup

Page 6: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AccountngInput Accountng Input

The AccountngInput table contains Accounting transactions due to be

posted to the permanent accounting tables: Accounts Receivable table,

Accounts Payable table, and the GL Account Data table. The close/post

process also uses this data to write to Job Costing tables (Labor & Material

transactions and Open Job) as well as Purchasing or Finished Goods

depending on the type of transaction being posted. This table is loaded

when the user chooses post from the accounting batch screen. The data

comes from the individual batch tables created through Accounting or

Invoicing transaction entry. The data only stays in this table until the next

batch is loaded and fields may, or may not, be populated based on the type

of batch being posted.

Indexes on Description

TransactionN Primary key, clustered

TypeColumn

TransactionN int Number indicating the transaction group and the sequential line number of the

transaction. The left-most digit is the group number: 1 AR, 2 CR, 3 AP, 4 CD,

or 7 GJ. The remaining digits represent a sequential line number.

FileN smallint Indicates the table to which the batch will be posted:

113 = ARtransaction

117 = APtransaction

119 = GLaccountdata

CustomerN int The customer number to which this transaction applies (if A/R or receipt).

Relates to: Customer table

VendorN int The vendor number to which this transaction applies (if A/P or disbursement).

Relates to: Vendor table

AccountN int The G/L account number to which this transaction applies (offsets and journal

adjustments).

Relates to: GLAccounts table

InvoiceN int The invoice number, if there is one.

CheckN int The customer check number if a receipt; your check number if a disbursement.

PostingDate datetime The batch date entered in accounting. Used for aging unless the parameter 'A/P

Invoice Posting Date' specifies that the Invoice Date should be used for aging. If

the Invoice Date is used, aging and General Ledger report may not agree.

PaymentDate datetime For AP (vendor invoice), this is the date that accounting calculates as the proper

date on which the vendor invoice should be paid (based on terms code and

vendor invoice date).

InvoiceDate datetime For AP transactions, this is the vendor invoice date. It will be the same as the

Posting Date, unless the parameter 'A/P Invoice Posting Date' specifies that the

Invoice Date is to be used for aging.

JobN int For customer bills (AR) and receipts (CR), this is the job to which the

transaction applies. If this is a positive job number, this is a final bill for the

job. If negative, this is a partial bill or adjustment.

Page 6JohnsonGroup

Page 7: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AccountngInput Accountng Input

LaborCost decimal (11,2) For AR transactions only. If the job number is less than 0, the value in this field

was entered with either the Accounting or Invoicing program as a partial billing.

SalesAnalysis decimal (11,2) For AR transactions only. The value in this field is computed and written here

by the Close operation, which adds all the accounting dollars for the General

Ledger sales accounts (i.e., it is the sum of all offsetting transactions to General

Ledger sales accounts).

MaterialCost decimal (11,2) For AR transactions only. If the job number is less than 0, the value in this field

was entered with the Accounting or Invoicing program as a partial billing.

ProductCode int The product code of the job. Copied here by the Close operation of Post.

Maintained by Adjust.

Relates to: ProductCode table

SalesmanN int The salesperson number assigned to the job. Copied here by the Close operation

of Post. Maintained by Adjust.

Relates to: Salesperson table

QuantityInvcd decimal (9,2) For AR transactions only, the quantity invoiced, entered with Accounting or

Invoicing. (optional)

PurchaseOrder int The PO number on an AP transaction.

HoldFlag tinyint 0 = Do not hold payment on this vendor invoice;

1 = Hold payment on this vendor invoice.

Discount decimal (11,2) The amount of discount to take on this vendor invoice. Calculated by

Accounting or entered manually.

D1099Type smallint For vendor invoices, the 1099 category in which to include this invoice amount.

For reporting on the 1099-MISC report (form.1099). Default is set by parameter

'1099 Default Tax Type' and can be overridden in Accounting.

Relates to: D1099TaxTypes table

Transactions decimal (15,2) The total amount of the accounting transaction, entered with the Accounting or

Invoice program.

TaxCode int Tax Code for AR transactions. Entered with Accounting or Invoicing program.

QuanProduced decimal (9,2) Quantity Produced. Used during Post to update Finished Goods Inventory.

FGIItemN int Finished Goods Item number used for a partial or closing transaction moving

goods from Job Costing to FGI.

Relates to: FGInvMaster table

Department int The department number to which the transaction applies.

Relates to: DeptNames table

APInvoiceNum varchar (14) Account Payable invoice.

BatchTransNum int The transaction number from the Accounting Batch table

WIkey int For Invoice transactions only.

Unique key that is related to WinInvoice table to identify the record for the

invoice number being posted

Description varchar (60) Description of the transaction entered by user.

Page 7JohnsonGroup

Page 8: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AccountngInput Accountng Input

CheckImageN int The number used to locate the check image information that is stored in the

AcctCheckHeader and AcctCheckDetail tables. This number corresponds to

CheckHeaderN in the AcctCheckHeader table.

Relates to: AcctCheckHeader table

VoidReason smallint The reason why the check identified by this transaction was marked as a void

check. Valid values are:

0 - Check has not been marked void

1 - Alignment

2 - Multiple stub

3 - Reprint - different number

4 - Reprint - same number

5 - User initiated

FGITransQty decimal (9,2) Holds the quantity of a Finished Goods item that will be transferred to Finished

Goods Inventory when a partial or final invoice is used to bill for a Finished

Goods job.

ConstraintColumn

Field Constraints

AccountN ([AccountN] >= 0 and [AccountN] <= 999999999)

BatchTransNum ([BatchTransNum] >= 0 and [BatchTransNum] <= 999999)

CheckImageN ([CheckImageN]>=(0) AND [CheckImageN]<=(999999999))

CheckN ([CheckN] >= 0 and [CheckN] <= 999999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

D1099Type ([D1099Type] >= 0 and [D1099Type] <= 999)

Department ([Department] >= 0 and [Department] <= 9999999)

Discount ([Discount] >= (-999999999) and [Discount] <= 999999999)

FGIItemN ([FGIItemN] >= 0 and [FGIItemN] <= 9999999)

FGITransQty ([FGITransQty]>=(0) AND [FGITransQty]<=(9999999))

FileN ([FileN] >= 0 and [FileN] <= 999)

HoldFlag ([HoldFlag] >= 0 and [HoldFlag] <= 1)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

JobN ([JobN] >= (-999999999) and [JobN] <= 999999999)

LaborCost ([LaborCost] >= (-999999999) and [LaborCost] <= 999999999)

MaterialCost ([MaterialCost] >= (-999999999) and [MaterialCost] <= 999999999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

PurchaseOrder ([purchaseorder] >= 0 and [purchaseorder] <= 999999999)

QuanProduced ([QuanProduced] >= (-9999999) and [QuanProduced] <= 9999999)

QuantityInvcd ([QuantityInvcd] >= (-9999999) and [QuantityInvcd] <= 9999999)

SalesAnalysis ([SalesAnalysis] >= (-999999999) and [SalesAnalysis] <= 999999999)

SalesmanN ([SalesmanN] >= 0 and [SalesmanN] <= 9999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

TransactionN ([TransactionN] >= 100000000 and [TransactionN] <= 799999999)

Transactions ([Transactions] >= (-99999999999) and [Transactions] <= 99999999999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

VoidReason ([VoidReason]>=(0) AND [VoidReason]<=(9))

WIkey ([WIKey] >= 0 and [WIKey] <= 999999999)

Page 8JohnsonGroup

Page 9: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACCrews AC Crews

This table is used to backup the local Auto-Count database ACCrews

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

CrewNumber int Holds the assigned crew number

Employee varchar (12) .

Name varchar (50) Crew's name

Shift varchar (2) What shift the crew is assigned to

LogDate int Date the crew or employee logged in

CostCenter varchar (5) Labor Cost Center Code

nIndex int Used to determine if a crew is logged in.

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

CrewNumber ([CrewNumber] >= (-9999999) and [CrewNumber] <= 9999999)

LogDate ([LogDate] >= (-9999999) and [LogDate] <= 9999999)

nIndex ([nIndex] >= (-99999) and [nIndex] <= 99999)

Page 9JohnsonGroup

Page 10: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AcctBudget Acct Budget

This table contains budget entries for use in your financial statements. A

set of budget entries in this table with the same "BudgetN" define one

"Budget." You may store more than one budget at a time in your system.

You may also "import" a budget (a set of "Acct Budget" records) into this

table from a file.

Indexes on Description

BudgetN, DivisionN,

AccountN, AcctDepartment,

PeriodEnding

Primary key, clustered

TypeColumn

AccountN int A unique number which identifies the account.

Relates to: GLAccounts table

PeriodEnding datetime Defines the ending period for which this budget entry applies.

BudgetAmount decimal (15,2) The amount budgeted in whole dollars.

AcctDepartment int The department number to which this budget pertains.

Relates to: DeptNames table

DivisionN int The Division to which this budget entry pertains.

Relates to: AcctDivisions table

BudgetN int Identifies to which "Budget" this entry belongs.

Relates to: BudgetDescript table

SourceOfData tinyint Indicates how the entry was made.

0 = Edited in system

1 = Imported from file

LastEdited datetime The date on which this entry was entered or last edited.

EditedByWhom varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

AccountN ([AccountN] >= 1 and [AccountN] <= 999999999)

AcctDepartment ([AcctDepartment] >= 0 and [AcctDepartment] <= 9999999)

BudgetAmount ([BudgetAmount] >= (-999999999) and [BudgetAmount] <= 999999999)

BudgetN ([BudgetN] >= 0 and [BudgetN] <= 9999)

DivisionN ([DivisionN] >= 0 and [DivisionN] <= 9999)

SourceOfData ([SourceOfData] >= 0 and [SourceOfData] <= 9)

Page 10JohnsonGroup

Page 11: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AcctCheckDetail Acct Check Detail

This table holds the lines of text that were printed on checks generated

with the Accounting application. Each row in this table represents one line

of text that was printed on a check.

Indexes on Description

CheckHeaderN, Row Primary key, clustered

TypeColumn

CheckHeaderN int A unique number assigned when a check is printed.

Relates to: AcctCheckHeader table

Row int The number of the row on the check where the information was printed.

LineText varchar (100) The line of text that was printed on the check.

ConstraintColumn

Field Constraints

CheckHeaderN ([CheckHeaderN]>=(0) AND [CheckHeaderN]<=(999999999))

Page 11JohnsonGroup

Page 12: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AcctCheckHeader Check Image Header

This table is used to store information about checks that are printed with

the Accounting application. This information, in conjunction with the

information in the AcctCheckDetail table, is used to print information

about checks that have been generated with Accounting. Information is

not stored for sample or alignment checks.

Indexes on Description

CheckHeaderN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

AcctCheckDetail CheckHeaderN

Related Tables

AccountngInput CheckImageN

APTransaction CheckImageN

CRCDBatch CheckImageN

GJBatch CheckImageN

GLAccountData CheckImageN

TypeColumn

CheckHeaderN int A unique number assigned when a check is printed.

DatePrinted datetime The date on which this instance of the check was printed.

PrintedBy varchar (128) The name of the user who printed the check.

Division int The division for which the check was printed.

Relates to: AcctDivisions table

StubCheckNumber int The number that was printed on this portion of the check. If a check requires

more than one check form for listing the invoices being paid, this number will be

different from the RealCheckNumber.

RealCheckNumber int The number of the check form on which the actual check was printed.

VendorN int The number of the vendor to which this check was issued. For non-invoiced

checks, this value will be zero.

Relates to: Vendor table

ConstraintColumn

Field Constraints

CheckHeaderN ([CheckHeaderN]>=(0) AND [CheckHeaderN]<=(999999999))

Division ([Division]>=(0.0) AND [Division]<=(9999))

RealCheckNumber ([RealCheckNumber]>=(0.0) AND [RealCheckNumber]<=(999999999))

StubCheckNumber ([StubCheckNumber]>=(0.0) AND [StubCheckNumber]<=(999999999))

Page 12JohnsonGroup

Page 13: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AcctDivisions Accounting Divisions

The Acct Divisions table defines the legal Accounting Divisions for which

accounting entries may be made. Non divisional and divisional users must

have Division 0 in this table.

Indexes on Description

DivisionN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AcctBudget DivisionN

AcctCheckHeader Division

APTransaction Division

ARTransaction Division

BatchDetailHistory div

CustInvNotes Division

FixedAssets DivisionN

GLAccountData Division

PostJournalHistory DivN

RecurringTrans DivisionN

TransactionSet TransDivNum

WinAcctBatch Division

WinInvoice Division

TypeColumn

DivisionN int Identifies the Division. This is the primary key for this table.

DivisionTitle varchar (24) Appears at the top of reports when you request a report by an individual

division.

DivisionName varchar (50) The name of the division, as it appears on your statements.

AddrLine1 varchar (40) First line of the address for this division.

AddrLine2 varchar (40) Second line of the address for this division.

City varchar (30) City portion of the address for this division.

StateProv varchar (4) State/Province portion of the address for this division.

PostalCode varchar (15) Postal Code portion of the address for this division.

DefCashAcctAP int The General Ledger account number for the default cash account for Accounts

Payable for this division.

Relates to: GLAccounts table

DefCashAcctAR int The General Ledger account number for the default cash account for Accounts

Receivable for this division.

Relates to: GLAccounts table

InactiveRemove tinyint Provides a flag to determine whether this division is currently active and can be

used in accounting transactions.

0 = No

1 = Yes

TelephoneNo varchar (25) Full phone number including country and area codes.

FaxNo varchar (25) Fax telephone number for this division.

NextInvoiceN int Used by Invoicing to determine the next available invoice number by division.

Page 13JohnsonGroup

Page 14: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AcctDivisions Accounting Divisions

CountryCode varchar (3) Country portion of the address for this division.

Relates to: Country table

NextCheckN int Used by check writing software to get the next check number in a check run for

this division. Must be initialized by EFI Logic Customer Service.

FederalTaxID varchar (15) Used for 1099 reporting for this division.

StateTaxID varchar (15) Used for 1099 reporting for this division.

ChkDateFormat smallint Use this field to indicate how you want the date to appear on your checks.

Options are:

Value Format Example

0 MM/DD/YY 01/31/02

1 MMM DD, YYYY Jan 31, 2002

2 MONTH DD, YYYY January 31, 2002

3 DD/MM/YY 31/01/02

4 DD MON, YYYY 31 Jan, 2002

5 DD MONTH, YYYY 31 January, 2002

This is recorded automatically via the 'Accounting -> Edit -> Check Format'

screen.

ChkAmtAlignment smallint This value indicates how the amount of the check (expressed in words) should be

positioned in the available space on the check. The options are Left Justified

(0), Right Justified (1), and Centered (2).

This is recorded automatically via the 'Accounting -> Edit -> Check Format'

screen.

ChkNumLinesForm smallint Use this field to indicate how many vertical lines are on your check. The typical

8.5 x 11 sheet has 66 lines. This is recorded automatically via the 'Accounting

-> Edit -> Check Format' screen.

ChkNumLinesCheck smallint Use this field to indicate how many lines of the check form are dedicated to the

actual check. This is recorded automatically via the 'Accounting -> Edit ->

Check Format' screen.

ChkDateRow smallint This value represents the vertical row of the check form on which the date will

be printed. This is recorded automatically via the 'Accounting -> Edit -> Check

Format' screen.

ChkDateCol smallint This field contains the horizontal column of the check at which the leftmost

character of the date should be printed. This is recorded automatically via the

'Accounting -> Edit -> Check Format' screen.

ChkAmtRow smallint This value represents the vertical row of the check form on which the numerical

amount of the check will be printed. This is recorded automatically via the

'Accounting -> Edit -> Check Format' screen.

ChkAmtCol smallint This value represents the horizontal column of the check at which the leftmost

character of the numerical amount of the check will be printed. This is recorded

automatically via the 'Accounting -> Edit -> Check Format' screen.

Page 14JohnsonGroup

Page 15: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AcctDivisions Accounting Divisions

ChkAlphaAmtRow smallint This value represents the vertical row of the check form on which the amount of

the check (expressed in words) will be printed. In the event that the amount

requires more than one line of text, this value represents the first row of text on

the check. This is recorded automatically via the 'Accounting -> Edit -> Check

Format' screen.

ChkAlphaAmtCol smallint This value represents the horizontal column on the check at which the amount of

the check (expressed in words) will be printed. This value is dependent upon the

ChkAmtAlignment option. If the ChkAmtAlignment option is right justify (1),

this value will be the rightmost column for the text. If the left justify option is

selected, this value will be the leftmost column for the text. For the centered

option, this value will be the column around which the text will be horizontally

centered. This is recorded automatically via the 'Accounting -> Edit -> Check

Format' screen.

ChkAddressRow smallint This value represents the first vertical row where the check recipient's name will

be printed on the check. Address lines will be printed on subsequent rows. This

is recorded automatically via the 'Accounting -> Edit -> Check Format' screen.

ChkAddressCol smallint This value represents the leftmost column for the check recipient's name and

address. This is recorded automatically via the 'Accounting -> Edit -> Check

Format' screen.

ChkVoidSigRow smallint This value identifies the row where the word VOID will be printed on alignment

checks. This should be the row on which the signature would usually appear.

This is recorded automatically via the 'Accounting -> Edit -> Check Format'

screen.

ChkVoidSigCol smallint This value identifies the column where the word VOID will be printed on

alignment checks. This should be the column where the signature would usually

appear. This is recorded automatically via the 'Accounting -> Edit -> Check

Format' screen.

ChkDoubleStub tinyint Flag to control if checks for this division will print with a single or double stub.

This is recorded automatically via the 'Accounting -> Edit -> Check Format'

screen.

AddrLine3 varchar (40) Third line of address for this division.

PhoneExt varchar (6) Telephone extension for this division.

Email varchar (128) E-mail address for this division.

CurrencyWord1 varchar (20) First order currency name for check writing -ex "dollars"

CurrencyWord2 varchar (20) Second order currency units for check writing - ex "Cents"

ChkPrintWordAmt bit Flag to control whether checks for this division will include the amount of the

check in words. This is maintained on the 'Accounting -> Edit -> Check Format'

screen. A value of 1 (true) means that the check amount in words will be printed

on the face of the check. A value of 0 (false) indicates that the check amount in

words will not be printed.

ChkPrintDateDesc bit Flag to control whether the date printed on checks for this division will be

printed in a larger font. This is maintained on the 'Accounting -> Edit -> Check

Format' screen. A value of 1 (true) means that the date on the face of the check

will be printed in 12 point font. A value of 0 (false) indicates that the date will

be printed in 10 point font like the other information on the face of the check.

Page 15JohnsonGroup

Page 16: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AcctDivisions Accounting Divisions

ChkPrintVendorN bit Flag to control whether checks for this division will display the vendor number

in parentheses beside the vendor name on the check. This is maintained on the

'Accounting -> Edit -> Check Format' screen. A value of 1 (true) means that the

vendor number will be printed on the face of the check. A value of 0 (false)

indicates that the vendor number will not be printed.

ChkFaceBold bit Flag to indicate whether the information that appears on the check should be

printed in bold font. This is maintained on the 'Accounting -> Edit -> Check

Format' screen. A value of 1 (true) means that the check will be printed in bold

font. A value of 0 (false) indicates that the check will be printed in regular font.

ChkLargerFont bit Flag to indicate whether the information that appears on the check should be

printed in a larger font. This is maintained on the 'Accounting -> Edit -> Check

Format' screen. A value of 1 (true) means that the check will be printed in a

larger font. A value of 0 (false) indicates that the check will be printed in regular

font.

ConstraintColumn

Field Constraints

ChkAddressCol ([ChkAddressCol] >= 0 and [ChkAddressCol] <= 100)

ChkAddressRow ([ChkAddressRow] >= 0 and [ChkAddressRow] <= 80)

ChkAlphaAmtCol ([ChkAlphaAmtCol] >= 0 and [ChkAlphaAmtCol] <= 100)

ChkAlphaAmtRow ([ChkAlphaAmtRow] >= 0 and [ChkAlphaAmtRow] <= 80)

ChkAmtAlignment ([ChkAmtAlignment] >= 0 and [ChkAmtAlignment] <= 2)

ChkAmtCol ([ChkAmtCol] >= 0 and [ChkAmtCol] <= 100)

ChkAmtRow ([ChkAmtRow] >= 0 and [ChkAmtRow] <= 80)

ChkDateCol ([ChkDateCol] >= 0 and [ChkDateCol] <= 100)

ChkDateFormat ([ChkDateFormat] >= 0 and [ChkDateFormat] <= 8)

ChkDateRow ([ChkDateRow] >= 0 and [ChkDateRow] <= 80)

ChkDoubleStub ([ChkDoubleStub] >= 0 and [ChkDoubleStub] <= 1)

ChkNumLinesCheck ([ChkNumLinesCheck] >= 0 and [ChkNumLinesCheck] <= 80)

ChkNumLinesForm ([ChkNumLinesForm] >= 0 and [ChkNumLinesForm] <= 80)

ChkVoidSigCol ([ChkVoidSigCol] >= 0 and [ChkVoidSigCol] <= 100)

ChkVoidSigRow ([ChkVoidSigRow] >= 0 and [ChkVoidSigRow] <= 80)

DefCashAcctAP ([DefCashAcctAP] >= 0 and [DefCashAcctAP] <= 999999999)

DefCashAcctAR ([DefCashAcctAR] >= 0 and [DefCashAcctAR] <= 999999999)

DivisionN ([DivisionN] >= 0 and [DivisionN] <= 9999)

InactiveRemove ([InactiveRemove] >= 0 and [InactiveRemove] <= 1)

NextCheckN ([NextCheckN] >= 0 and [NextCheckN] <= 999999999)

NextInvoiceN ([NextInvoiceN] >= 0 and [NextInvoiceN] <= 999999999)

Page 16JohnsonGroup

Page 17: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACDeliveries AC Deliveries

This table is used to backup the local Auto-Count database ACDeliveries

table.

Indexes on Description

ACNumber, Delivery Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Delivery int Assigned to a Presses physical delivery

DMAddress int Address of a Delivery Monitor

DMType int Not Used

ScaleNumber int Default scale assigned to a delivery

Channelizer tinyint Not used

Channel tinyint Not used

HasAlpha tinyint Has alpha display

Sensor int This holds the Sensor value. 1 = Gross Only, 2 = Gross and Net, 3 = Gross and

Negative gating and 4 = Gross and Positive gating.

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Channel ([Channel] >= 0 and [Channel] <= 4)

Channelizer ([Channelizer] >= 0 and [Channelizer] <= 20)

Delivery ([Delivery] >= (-99999) and [Delivery] <= 99999)

DMAddress ([DMAddress] >= (-99999) and [DMAddress] <= 99999)

DMType ([DMType] >= (-99999) and [DMType] <= 99999)

HasAlpha ([HasAlpha] >= 0 and [HasAlpha] <= 1)

ScaleNumber ([ScaleNumber] >= (-9999999) and [ScaleNumber] <= 9999999)

Sensor ([Sensor] >= 0 and [Sensor] <= 9999)

Page 17JohnsonGroup

Page 18: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACDMOutputs AC DMOutputs

This table is used to backup the local Auto-Count database ACDMOutputs

table.

Indexes on Description

ACNumber, nOutput Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

nOutput int Number of the output

Type int Definition of the type of output used

TrueCommand varchar (30) Not used

FalseCommand varchar (30) Not used

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

nOutput ([nOutput] >= (-99999) and [nOutput] <= 99999)

Type ([Type] >= (-99999) and [Type] <= 99999)

Page 18JohnsonGroup

Page 19: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACEmployee AC Employee

This table is used to backup the local Auto-Count database ACEmployee

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Name varchar (50) Employee name

Shift varchar (2) Default shift for employee

HomeCC varchar (5) Cost center

Employee varchar (12) Employee number

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Page 19JohnsonGroup

Page 20: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACLaunch AC Launch

This table is used to backup the local Auto-Count database ACLaunch

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Visible tinyint Whether to display it or not

Description varchar (50) .

Exe varchar (100) Path and name of the exe to run

Args varchar (50) Argument to attach to the exe

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Visible ([Visible] >= 0 and [Visible] <= 1)

Page 20JohnsonGroup

Page 21: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACMachine AC Machine

This table is used to backup the local Auto-Count database ACMachine

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Config int Configuration of piece of equipment

Description varchar (20) Holds the variable name

sValue varchar (20) Holds the variables value

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Config ([Config] >= (-9999999) and [Config] <= 9999999)

Page 21JohnsonGroup

Page 22: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACMaterial AC Material

This table is used to backup the local Auto-Count database ACMaterial

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (50) Material description

MWT varchar (13) Used to determine if measuring weight or length

Width decimal (9,3) Width of the material cost center

Length decimal (9,3) Length of a material cost center

Basiswt decimal (9,2) Holds the Basis Weight

StockType varchar (12) What stocktype this material is

Paper tinyint Whether the material is paper or not

Material varchar (15) MCC number

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Basiswt ([Basiswt] >= 0 and [Basiswt] <= 999)

Length ([Length] >= 0 and [Length] <= 99999)

Paper ([Paper] >= 0 and [Paper] <= 1)

Width ([Width] >= 0 and [Width] <= 99999)

Page 22JohnsonGroup

Page 23: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACNextRun AC Next Run

This table is used by Run List Builder and stores the next run number as

well as the number of days before purging completed runs.

Indexes on Description

KeyN Primary key, clustered

TypeColumn

KeyN int Key to the table, not really used as there is only 1 record

NextRunNo int Holds the next run number for Run List Builder

Daystokeep smallint When to purge the run list tables

ConstraintColumn

Field Constraints

Daystokeep ([Daystokeep] >= 0 and [Daystokeep] <= 999)

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

NextRunNo ([NextRunNo] >= 0 and [NextRunNo] <= 9999999)

Page 23JohnsonGroup

Page 24: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACOpCodes AC Op Codes

This table is used to backup the local Auto-Count database ACOpCodes

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (30) Description of the operation code

OpCat int Operation category of the operation code, used for reporting

DMICat int DMI Category of the operation code

Chargeable int Operation code is chargeable or not

OperationCode varchar (10) Actual operation code number

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Chargeable ([Chargeable] >= (-99999) and [Chargeable] <= 99999)

DMICat ([DMICat] >= (-99999) and [DMICat] <= 99999)

OpCat ([OpCat] >= (-99999) and [OpCat] <= 99999)

Page 24JohnsonGroup

Page 25: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACOptions AC Options

This table is used to backup the local Auto-Count database ACOptions

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (25) Holds the variable name

sValue varchar (20) Holds the variables value

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Page 25JohnsonGroup

Page 26: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACReports AC Reports

This table is used to backup the local Auto-Count database ACReports

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

ReportNumber int Holds the report number

Description varchar (20) Holds the variable name

sValue int Holds the variables value

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

ReportNumber ([ReportNumber] >= (-9999999) and [ReportNumber] <= 9999999)

sValue ([sValue] >= (-9999999) and [sValue] <= 9999999)

Page 26JohnsonGroup

Page 27: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunDeliveries AC Run Deliveries

This table stores the combined information from ACRunWebs and

ACRunDlvys.

Indexes on Description

LLRecNum, RunNumber Primary key, clustered

TypeColumn

LLRecNum int identity Identity field that is the index.

RunNumber int This is the Key back to the ACRunList table.

Relates to: ACRunlist table

Delivery smallint This is a number from 1 to 12, that refers to the delivery on the press that will

hold the product that is being produced.

ProductIndex smallint The product index has a value between 1 and 12 and maps the product from

ACRunProducts to the delivery being used.

SkidIndex smallint The skid index is from 1 to 12 and ties the skid information to the delivery being

used.

Ribbons smallint This is the number of webs of paper being used. This column was previously

known as webs in the ACRunWebs table.

FormLength decimal (9,3) This is the length of the paper for this ribbon.

FormWidth decimal (9,3) This is the width of the paper for this ribbon.

BasisWeight decimal (9,3) This is the basis weight of the paper for this ribbon.

StockType int This is the stocktype for this paper from the StockTypes table.

MaterialCode int This is the MCCN for this ribbon. This is from the MatlCostCenter.

Relates to: MatlCostCntr table

ConstraintColumn

Field Constraints

BasisWeight ([BasisWeight] >= 0 and [BasisWeight] <= 999)

Delivery ([Delivery] >= 0 and [Delivery] <= 12)

FormLength ([FormLength] >= 0 and [FormLength] <= 99999)

FormWidth ([FormWidth] >= 0 and [FormWidth] <= 99999)

MaterialCode ([MaterialCode] >= 0 and [MaterialCode] <= 9999999)

ProductIndex ([ProductIndex] >= 0 and [ProductIndex] <= 12)

Ribbons ([Ribbons] >= 0 and [Ribbons] <= 99)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

SkidIndex ([SkidIndex] >= 0 and [SkidIndex] <= 12)

StockType ([StockType] >= 0 and [StockType] <= 999999)

Page 27JohnsonGroup

Page 28: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunDlvys AC Run Dlvys

This table is used by Run List Builder and stores the delivery information

about the runs.

Indexes on Description

RunNumber, LLRecNum Primary key, clustered

TypeColumn

RunNumber int Run number assigned

Relates to: ACRunlist table

Delivery tinyint Delivery a run is assigned

TheRunNumber int Not used

ProductIndex tinyint Which product this item is

SkidIndex tinyint Which skid is assigned

QtyToDo int Qty to do for this run

LLRecNum int identity Unique key

GrossAccumulated int Holds the total gross accumulated for this run.

NetAccumulated int Holds the total net accumulated for this run.

ConstraintColumn

Field Constraints

Delivery ([Delivery] >= 0 and [Delivery] <= 8)

ProductIndex ([ProductIndex] >= 0 and [ProductIndex] <= 8)

QtyToDo ([QtyToDo] >= 0 and [QtyToDo] <= 99999999)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

SkidIndex ([SkidIndex] >= 0 and [SkidIndex] <= 8)

TheRunNumber ([TheRunNumber] >= 0 and [TheRunNumber] <= 99999999)

Page 28JohnsonGroup

Page 29: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunlist AC Runlist

This table is used by Run List Builder and stores the date and status that

the run was last modified. Also stores the sequence information.

Indexes on Description

RunNumber Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ACRunDeliveries RunNumber

ACRunDlvys RunNumber

ACRunProducts RunNumber

ACRunSkids RunNumber

ACRunWebs RunNumber

TypeColumn

RunNumber int Run number assigned

ACNumber int Main Machine Number

MachConfig int Machine configuration to use for this run

Relates to: Equipment table

SeqNumber int The order of the runs to be processed

Status smallint Current status of the run

Date datetime Date of the last operation

LastRun int This field is used for Zero Makeready presses. If a group of runs are being

created for this press, then the field is set to 0 until the last run is reached and

then the field is set to 1.

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= 0 and [ACNumber] <= 9999)

MachConfig ([MachConfig] >= 0 and [MachConfig] <= 999999)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

SeqNumber ([SeqNumber] >= (-1) and [SeqNumber] <= 99999999)

Status ([Status] >= 0 and [Status] <= 999)

Page 29JohnsonGroup

Page 30: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunProducts AC Run Products

This table is used by Run List Builder and stores the product information

for the run.

Indexes on Description

RunNumber, ProductIndex Primary key, clustered

TypeColumn

RunNumber int Run number assigned

Relates to: ACRunlist table

ProductIndex tinyint Ties this product to ACRunDlvys

JobNumber int Job Number

Relates to: OpenJob table

JobDesc varchar (30) Job Description

FormNumber int Form Number

FormDesc varchar (20) Description of the form

Prefix tinyint Nomal,AA,PE

QtyToDo int Qty to do for this product

NumberUp smallint This is used by AC1000 when configured for pieces.

Customer int Customer number

Relates to: Customer table

CustomerName varchar (24) Customer name

ObjMRHours numeric This field holds the run objective for the expected Makeready hours for this run.

ObjRunHrs numeric This field holds the run objective for the expected run hours for this run.

ObjWaste int This field holds the run objective for the expected waste for this run.

JobTaskID int Holds the JobTaskID from the SchJobTask table.

ConstraintColumn

Field Constraints

Customer ([Customer] >= 0 and [Customer] <= 999999999)

FormNumber ([FormNumber] >= 0 and [FormNumber] <= 999999)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

NumberUp ([NumberUp]>=(0) AND [NumberUp]<=(9999))

Prefix ([Prefix] >= 0 and [Prefix] <= 8)

ProductIndex ([ProductIndex] >= 0 and [ProductIndex] <= 8)

QtyToDo ([QtyToDo] >= 0 and [QtyToDo] <= 999999999)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

Page 30JohnsonGroup

Page 31: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunSkids AC Run Skids

This table is used by Run List Builder and stores the skid information for

the run.

Indexes on Description

RunNumber, SkidIndex Primary key, clustered

TypeColumn

RunNumber int Run number assigned

Relates to: ACRunlist table

SkidIndex tinyint Ties this product to ACRunDlvys

QtyPerSkid int How many signatures per skdi

SkidNumber int The first skid number to start with

NumberOfSkids int Number of skids required for this run

TicketType smallint Which skid ticket type to use

Copies tinyint Number of copies of the skid ticket

SpecInst1 varchar (20) Special instructions 1 of 4

SpecInst2 varchar (20) Special instructions 2 of 4

SpecInst3 varchar (20) Special instructions 3 of 4

SpecInst4 varchar (20) Special instructions 4 of 4

ToBindery varchar (5) Check box for skid ticket

ToWarehouse varchar (5) Check box for skid ticket

ToShipping varchar (5) Check box for skid ticket

ToOther varchar (5) Check box for skid ticket

ConstraintColumn

Field Constraints

Copies ([Copies] >= 0 and [Copies] <= 9)

NumberOfSkids ([NumberOfSkids] >= 0 and [NumberOfSkids] <= 999999)

QtyPerSkid ([QtyPerSkid] >= 0 and [QtyPerSkid] <= 999999)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

SkidIndex ([SkidIndex] >= 0 and [SkidIndex] <= 12)

SkidNumber ([SkidNumber] >= 0 and [SkidNumber] <= 999999)

TicketType ([TicketType] >= 0 and [TicketType] <= 999)

Page 31JohnsonGroup

Page 32: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACRunWebs AC Run Webs

This table was used by Run List Builder to store the web (paper)

information for the run. This table is no longer used. The first time RLB

starts it will copy the information from this table and insert it into

ACRunDeliveries.

Indexes on Description

RunNumber, Delivery Primary key, clustered

TypeColumn

RunNumber int Run number assigned

Relates to: ACRunlist table

Delivery tinyint Which delivery is assigned

TheRunNumber int Not used

Webs1 smallint Holds the number of webs for web 1

FormLength1 decimal (9,3) Holds the form length for web 1

FormWidth1 decimal (9,3) Holds the form width for web 1

BasisWeight1 decimal (9,3) Holds the Basis weight for web 1

MaterialCode1 int Holds the Material code for web 1

Relates to: MatlCostCntr table

StockType1 int Holds the Stock type for web 1

Webs2 smallint Holds the number of webs for web 2

FormLength2 decimal (9,3) Holds the form length for web 2

FormWidth2 decimal (9,3) Holds the form width for web 2

BasisWeight2 decimal (9,3) Holds the Basis weight for web 2

MaterialCode2 int Holds the Material code for web 2

Relates to: MatlCostCntr table

StockType2 int Holds the Stock type for web 2

Webs3 smallint Holds the number of webs for web 3

FormLength3 decimal (9,3) Holds the form length for web 3

FormWidth3 decimal (9,3) Holds the form width for web 3

BasisWeight3 decimal (9,3) Holds the Basis weight for web 3

MaterialCode3 int Holds the Material code for web 3

Relates to: MatlCostCntr table

StockType3 int Holds the Stock type for web 3

Webs4 smallint Holds the number of webs for web 4

FormLength4 decimal (9,3) Holds the form length for web 4

FormWidth4 decimal (9,3) Holds the form width for web 4

BasisWeight4 decimal (9,3) Holds the Basis weight for web 4

Page 32JohnsonGroup

Page 33: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ACRunWebs AC Run Webs

MaterialCode4 int Holds the Material code for web 4

Relates to: MatlCostCntr table

StockType4 int Holds the Stock type for web 4

Webs5 smallint Holds the number of webs for web 5

FormLength5 decimal (9,3) Holds the form length for web 5

FormWidth5 decimal (9,3) Holds the form width for web 5

BasisWeight5 decimal (9,3) Holds the Basis weight for web 5

MaterialCode5 int Holds the Material code for web 5

Relates to: MatlCostCntr table

StockType5 int Holds the Stock type for web 5

Webs6 smallint Holds the number of webs for web 6

FormLength6 decimal (9,3) Holds the form length for web 6

FormWidth6 decimal (9,3) Holds the form width for web 6

BasisWeight6 decimal (9,3) Holds the Basis weight for web 6

MaterialCode6 int Holds the Material code for web 6

Relates to: MatlCostCntr table

StockType6 int Holds the Stock type for web 6

Page 33JohnsonGroup

Page 34: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ACRunWebs AC Run Webs

ConstraintColumn

Field Constraints

BasisWeight1 ([BasisWeight1] >= 0 and [BasisWeight1] <= 999)

BasisWeight2 ([BasisWeight2] >= 0 and [BasisWeight2] <= 999)

BasisWeight3 ([BasisWeight3] >= 0 and [BasisWeight3] <= 999)

BasisWeight4 ([BasisWeight4] >= 0 and [BasisWeight4] <= 999)

BasisWeight5 ([BasisWeight5] >= 0 and [BasisWeight5] <= 999)

BasisWeight6 ([BasisWeight6] >= 0 and [BasisWeight6] <= 999)

Delivery ([Delivery] >= 0 and [Delivery] <= 12)

FormLength1 ([FormLength1] >= 0 and [FormLength1] <= 9999)

FormLength2 ([FormLength2] >= 0 and [FormLength2] <= 9999)

FormLength3 ([FormLength3] >= 0 and [FormLength3] <= 9999)

FormLength4 ([FormLength4] >= 0 and [FormLength4] <= 9999)

FormLength5 ([FormLength5] >= 0 and [FormLength5] <= 9999)

FormLength6 ([FormLength6] >= 0 and [FormLength6] <= 9999)

FormWidth1 ([FormWidth1] >= 0 and [FormWidth1] <= 9999)

FormWidth2 ([FormWidth2] >= 0 and [FormWidth2] <= 9999)

FormWidth3 ([FormWidth3] >= 0 and [FormWidth3] <= 9999)

FormWidth4 ([FormWidth4] >= 0 and [FormWidth4] <= 9999)

FormWidth5 ([FormWidth5] >= 0 and [FormWidth5] <= 9999)

FormWidth6 ([FormWidth6] >= 0 and [FormWidth6] <= 9999)

MaterialCode1 ([MaterialCode1] >= 0 and [MaterialCode1] <= 9999999)

MaterialCode2 ([MaterialCode2] >= 0 and [MaterialCode2] <= 9999999)

MaterialCode3 ([MaterialCode3] >= 0 and [MaterialCode3] <= 9999999)

MaterialCode4 ([MaterialCode4] >= 0 and [MaterialCode4] <= 9999999)

MaterialCode5 ([MaterialCode5] >= 0 and [MaterialCode5] <= 9999999)

MaterialCode6 ([MaterialCode6] >= 0 and [MaterialCode6] <= 9999999)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 9999999)

StockType1 ([StockType1] >= 0 and [StockType1] <= 999999)

StockType2 ([StockType2] >= 0 and [StockType2] <= 999999)

StockType3 ([StockType3] >= 0 and [StockType3] <= 999999)

StockType4 ([StockType4] >= 0 and [StockType4] <= 999999)

StockType5 ([StockType5] >= 0 and [StockType5] <= 999999)

StockType6 ([StockType6] >= 0 and [StockType6] <= 999999)

TheRunNumber ([TheRunNumber] >= 0 and [TheRunNumber] <= 99000000)

Webs1 ([Webs1] >= 0 and [Webs1] <= 99)

Webs2 ([Webs2] >= 0 and [Webs2] <= 99)

Webs3 ([Webs3] >= 0 and [Webs3] <= 99)

Webs4 ([Webs4] >= 0 and [Webs4] <= 99)

Webs5 ([Webs5] >= 0 and [Webs5] <= 99)

Webs6 ([Webs6] >= 0 and [Webs6] <= 99)

Page 34JohnsonGroup

Page 35: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACScale AC Scale

This table is used to backup the local Auto-Count database ACScale table.

Indexes on Description

ACNumber, Scale Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Scale int Scale number

Description varchar (50) Description of the scale

SIBType smallint Type of scale interface board

Units int English or metric

MaxScaleWt decimal (9,4) Maximum amount that can go on the scale

ScaleBits int Always 18

WayOffCts int When to display a large negative waste adjustment

OverloadPct decimal (9,4) What percent is considered overloaded

ZeroCts int Number of counts when the scale is empty

MissingBinCts int Number of counts a bin ways divided by 2

CalibrateCts int Number of counts for the calibrate weight

CalibrateWt decimal (9,4) Number of lbs or kgs used for calibration

OverloadCts int Number of counts to be considered overloaded

CountsPerUnit decimal (9,4) Number of cts per lb or kg

SampleQty int How many sigs required for a sample

SampleCts int Number of cts for a sample

AvePieceCts decimal (9,4) Average piece counts

QuietValue decimal (9,4) Value that decides if scale is quiet or noisy

CornerWt1 int Not used

CornerWt2 int Not used

CornerWt3 int Holds the date of calibration

CornerWt4 int Holds the time of calibration

QuietSize int Maximum size of array for scale graph

Page 35JohnsonGroup

Page 36: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ACScale AC Scale

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

AvePieceCts ([AvePieceCts] >= (-10000000) and [AvePieceCts] <= 10000000)

CalibrateCts ([CalibrateCts] >= (-9999999) and [CalibrateCts] <= 9999999)

CalibrateWt ([CalibrateWt] >= (-10000000) and [CalibrateWt] <= 10000000)

CornerWt1 ([CornerWt1] >= (-99999999) and [CornerWt1] <= 99999999)

CornerWt2 ([CornerWt2] >= (-99999999) and [CornerWt2] <= 99999999)

CornerWt3 ([CornerWt3] >= (-99999999) and [CornerWt3] <= 99999999)

CornerWt4 ([CornerWt4] >= (-99999999) and [CornerWt4] <= 99999999)

CountsPerUnit ([CountsPerUnit] >= (-10000000) and [CountsPerUnit] <= 10000000)

MaxScaleWt ([MaxScaleWt] >= (-10000000) and [MaxScaleWt] <= 10000000)

MissingBinCts ([MissingBinCts] >= (-9999999) and [MissingBinCts] <= 9999999)

OverloadCts ([OverloadCts] >= (-9999999) and [OverloadCts] <= 9999999)

OverloadPct ([OverloadPct] >= (-10000000) and [OverloadPct] <= 10000000)

QuietSize ([QuietSize] >= 0 and [QuietSize] <= 999999)

QuietValue ([QuietValue] >= (-10000000) and [QuietValue] <= 10000000)

SampleCts ([SampleCts] >= (-9999999) and [SampleCts] <= 9999999)

SampleQty ([SampleQty] >= (-9999999) and [SampleQty] <= 9999999)

Scale ([Scale] >= (-99999) and [Scale] <= 99999)

ScaleBits ([ScaleBits] >= (-99999) and [ScaleBits] <= 99999)

SIBType ([SIBType] >= 0 and [SIBType] <= 99)

Units ([Units] >= (-99999) and [Units] <= 99999)

WayOffCts ([WayOffCts] >= (-9999999) and [WayOffCts] <= 9999999)

ZeroCts ([ZeroCts] >= (-9999999) and [ZeroCts] <= 9999999)

Page 36JohnsonGroup

Page 37: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACShiftTable AC Shift Table

This table is used to backup the local Auto-Count database ACShiftTable

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

StartTime int When a shift starts

EndTime int When a shift ends

Offset int -1,0,1 used for shiftdate/logdate

Shift varchar (2) Number of shift

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

EndTime ([EndTime] >= (-9999999) and [EndTime] <= 9999999)

Offset ([Offset] >= (-99999) and [Offset] <= 99999)

StartTime ([StartTime] >= (-9999999) and [StartTime] <= 9999999)

Page 37JohnsonGroup

Page 38: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACStatusCode AC Status Code

This table is used to backup the local Auto-Count database ACStatusCode

table.

Indexes on Description

ACNumber, StatusCodeN Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

StatusCodeN int Status code number

SCDescription varchar (20) Status code description

DoneinDept tinyint .

Subjobreqd tinyint .

QTYreqd tinyint .

FormNreqd tinyint .

SigNreqd tinyint .

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

DoneinDept ([DoneinDept] >= 0 and [DoneinDept] <= 5)

FormNreqd ([FormNreqd] >= 0 and [FormNreqd] <= 1)

QTYreqd ([QTYreqd] >= 0 and [QTYreqd] <= 1)

SigNreqd ([SigNreqd] >= 0 and [SigNreqd] <= 1)

StatusCodeN ([StatusCodeN] >= 0 and [StatusCodeN] <= 99999)

Subjobreqd ([Subjobreqd] >= 0 and [Subjobreqd] <= 1)

Page 38JohnsonGroup

Page 39: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ACStockType AC Stock Type

This table is used to backup the local Auto-Count database ACStockType

table.

Indexes on Description

ACNumber, LLRecNum Primary key, clustered

TypeColumn

ACNumber int Main Machine Number

Description varchar (50) Description of the stocktype

BasSize varchar (17) Basis Size

BasWgtFact varchar (16) Basis Weight factor

StockType varchar (10) Stock type number

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ACNumber ([ACNumber] >= (-9999999) and [ACNumber] <= 9999999)

Page 39JohnsonGroup

Page 40: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AdminAreaTypeList Admin Area Type List

AdminAreaType

Indexes on Description

AdminAreaType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts AdminAreaName

TypeColumn

AdminAreaType varchar (150) AdminAreaType

Active numeric Active

ConstraintColumn

Field Constraints

Page 40JohnsonGroup

Page 41: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AlterationDetail Alteration Detail

Contains detail lines for an alteration. Alteration detail can be selected

from a rate schedule if desired. This table contains billing information that

can be collected onto an invoice.

Indexes on Description

JobN, AlterationN, KeyN Primary key, clustered

TypeColumn

JobN int Job number

Relates to: Alterations table

AlterationN int Alteration number

Relates to: Alterations table

LineItemN int Item sequence number

Quantity decimal (15,2) Quantity

Description varchar (200) Detail line desciption (this could show on an invoice)

ProductionNotes varchar (5,000) Notes about this detail line for the production floor

Price decimal (15,2) Price

RateID int Rate ID if selected from a rate schedule

Relates to: QQRate table

ProductID int Product ID if selected from a rate schedule

Relates to: QQProducts table

SizeID int Size ID if selected from a rate schedule

Relates to: QQSize table

RevisionN int Revision number if this alteration detail line was created as a result of making a

jobticket revision.

WIKey int Key from the invoice table if this detail line has been put on an invoice.

CreatedBy varchar (128) Who created this detail line

KeyN int identity Key

ConstraintColumn

Field Constraints

AlterationN ([AlterationN] >= 0 and [AlterationN] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LineItemN ([lineitemn] >= 0 and [lineitemn] <= 999)

Price ([Price] >= (-999999999) and [Price] <= 999999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

Page 41JohnsonGroup

Page 42: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AlterationDocuments Alteration Documents

This table contains a list of documents associated with a specific alteration.

Indexes on Description

JobN, AlterationN,

SequenceN

Primary key, clustered

TypeColumn

JobN int Job number

Relates to: Alterations table

AlterationN int Alteration number

Relates to: Alterations table

SequenceN int Sequence number of the document

DocumentPath varchar (512) Path to the document. Note: if you use mapped drives, they must be mapped on

the client you are running on.

ConstraintColumn

Field Constraints

AlterationN ([AlterationN] >= 0 and [AlterationN] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

SequenceN ([sequencen] >= 0 and [sequencen] <= 999)

Page 42JohnsonGroup

Page 43: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Alterations Alterations

Contains alterations related to a job. These alterations can be either AAs

or PEs (Printer errors)

Indexes on Description

JobN, AlterationN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

AlterationDetail AlterationN

AlterationDocuments AlterationN

TypeColumn

JobN int Job number

Relates to: OpenJob table

AlterationN int Alteration number

Description varchar (50) Description of the alteration.

DateEntered datetime Date the alteration was entered.

Approval_name varchar (200) Logname of person who approved the alteration

Approval_date datetime Date this alteration was approved

CustomerNotes varchar (5,000) Any notes the customer wants to include about this alteration.

Approved tinyint Approved?

(NOTE: the job cannot be closed and items cannot be put on an invoice until it is

approved.)

0 = No

1 = Yes

CloseDate datetime Date job was closed.

AlterationType tinyint Type of alteration

0 = AA

1 = PE

Form int Form number

Subjob int Subjob number

ConstraintColumn

Field Constraints

AlterationN ([AlterationN] >= 1 and [AlterationN] <= 999999999)

AlterationType ([alterationtype] >= 0 and [alterationtype] <= 9)

Approved ([Approved] >= 0 and [Approved] <= 9)

Form ([form] >= 0 and [form] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Subjob ([subjob] >= 0 and [subjob] <= 9999)

Page 43JohnsonGroup

Page 44: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AltVendAddr Alternate Vendor Address

This table is used to store alternate addresses and contacts for your

vendors. They can be specified in the Table Maintenance application and

are used in the Purchasing and Accounting applications.

Indexes on Description

VendorN, AddressNumber Primary key, clustered

TypeColumn

VendorN int A unique number which identifies the vendor. Note that Vendor 99999 is usually

a special vendor record used to record spoiled checks. By recording them in this

way they are all grouped together on the Check Register.

Relates to: Vendor table

AddressNumber int A numeric key assigned to this address/contact.

AddressDesc varchar (30) A line of description to help identify the address. This aids in looking up the

address, but does not show up on any forms or reports (other than the vendor

list).

Addressee varchar (50) The first line of address. This line needs to include the company name.

AddrLine1 varchar (40) Line 1 of address.

AddrLine2 varchar (40) Line 2 of address.

City varchar (30) The city to appear in the address.

StateProv varchar (4) The two-character state abbreviation of the vendor.

PostalCode varchar (15) The vendor's postal code.

Attention varchar (35) The name of your contact or representative at the vendor. For purchasing

contacts, this is the name that will be displayed in other applications (such as

Purchasing). For accounting contacts, this is the name that will be listed when

you do a vendor inquiry in Accounting.

TelephoneN varchar (25) The vendor's voice telephone number. Include the area code, but not hyphens.

FaxPhoneN varchar (25) The vendor's fax number, if any. Include the area code, but not hyphens.

CountryCode varchar (3) Country Code for this Vendor. This field is related to the Country Table which

will be used to print the full Country name in the address.

Relates to: Country table

PhoneExt varchar (6) Telephone extension.

Email varchar (128) E-mail address.

AddrLine3 varchar (40) Line 3 of the address.

ContactName varchar (60) Another name or description that you want to provide for the contact, for

example, Ink Specialist.

InactivePurge bit A setting that controls whether this address or contact will be available as a

selection in other parts of the Logic system. If it has been marked Inactive, it

will not be available. Is this contact currently inactive?

0 = No

1 = Yes

Page 44JohnsonGroup

Page 45: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: AltVendAddr Alternate Vendor Address

IsPurchasingContact bit Indicates whether the contact described by this entry is a Purchasing Contact.

Purchasing contacts can be used when creating purchase orders with the

Purchasing application.

0 = No

1 = Yes

DefPurchasingContact bit Indicates whether the contact described by this entry is your default purchasing

contact for the vendor.

0 = No

1 = Yes

IsAcctContact bit Indicates whether the contact described by this entry is an Accounting Contact.

Accounting contacts can be viewed in the Accounting application.

0 = No

1 = Yes

DefAcctContact bit Indicates whether the contact described by this entry is your default accounting

contact at the vendor.

0 = No

1 = Yes

IsShipAddr bit Indicates whether the contact is an additional shipping address for the vendor.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

AddressNumber ([AddressNumber]>(0) AND [AddressNumber]<=(9999999))

VendorN ([VendorN] >= 1 and [VendorN] <= 999999999)

Page 45JohnsonGroup

Page 46: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Answers Answers

Answers provided by the user as overrides to operation values provided as

defaults by the Standards when creating an Estimating 3 estimate.

Indexes on Description

IssNum, CompNum, OperID,

Instance, QuesID, AnsNum

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number for these answers

EstNum decimal (15,2) Estimate Number

OperID varchar (8) Operation ID

Instance smallint Instance of this operation

QuesID int Question ID from the standards that is being answered.

AnsNum smallint Answer number when multiple answers are allowed for an operation. This

usually reflects specific overrides for multiple quantities.

CalcMe tinyint Whether field value should be calculated instead of using the default.0=No,

1=Yes If this field is Yes, the answer value field is ignored.

AValue varchar (120) Answer to question if supplied by user

ConstraintColumn

Field Constraints

AnsNum ([AnsNum] >= 0 and [AnsNum] <= 99)

CalcMe ([CalcMe] >= 0 and [CalcMe] <= 1)

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

Instance ([Instance] >= 0 and [Instance] <= 99)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

QuesID ([QuesID] >= 0 and [QuesID] <= 9999999)

Page 46JohnsonGroup

Page 47: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: APBatch AP Batch

APBatch table for Accounting input. Contains header information for a

single double entry accounting transaction. General Ledger offsetting

accounts are contained in the associated APOffsets table. Data in this

table will be posted to the APtransaction table and will be deleted when its

associated batch is deleted by the system (after the batch has been posted).

Indexes on Description

APKey Primary key, clustered

BatchNumber, APKey Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

APOffsets APKey

TypeColumn

APKey int Sequential key assigned by Accounting

BatchNumber int Batch number for Accounts Payable transactions. Accounting assigns the batch

number to table WinAcctBatch when a new batch is created. Each record in this

table represents the header of a double entry transaction and must be associated

with a WinAcctBatch batch.

Relates to: WinAcctBatch table

Vendor int Vendor number for the transaction.

Relates to: Vendor table

VendorInvoice varchar (12) Invoice number/id. Usually assigned by your vendor

PurchaseOrder int Related to PurchaseOrder table. This is a required field if the Vendor table

RequirePO flag is on.

DateOfInvoice datetime Will be used by the check writing program, along with vendor's terms code, to

determine when invoice should be paid. Invoices will be aged either by the

posting date or this invoice date depending upon the value of parameter 'A/P

Invoice Posting Date.'

InvOnHoldFlg tinyint Indicates whether an invoice has been placed on hold. The check writing

program will not automatically select an on hold invoice for payment. This flag

may be turned off by the user from the checks or cash disbursement screens.

PaymentDate datetime Used by automatic selection of checks screen to determine which invoices to

pay.

Discount decimal (15,2) Discount for this invoice, entered by user.

D1099Type smallint For 1099 vendors, this number represents the 1099 classification for this invoice.

Relates to: D1099TaxTypes table

InvoiceAmount decimal (15,2) Total amount of the invoice. Must balance the sum of all the offsetting entries

stored in APOffsets for this APKey.

Description varchar (60) Text entered by user. Will be posted to GLAccountData table.

Page 47JohnsonGroup

Page 48: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: APBatch AP Batch

ConstraintColumn

Field Constraints

APKey ([APKey] >= 1 and [APKey] <= 999999)

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 999999)

D1099Type ([D1099Type] >= 0 and [D1099Type] <= 999)

Discount ([Discount] >= (-999999999) and [Discount] <= 999999999)

InvoiceAmount ([InvoiceAmount] >= (-999999999) and [InvoiceAmount] <= 999999999)

InvOnHoldFlg ([InvOnHoldFlg] >= 0 and [InvOnHoldFlg] <= 1)

PurchaseOrder ([purchaseorder] >= 0 and [purchaseorder] <= 999999999)

Vendor ([Vendor] >= 0 and [Vendor] <= 999999999)

Page 48JohnsonGroup

Page 49: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: APOffsets AP Offsets

Contains General Ledger offset accounts and amounts for accounts

payable transactions. Related to APBatch table by the APKey. Data in

this table will be posted to the GLAccountData table and will be deleted

when its associated batch is deleted by the system (after the batch has been

posted).

Indexes on Description

APKey, LLRecNum Primary key, clustered

TypeColumn

APKey int Sequential key assigned by Accounting.

Relates to: APBatch table

AccountNo int General Ledger account number for this offset to AP.

Relates to: GLAccounts table

Department int Department number to charge for this transaction. A department number may

only be entered here when the GL Account for this transaction requires a

department.

Relates to: DeptNames table

Amount decimal (15,2) Amount for this offset. The sum of all the offsets for a unique APKey must

balance the InvoiceAmount for the corresponding APKey in the APBatch table.

LLRecNum int identity Unique key used internally by EFI Logic software.

APTaxCode int Tax code for this transaction. Only used if the parameter 'Record AP Tax' is on.

Relates to: TaxCode table

TaxAmt decimal (15,2) Amount of tax associated with this line of the transaction. Only used if the

parameter 'Record AP Tax' is on.

ConstraintColumn

Field Constraints

AccountNo ([AccountNo] >= 1 and [AccountNo] <= 999999999)

Amount ([Amount] >= (-999999999) and [Amount] <= 999999999)

APKey ([APKey] >= 0 and [APKey] <= 999999)

Department ([Department] >= 0 and [Department] <= 9999999)

TaxAmt ([TaxAmt] >= (-999999999) and [TaxAmt] <= 999999999)

Page 49JohnsonGroup

Page 50: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Appl1CodesFile Codes List

The Codes List table contains lists of possible values to display for choice

fields (toggle fields) in other tables. This table is for EFI Logic use only.

The Vendor table, for example, has a column called Requires PO (reqpo)

with two possible values: No and Yes. These are encoded as 0 and 1. The

Codes List table provides a translation table that converts 0 to No and 1 to

Yes for screen display. The Code Key table has the format iiinnn, where iii

is an index (the Code base) specified in the Codes Index

(Appl1CodesIndex) table and nnn is the field value referring to the literal.

Reqpo, for example, has a code base, or index, of 21; in the Codes List

table, you will find 21000, with a literal of No, and 21001, with a literal of

Yes.

Indexes on Description

CodeKey Primary key, clustered

TypeColumn

CodeKey int The key to the table, format iiinnn, where iii is the code base (which is an index

for a particular choice field in another table), and nnn is the field value of one of

the literals, or choices, associated with the field.

Description varchar (50) A literal, or choice, for the field. The default

choice should always be listed first (field value

= 0; key = iii000).

ConstraintColumn

Field Constraints

CodeKey ([CodeKey] >= 0 and [CodeKey] <= 999999)

Page 50JohnsonGroup

Page 51: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Appl1CodesIndex Codes Index

This table is for EFI Logic use only. The Codes Index table serves as an

index to the Codes List, which contains literals for many of the toggle

fields in the other data table. To simplify the finding of the literals, without

making each set be its own related table, they are indexed in the Codes

Index. Each field that has a list of literals has an entry in this table to

identify, by means of the code base, the set of literals. This allows

applications to have a common list of value choices for fields in the

system.

Indexes on Description

SQLFileName,

SQLFieldName

Primary key, clustered

TypeColumn

CodeBase int The leading digits of the keys in the Codes List table for the given set of literals.

Each set of literals has a Code Key in the format iiinnn, where iii is the Code

Base and nnn is the sequence of the literal (literals are displayed in sequence

order), making a unique key for each literal.

SQLFileName varchar (20) Converted SQL table name for related table.

SQLFieldName varchar (20) The SQL Field name related to this code.

ConstraintColumn

Field Constraints

CodeBase ([CodeBase] >= 0 and [CodeBase] <= 9999)

Page 51JohnsonGroup

Page 52: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Application Application

System table which allows validation of applications and organization of

parameters and tables.

Indexes on Description

ApplicationID Primary key, clustered

TypeColumn

ApplicationID int Key number for application record.

ApplicationName varchar (30) Name of application.

ForVerify bit If = 1, this application can be verified as valid for the customer to use. Those

applications which are listed as = 0 are for categorization of tables and

parameters only.

ConstraintColumn

Field Constraints

Page 52JohnsonGroup

Page 53: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ApplProgramDesc Program Desc

The Program Description table contains entries for every application and

program permission used in the system.

Indexes on Description

ProgramName Primary key, clustered

ProgramName Nonclustered

Related Tables with Foreign Keys Column

Related Tables

MessageLog ProgramName

TypeColumn

Description varchar (45) Description of item.

ProgramName varchar (10) Name of program or permission

ExecCommand varchar (55) Application role encrypted password when item is an application.

ProgramType tinyint 1 = Program with Application role, 7 = Report, 0 = Other

PermissionType tinyint 1=Permission category with User Template, 2= Role permission

CtrlParameter int Parameter turned on/off when this program is validated to allow other programs

to know when a program is enabled.

Relates to: MasterParams table

Version varchar (20) Version number of currently released executable if item is an application.

Compatibility varchar (20) Not Used

ApplicationID int Application Id with which this program is associated and validated.

AccessTableIndex tinyint Indicates which zlaProgAccess table this entry is in (1 = zlaProgAccess,

2=zlaProgAccess2)

ConstraintColumn

Field Constraints

CtrlParameter ([CtrlParameter] >= 0 and [CtrlParameter] <= 9999999)

PermissionType ([PermissionType] >= 0 and [PermissionType] <= 9)

ProgramType ([ProgramType] >= 0 and [ProgramType] <= 7)

Page 53JohnsonGroup

Page 54: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ApplResourceLock Appl Resource Lock

This table holds the user information associated with application resource

locks. It is used to return detailed information when a desired resource is

locked by another user and for the information for the Database Locks

report.

Indexes on Description

UserName, HostName,

ProcessID, TimeOfLock,

Resource

Primary key, clustered

TypeColumn

UserName varchar (256) Name of the user currently holding a resource lock.

HostName varchar (128) Name of the host client machine currently holding a resource lock.

ProcessID int ID of process currently holding a resource lock. Used to synchronize with

existing locks.

TimeOfLock datetime Date and time resource lock was established.

Resource varchar (50) Actual resource lock held.

TypeOfLock varchar (10) Shared or Exclusive.

ApplicationName varchar (50) Name of application obtaining resource lock.

ConstraintColumn

Field Constraints

Page 54JohnsonGroup

Page 55: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ApplSVIndexList SV Index List

The Status Vector Index list documents the use of cells in the status vector

tables (SVXXX).

Indexes on Description

SVNumberIndex Primary key, clustered

TypeColumn

SVNumberIndex int Combination of Status Vector number and cell number.

SVNumber smallint Number of status vector for this entry.

Relates to: StatusVectors table

IndexNumber tinyint Number of the corresponding cell in the status vector.

IndexName varchar (40) Description of the use of the corresponding cell in the status vector.

Description1 varchar (60) Description of the use of the Status vector cell.

Description2 varchar (60) .

Description3 varchar (60) .

Description4 varchar (60) .

Description5 varchar (60) .

Description6 varchar (60) .

Description7 varchar (60) .

Description8 varchar (60) .

Description9 varchar (60) .

IndexType tinyint Indicates the type of data in the corresponding cell:

0 = numeric

1 = date

2 = choice

ConstraintColumn

Field Constraints

IndexNumber ([IndexNumber] >= 0 and [IndexNumber] <= 60)

IndexType ([IndexType] >= 0 and [IndexType] <= 9)

SVNumber ([SVNumber] >= 101 and [SVNumber] <= 303)

SVNumberIndex ([SVNumberIndex] >= 10101 and [SVNumberIndex] <= 30360)

Page 55JohnsonGroup

Page 56: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ApprovedItems Approved Items

The ApprovedItems table contains the record of vendor invoiced amounts

approved. The amounts are recorded by each purchase order item and by

each vendor invoice. All transactions in this table are entered via the

Approve process, as you indicate various vendor invoices to be approved

and the amount for which they are being approved. These records are used

as a template for the A/P transaction in Accounting; when the link is turned

on, the operator cannot post an A/P invoice that has not been approved.

The records in this table are deleted by the close/post process once the

transactions have been used to update the POItem table (amounts,

quantities, and invoice numbers) and the DirectPurchase table.

Indexes on Description

PurchaseOrderN, LLRecNum Primary key, clustered

TypeColumn

PurchaseOrderN int The PO number, the key to the file.

Relates to: PurchaseOrder table

POItemN int The item number from the original PO, from the POItem table. Cannot be

changed.

JobCostAsOf datetime The date on which the cost for a direct purchase item was passed through to job

costing. In Approve, this defaults to acct (value of 0), meaning the posting date.

It can be changed to OTHER, allowing the user to enter a different date.

QtyApproved decimal (9,2) The quantity being approved.

VendorInvoiceN varchar (12) The vendor's invoice number. Required. Used to locate the approved invoice

from Accounting.

FinalPartial tinyint Flag indicating if this is the final invoice. This is set inAapprove. It can also be

set and reset using the 'Open/Close Items' option under the Activity menu in the

Purchasing. It is used by the close process; if 1, close sets the FinalInvoice

column in the POItems table to 1 (final bill for the item has been recorded).

PostJobCost tinyint Flag indicating if the approved amount is to be passed through, or posted, to Job

Costing. Applies to Direct Purchase items only. Should be no if an amount has

already been passed through via issue (setting the "update on issue" flag in a

purchase order) or by costing the item in JobVista.

GLAccountN int The GL Account number to which the amount should be posted. Required.

Taken from original PO if available; must be filled in by user if not.

Relates to: GLAccounts table

AmountApproved decimal (15,2) The amount approved for payment. This is the amount that will be posted to A/P

(and to Job Costing, if appropriate). Once entered in Approve, it cannot be

changed in Accounting.

DepartmentNumb int The department number associated with the G/L account number.

Relates to: DeptNames table

LLRecNum int identity Unique key.

Page 56JohnsonGroup

Page 57: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ApprovedItems Approved Items

ItemType smallint A flag indicating the type of item. Types other than 0 are used to record

accounting dollar amounts that do not correspond to a particular line item on the

original PO:

0 = Regular purchase order item

1 = Freight

2 = Tax

3 = Miscellaneous 1

4 = Miscellaneous 2

5 = Miscellaneous 3

6 = Miscellaneous 4

7 = Miscellaneous 5

ConstraintColumn

Field Constraints

AmountApproved ([AmountApproved] >= (-999999) and [AmountApproved] <= 9999999)

DepartmentNumb ([DepartmentNumb] >= 0 and [DepartmentNumb] <= 9999999)

FinalPartial ([FinalPartial] >= 0 and [FinalPartial] <= 1)

GLAccountN ([GLAccountN] >= 0 and [GLAccountN] <= 999999999)

ItemType ([ItemType] >= 0 and [ItemType] <= 7)

POItemN ([POItemN] >= 0 and [POItemN] <= 9999)

PostJobCost ([PostJobCost] >= 0 and [PostJobCost] <= 1)

PurchaseOrderN ([PurchaseOrderN] >= 1 and [PurchaseOrderN] <= 999999999)

QtyApproved ([QtyApproved] >= (-9999999) and [QtyApproved] <= 9999999)

Page 57JohnsonGroup

Page 58: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: APTransaction A/P Transaction

The APTransaction table contains posted transactions and summary

records for the Accounts Payable system. Records are entered into this

table by the Post process, using data from the AP and CD batch tables.

Summary records are created by purge. The Accounts Payable balance is

calculated by applying the transactions in this table for each vendor. The

records in this table can be modified with the Adjust program and the Date

Change program . The Purge program deletes records from this table.

Indexes on Description

VendorN, LLRecNum Primary key, clustered

AuditTrail Nonclustered

TypeColumn

VendorN int A unique number which identifies the vendor. Note that Vendor 99999 is usually

a special vendor record used to record spoiled checks. By recording them in this

way they are all grouped together on the Check Register.

Relates to: Vendor table

PostingDate datetime The batch date for the accounting batch from which this record was posted. If

parameter 'A/P Invoice Posting Date' specifies that the invoice date should be

used as the posting date, vendor aging and the General Ledger reoprts will agree.

InvoiceN varchar (12) The vendor's invoice number, entered in Accounting. Will be zero on summary

records.

Division int The division number to which the transaction or the balance forward applies.

The division must be entered in the AcctDivisions table.

Relates to: AcctDivisions table

CheckN int For CD transactions only, the number of the disbursed check. On summary

records, this will be zero.

AcctgGroup tinyint The accounting group to which the transaction or summary record applies. 3 =

Accounts Payable; 4 = Cash Disbursement.

Relates to: AccountingGrps table

AuditTrail varchar (13) For a detailed record, an audit trail number is generated by the Post process for

each AP or CD transaction. Has the format yyyymmddsssss, where:

yyyy = year numbers

mm = month numbers

dd = day numbers

sssss = sequence number, starts at 00001 each day.

For summary records, the audit trail number is 0, which is the only way to

distinguish a balance forward from a transaction.

PurchaseOrderN int Your PO number, entered through Accounting. For some vendors, this is

required, based on the RequiresPON column in the Vendor table. Will be zero

on summary records.

Discount decimal (15,2) The amount of discount to take on this vendor invoice. Calculated by AP or

entered manually.

Page 58JohnsonGroup

Page 59: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: APTransaction A/P Transaction

Transactions decimal (15,2) The amount of the vendor transaction, entered via Accounting or calculated by

the check writing screen. General Ledger offsets to complete the double entry

transaction are stored in the GLAccountData table and have the matching

audittrail to the vendor side of the transaction.

InvOnHoldflg tinyint 0 = do not hold payment on this vendor invoice;

1 = hold payment on this vendor invoice. This flag is set in the AP Invoice

screen during data entry and may be edited with adjust.

PaymentDate datetime For AP (vendor invoice), this is the date that Accounting calculates as the proper

date on which the vendor invoice should be paid (based on terms code and

vendor invoice date).

DateOfInvoice datetime For AP transactions, this is the vendor invoice date. This date will be the same

as the Posting Date, unless the parameter 'A/P Invoice Posting Date' specifies

that the batch posting date is to be used as the posting date for the invoice.

D1099Type smallint For vendor invoices, the 1099 category in which to include this invoice amount.

For reporting on the 1099-MISC report (form.1099). Default is set by parameter

'1099 Default Tax Type' and can be edited in Accounting when entering

transactions. Must be in table 'D1099TaxTypes'.

Relates to: D1099TaxTypes table

AdjustedFlag tinyint 0 = transaction has not been adjusted. 1 = transaction has been adjusted with

Adjust or Date Change. In summary record, will be zero.

PostingUpdateN int The posting update number of the batch when this transaction was added to the

table. This number allows you to reconstruct the transactions that composed any

particular batch. The offsets to the General Ledger for each audittrail in the

batch are stored in the GLAccountData table.

LastChanged datetime The date this record was written by Post or edited by a user with Adjust or Date

Change. The 'Changed By ' field contains the login ID of the user who ran Post

or edited this record.

ChangedBy varchar (128) Login ID of the last user to either post or edit this record. Some fields in this

table may be edited with adjust or date change. The 'LastChanged' field contains

the date this record was written by post or edited by a user.

LLRecNum int identity Unique key used internally by EFI Logic software.

BatchN int The number of the Accounting batch from which this transaction was created.

CheckImageN int The number used to locate the check image information that is stored in the

AcctCheckHeader and AcctCheckDetail tables. This number corresponds to

CheckHeaderN in the AcctCheckHeader table.

Relates to: AcctCheckHeader table

VoidReason smallint The reason why the check identified by this transaction was marked as a void

check. Valid values are:

0 - Check has not been marked void

1 - Alignment

2 - Multiple stub

3 - Reprint - different number

4 - Reprint - same number

5 - User initiated

Page 59JohnsonGroup

Page 60: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: APTransaction A/P Transaction

ConstraintColumn

Field Constraints

AcctgGroup ([AcctgGroup] >= 0 and [AcctgGroup] <= 9)

AdjustedFlag ([AdjustedFlag] >= 0 and [AdjustedFlag] <= 1)

BatchN ([BatchN] >= 0 and [BatchN] <= 999999)

CheckImageN ([CheckImageN]>=(0) AND [CheckImageN]<=(999999999))

CheckN ([CheckN] >= 0 and [CheckN] <= 999999999)

D1099Type ([D1099Type] >= 0 and [D1099Type] <= 999)

Discount ([Discount] >= (-999999999) and [Discount] <= 999999999)

Division ([Division] >= 0 and [Division] <= 9999)

InvOnHoldflg ([InvOnHoldflg] >= 0 and [InvOnHoldflg] <= 1)

PostingUpdateN ([PostingUpdateN] >= 0 and [PostingUpdateN] <= 999999999)

PurchaseOrderN ([purchaseordern] >= 0 and [purchaseordern] <= 999999999)

Transactions ([Transactions] >= (-99999999999) and [Transactions] <= 99999999999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

VoidReason ([VoidReason]>=(0) AND [VoidReason]<=(9))

Page 60JohnsonGroup

Page 61: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ARBatch A/R Batch

ARBatch table for Accounting input. Contains header information for a

single double entry accounting transaction. General Ledger offsetting

accounts are contained in the related table AROffsets. This does not

include invoice data which is stored in WinInvoice and its related tables.

Data in this table will be posted to the ARtransaction table and will be

deleted when its associated batch is deleted by the system (after the batch

has been posted).

Indexes on Description

ARKey Primary key, clustered

BatchNumber, ARKey Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

AROffsets ARKey

TypeColumn

ARKey int Sequential key assigned by Accounting.

BatchNumber int Batch Number assigned for one or more A/R transactions. May be assigned by

opening a new AR Memos batch in Windows Accounting or by a new AR

import.

Relates to: WinAcctBatch table

Customer int Customer number for the transaction.

Relates to: Customer table

JobNumber int Job number from Open Job table. Must be a legal job number if Bill Type = 10

(Partial) , or Bill Type = 9 (Final). Adjustment Bill Type (11) does not require

a legal job number.

Relates to: OpenJob table

InvoiceNumber int Invoice number assigned to this transaction. Invoices will be aged from the

oldest occurrence of an invoice number.

BillType smallint Bill Types are:

Final Bill = 9

Partial Bill = 10

Adjustment = 11

PONumber varchar (14) Customer's purchase order number.

Quantity decimal (11,2) Quantity for partial billings, entered by user.

MaterialCosts decimal (11,2) Material costs entered by user for partial bill. This will be calculated for a final

bill when the AR memo is posted.

LaborCosts decimal (11,2) Labor costs entered by user for a partial bill. These will be calculated when the

AR memo is posted if the 'Bill Type' is final.

Salesperson int The salesperson number of the salesperson who sold the job.

Relates to: Salesperson table

ProductCode int The product code of the job.

Relates to: ProductCode table

Description varchar (60) Text entered by user. Will be posted to GLAccountData table.

InvoiceAmount decimal (15,2) Total amount of the Invoice. Must balance the sum of all the offsets stored in

AROffsets.

Page 61JohnsonGroup

Page 62: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ARBatch A/R Batch

ConstraintColumn

Field Constraints

ARKey ([ARKey] >= 1 and [ARKey] <= 999999)

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 999999)

BillType ([BillType] >= 0 and [BillType] <= 99)

Customer ([Customer] >= 0 and [Customer] <= 999999999)

InvoiceAmount ([InvoiceAmount] >= (-999999999) and [InvoiceAmount] <= 999999999)

InvoiceNumber ([InvoiceNumber] >= 0 and [InvoiceNumber] <= 999999999)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

LaborCosts ([laborcosts] >= (-999999999) and [laborcosts] <= 999999999)

MaterialCosts ([materialcosts] >= (-999999999) and [materialcosts] <= 999999999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

Quantity ([Quantity] >= (-9999999) and [Quantity] <= 9999999)

Salesperson ([Salesperson] >= 0 and [Salesperson] <= 999999)

Page 62JohnsonGroup

Page 63: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: AROffsets A/R Offsets

Accounts Receivable transaction entry table containing the General Ledger

offsets for each AR memos entry. Related to ARBatch header table. Data

in this table will be posted to the GLAccountData table and will be deleted

when its associated batch is deleted by the system (after the batch has been

posted).

Indexes on Description

ARKey, LLRecNum Primary key, clustered

TypeColumn

ARKey int Sequential key assigned by Accounting.

Relates to: ARBatch table

AccountNo int General Ledger account number for this offset to AR.

Relates to: GLAccounts table

Department int Department number to charge for this transaction. A department number can be

entered here only when the GL Account for this transaction requires a

department.

Relates to: DeptNames table

TaxCode int Tax code for this transaction. Tax reporting will not be correct unless both sales

accounts and tax liability accounts are posted with the correct tax codes required.

A legal tax code must exist in the TaxCode table.

Relates to: TaxCode table

TransType tinyint Defaults to 0. Will be set to 1 if the GL Account Number for this offset is a

liability account ('Type of Account' in GLAccounts = 1) and a tax code has been

defined for this offset. This is maintained by the programs.

TaxPercent decimal (9,2) Not used. Tax code and amount are entered by the user.

Amount decimal (15,2) Amount for this offset.

LLRecNum int identity Unique key used internally by EFI Logic software.

ConstraintColumn

Field Constraints

AccountNo ([AccountNo] >= 1 and [AccountNo] <= 999999999)

Amount ([Amount] >= (-999999999) and [Amount] <= 999999999)

ARKey ([ARKey] >= 0 and [ARKey] <= 999999)

Department ([Department] >= 0 and [Department] <= 9999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

TaxPercent ([TaxPercent] >= 0 and [TaxPercent] <= 999)

TransType ([TransType] >= 0 and [TransType] <= 1)

Page 63JohnsonGroup

Page 64: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ARTransaction A/R Transaction

The ARTransaction table contains the accounting and sales data for

accounts receivable, credit reports, and sales reports.

The ARTransaction table contains two types of records:

1. Detailed transaction records created by Post using data from the AR or

CR batch tables. Some columns in these records can be modified with

Adjust or Date Change.

2. Balance forward or summary records created by Purge. These records

may not be edited. Purge also deletes records from this table.

Indexes on Description

CustomerN, LLRecNum Primary key, clustered

AuditTrail Nonclustered

TypeColumn

CustomerN int A unique number used to identify the customer for this transaction (see the

Implementation Manual for a description of the recommended numbering

scheme).

Relates to: Customer table

PostingDate datetime For detailed records this is the batch date from Accounting. For summary

records, the date through which the sales information has been purged, entered

by Purge.

InvoiceN int For a detailed record, either the invoice number entered in the AR transaction in

Accounting, the invoice number passed from Invoicing or the invoice number

entered with the receipt.

Division int The division number to which the transaction or the balance forward applies.

Relates to: AcctDivisions table

JobN int For detailed AR transactions.

A positive job number indicates a final transaction to close the job while a

negative job number indicates a partial billing which did not close the job.

Relates to: OpenJob table

AcctgGroup tinyint The accounting group to which the transaction or summary record applies. 1 =

Accounts Receivable; 2 = Cash Receipt.

Relates to: AccountingGrps table

Page 64JohnsonGroup

Page 65: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ARTransaction A/R Transaction

AuditTrail varchar (13) For a detailed record, an audit trail number is generated by the Post process for

each AR or CR transaction. Has the format yyyymmddsssss, where:

yyyy = year numbers

mm = month numbers

dd = day numbers

sssss = sequence number, starts at 00001 each day.

The GL offsets for this transaction will be found in the GLAccountData table

with the identical audit trail. All transactions with the same audit trail from both

tables will always sum to 0.00

For summary records, the audit trail number is 0, which is the only way to

distinguish a balance forward from a transaction.

ProductCode int The product code of the job. Copied here by the Post process. Maintained with

Adjust.

Relates to: ProductCode table

SalesmanN int The salesperson number assigned to the job. Copied here by Post. Maintained

with Adjust.

Relates to: Salesperson table

ClosedInvFlag tinyint Not used in EFI Logic SQL

CustCheckN int The check number of the customer's check entered by user and recorded in

Accounting with the CR payment. Appears in Customer Inquiry, Books of

Original Entry, and Cash Receipts report. Will be 0 on a summary record.

LaborCost decimal (11,2) For detailed records (AR transactions only); if the job number is greater than 0,

the value in this field was computed by the Post process, Close operation. If the

job number is less than 0, the value in this field was entered with Accounting or

Invoicing as a partial billing.

SalesAnalysis decimal (11,2) For detailed records (AR transactions only). The value in this field is computed

and written here by the Post process, Close operation, which adds up all the

accounting dollars for the General Ledger sales account offset (i.e., it is the sum

of all offsetting transactions to General Ledger sales accounts posted to

GLAccountData with the identical audit trail as the ARTransaction record).

MaterialCost decimal (11,2) For detailed records (AR transactions only); if the job number is greater than 0,

the value in this field was computed by the Post process, Close operation

(material cost excluding materials flagged as pass thru = 1). If the job number is

less than 0, the value in this field was entered with Accounting or Invoicing as a

partial billing.

Transactions decimal (15,2) For detailed records (AR and CR transactions only), the total amount of the

customer billing or cash receipt transaction. The GL offsets, usually to sales or

cash, are posted to GLAccountData using the identical audit trail as the

ARtransaction record.

AdjustedFlag tinyint 0 = transaction has not been adjusted. 1 = transaction has been adjusted with

adjust. In summary record, will be zero.

PostingUpdateN int The posting update number of the batch when this transaction was added to the

file. This number allows you to reconstruct the transactions that composed any

particular batch. It is the number used to rerun previous posting journals.

Page 65JohnsonGroup

Page 66: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ARTransaction A/R Transaction

DocumentRefN varchar (14) For A/R (group=1) transactions, the Customer's PO number is stored here if it

was entered by the user.

LastChanged datetime Date record was created by the Post process or edited using Adjust or Date

Change.

ChangedBy varchar (128) User ID who either posted this transaction or edited it with Adjust or Date

Change.

WinInvKey int For records posted from Invoicing, this is a unique key relating to the

WinInvoice table record for this invoice number.

LLRecNum int identity Unique key used internally by EFI Logic software.

BatchN int The number of the Accounting batch from which this transaction was created.

ConstraintColumn

Field Constraints

AcctgGroup ([AcctgGroup] >= 0 and [AcctgGroup] <= 9)

AdjustedFlag ([AdjustedFlag] >= 0 and [AdjustedFlag] <= 1)

BatchN ([BatchN] >= 0 and [BatchN] <= 999999)

ClosedInvFlag ([ClosedInvFlag] >= 0 and [ClosedInvFlag] <= 2)

CustCheckN ([CustCheckN] >= 0 and [CustCheckN] <= 999999999)

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

Division ([Division] >= 0 and [Division] <= 9999)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

JobN ([JobN] >= (-999999999) and [JobN] <= 999999999)

LaborCost ([LaborCost] >= (-999999999) and [LaborCost] <= 999999999)

MaterialCost ([MaterialCost] >= (-999999999) and [MaterialCost] <= 999999999)

PostingUpdateN ([PostingUpdateN] >= 0 and [PostingUpdateN] <= 999999999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

SalesAnalysis ([SalesAnalysis] >= (-999999999) and [SalesAnalysis] <= 999999999)

SalesmanN ([SalesmanN] >= 0 and [SalesmanN] <= 9999999)

Transactions ([Transactions] >= (-99999999999) and [Transactions] <= 99999999999)

WinInvKey ([WinInvKey] >= 0 and [WinInvKey] <= 999999999)

Page 66JohnsonGroup

Page 67: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: BadPaperCodes Bad Paper Codes

The BadPaperCodes table lists codes and descriptions that identify

different kinds of damage to rolls of webstock. The code list is defined by

the user, not EFI Logic. The table is maintained through Table

Maintenance.

Indexes on Description

PaperCondition Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

RollStock PaperCondition

RollTransactions DamageCode

WSRollInventory PaperCondition

TypeColumn

PaperCondition smallint A code of 0 indicates no damage. Other numbers identify specific types of

damage.

BPDescription varchar (40) A description of the damage (e.g., loose wrap, wet paper, etc.).

ConstraintColumn

Field Constraints

PaperCondition ([PaperCondition] >= 0 and [PaperCondition] <= 99)

Page 67JohnsonGroup

Page 68: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: BatchDetailHistory Batch Detail History

This table holds log records for the Close process. Provides the data for

the preposting and posting batch detail listing reports.

Indexes on Description

postnbr, keyn Primary key, clustered

TypeColumn

keyn int identity Unique sequential key assigned by SQL Server.

rcrdtype tinyint The type of BatchDetailHistory record:

1 = closed job

2 = Pass thru

3 = PO posting

4 = FG posting

1 = Closed Job

2 = Pass-thru material CC

3 = Purchase Order

4 = Finished Goods

postnbr varchar (20) A number the close process generated to identify items in a batch. It also is the

number used to rerun previous posted batch detail listings.

postdate datetime The posting date from AccountngInput if specified, else from SV102 cell 2.

batch int Accounting batch number that was preposted or posted.

div int Accounting division for the batch.

Relates to: AcctDivisions table

jobORpo int The job number for a closed job or a FG posting, or the purchase order number

for a PO posting.

custORvend varchar (50) One of the following based on the type of the batch detail record:

Customer's name for a closed job

MCC name for a pass thru

Vendor's name for a PO posting

FG item number for a FG item

labor decimal (12,2) For a closed job or FG posting, the labor cost.

matl decimal (12,2) For a closed job or FG posting, the material cost.

sales decimal (12,2) For a closed job, the sales amount.

passthru decimal (12,2) When closing a job (other than a finished goods job) or a pass thru posting, the

total AIC cost from JobMaterial, WSRollInventory, and DirectPurchase.

invoice varchar (20) For a purchase order posting, the alphanumeric vendor invoice.

item int For a purchase order posting, the POItemN from the ApprovedItems table.

Page 68JohnsonGroup

Page 69: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: BatchDetailHistory Batch Detail History

p_type varchar (5) For a PO posting, the translated POItem.PurchaseType:

'GE' for General expense

'DP' for Direct purchase

'IN' for Inventory item

'TX' for Text item

'AC' for FGI item or special PO items (like freight or tax)

'??' for anything else

idesc varchar (50) For a purchase order posting, the TextInfo value from POItem.

item_job int For a purchase order posting, the job number from the POItem table for a real

PO item (not freight or tax).

cost_date datetime The costing date when direct purchases were posted to job costing.

qty decimal (10,2) For a purchase order posting, the QtyApproved from the ApprovedItems table.

For a Finished Goods posting, the QuantityInvcd from AccountngInput.

paid decimal (12,2) For a PO posting, the AmountApproved from the ApprovedItems table.

status varchar (20) For a PO posting, "Closed" if this is the final invoice (as set by Approve),

otherwise "Open." For a FG posting, 1 if the costs in the finished goods item

header have been updated, i.e. a final billing, quantity not 0 and parameter 'FG

Matl Labor Cost Update' (11333) is set, otherwise 0.

mccORqprod decimal (11,2) MCC number for a pass thru posting or the quantity produced for a FG posting.

ConstraintColumn

Field Constraints

mccORqprod ([mccORqprod] >= (-9999999) and [mccORqprod] <= 9999999)

Page 69JohnsonGroup

Page 70: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: BudgetDescript Budget Description

A "budget" is defined in your system by a particular set of entries in the

AcctBudget table, all having a common BudgetIDN to identify them. You

may want to have more than one budget stored in your system at one time.

For example, an "Initial Budget" and, later in the year, "Budget including

new Press." Use entries in this table to describe each of those budgets.

Indexes on Description

BudgetIDN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AcctBudget BudgetN

TypeColumn

BudgetIDN int Provides a unique reference for a "Budget." This is the key of this table.

BudgetName varchar (20) Provides the name to be printed on financial reports when this budget is selected

to be used as part of a report.

DescrLine1 varchar (60) Used to describe this budget.

DescrLine2 varchar (60) Used to describe this budget.

ConstraintColumn

Field Constraints

BudgetIDN ([BudgetIDN] >= 0 and [BudgetIDN] <= 9999)

Page 70JohnsonGroup

Page 71: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Calculations Calculations

Lists the raw calcuations for Labor, Other Material, and Outside purchase

costs for each cost function, for each operation, for each component in an

Estimating 3 estimate. These values are combined using the Component

Multiple, Mult flag and Overall Markups to get the total cost and Targeted

Selling Price.

Indexes on Description

IssNum, ConfigNum,

CompNum, OperID,

Instance, CostID, CostIDinst

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number

EstNum decimal (15,2) Estimate number

GroupName varchar (50) Department of the operation: Press, Camera, etc. Used for reporting

GrpOpSeq int Sequence number (including Group ID and Operation sequence- GGGOOOO)

Used for reporting.

OperID varchar (8) Operation ID

OpDesc varchar (50) Operation Description (Used for reporting)

Instance smallint Instance of this operation for multiple uses of an operation in a component.

CostID varchar (4) Cost Function ID ( SU, MR, RUN)

CostIDinst smallint Instance of Cost ID for multiple uses of a single cost function in an operation.

LabMatFlag varchar (2) Flag that indicates if this calculation if for Labor(L), Outside Purchase (O) or

Material (M).

Count1Q1 decimal (12,2) Count 1 - generally, number of pieces for quantity 1. Units for this count will be

in the field Unit1.

Count1Q2 decimal (12,2) Count 1 - number of pieces for quantity 2

Count1Q3 decimal (12,2) Count 1 - number of pieces for quantity 3

Count1Q4 decimal (12,2) Count 1 - number of pieces for quantity 4

Count1Q5 decimal (12,2) Count 1 - number of pieces for quantity 5

Unit1 varchar (30) Unit Description for Count 1 ( eg. inches, lbs, etc.)

Multflag1 tinyint Multiple flag. If = 1, multiply count1, hours and cost by component multiple

when calculating entire estimate, if = 0 hours and cost will only occur once.

Count2Q1 decimal (15,2) Count 2 - generally secondary count for quantity 1

Count2Q2 decimal (15,2) Count 2 - number of pieces for quantity 2

Count2Q3 decimal (15,2) Count 2 - number of pieces for quantity 3

Page 71JohnsonGroup

Page 72: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Calculations Calculations

Count2Q4 decimal (15,2) Count 2 - number of pieces for quantity 4

Count2Q5 decimal (15,2) Count 2 - number of pieces for quantity 5

Unit2 varchar (30) Unit Description of Count 2 ( eg sheets, gallons)

Multflag2 tinyint Multiple flag. If = 1, multiply count2, hours and cost by component multiple

when calculating entire estimate, if = 0 hours and cost will only occur once.

Hours1 decimal (9,2) Hours for quantity 1

Hours2 decimal (9,2) Hours for quantity 2

Hours3 decimal (9,2) Hours for quantity 3

Hours4 decimal (9,2) Hours for quantity 4

Hours5 decimal (9,2) Hours for quantity 5

Add1000 int Flag to indicate this calculation should be included in calculation of Additional

Quantities.

Cost1 decimal (15,2) Raw Cost for quantity 1

Cost2 decimal (15,2) Raw Cost for quantity 2

Cost3 decimal (15,2) Raw Cost for quantity 3

Cost4 decimal (15,2) Raw Cost for quantity 4

Cost5 decimal (15,2) Raw Cost for quantity 5

Mkup1 decimal (9,4) Markup for quantity 1

Mkup2 decimal (9,4) Markup for quantity 2

Mkup3 decimal (9,4) Markup for quantity 3

Mkup4 decimal (9,4) Markup for quantity 4

Mkup5 decimal (9,4) Markup for quantity 5

Description varchar (120) Description line, usually from user

VendorN int Vendor Number for outside purchases. Must be set up in standards to be

recorded during calculation.

Relates to: Vendor table

LCCNum int Labor Cost Center number that these hours and cost will be associated with if the

calculation if for labor.

Relates to: LaborCostCntr table

MCCNum int Material Cost Center number that this cost will be assigned to if this calculation

is for material.

Relates to: MatlCostCntr table

SchedDept int The scheduling task in which this item will be used. Note that this is only for

buyout operations, in which the estimate is also supplying the scheduling task

number and item description. The scheduling program loads these items as

schedulable tasks for each buyout item. Not intended for paper; use for color

seps, dies, outside finishing, etc.

SchedType int Not used in EFI Logic SQL.

Page 72JohnsonGroup

Page 73: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Calculations Calculations

PrintFormat varchar (10) Format for reports - determines whether Cost functions and/or instances are

reported individually or summarized.

CompCnt int The multiple of this component for this configuration.

ConfigNum int The configuration for this calculation.

ConstraintColumn

Field Constraints

Add1000 ([Add1000] >= (-1) and [Add1000] <= 1)

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

Cost1 ([Cost1] >= (-999999999) and [Cost1] <= 999999999)

Cost2 ([Cost2] >= (-999999999) and [Cost2] <= 999999999)

Cost3 ([Cost3] >= (-999999999) and [Cost3] <= 999999999)

Cost4 ([Cost4] >= (-999999999) and [Cost4] <= 999999999)

Cost5 ([Cost5] >= (-999999999) and [Cost5] <= 999999999)

CostIDinst ([CostIDinst] >= 0 and [CostIDinst] <= 99)

Count1Q1 ([Count1Q1] >= (-999999999) and [Count1Q1] <= 999999999)

Count1Q2 ([Count1Q2] >= (-999999999) and [Count1Q2] <= 999999999)

Count1Q3 ([Count1Q3] >= (-999999999) and [Count1Q3] <= 999999999)

Count1Q4 ([Count1Q4] >= (-999999999) and [Count1Q4] <= 999999999)

Count1Q5 ([Count1Q5] >= (-999999999) and [Count1Q5] <= 999999999)

Count2Q1 ([Count2Q1] >= (-999999999) and [Count2Q1] <= 999999999)

Count2Q2 ([Count2Q2] >= (-999999999) and [Count2Q2] <= 999999999)

Count2Q3 ([Count2Q3] >= (-999999999) and [Count2Q3] <= 999999999)

Count2Q4 ([Count2Q4] >= (-999999999) and [Count2Q4] <= 999999999)

Count2Q5 ([Count2Q5] >= (-999999999) and [Count2Q5] <= 999999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

GrpOpSeq ([GrpOpSeq] >= 0 and [GrpOpSeq] <= 9999999)

Hours1 ([Hours1] >= (-99999) and [Hours1] <= 99999)

Hours2 ([Hours2] >= (-99999) and [Hours2] <= 99999)

Hours3 ([Hours3] >= (-99999) and [Hours3] <= 99999)

Hours4 ([Hours4] >= (-99999) and [Hours4] <= 99999)

Hours5 ([Hours5] >= (-99999) and [Hours5] <= 99999)

Instance ([Instance] >= 0 and [Instance] <= 99)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

LCCNum ([LCCNum] >= 0 and [LCCNum] <= 99999)

MCCNum ([MCCNum] >= 0 and [MCCNum] <= 9999999)

Mkup1 ([Mkup1] >= (-999) and [Mkup1] <= 999)

Mkup2 ([Mkup2] >= (-999) and [Mkup2] <= 999)

Mkup3 ([Mkup3] >= (-999) and [Mkup3] <= 999)

Mkup4 ([Mkup4] >= (-999) and [Mkup4] <= 999)

Mkup5 ([Mkup5] >= (-999) and [Mkup5] <= 999)

Multflag1 ([Multflag1] >= 0 and [Multflag1] <= 1)

Multflag2 ([Multflag2] >= 0 and [Multflag2] <= 1)

SchedDept ([SchedDept] >= 0 and [SchedDept] <= 999999)

SchedType ([SchedType] >= 0 and [SchedType] <= 999999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

Page 73JohnsonGroup

Page 74: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ComboDistHistory Combo Distribution History

This table holds log records for the Combo distribution process

Indexes on Description

JobN, WhenDone, keyn Primary key, clustered

TypeColumn

keyn int identity Unique sequential key assigned by SQL Server.

rtype varchar (20) The type of record being distributed. This can be either JobLabor, JobMaterial,

DirectPurchase or MachineCards.

WhenDone varchar (20) The date and time when the distribution is done.

JobN int This is the combo job number; the job the costs are distributed from.

ComponentJob int This is the component job number; the job the costs are distributed to.

PercentOfCost decimal (9,3) The percent of the combo job's costs that will be distributed to this particular

component job.

Form int Form number

Subjob int Subjob number

LccN int Labor cost center number

EmployeeN int Employee number

UpdateDate datetime Date the transaction was originally written to the table for the combo job

Hours decimal (9,2) Hours

Quantity decimal (9,2) Quantity

AICCost decimal (9,2) AIC cost

DirectCost decimal (9,2) Direct Cost

MccN int material cost center number

Press int machine number

TimeOfDay int Time of day on which work was started.

PO int purchase order number

Item int Purchase order item number

Amount decimal (15,2) Amount

CompHours decimal (9,2) calculated hours for the component job

CompQuantity decimal (9,2) calculated quantity for the component job

CompAIC decimal (9,2) calculated AIC cost for the component job

CompOOP decimal (9,2) calculated direct cost for the component job

CompAmount decimal (15,2) calculated amount for the component job

Page 74JohnsonGroup

Page 75: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ComboDistHistory Combo Distribution History

ConstraintColumn

Field Constraints

Page 75JohnsonGroup

Page 76: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ComboJobDef Combo Job Def

This table defines the compenents for a combo job.

Indexes on Description

JobN, SequenceN Primary key, clustered

ComponentJob Nonclustered

TypeColumn

JobN int A unique number that identifies the job, as

entered with the Open program add options. Used

to cross-reference the job to other files.

Relates to: OpenJob table

SequenceN int a numeric sequence number assigned by the program

ComponentJob int the component job number

Relates to: OpenJob table

PercentOfCost decimal (9,3) Percent of costs this component job should get when they're distributed. (total

should add up to 100)

Subjob int subjob of component to distribute to

Form smallint form of component to distribute to

NumberUp int Number Up/Across of this component

Length decimal (15,2) length of this component

Width decimal (15,2) width of this component

Area decimal (15,2) area of this component

ConstraintColumn

Field Constraints

Area ([Area] >= 0 and [Area] <= 99999999)

ComponentJob ([ComponentJob] >= 1 and [ComponentJob] <= 999999999)

Form ([Form] >= 0 and [Form] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Length ([Length] >= 0 and [Length] <= 999999)

NumberUp ([NumberUp] >= 0 and [NumberUp] <= 9999999)

PercentOfCost ([PercentOfCost] >= 0 and [PercentOfCost] <= 100)

SequenceN ([SequenceN] >= 0 and [SequenceN] <= 9999999)

Subjob ([Subjob] >= 0 and [Subjob] <= 9999)

Width ([Width] >= 0 and [Width] <= 999999)

Page 76JohnsonGroup

Page 77: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CompInkType Comp Ink Type

This table provides relationships that match Ink Type IDs from InkTypes

file with Component types to select and order inks by component type for

use in estimates in Estimating 3.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for inernal use (numeric). Used on server only.

SubInd int Sequence number for display purposes only in Estimating 3. Ordered within each

component list.

InkTypID int Ink type ID from the InkTypes table. Indicates that this ink will be available to

components of the type in CompType.

CompType int Component type for this ink record.

ConstraintColumn

Field Constraints

CompType ([CompType] >= 0 and [CompType] <= 99)

InkTypID ([InkTypID] >= 0 and [InkTypID] <= 99999)

LogicID ([LogicID] >= 0 and [LogicID] <= 999999)

SubInd ([SubInd] >= 0 and [SubInd] <= 999999)

Page 77JohnsonGroup

Page 78: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Components Components

Lists all the components included in an Estimating 3 estimate. The

component contains the details of particular part of an estimate, eg. Cover,

signature, response card. The Configs table determines which and how

many of each component are included in an estimate for a particular

configuration.

Indexes on Description

IssNum, CompNum Primary key, clustered

TypeColumn

IssNum int Issued Estimate number This is the number used to track the particular version of

an estimate. If an estimate is Opened for Edit and reissued, it will receive a new

Issue Number. These are assigned sequentially when the estimate is issued.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate Number

Type smallint Component Type as defined in the CompType table.

SubType varchar (20) The more specific type for this component. List comes from CompSubType

table according to current Component Type.

CDescription varchar (50) Component Description

DetailDesc varchar (150) Detailed Description

CStatus tinyint 0 = Not Complete, 1 = Needs recalculation,

2 = Complete and calculated.

Significant only in local estimate.

QuantityC1 int Quantity1 Overide or -1 if same as Estimate Quantity1

QuantityC2 int Quantity2 Overide or -1 if same as Estimate Quantity2

QuantityC3 int Quantity3 Overide or -1 if same as Estimate Quantity3

QuantityC4 int Quantity4 Overide or -1 if same as Estimate Quantity4

QuantityC5 int Quantity5 Overide or -1 if same as Estimate Quantity5

NeedCalc tinyint Whether this component needs recalculation

Significant only in local component

Pages decimal (9,2) Number of pages for this component

NumberUp int Number Up/Across

NUpOverride tinyint Whether or not the Number Up value is a user over- ride or a default value.

0=No (default), 1=Yes

NumAround int Number Around

NumToFold int Number up to Fold

WorkTurn tinyint Production method of this component.

0 = Sheetwise

1 = Work and Turn

Page 78JohnsonGroup

Page 79: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Components Components

2 = Work and Tumble

3 = Perfecting

GrainCrit tinyint Is this component Grain Critical? 0 = No, 1 = Yes

PressName varchar (50) Name of the primary Press Operation/Process associated with this component

PressListOperID varchar (8) Machine Operation ID added by the press choice

EquipmentNum int Equipment number in Equipment table of desired machine configuration to be

used to produce this component. If entered, this number is written to the

JobFormsDesc table when the estimate is associated with a job.

Relates to: Equipment table

EquipmentDesc varchar (20) Description from Equipment table of chosen machine configuration to be used to

produce this component.

SpoilID int Spoilage ID of paper spoilage table used for this component

NumWebs smallint Number of Webs/Bins in the selected machine or 0 for sheetfed

WebsUsed smallint Actual Number of webs used in this component.

RunOutOfOrder int Run Sheets Out Of Order Sheets

DieInventoryN int Die Inventory Number for this component.

Relates to: DieInventory table

DieName varchar (20) Name from Die Inventory table.

SideGuideDepth decimal (6,4) Depth necessary for the side guide on the press.

GripperDepth decimal (6,4) Depth necessary for the gripper on the press.

SameImage bit This field will be used in a future release of Estimating 3.

Perfecting bit Will be on if the primary press for this component is running as a perfecting

press.

CalcEvenMult bit Whether or not to calculate component stock for even cartons over multiples

instances of the components or forms.

Page 79JohnsonGroup

Page 80: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Components Components

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

CStatus ([CStatus] >= 0 and [CStatus] <= 4)

DieInventoryN ([DieInventoryN] >= 0 and [DieInventoryN] <= 999999)

EquipmentNum ([EquipmentNum] >= 0 and [EquipmentNum] <= 999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

GrainCrit ([GrainCrit] >= 0 and [GrainCrit] <= 1)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

NeedCalc ([NeedCalc] >= 0 and [NeedCalc] <= 1)

NumAround ([NumAround] >= 0 and [NumAround] <= 999999)

NumberUp ([NumberUp]>=(0) AND [NumberUp]<=(9999))

NumToFold ([NumToFold] >= 0 and [NumToFold] <= 99999)

NumWebs ([NumWebs] >= 0 and [NumWebs] <= 999)

NUpOverride ([NUpOverride] >= 0 and [NUpOverride] <= 1)

Pages ([Pages] >= 0 and [Pages] <= 9999999)

QuantityC1 ([QuantityC1] >= (-1) and [QuantityC1] <= 999999999)

QuantityC2 ([QuantityC2] >= (-1) and [QuantityC2] <= 999999999)

QuantityC3 ([QuantityC3] >= (-1) and [QuantityC3] <= 999999999)

QuantityC4 ([QuantityC4] >= (-1) and [QuantityC4] <= 999999999)

QuantityC5 ([QuantityC5] >= (-1) and [QuantityC5] <= 999999999)

RunOutOfOrder ([RunOutOfOrder] >= 0 and [RunOutOfOrder] <= 999)

SpoilID ([SpoilID] >= (-1) and [SpoilID] <= 99999)

Type ([Type] >= 0 and [Type] <= 99)

WebsUsed ([WebsUsed] >= 0 and [WebsUsed] <= 99)

WorkTurn ([WorkTurn] >= 0 and [WorkTurn] <= 4)

Page 80JohnsonGroup

Page 81: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CompOps Comp Operations

Estimating 3 Standards - Component Operation table. Whether an

operation is valid for a component type is controlled by the entries in this

file.

Indexes on Description

LogicID Primary key, clustered

OperID Nonclustered

TypeColumn

LogicID int Unique ID for internal use (numeric) (used on the server only, set to 0 on the

client).

OperID varchar (8) Operation ID - Unique operation identifier (text)

CompType smallint Type of Component in which to allow this operation (numeric type from

CompType table)

ConstraintColumn

Field Constraints

CompType ([CompType] >= 0 and [CompType] <= 99)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 81JohnsonGroup

Page 82: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CompStockType Comp Stock Type

This table provides relationships that match StockType IDs from the

StockTypes file with Component types to select and order stocks by

component type for use in estimates in Estimating 3.

Indexes on Description

CompType, StockType Primary key, clustered

TypeColumn

LogicID int Unique ID for inernal use (numeric). Used on server only.

SubInd int Sequence number for display purposes only in Estimating 3. Ordered within each

component list.

StockType smallint Stock type ID from the stockTypes table. Indicates that this stock or substrate

will be available to components of the type in CompType.

Relates to: StockTypes table

CompType int Component type for this stock record.

ConstraintColumn

Field Constraints

CompType ([CompType]>=(0) AND [CompType]<=(99))

LogicID ([LogicID]>=(0) AND [LogicID]<=(999999))

StockType ([StockType]>=(0) AND [StockType]<=(999))

SubInd ([SubInd]>=(0) AND [SubInd]<=(999999))

Page 82JohnsonGroup

Page 83: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CompSubType Comp Sub Type

Estimating 3 Standards: Component Sub Type table. Controls which Sub

Types are available in a component. Appears as Type: on component

dialog screen (typically Text, Cover, Illustration, etc.)

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (numeric) (used on the server only, set to 0 on the

client).

SubInd int This is the numeric ID for this component sub type. All types which are the

same should have the same ID. This field is only used if the parameter, Estimate

Form Number, is set to use it to determine form numbers and order.

SubType varchar (20) Description of the component sub type.

CompType smallint Determines the component type for which this sub type will appear . There will

be a separate record for every component type in which the same Sub type will

appear.

SubSeq int This field provides the sequence information for this component sub type within

the particular component type.

ConstraintColumn

Field Constraints

CompType ([CompType] >= 0 and [CompType] <= 99)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

SubInd ([SubInd]>=(0) AND [SubInd]<=(9999))

Page 83JohnsonGroup

Page 84: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CompType Comp Type

Estimating 3 Standards: Component Types Types of Component

(SheetFed, Web, Prep Only, etc.) and their characteristics.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (numeric) (used on the server only).

Type smallint Component Type

Standard types:

0 = Finishing component

1 = Sheetfed

2 = Web

3 = Prep Only

4 = Supplied

5 = DPS (Docutech)

6 = Wide Format

TypeName varchar (50) Name of Component Type

UseWebs tinyint Determines whether to use Web number for width, stock and Ink

0 = No webs or DPS bins in use

1 = Web type

2 = Digital Printing System (DPS) type

UseStk tinyint Determines whether Stock tab is displayed for this component type.

UseInk tinyint Whether Ink tab is displayed for this component type.

UseLay tinyint Determines whether the layout tab is available for this component type.

ShowQty tinyint Determines whether this component type displays the quantities and allows user

override.

ShowPress tinyint Determines whether this component type requires that the user select a press.

WebCaption varchar (6) Caption used to refer to the web, bin or substrate index for component types that

handle multiple material streams in the printing process.

MatlCaption varchar (12) Caption used in Estimating 3 to refer to the stock or substrate used in the printing

process for an individual component type.

Disabled bit If this field is set to 1, the component production type will not be available in

Estimating 3. Allows customers to pare down the list of component production

types to those available in their plant.

Page 84JohnsonGroup

Page 85: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CompType Comp Type

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

ShowPress ([ShowPress] >= 0 and [ShowPress] <= 1)

ShowQty ([ShowQty] >= 0 and [ShowQty] <= 1)

Type ([Type] >= 0 and [Type] <= 99)

UseInk ([UseInk] >= 0 and [UseInk] <= 1)

UseLay ([UseLay] >= 0 and [UseLay] <= 1)

UseStk ([UseStk] >= 0 and [UseStk] <= 1)

UseWebs ([UseWebs] >= 0 and [UseWebs] <= 3)

Page 85JohnsonGroup

Page 86: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ConfigInstrs Config Instrs

Estimating 3 Job Ticket Information ; Information to be moved to the Job

Ticket for special instructions associated at the job level. Any special

instructions for the estimate are included first, followed by special

instructions for the configuration component.

Indexes on Description

JobN, LineNum Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

LineNum int Sequence number to order text lines.

Instructions varchar (5,000) Actual text of special instructions.

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LineNum ([LineNum] >= 0 and [LineNum] <= 9999)

Page 86JohnsonGroup

Page 87: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ConfigProduct Config Product

This table contains the quantities and calculations specific to products

within a configuration.

Indexes on Description

IssNum, ConfigNum,

ProductNum

Primary key, clustered

TypeColumn

EstNum int Estimate number.

IssNum int Issue number.

Relates to: Estimates table

ConfigNum int Configuration number

ProductNum int Product number.

Quantity1 int Quantity 1 for this product in this configuration.

Quantity2 int Quantity 2 for this product in this configuration.

Quantity3 int Quantity 3 for this product in this configuration.

Quantity4 int Quantity 4 for this product in this configuration.

Quantity5 int Quantity 5 for this product in this configuration.

Cost1 decimal (15,2) Calculated cost for quantity 1 of this product in this configuration. The

calculation is based on percentages of component costs used in the product so

the total product costs in a configuration may have some rounding differences

from the total component costs.

Cost2 decimal (15,2) Calculated cost for quantity 2 of this product in this configuration.

Cost3 decimal (15,2) Calculated cost for quantity 3 of this product in this configuration.

Cost4 decimal (15,2) Calculated cost for quantity 4 of this product in this configuration.

Cost5 decimal (15,2) Calculated cost for quantity 5 of this product in this configuration.

AICCost1 decimal (15,2) Calculated All Inclusive Cost for quantity 1 of this product in this configuration.

See comment for Cost1 concerning rounding differences.

AICCost2 decimal (15,2) Calculated All Inclusive Cost for quantity 2 of this product in this configuration.

AICCost3 decimal (15,2) Calculated All Inclusive Cost for quantity 3 of this product in this configuration.

AICCost4 decimal (15,2) Calculated All Inclusive Cost for quantity 4 of this product in this configuration.

AICCost5 decimal (15,2) Calculated All Inclusive Cost for quantity 5 of this product in this configuration.

EstTSP1 decimal (15,2) Calculated estimated Target Selling Price for quantity 1 of this product in this

configuration. See comment in Cost 1 concerning possible rounding

differences.

EstTSP2 decimal (15,2) Calculated estimated Target Selling Price for quantity 2 of this product in this

configuration.

EstTSP3 decimal (15,2) Calculated estimated Target Selling Price for quantity 3 of this product in this

configuration.

Page 87JohnsonGroup

Page 88: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ConfigProduct Config Product

EstTSP4 decimal (15,2) Calculated estimated Target Selling Price for quantity 4 of this product in this

configuration.

EstTSP5 decimal (15,2) Calculated estimated Target Selling Price for quantity 5 of this product in this

configuration.

TSPAddl1 decimal (15,2) Calculated TSP for additional quantity for Quantity 1. See comment in Cost 1

concerning possible rounding differences.

TSPAddl2 decimal (15,2) Calculated TSP for additional quantity for Quantity 2.

TSPAddl3 decimal (15,2) Calculated TSP for additional quantity for Quantity 3.

TSPAddl4 decimal (15,2) Calculated TSP for additional quantity for Quantity 4.

TSPAddl5 decimal (15,2) Calculated TSP for additional quantity for Quantity 5.

Quote1 decimal (15,2) Calculated Quote for Quantity 1. See comment in Cost 1 concerning possible

rounding differences.

Quote2 decimal (15,2) Calculated Quote for Quantity 2.

Quote3 decimal (15,2) Calculated Quote for Quantity 3.

Quote4 decimal (15,2) Calculated Quote for Quantity 4.

Quote5 decimal (15,2) Calculated Quote for Quantity 5.

Page 88JohnsonGroup

Page 89: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ConfigProduct Config Product

ConstraintColumn

Field Constraints

AICCost1 ([AICCost1]>=(-999999999) AND [AICCost1]<=(999999999))

AICCost2 ([AICCost2]>=(-999999999) AND [AICCost2]<=(999999999))

AICCost3 ([AICCost3]>=(-999999999) AND [AICCost3]<=(999999999))

AICCost4 ([AICCost4]>=(-999999999) AND [AICCost4]<=(999999999))

AICCost5 ([AICCost5]>=(-999999999) AND [AICCost5]<=(999999999))

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

Cost1 ([Cost1]>=(-999999999) AND [Cost1]<=(999999999))

Cost2 ([Cost2]>=(-999999999) AND [Cost2]<=(999999999))

Cost3 ([Cost3]>=(-999999999) AND [Cost3]<=(999999999))

Cost4 ([Cost4]>=(-999999999) AND [Cost4]<=(999999999))

Cost5 ([Cost5]>=(-999999999) AND [Cost5]<=(999999999))

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

EstTSP1 ([EstTSP1]>=(-999999999) AND [EstTSP1]<=(999999999))

EstTSP2 ([EstTSP2]>=(-999999999) AND [EstTSP2]<=(999999999))

EstTSP3 ([EstTSP3]>=(-999999999) AND [EstTSP3]<=(999999999))

EstTSP4 ([EstTSP4]>=(-999999999) AND [EstTSP4]<=(999999999))

EstTSP5 ([EstTSP5]>=(-999999999) AND [EstTSP5]<=(999999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

ProductNum ([ProductNum]>=(-1) AND [ProductNum]<=(99999))

Quantity1 ([Quantity1]>=(-1) AND [Quantity1]<=(999999999))

Quantity2 ([Quantity2]>=(-1) AND [Quantity2]<=(999999999))

Quantity3 ([Quantity3]>=(-1) AND [Quantity3]<=(999999999))

Quantity4 ([Quantity4]>=(-1) AND [Quantity4]<=(999999999))

Quantity5 ([Quantity5]>=(-1) AND [Quantity5]<=(999999999))

Quote1 ([Quote1]>=(-999999999) AND [Quote1]<=(999999999))

Quote2 ([Quote2]>=(-999999999) AND [Quote2]<=(999999999))

Quote3 ([Quote3]>=(-999999999) AND [Quote3]<=(999999999))

Quote4 ([Quote4]>=(-999999999) AND [Quote4]<=(999999999))

Quote5 ([Quote5]>=(-999999999) AND [Quote5]<=(999999999))

TSPAddl1 ([TSPAddl1]>=(-999999999) AND [TSPAddl1]<=(999999999))

TSPAddl2 ([TSPAddl2]>=(-999999999) AND [TSPAddl2]<=(999999999))

TSPAddl3 ([TSPAddl3]>=(-999999999) AND [TSPAddl3]<=(999999999))

TSPAddl4 ([TSPAddl4]>=(-999999999) AND [TSPAddl4]<=(999999999))

TSPAddl5 ([TSPAddl5]>=(-999999999) AND [TSPAddl5]<=(999999999))

Page 89JohnsonGroup

Page 90: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ConfigProductComp Config Product Comp

This table contains the calculations for the components within a product as

used in a configuration.

Indexes on Description

IssNum, ConfigNum,

ProductNum, CompNum

Primary key, clustered

TypeColumn

EstNum int Estimate number.

IssNum int Issue number.

Relates to: Estimates table

ConfigNum int Configuration number.

ProductNum int Product number.

CompNum int Component number.

ConfigCalc bit Indicates calculation status - not used in server database.

CompRunOrder int Maintained as production run order of this component. It will be the same across

all products that use a component within a configuration.

CompCnt smallint Number of component multiples for this component. It will be the same across

all uses of this same component in products within a configuration.

Quantity1 int Quantity 1 of this component in this product if different from product quantity

(-1 indicates to use product quantity).

Quantity2 int Quantity 2 of this component in this product if different from product quantity

(-1 indicates to use product quantity).

Quantity3 int Quantity 3 of this component in this product if different from product quantity

(-1 indicates to use product quantity).

Quantity4 int Quantity 4 of this component in this product if different from product quantity

(-1 indicates to use product quantity).

Quantity5 int Quantity 5 of this component in this product if different from product quantity

(-1 indicates to use product quantity).

CompPct1 decimal (9,4) Percent of total quantity of this component produced for this configuration that is

used in this product.

CompPct2 decimal (9,4) Percent of total quantity of this component produced for this configuration will

be used in this product.

CompPct3 decimal (9,4) Percent of total quantity of this component produced for this configuration will

be used in this product.

CompPct4 decimal (9,4) Percent of total quantity of this component produced for this configuration will

be used in this product.

CompPct5 decimal (9,4) Percent of total quantity of this component produced for this configuration will

be used in this product.

Page 90JohnsonGroup

Page 91: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ConfigProductComp Config Product Comp

ConstraintColumn

Field Constraints

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum]>=(0) AND [CompNum]<=(99999))

CompPct1 ([CompPct1]>=(0) AND [CompPct1]<=(100))

CompPct2 ([CompPct2]>=(0) AND [CompPct2]<=(100))

CompPct3 ([CompPct3]>=(0) AND [CompPct3]<=(100))

CompPct4 ([CompPct4]>=(0) AND [CompPct4]<=(100))

CompPct5 ([CompPct5]>=(0) AND [CompPct5]<=(100))

CompRunOrder ([CompRunOrder]>=(0) AND [CompRunOrder]<=(9999))

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

ProductNum ([ProductNum]>=(-1) AND [ProductNum]<=(99999))

Quantity1 ([Quantity1]>=(-1) AND [Quantity1]<=(999999999))

Quantity2 ([Quantity2]>=(-1) AND [Quantity2]<=(999999999))

Quantity3 ([Quantity3]>=(-1) AND [Quantity3]<=(999999999))

Quantity4 ([Quantity4]>=(-1) AND [Quantity4]<=(999999999))

Quantity5 ([Quantity5]>=(-1) AND [Quantity5]<=(999999999))

Page 91JohnsonGroup

Page 92: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Configuration Configuration

A particular collection of products and components to be used as a

configuration of an Estimating 3 estimate.

Indexes on Description

IssNum, ConfigNum Primary key, clustered

TypeColumn

IssNum int Issue number.

Relates to: Estimates table

EstNum int Estimate number.

ConfigNum int Configuration number.

Cstatus smallint Calculation status of configuration. Not used on the server.

Description nvarchar Description of configuration.

MarkupSeq smallint Selected overall markup for this configuration.

Quote1 decimal (15,2) An optional quote override for Quantity 1.

Quote2 decimal (15,2) An optional quote override for Quantity 2.

Quote3 decimal (15,2) An optional quote override for Quantity 3.

Quote4 decimal (15,2) An optional quote override for Quantity 4.

Quote5 decimal (15,2) An optional quote override for Quantity 5.

MultipleProducts bit Whether this configuration includes more than one product.

Quantity1 int The sum of all product quantities for Quantity 1 of this configuration.

Quantity2 int The sum of all product quantities for Quantity 2 of this configuration.

Quantity3 int The sum of all product quantities for Quantity 3 of this configuration.

Quantity4 int The sum of all product quantities for Quantity 4 of this configuration.

Quantity5 int The sum of all product quantities for Quantity 5 of this configuration.

Page 92JohnsonGroup

Page 93: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Configuration Configuration

ConstraintColumn

Field Constraints

ConfigNum ([ConfigNum]>=(-1) AND [confignum]<=(99999))

Cstatus ([Cstatus]>=(0) AND [CStatus]<=(2))

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

MarkupSeq ([MarkupSeq]>=(-1) AND [MarkupSeq]<=(999))

Quantity1 ([Quantity1]>=(0) AND [Quantity1]<=(999999999))

Quantity2 ([Quantity2]>=(0) AND [Quantity2]<=(999999999))

Quantity3 ([Quantity3]>=(0) AND [Quantity3]<=(999999999))

Quantity4 ([Quantity4]>=(0) AND [Quantity4]<=(999999999))

Quantity5 ([Quantity5]>=(0) AND [Quantity5]<=(999999999))

Quote1 ([Quote1]>=(-999999999) AND [Quote1]<=(999999999))

Quote2 ([Quote2]>=(-999999999) AND [Quote2]<=(999999999))

Quote3 ([Quote3]>=(-999999999) AND [Quote3]<=(999999999))

Quote4 ([Quote4]>=(-999999999) AND [Quote4]<=(999999999))

Quote5 ([Quote5]>=(-999999999) AND [Quote5]<=(999999999))

Page 93JohnsonGroup

Page 94: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Contacts Contacts

Table added for OASIS contact info.

-Vijay

Indexes on Description

KeyN Primary key, clustered

TypeColumn

KeyN int Key No. This field identifes the contact record.

Salutation varchar (150) Salutation e.g. Mr, Ms. etc.

Relates to: SalutationTypeList table

Nameline varchar (150) Name as one line

NamePrefix varchar (150) Prefix of the name. e.g. Dr, Mr., Ms.

FirstName varchar (150) FirstName

MiddleName1 varchar (150) First middlename of the person

MiddleName2 varchar (150) Second middlename of the person

LastName varchar (40) Lastname of the person.

LastNameSuffix varchar (150) LastName Suffix e.g. Jr, Sr etc.

NickName varchar (150) Nickname of the person.

CompanyName varchar (50) Name of the company

OrgType varchar (150) Type of the organization.

Relates to: OrgTypeList table

OrgName varchar (24) Name of the Organization

OrgKnownAs varchar (150) Organization known as or another name of the organization

Attention varchar (35) Attention

DescriptionText varchar (30) Text describing the contact

AddressLine1 varchar (40) First AddressLine

AddressLine2 varchar (40) Second AddressLine

BlockNo varchar (150) Block No

StreetType varchar (150) Street Type etc. Interstae, State Highway etc.

StreetTrailingType varchar (150) Street Trailing Type e.g. Ave, Rd, Blvd etc.

Relates to: StreetTrailingList table

StreetDirection varchar (150) Street Direction e.g. North, South, East, West etc.

Relates to: StreetDirectionList table

SubPremise varchar (150) Type of the sub premise

SubPremiseName varchar (150) Name of the sub premise

Relates to: SubPremiseTypeList table

Page 94JohnsonGroup

Page 95: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Contacts Contacts

Premise varchar (150) Premise type e.g. villa, building, block

PremiseName varchar (150) Name of the premise

Relates to: PremiseTypeList table

AdminArea varchar (150) Type of an administrative area

AdminAreaName varchar (150) Name of an administrative area

Relates to: AdminAreaTypeList table

Locality varchar (150) Type of the locality e.g. city, village, county

LocalityName varchar (150) Name of the locality

Relates to: LocalityTypeList table

City varchar (30) City

State varchar (4) State

PostalCode varchar (15) Postal Code

PostalCodeExt varchar (150) Extension of the Postal Code

AddressValidTill varchar (150) Date till address is valid

Role1 varchar (150) First role of the person to whom the contact record belongs.

RoleDesc1 varchar (150) Description of the first role.

RoleValitTill1 varchar (150) Date till first role is valid.

Role2 varchar (150) Second role of the person to whom the contact record belongs.

RoleDesc2 varchar (150) Description of the second role.

RoleValitTill2 varchar (150) Date till second role is valid.

BusinessPhone varchar (25) Business Phone No

BPExt varchar (6) BusinessPhone Extension

BPBestTime varchar (150) Best Time to call at Business Phone

HomePhone varchar (150) HomePhone No

HPBestTime varchar (150) Best time to call at HomePhone

CellPhone varchar (25) Cell Phone No

Fax varchar (25) Fax No

Email varchar (128) Email

Pager varchar (150) Pager no.

IM varchar (150) Instant Messenger Id

IsActive bit 1 if the record is active; 0 otherwise

0 = Yes

1 = No

Page 95JohnsonGroup

Page 96: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Contacts Contacts

ConstraintColumn

Field Constraints

KeyN ([KeyN]>=(0) AND [KeyN]<=(999999999))

Page 96JohnsonGroup

Page 97: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CostFunc Cost Func

Estimating 3 Standards: Cost Function (CF) table. A CF is a subset of an

operation, which consists of several questions and standards (f.ex., for

make ready). The CF triggers the program to run the appropriate

subroutine to calculate hours, costs, etc. CFs also used as identifiers for

paper spoilage. All outputs of Estimating 3 (in calculation files) are

identified by the CF.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (numeric, used on server only).

CostID smallint Cost Function identifier.

CostName varchar (50) Cost Function Full Name ( Makereadies, Setup, etc)

ShortName varchar (4) Cost function short name (SU, MR, etc.)

Unit1 varchar (30) Default Count 1 Unit Used as unit label for output Count 1 if the standards do

not provide a specific one (This field is blank if not applicable)

Unit2 varchar (30) Default Count 2 Unit Used as unit label for output Count 2 if the standars do

not provide a specific one (This field is blank if not applicable)

Hours varchar (15) Default label for Hours Used as unit label for hours in calculation output. (this

field is blank if not applicable)

ConstraintColumn

Field Constraints

CostID ([CostID] >= 0 and [CostID] <= 99)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 97JohnsonGroup

Page 98: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Country Country

List of ISO 3166-1 countries. Any country column in a table should be a

foreign key to this table.

There is one entry with country code 'AAA' and an empty name that can be

used for addresses that do not include a country. The ISO 3166-1 standard

reserves country codes of the form AA? for private use. No country will

be allocated those codes.

Indexes on Description

CountryCode Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AcctDivisions CountryCode

AltVendAddr CountryCode

Customer CountryCode

CustShipAddr CountryCode

Estimates CountryCode

JobShipments CountryCode

LocationAddres ShipCountryCode

ParentCompany CountryCode

PurchaseOrder ShipCountryCode

QQOrder CountryCode

ShipExtension ShipFromCountryCode

Shipments CountryCode

Vendor PayeeCountryCode

WinInvJobs ShipCountryCode

WinInvoice BillCountryCode

TypeColumn

CountryCode varchar (3) The ISO 3166-1 alpha-3 country code.

CountryName varchar (35) Name of the country.

Active bit 0: country is not active (will not be displayed as a valid choice)

1: country is active (will be displayed as a valid choice)

0 = No

1 = Yes

TwoChrCountry varchar (2) ISO 3166 2 character country code for cross reference

ConstraintColumn

Field Constraints

Page 98JohnsonGroup

Page 99: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CRCDBatch CR CD Batch

CR and CD batch table for Accounting input. Contains header information

for a single double entry accounting transaction. General Ledger offsetting

accounts are contained in the associated CRCDInvoices table.

Data in this table will be posted to either ARtransaction or APtransaction

and will be deleted when its associated batch is deleted by the system

(after the batch has been posted).

Indexes on Description

CRCDBatchKey Primary key, clustered

BatchNumber,

CRCDBatchKey

Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

CRCDInvoices CRCDBatchKey

TypeColumn

CRCDBatchKey int Sequential key assigned by Accounting

BatchNumber int Batch number for CR or CD transactions. Accounting assigns the batch number

in WinAcctBatch when a new batch is created. Each record in CRCDBatch

represents the header of a double entry transaction and must be associated with a

WinAcctBatch entry. CR and CD batches may also include non- invoiced

transactions. These records are stored in tables GJBatch and GJtransactions

under the same batch number.

Relates to: WinAcctBatch table

Vendor int Vendor Number from Vendor table. Only used for CD and checks transactions.

Relates to: Vendor table

Customer int Customer Number from Customer table. Only used for CR transactions.

Relates to: Customer table

CheckNumber int User's check number for CD transactions. The check number is written to this

column when the check is printed. For CR transactions, this column contains the

customer's check number.

AmountOfCheck decimal (15,2) Total of receipt or disbursement. This is the value that shows in the 'Payment' or

'Total Pay' window in the data entry screens. It is the total of the invoices that

will be posted in ARtransaction or APtransaction for invoiced CR or CD

transactions respectively.

CashAccount int Cash account used to record receipt or check. This will default to the AR or AP

cash account stored in AcctDivisions table. The account may be changed by the

user in the data entry window. This account identifies the GL account which will

receive the posting in GLAccountData.

Relates to: GLAccounts table

Description varchar (60) Text description. This will be posted to the GLAccountData table.

Status smallint Used by check writing process for internal use only. This data is not used by

close/post. Values:

0 = Incomplete

1 = Ready to print

2 = Printed

3 = Needs reprinting

4 = Failed check

Page 99JohnsonGroup

Page 100: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CRCDBatch CR CD Batch

Department int The department associated with account stored in the CashAccount column.

Often used when the account used to write off bad debt requires a department.

Relates to: DeptNames table

VoidCheckFlag tinyint Record flagged as void check.

CheckImageN int The number used to locate the check image information that is stored in the

AcctCheckHeader and AcctCheckDetail tables. This number corresponds to

CheckHeaderN in the AcctCheckHeader table.

Relates to: AcctCheckHeader table

VoidReason smallint The reason why the check identified by this transaction was marked as a void

check. Valid values are:

0 - Check has not been marked void

1 - Alignment

2 - Multiple stub

3 - Reprint - different number

4 - Reprint - same number

5 - User initiated

ConstraintColumn

Field Constraints

AmountOfCheck ([AmountOfCheck] >= (-999999999) and [AmountOfCheck] <= 999999999)

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 999999)

CashAccount ([CashAccount] >= 0 and [CashAccount] <= 999999999)

CheckImageN ([CheckImageN]>=(0) AND [CheckImageN]<=(999999999))

CheckNumber ([CheckNumber] >= 0 and [CheckNumber] <= 999999999)

CRCDBatchKey ([CRCDBatchKey] >= 1 and [CRCDBatchKey] <= 999999)

Customer ([Customer] >= 0 and [Customer] <= 999999999)

Department ([Department] >= 0 and [Department] <= 9999999)

Status ([Status] >= 0 and [Status] <= 99)

Vendor ([Vendor] >= 0 and [Vendor] <= 999999999)

VoidCheckFlag ([VoidCheckFlag] >= 0 and [VoidCheckFlag] <= 1)

VoidReason ([VoidReason]>=(0) AND [VoidReason]<=(9))

Page 100JohnsonGroup

Page 101: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CRCDInvoices CR CD Invoices

Contains individual vendor or customer invoices for a single double-entry

Cash Disbursement or Cash Receipt transaction. Corresponding customer

or vendor information is contained in the associated CRCDBatch table.

Data in this table will be deleted when its associated batch is deleted by the

system (after the batch has been posted).

Indexes on Description

CRCDBatchKey,

CRCDInvKey

Primary key, clustered

TypeColumn

CRCDBatchKey int Sequential key assigned by Accounting

Relates to: CRCDBatch table

CRCDInvKey int Sequential key assigned by Accounting

VendorInvoice varchar (12) String invoice number from your vendor. Used only by CD transactions.

CustInvoice int Our invoice number to the customer. Used only by CR.

InvoiceDate datetime Used by both CR and CD.

PaymentType tinyint 0 = Internal use for redrawing batch screen

1 = Payment

2 = Adjustment

3 = Credit Invoice

4 = Correction

5 = Overpayment

6 = On Hold

7 = Is Credit

Transactions with a value of 0 are used internally by Accounting and are ignored

by the close/post process.

Discount decimal (15,2) Discount taken by either CR or CD transaction.

Payment decimal (15,2) Dollar amount from each line item to be posted to GLAccountData.

CRCreditInv int Credit invoice number used to apply a complete or partial credit to an

outstanding invoice.

CDCreditInv varchar (12) Vendor's string invoice used for credit.

CheckNumber int Used for check writing and cash disbursements only. This is passed to the

database via close/post process.

AccountNo int GL account to which to post this line item in GLAccountData.

Relates to: GLAccounts table

Department int Department to which to post this line item.

Relates to: DeptNames table

BalanceDue decimal (15,2) Used for internal processing by Accounting.

PaymentDate datetime Used by check writing process.

DiscountLost tinyint DiscountLost is used by the program. When it's a 1, program displays " * *

LOST * * " in the discount column to let user know that they didn't pay the bill

soon enough to take advantage of the discount.

Page 101JohnsonGroup

Page 102: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CRCDInvoices CR CD Invoices

PurchaseOrder int PO number is displayed on the screen for Accounts Payable -> checks batches.

ConstraintColumn

Field Constraints

AccountNo ([accountno] >= 0 and [accountno] <= 999999999)

BalanceDue ([BalanceDue] >= (-999999999) and [BalanceDue] <= 999999999)

CheckNumber ([CheckNumber] >= 0 and [CheckNumber] <= 999999999)

CRCDBatchKey ([CRCDBatchKey] >= 0 and [CRCDBatchKey] <= 999999)

CRCDInvKey ([CRCDInvKey] >= 0 and [CRCDInvKey] <= 999999)

CRCreditInv ([CRCreditInv] >= 0 and [CRCreditInv] <= 999999999)

CustInvoice ([CustInvoice] >= 0 and [CustInvoice] <= 999999999)

Department ([Department] >= 0 and [Department] <= 9999999)

Discount ([Discount] >= (-999999999) and [Discount] <= 999999999)

DiscountLost ([DiscountLost] >= 0 and [DiscountLost] <= 1)

Payment ([Payment] >= (-999999999) and [Payment] <= 999999999)

PaymentType ([PaymentType] >= 0 and [PaymentType] <= 9)

PurchaseOrder ([purchaseorder] >= 0 and [purchaseorder] <= 999999999)

Page 102JohnsonGroup

Page 103: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_AddlShipInfo CT_AddlShipInfo

Custom table that extends JobShipments

Indexes on Description

JobN, JobShipmentN Primary key, clustered

TypeColumn

JobN int The number of the job in the OpenJob table.

Relates to: OpenJob table

JobShipmentN int The number of the planned shipment for a particular job. The combination of

the job number and JobShip

SpecQty varchar (20) Special Quantity

Comments varchar (150) Comments

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

JobShipmentN ([JobShipmentN] >= 0 and [JobShipmentN] <= 9999999)

Page 103JohnsonGroup

Page 104: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_BillPoolInit Custom Bill Pool Init

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

Initials varchar (10)

userName nvarchar

dateUpdated datetime

notFromLogic tinyint

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

notFromLogic ([notFromLogic] >= 0.0 and [notFromLogic] <= 1)

Page 104JohnsonGroup

Page 105: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_CostSheet Custom Cost Sheet

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

MailServValue decimal (8,2)

InvCopies tinyint

POb4Billing tinyint

LumpSum tinyint

Other varchar (25)

AddlPrcngPP tinyint

AddlPrcngMs tinyint

OtherAddlPrcng varchar (25)

MailSUFee decimal (8,2)

InkJetServ decimal (8,2)

Tabbing decimal (8,2)

OtherMailServ varchar (25)

PostChkRec tinyint

BillPstg10onInv tinyint

PstgChkRecDate datetime

BillMailSepInv tinyint

PreBillPost tinyint

MailPostInvFxd tinyint

AddlJT4MailFul tinyint

BillPrtgOnly tinyint

BillPrtgOnlyOnTkt tinyint

OutOfAreaShpg tinyint

ExpedShpgChgs tinyint

CopyBillLading tinyint

Bill4ProofsEtc tinyint

MailServNPValue varchar (50)

AddlPricing decimal (8,2)

BillAttn_1 varchar (50)

Page 105JohnsonGroup

Page 106: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_CostSheet Custom Cost Sheet

BillAttn_2 varchar (50)

BillAttn_3 varchar (50)

BillAttn_4 varchar (50)

Bill4Inventory tinyint

Chg4NCOA tinyint

NewCust tinyint

SpecBillInstr varchar (1,000)

SpecPriceNeeded varchar (1,000)

FSC varchar (4)

ConstraintColumn

Field Constraints

AddlJT4MailFul ([AddlJT4MailFul] >= 0.0 and [AddlJT4MailFul] <= 255)

AddlPrcngMs ([AddlPrcngMs] >= 0.0 and [AddlPrcngMs] <= 255)

AddlPrcngPP ([AddlPrcngPP] >= 0.0 and [AddlPrcngPP] <= 255)

AddlPricing ([AddlPricing] >= 0.0 and [AddlPricing] <= 999999)

Bill4Inventory ([Bill4Inventory] >= 0.0 and [Bill4Inventory] <= 255)

Bill4ProofsEtc ([Bill4ProofsEtc] >= 0.0 and [Bill4ProofsEtc] <= 255)

BillMailSepInv ([BillMailSepInv] >= 0.0 and [BillMailSepInv] <= 255)

BillPrtgOnly ([BillPrtgOnly] >= 0.0 and [BillPrtgOnly] <= 255)

BillPrtgOnlyOnTkt ([BillPrtgOnlyOnTkt] >= 0.0 and [BillPrtgOnlyOnTkt] <= 255)

BillPstg10onInv ([BillPstg10onInv] >= 0.0 and [BillPstg10onInv] <= 255)

Chg4NCOA ([Chg4NCOA] >= 0.0 and [Chg4NCOA] <= 255)

CopyBillLading ([CopyBillLading] >= 0.0 and [CopyBillLading] <= 255)

ExpedShpgChgs ([ExpedShpgChgs] >= 0.0 and [ExpedShpgChgs] <= 255)

InkJetServ ([InkJetServ] >= 0.0 and [InkJetServ] <= 999999)

InvCopies ([InvCopies] >= 0.0 and [InvCopies] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LumpSum ([LumpSum] >= 0.0 and [LumpSum] <= 255)

MailPostInvFxd ([MailPostInvFxd] >= 0.0 and [MailPostInvFxd] <= 255)

MailServValue ([MailServValue] >= 0.0 and [MailServValue] <= 999999)

MailSUFee ([MailSUFee] >= 0.0 and [MailSUFee] <= 999999)

NewCust ([NewCust] >= 0.0 and [NewCust] <= 255)

OutOfAreaShpg ([OutOfAreaShpg] >= 0.0 and [OutOfAreaShpg] <= 255)

POb4Billing ([POb4Billing] >= 0.0 and [POb4Billing] <= 255)

PostChkRec ([PostChkRec] >= 0.0 and [PostChkRec] <= 255)

PreBillPost ([PreBillPost] >= 0.0 and [PreBillPost] <= 255)

Tabbing ([Tabbing] >= 0.0 and [Tabbing] <= 999999)

Page 106JohnsonGroup

Page 107: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_Customer Customer Custom Table

Custom table for user to add additional customer information.

Indexes on Description

CustomerN Primary key, clustered

TypeColumn

CustomerN int

Relates to: Customer table

QRCreditEligible tinyint

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

QRCreditEligible ([QRCreditEligible] >= 0.0 and [QRCreditEligible] <= 255)

Page 107JohnsonGroup

Page 108: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_CustomerInfo CT Customer Info

The Customer Information File contains a second

mailing address for any customers who need one. This

is a shipping address that can be printed on customer

invoices. The invoice parameters determine if this

address will be included on the invoice. Edit through

acctmnt.

Indexes on Description

CustomerNumber Primary key, clustered

TypeColumn

CustomerNumber int

Relates to: Customer table

SortOrder varchar (10)

AttentionLine varchar (24)

CompanyName varchar (24)

Line2OfAddrs varchar (24)

Line3OfAddrs varchar (24)

City varchar (24)

State varchar (2)

ZipCode varchar (9)

ConstraintColumn

Field Constraints

CustomerNumber ([CustomerNumber] >= 0 and [CustomerNumber] <= 999999999)

Page 108JohnsonGroup

Page 109: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_EJTmailing CT_EJTmailing

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

CT_MailChklst JobN

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

Method varchar (50) Method

Merge varchar (3) Merge

Purge varchar (3) Purge

DataCleansing varchar (3) Data Cleansing

QtyToMail varchar (20) Qty to Mail

CustChkProv varchar (3) Customer Check Provided

MailList varchar (50) 20

Comments varchar (400) Comments

PermitN varchar (20) Permit Number

Tab varchar (3) Tabbing

TabQty varchar (12) Tab Qty

Plastic varchar (25) Plastic

Paper varchar (10) Paper

PostInvReq varchar (3)

PostInvReqDate datetime

MergeYN tinyint

ListCount int

DeDupe tinyint

DupeCriteria varchar (200)

ChgForEnv tinyint

GlueDot varchar (4)

GlueDotQty int

numMailings int

barCode tinyint

barCodeEmail varchar (100)

Page 109JohnsonGroup

Page 110: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_EJTmailing CT_EJTmailing

ConstraintColumn

Field Constraints

barCode ([barCode] >= 0.0 and [barCode] <= 255)

ChgForEnv ([ChgForEnv] >= 0.0 and [ChgForEnv] <= 255)

DeDupe ([DeDupe] >= 0.0 and [DeDupe] <= 255)

GlueDotQty ([GlueDotQty] >= 0.0 and [GlueDotQty] <= 999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

ListCount ([ListCount] >= 0.0 and [ListCount] <= 999999)

MergeYN ([MergeYN] >= 0.0 and [MergeYN] <= 255)

numMailings ([numMailings] >= 0.0 and [numMailings] <= 999999)

Page 110JohnsonGroup

Page 111: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_EJTOffset CT_EJTOffset

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

OffsetScr varchar (3) Offset Score

OffsetPerf varchar (3) Offset Perf

Remarks varchar (2,000) Remarks

SpecInkForm varchar (200) Special Ink Formula

InkColors varchar (150) Ink Colors

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 111JohnsonGroup

Page 112: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_Job Job Custom Table

Custom table for user to add additional job information.

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

Cov_JobComments varchar (7,000)

Cov_MatlComments varchar (500)

Cov_ProdComments varchar (500)

MT_JobDueTime varchar (5)

MT_ContactName varchar (30)

MT_ContactPhone varchar (20)

MT_ContactFax varchar (20)

MT_ContactEmail varchar (50)

MT_ClientOK varchar (3)

MT_ContractPath varchar (250)

MT_JobSpecInst varchar (750)

MT_PrepSpecInst varchar (500)

MT_InkCoatSpecInst varchar (500)

MT_PressSpecInst varchar (500)

MT_StockSpecInst varchar (500)

MT_BinderySpecInst varchar (500)

MT_BuyoutSpecInst varchar (1,000)

MT_PackShipSpecInst varchar (5,000)

MT_PrepPlatform1 varchar (10)

MT_PrepPlatform2 varchar (10)

MT_PrepPlatform3 varchar (10)

MT_PrepSoftware1 varchar (20)

MT_PrepSoftware2 varchar (20)

MT_PrepSoftware3 varchar (20)

MT_PrepMedia1 varchar (15)

MT_PrepMedia2 varchar (15)

MT_PrepMedia3 varchar (15)

MT_PrepLocation1 varchar (200)

Page 112JohnsonGroup

Page 113: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_Job Job Custom Table

MT_PrepLocation2 varchar (200)

MT_PrepLocation3 varchar (200)

MT_PrepImageType1 varchar (15)

MT_PrepImageType2 varchar (15)

MT_PrepImageType3 varchar (15)

MT_PrepScansHT int

MT_PrepScansDT int

MT_PrepScansSeps int

MT_PrepRandoms int

MT_PrepDateOut datetime

MT_PrepReturned datetime

MT_ProofType1A varchar (20)

MT_ProofType1B varchar (20)

MT_ProofType2A varchar (20)

MT_ProofType2B varchar (20)

MT_ProofType3A varchar (20)

MT_ProofType3B varchar (20)

MT_ProofSets1A int

MT_ProofSets1B int

MT_ProofSets2A int

MT_ProofSets2B int

MT_ProofSets3A int

MT_ProofSets3B int

MT_ProofsSent1 datetime

MT_ProofsSent2 datetime

MT_ProofsSent3 datetime

MT_ProofsRet1 datetime

MT_ProofsRet2 datetime

MT_ProofsRet3 datetime

MT_ProofInst1 varchar (40)

MT_ProofInst2 varchar (40)

MT_ProofInst3 varchar (40)

MT_RevsNonTicket varchar (50)

MT_BindMechBind varchar (60)

MT_BindDieCut varchar (60)

Page 113JohnsonGroup

Page 114: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_Job Job Custom Table

MT_BindDrillHoles int

MT_BindDrillSize varchar (20)

MT_BindDrillPlace varchar (20)

MT_BindStyle varchar (50)

MT_BindWires varchar (15)

MT_BindBulk varchar (15)

MT_BindCollate varchar (50)

MT_BindCollatePcs int

MT_BindTrim varchar (15)

MT_BindMechGlue varchar (10)

MT_BindMechPad varchar (10)

MT_BindMechPadIn int

MT_BindMechInsert varchar (10)

MT_BindLargeScore varchar (10)

MT_BindLargePerf varchar (10)

MT_PackShrinkIn int

MT_PackCartons int

MT_PackCtsUnits varchar (10)

MT_PackSkids int

MT_PackSamples varchar (3)

MT_PackSamplesQty int

ShipDate varchar (10) Ship Date

ArriveBy varchar (10) Arrive By/On

FinalShipDate varchar (12) Final Ship Date

TrackN varchar (100) Tracking Number

dueFlexable2 tinyint

ConstraintColumn

Field Constraints

dueFlexable2 ([dueFlexable2] >= 0.0 and [dueFlexable2] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 114JohnsonGroup

Page 115: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_JobForm Job Form Custom Table

Custom table for user to add additional job form information.

Indexes on Description

JobN, FormN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

FormN smallint

MT_PlateType varchar (25)

MT_PlatesNum int

MT_PlatesDate datetime

MT_PressName varchar (25)

MT_PressOK varchar (4)

MT_RunMethod varchar (4)

MT_PressAttachmnt varchar (250)

MT_ScorePerf varchar (50)

MT_GrossSheets int

MT_InkCoatInkS1 varchar (30)

MT_InkCoatInkS2 varchar (30)

MT_InkCoatCoatS1 varchar (30)

MT_InkCoatCoatS2 varchar (30)

MT_BindCut varchar (25)

MT_BindFold varchar (50)

MT_BindOther varchar (75)

Curve varchar (30)

InkColors varchar (150) Ink Colors

ColorsS1 varchar (35) Colors-Side 1

ColorsS2 varchar (35) Colors-Side 2

Imposition varchar (50) Imposition

NetShts varchar (12) Net Sheets

RunSize varchar (25) Run Size

Press varchar (20) Press

FormDesc varchar (20) Form Description

Page 115JohnsonGroup

Page 116: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_JobForm Job Form Custom Table

ConstraintColumn

Field Constraints

FormN ([FormN] >= 0 and [FormN] <= 9999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

Page 116JohnsonGroup

Page 117: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_JobGrid1 Job Grid 1 Custom Table

Custom table for user to add additional job grid information.

Indexes on Description

JobN, SeqN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

SeqN int

Form varchar (12)

Pass varchar (12)

RunDate datetime

OperatorNo varchar (6)

Machine varchar (6)

Cnt varchar (20) Count

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

SeqN ([SeqN] >= 0 and [SeqN] <= 999999)

Page 117JohnsonGroup

Page 118: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_JobGrid2 Job Grid 2 Custom Table

Custom table for user to add additional job grid information.

Indexes on Description

JobN, SeqN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

SeqN int

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

SeqN ([SeqN] >= 0 and [SeqN] <= 999999)

Page 118JohnsonGroup

Page 119: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_MailChklst Custom Mail Chklst

Custom table that extends CT_EJTmailing

Indexes on Description

JobN, LineN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: CT_EJTmailing table

LineN int

Cntry varchar (25)

MailDrop varchar (2)

DropDate datetime

Qty int

Class tinyint

PermitN varchar (25)

NCOA tinyint

ChgPostCost decimal (8,2)

NonChgPostCost decimal (8,2)

InvDate datetime

Finishing tinyint

InkJet tinyint

ENV tinyint

DomFor tinyint

RLMOrderDetail varchar (50)

ConstraintColumn

Field Constraints

ChgPostCost ([ChgPostCost] >= 0.0 and [ChgPostCost] <= 999999)

Class ([Class] >= 0.0 and [Class] <= 255)

DomFor ([DomFor] >= 0.0 and [DomFor] <= 255)

ENV ([ENV] >= 0.0 and [ENV] <= 255)

Finishing ([Finishing] >= 0.0 and [Finishing] <= 255)

InkJet ([InkJet] >= 0.0 and [InkJet] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

NCOA ([NCOA] >= 0.0 and [NCOA] <= 255)

NonChgPostCost ([NonChgPostCost] >= 0.0 and [NonChgPostCost] <= 999999)

Qty ([Qty] >= 0.0 and [Qty] <= 999999)

Page 119JohnsonGroup

Page 120: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_MailingChecklist Custom Mailing Checklist

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

MailDate datetime

PcsUSmail int

PostageUSmail decimal (8,2)

PcsForeignMail int

PcsInkjetted int

PcsTabbed1 int

PcsTabbed2 int

PcsStuffed int

PcsStampMeter int

BalSent int

DateSent datetime

SentTo varchar (125)

PstgChkFurnUpFront tinyint

PermitNUsed varchar (50)

Co1 varchar (25)

Co2 varchar (25)

Co3 varchar (25)

Co4 varchar (25)

Co5 varchar (25)

Co6 varchar (25)

Co7 varchar (25)

Co8 varchar (25)

Qty1 int

Qty2 int

Qty3 int

Qty4 int

Qty5 int

Qty6 int

Page 120JohnsonGroup

Page 121: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_MailingChecklist Custom Mailing Checklist

Qty7 int

Qty8 int

Unit1Cost decimal (8,2)

Unit2Cost decimal (8,2)

Unit3Cost decimal (8,2)

Unit4Cost decimal (8,2)

Unit5Cost decimal (8,2)

Unit6Cost decimal (8,2)

Unit7Cost decimal (8,2)

Unit8Cost decimal (8,2)

Total1 decimal (8,2)

Total2 decimal (8,2)

Total3 decimal (8,2)

Total4 decimal (8,2)

Total5 decimal (8,2)

Total6 decimal (8,2)

Total7 decimal (8,2)

Total8 decimal (8,2)

GrndTotFrgnPost decimal (8,2)

PstgChkAmt decimal (8,2)

NCOA tinyint

PstgInv2Cust tinyint

EnvSize varchar (50)

ChgForEnv tinyint

InfoVerifiedBy varchar (50)

VerifyDate datetime

VerifyJobN varchar (12)

PostChkDateRecd datetime

PostChkN varchar (25)

Notes varchar (4,000)

Page 121JohnsonGroup

Page 122: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_MailingChecklist Custom Mailing Checklist

ConstraintColumn

Field Constraints

BalSent ([BalSent] >= 0.0 and [BalSent] <= 999999)

ChgForEnv ([ChgForEnv] >= 0.0 and [ChgForEnv] <= 255)

GrndTotFrgnPost ([GrndTotFrgnPost] >= 0.0 and [GrndTotFrgnPost] <= 999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

NCOA ([NCOA] >= 0.0 and [NCOA] <= 255)

PcsForeignMail ([PcsForeignMail] >= 0.0 and [PcsForeignMail] <= 999999)

PcsInkjetted ([PcsInkjetted] >= 0.0 and [PcsInkjetted] <= 999999)

PcsStampMeter ([PcsStampMeter] >= 0.0 and [PcsStampMeter] <= 999999)

PcsStuffed ([PcsStuffed] >= 0.0 and [PcsStuffed] <= 999999)

PcsTabbed1 ([PcsTabbed1] >= 0.0 and [PcsTabbed1] <= 999999)

PcsTabbed2 ([PcsTabbed2] >= 0.0 and [PcsTabbed2] <= 999999)

PcsUSmail ([PcsUSmail] >= 0.0 and [PcsUSmail] <= 999999)

PostageUSmail ([PostageUSmail] >= 0.0 and [PostageUSmail] <= 999999)

PstgChkAmt ([PstgChkAmt] >= 0.0 and [PstgChkAmt] <= 999999)

PstgChkFurnUpFront ([PstgChkFurnUpFront] >= 0.0 and [PstgChkFurnUpFront] <= 255)

PstgInv2Cust ([PstgInv2Cust] >= 0.0 and [PstgInv2Cust] <= 255)

Qty1 ([Qty1] >= 0.0 and [Qty1] <= 999999)

Qty2 ([Qty2] >= 0.0 and [Qty2] <= 999999)

Qty3 ([Qty3] >= 0.0 and [Qty3] <= 999999)

Qty4 ([Qty4] >= 0.0 and [Qty4] <= 999999)

Qty5 ([Qty5] >= 0.0 and [Qty5] <= 999999)

Qty6 ([Qty6] >= 0.0 and [Qty6] <= 999999)

Qty7 ([Qty7] >= 0.0 and [Qty7] <= 999999)

Qty8 ([Qty8] >= 0.0 and [Qty8] <= 999999)

Total1 ([Total1] >= 0.0 and [Total1] <= 999999)

Total2 ([Total2] >= 0.0 and [Total2] <= 999999)

Total3 ([Total3] >= 0.0 and [Total3] <= 999999)

Total4 ([Total4] >= 0.0 and [Total4] <= 999999)

Total5 ([Total5] >= 0.0 and [Total5] <= 999999)

Total6 ([Total6] >= 0.0 and [Total6] <= 999999)

Total7 ([Total7] >= 0.0 and [Total7] <= 999999)

Total8 ([Total8] >= 0.0 and [Total8] <= 999999)

Unit1Cost ([Unit1Cost] >= 0.0 and [Unit1Cost] <= 999999)

Unit2Cost ([Unit2Cost] >= 0.0 and [Unit2Cost] <= 999999)

Unit3Cost ([Unit3Cost] >= 0.0 and [Unit3Cost] <= 999999)

Unit4Cost ([Unit4Cost] >= 0.0 and [Unit4Cost] <= 999999)

Unit5Cost ([Unit5Cost] >= 0.0 and [Unit5Cost] <= 999999)

Unit6Cost ([Unit6Cost] >= 0.0 and [Unit6Cost] <= 999999)

Unit7Cost ([Unit7Cost] >= 0.0 and [Unit7Cost] <= 999999)

Unit8Cost ([Unit8Cost] >= 0.0 and [Unit8Cost] <= 999999)

Page 122JohnsonGroup

Page 123: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_MileStones Custom Mile Stones

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

InPrep tinyint

AlterationsRequested tinyint

Assembly tinyint

OutOnPDF tinyint

ProofingStage tinyint

ProofsReady tinyint

OkToPlate tinyint

Plating tinyint

SpecialInk tinyint

Plates tinyint

Stock tinyint

PrintedRFB tinyint

DieFileSent tinyint

EmbossFileSent tinyint

UVFileSent tinyint

Page 123JohnsonGroup

Page 124: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_MileStones Custom Mile Stones

ConstraintColumn

Field Constraints

AlterationsRequested ([AlterationsRequested] >= 0.0 and [AlterationsRequested] <= 1)

Assembly ([Assembly] >= 0.0 and [Assembly] <= 1)

DieFileSent ([DieFileSent] >= 0.0 and [DieFileSent] <= 1)

EmbossFileSent ([EmbossFileSent] >= 0.0 and [EmbossFileSent] <= 1)

InPrep ([InPrep] >= 0.0 and [InPrep] <= 1)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

OkToPlate ([OkToPlate] >= 0.0 and [OkToPlate] <= 1)

OutOnPDF ([OutOnPDF] >= 0.0 and [OutOnPDF] <= 1)

Plates ([Plates] >= 0.0 and [Plates] <= 1)

Plating ([Plating] >= 0.0 and [Plating] <= 1)

PrintedRFB ([PrintedRFB] >= 0.0 and [PrintedRFB] <= 1)

ProofingStage ([ProofingStage] >= 0.0 and [ProofingStage] <= 1)

ProofsReady ([ProofsReady] >= 0.0 and [ProofsReady] <= 1)

SpecialInk ([SpecialInk] >= 0.0 and [SpecialInk] <= 1)

Stock ([Stock] >= 0.0 and [Stock] <= 1)

UVFileSent ([UVFileSent] >= 0.0 and [UVFileSent] <= 1)

Page 124JohnsonGroup

Page 125: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_PriceAdmin Custom Price Admin

Custom root table

Indexes on Description

PriceAdminN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

CT_PriceEst priceAdmin

TypeColumn

PriceAdminN int A unique number that identifies a record in this table.

PriceAdminName varchar (200)

ConstraintColumn

Field Constraints

PriceAdminN ([PriceAdminN] >= 0 and [PriceAdminN] <= 999999999)

Page 125JohnsonGroup

Page 126: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_PriceEst Custom Price Est

Holds all estimates to mark when they are priced.

Indexes on Description

PriceEstN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

CT_PriceEstConfig priceEstN

TypeColumn

PriceEstN int A unique number that identifies a record in this table.

isPriced int

pCafeID varchar (25)

pricedBy int

Relates to: CT_PriceUsers table

pricedDate datetime

comments varchar (1,000)

priceAdmin int

Relates to: CT_PriceAdmin table

qDesc varchar (500)

qAttn varchar (500)

qQuoteN varchar (25)

qDate varchar (25)

qPagesL varchar (50)

qPages varchar (200)

qFinishedSize varchar (200)

qFlatSizeL varchar (50)

qFlatSize varchar (200)

qPaperL varchar (50)

qPaper varchar (500)

qPrepL varchar (50)

qPrep varchar (500)

qPrintL varchar (50)

qPrint varchar (500)

qSpecialL varchar (50)

qSpecial varchar (500)

qFinishingL varchar (50)

qFinishing varchar (500)

qCustom1L varchar (50)

qCustom1 varchar (500)

Page 126JohnsonGroup

Page 127: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_PriceEst Custom Price Est

qCustom2L varchar (50)

qCustom2 varchar (500)

qSalesRep varchar (100)

qFinishedSizeL varchar (50)

doAdd int

doHideMail int

qQty1 varchar (25)

qQty2 varchar (25)

qQty3 varchar (25)

qQty4 varchar (25)

qQty5 varchar (25)

qQtyL varchar (50)

qHideFreight int

doPriceUnit int

ConstraintColumn

Field Constraints

doAdd ([doAdd] >= 0.0 and [doAdd] <= 1)

doHideMail ([doHideMail] >= 0.0 and [doHideMail] <= 1)

doPriceUnit ([doPriceUnit] >= 0.0 and [doPriceUnit] <= 1)

isPriced ([isPriced] >= 0.0 and [isPriced] <= 1)

priceAdmin ([priceAdmin] >= 0.0 and [priceAdmin] <= 999999999)

pricedBy ([pricedBy] >= 0.0 and [pricedBy] <= 999999999)

PriceEstN ([PriceEstN] >= 0 and [PriceEstN] <= 999999999)

qHideFreight ([qHideFreight] >= 0.0 and [qHideFreight] <= 1)

Page 127JohnsonGroup

Page 128: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_PriceEstConfig Custom Price Est Config

Custom root table

Indexes on Description

PriceEstConfigN Primary key, clustered

TypeColumn

PriceEstConfigN int identity A unique number that identifies a record in this table.

priceEstN int

Relates to: CT_PriceEst table

configN int

configDesc varchar (500)

hideConfig int

ConstraintColumn

Field Constraints

configN ([configN] >= 0.0 and [configN] <= 999999)

hideConfig ([hideConfig] >= 0.0 and [hideConfig] <= 1)

PriceEstConfigN ([PriceEstConfigN] >= 0 and [PriceEstConfigN] <= 999999999)

priceEstN ([priceEstN] >= 0.0 and [priceEstN] <= 999999999)

Page 128JohnsonGroup

Page 129: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_PriceUsers Custom Price Users

Users for the web pricing interface

Indexes on Description

PriceUsersN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

CT_PriceEst pricedBy

TypeColumn

PriceUsersN int A unique number that identifies a record in this table.

userName varchar (200)

password varchar (50)

userLevel int

email varchar (500)

displayName varchar (100)

ConstraintColumn

Field Constraints

PriceUsersN ([PriceUsersN] >= 0 and [PriceUsersN] <= 999999999)

userLevel ([userLevel] >= 0.0 and [userLevel] <= 10)

Page 129JohnsonGroup

Page 130: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_RLD Custom R L D

Custom table that extends OpenJob

Indexes on Description

JobN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

CT_RLDJobDetail JobN

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

hrsPrep decimal (8,2)

hrsVDP decimal (8,2)

hrsMailing decimal (8,2)

hrsNexpress decimal (8,2)

hrsDigimaster decimal (8,2)

hrsCutting decimal (8,2)

hrsFolding decimal (8,2)

hrsGloss decimal (8,2)

hrsOutsideSvc decimal (8,2)

hrsCuttingComplete tinyint

hrsDigimasterComplet tinyint

hrsFoldingComplete tinyint

hrsGlossComplete tinyint

hrsMailingComplete tinyint

hrsNexpressComplete tinyint

hrsOtherBindComplete tinyint

hrsOutSvcComplete tinyint

hrsPrepComplete tinyint

hrsVDPComplete tinyint

NumOfDataFiles int

DataFileWorkNeeded varchar (255)

NumOfTotalRecords int

MailPanelOnly tinyint

VDPFields int

SpecialFieldFormat varchar (255)

NumOfRecordsForProof int

MarkedUpHardCopy tinyint

Page 130JohnsonGroup

Page 131: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_RLD Custom R L D

FileLocation varchar (25)

FileName varchar (255)

VDPSendProofName varchar (50)

VDPSendProofAddress1 varchar (50)

VDPSendProofAddress2 varchar (50)

VDPSendProofCity varchar (25)

VDPSendProofState varchar (15)

VDPSendProofZip varchar (10)

VDPSendProofPhone varchar (12)

VDPSendProofEmail varchar (50)

PPSendProofName varchar (50)

PPSendProofAddress1 varchar (50)

PPSendProofAddress2 varchar (50)

PPSendProofCity varchar (25)

PPSendProofState varchar (15)

PPSendProofZip varchar (10)

PPSendProofPhone varchar (12)

PPSendProofEmail varchar (50)

PPProofDueDate datetime

VDPProofDueDate datetime

PPComments varchar (255)

Cut tinyint

Score tinyint

Perf tinyint

Fold tinyint

Stitch tinyint

Spiral tinyint

DoubleWire tinyint

Drill tinyint

PadBound tinyint

SheetPerPad int

Inserting tinyint

HandWork tinyint

HandWorkDescription varchar (255)

ShrinkWrap tinyint

Page 131JohnsonGroup

Page 132: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_RLD Custom R L D

QtyPerPackage int

CartonPack tinyint

BinderyComments varchar (255)

MailMethod varchar (50)

JobType varchar (50)

VDPSendProofMethod varchar (50)

MailListFurnished tinyint

MergeMailLists tinyint

NCOA tinyint

DeDupe tinyint

IntelligentBarCode tinyint

Tab tinyint

GlueDot tinyint

ShipMethod varchar (50)

ShipOversToName varchar (50)

ShipOversToAddress1 varchar (50)

ShipOversToAddress2 varchar (50)

ShipOversToCity varchar (25)

ShipOversToState varchar (15)

ShipOversToZip varchar (10)

ShipSamplesToName varchar (50)

ShipSamplesToAddr1 varchar (50)

ShipSamplesToAddr2 varchar (50)

ShipSamplesToCity varchar (25)

ShipSamplesToState varchar (15)

ShipSamplesToZip varchar (10)

ShipToName varchar (50)

ShipToAddress1 varchar (50)

ShipToAddress2 varchar (50)

ShipToCity varchar (25)

ShipToState varchar (15)

ShipToZip varchar (10)

hrsOtherBindery decimal (8,2)

Part1PressRun int

Part2PressRun int

Page 132JohnsonGroup

Page 133: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_RLD Custom R L D

Part3PressRun int

PreviousJobN int

VDPDataFileType varchar (35)

VDPLayoutFileType varchar (35)

PPFileType varchar (50)

VDPYesNo tinyint

BinderyYesNo tinyint

MailingYesNo tinyint

PPTypeOfProof varchar (50)

PPSendProofMethod varchar (25)

ShipVendorToName varchar (50)

ShipVendorToAddr1 varchar (50)

ShipVendorToAddr2 varchar (50)

ShipVendorToCity varchar (25)

ShipVendorToState varchar (15)

ShipVendorToZip varchar (10)

pdfProof tinyint

firstOffProof tinyint

PPFirstOffProofDue datetime

ShipVendorDue datetime

bindSide varchar (25)

ShipOversQTY varchar (25)

ShipOversMethod varchar (25)

ShipVendorQTY varchar (25)

ShipVendorMethod varchar (25)

ShipSamplesQTY varchar (25)

ShipSamplesMethod varchar (25)

Clicks int

Sheets int

CustomerConcerns varchar (3,000)

Page 133JohnsonGroup

Page 134: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_RLD Custom R L D

ConstraintColumn

Field Constraints

BinderyYesNo ([BinderyYesNo] >= 0.0 and [BinderyYesNo] <= 255)

CartonPack ([CartonPack] >= 0.0 and [CartonPack] <= 255)

Clicks ([Clicks] >= 0.0 and [Clicks] <= 999999)

Cut ([Cut] >= 0.0 and [Cut] <= 255)

DeDupe ([DeDupe] >= 0.0 and [DeDupe] <= 255)

DoubleWire ([DoubleWire] >= 0.0 and [DoubleWire] <= 255)

Drill ([Drill] >= 0.0 and [Drill] <= 255)

firstOffProof ([firstOffProof] >= 0.0 and [firstOffProof] <= 255)

Fold ([Fold] >= 0.0 and [Fold] <= 255)

GlueDot ([GlueDot] >= 0.0 and [GlueDot] <= 255)

HandWork ([HandWork] >= 0.0 and [HandWork] <= 255)

hrsCutting ([hrsCutting] >= 0.0 and [hrsCutting] <= 999999)

hrsCuttingComplete ([hrsCuttingComplete] >= 0.0 and [hrsCuttingComplete] <= 255)

hrsDigimaster ([hrsDigimaster] >= 0.0 and [hrsDigimaster] <= 999999)

hrsDigimasterComplet ([hrsDigimasterComplet] >= 0.0 and [hrsDigimasterComplet] <= 255)

hrsFolding ([hrsFolding] >= 0.0 and [hrsFolding] <= 999999)

hrsFoldingComplete ([hrsFoldingComplete] >= 0.0 and [hrsFoldingComplete] <= 255)

hrsGloss ([hrsGloss] >= 0.0 and [hrsGloss] <= 999999)

hrsGlossComplete ([hrsGlossComplete] >= 0.0 and [hrsGlossComplete] <= 255)

hrsMailing ([hrsMailing] >= 0.0 and [hrsMailing] <= 999999)

hrsMailingComplete ([hrsMailingComplete] >= 0.0 and [hrsMailingComplete] <= 255)

hrsNexpress ([hrsNexpress] >= 0.0 and [hrsNexpress] <= 999999)

hrsNexpressComplete ([hrsNexpressComplete] >= 0.0 and [hrsNexpressComplete] <= 255)

hrsOtherBindComplete ([hrsOtherBindComplete] >= 0.0 and [hrsOtherBindComplete] <= 255)

hrsOtherBindery ([hrsOtherBindery] >= 0.0 and [hrsOtherBindery] <= 999999)

hrsOutsideSvc ([hrsOutsideSvc] >= 0.0 and [hrsOutsideSvc] <= 999999)

hrsOutSvcComplete ([hrsOutSvcComplete] >= 0.0 and [hrsOutSvcComplete] <= 255)

hrsPrep ([hrsPrep] >= 0.0 and [hrsPrep] <= 999999)

hrsPrepComplete ([hrsPrepComplete] >= 0.0 and [hrsPrepComplete] <= 255)

hrsVDP ([hrsVDP] >= 0.0 and [hrsVDP] <= 999999)

hrsVDPComplete ([hrsVDPComplete] >= 0.0 and [hrsVDPComplete] <= 255)

Inserting ([Inserting] >= 0.0 and [Inserting] <= 255)

IntelligentBarCode ([IntelligentBarCode] >= 0.0 and [IntelligentBarCode] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MailingYesNo ([MailingYesNo] >= 0.0 and [MailingYesNo] <= 255)

MailListFurnished ([MailListFurnished] >= 0.0 and [MailListFurnished] <= 255)

MailPanelOnly ([MailPanelOnly] >= 0.0 and [MailPanelOnly] <= 255)

MarkedUpHardCopy ([MarkedUpHardCopy] >= 0.0 and [MarkedUpHardCopy] <= 255)

MergeMailLists ([MergeMailLists] >= 0.0 and [MergeMailLists] <= 255)

NCOA ([NCOA] >= 0.0 and [NCOA] <= 255)

NumOfDataFiles ([NumOfDataFiles] >= 0.0 and [NumOfDataFiles] <= 999999)

NumOfRecordsForProof ([NumOfRecordsForProof] >= 0.0 and [NumOfRecordsForProof] <= 999999)

NumOfTotalRecords ([NumOfTotalRecords] >= 0.0 and [NumOfTotalRecords] <= 999999)

PadBound ([PadBound] >= 0.0 and [PadBound] <= 255)

Part1PressRun ([Part1PressRun] >= 0.0 and [Part1PressRun] <= 999999)

Part2PressRun ([Part2PressRun] >= 0.0 and [Part2PressRun] <= 999999)

Part3PressRun ([Part3PressRun] >= 0.0 and [Part3PressRun] <= 999999)

pdfProof ([pdfProof] >= 0.0 and [pdfProof] <= 255)

Perf ([Perf] >= 0.0 and [Perf] <= 255)

PreviousJobN ([PreviousJobN] >= 0.0 and [PreviousJobN] <= 999999)

QtyPerPackage ([QtyPerPackage] >= 0.0 and [QtyPerPackage] <= 999999)

Score ([Score] >= 0.0 and [Score] <= 255)

Page 134JohnsonGroup

Page 135: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CT_RLD Custom R L D

SheetPerPad ([SheetPerPad] >= 0.0 and [SheetPerPad] <= 999999)

Sheets ([Sheets] >= 0.0 and [Sheets] <= 999999)

ShrinkWrap ([ShrinkWrap] >= 0.0 and [ShrinkWrap] <= 255)

Spiral ([Spiral] >= 0.0 and [Spiral] <= 255)

Stitch ([Stitch] >= 0.0 and [Stitch] <= 255)

Tab ([Tab] >= 0.0 and [Tab] <= 255)

VDPFields ([VDPFields] >= 0.0 and [VDPFields] <= 999999)

VDPYesNo ([VDPYesNo] >= 0.0 and [VDPYesNo] <= 255)

Page 135JohnsonGroup

Page 136: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_RLDJobDetail Custom R L D Job Detail

Custom table that extends CT_RLD

Indexes on Description

JobN, LineN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: CT_RLD table

LineN int

Qty int

PageCount int

Bleed tinyint

FlatSize varchar (25)

FinishedSize varchar (25)

Coat tinyint

HighGlossFinish tinyint

Colors varchar (50)

Stock varchar (50)

StockOther varchar (50)

Comments varchar (255)

numPages int

FinishedCoat tinyint

ConstraintColumn

Field Constraints

Bleed ([Bleed] >= 0.0 and [Bleed] <= 255)

Coat ([Coat] >= 0.0 and [Coat] <= 255)

FinishedCoat ([FinishedCoat] >= 0.0 and [FinishedCoat] <= 255)

HighGlossFinish ([HighGlossFinish] >= 0.0 and [HighGlossFinish] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

numPages ([numPages] >= 0.0 and [numPages] <= 999999)

PageCount ([PageCount] >= 0.0 and [PageCount] <= 999999)

Qty ([Qty] >= 0.0 and [Qty] <= 999999)

Page 136JohnsonGroup

Page 137: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_RLM_Job RLM_Job

Table that holds a list of Monthly Jobs for customers.

Indexes on Description

RLM_JobN Primary key, clustered

TypeColumn

RLM_JobN int A unique number that identifies a record in this table.

JobN int

Relates to: OpenJob table

JobMonth datetime Month that the job is for.

CustomerN int

Relates to: Customer table

creationDate datetime

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 0.0 and [CustomerN] <= 999999999)

JobN ([JobN] >= 0.0 and [JobN] <= 999999999)

RLM_JobN ([RLM_JobN] >= 0 and [RLM_JobN] <= 999999999)

Page 137JohnsonGroup

Page 138: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_SoftwareTracker Custom Software Tracker

Custom table that extends OpenJob

Indexes on Description

FileID Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

Relates to: OpenJob table

FileType varchar (50)

Version varchar (10)

Platform varchar (20)

FileID int identity

date datetime

Location varchar (50)

ConstraintColumn

Field Constraints

FileID ([FileID] >= 0.0 and [FileID] <= 999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 138JohnsonGroup

Page 139: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_stock Custom stock

Custom root table

Indexes on Description

stockN Primary key, clustered

TypeColumn

stockN int A unique number that identifies a record in this table.

stock_desc varchar (100)

ConstraintColumn

Field Constraints

stockN ([stockN] >= 0 and [stockN] <= 999999999)

Page 139JohnsonGroup

Page 140: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CT_YearWeeks Custom Year Weeks

Custom root table

Indexes on Description

YearWeeksN Primary key, clustered

TypeColumn

YearWeeksN int A unique number that identifies a record in this table.

qNum int

ConstraintColumn

Field Constraints

qNum ([qNum] >= 0.0 and [qNum] <= 999999)

YearWeeksN ([YearWeeksN] >= 0 and [YearWeeksN] <= 999999999)

Page 140JohnsonGroup

Page 141: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CurrencyExchg Currency Exchange

Currently in use only for printing of a custom invoice. The database is

never written based on this table. The multiplier is only applied when a

custom invoice is printed.

Indexes on Description

ExchangeKey Primary key, clustered

TypeColumn

ExchangeKey int Unique key to identify each record

ExchangeDes varchar (40) Text to describe each record

Multiplier decimal (11,4) Multiplier to be applied to the original value stored in the database. The

database is never updated based on this table. The multiplier is only applied

when a custom invoice is printed.

SymbolID int May be used to identify a currency symboll for printing of custom invoice.

Relates to: Symbol_ID table

StartDate datetime First use of this conversion rate. In use a particular conversion should get a new

record in this table each time the exchange rate changes. This will make it

possible to reprint an invoice using the exchange rate that was in effect at the

time.

EndDate datetime Last date this conversion rate was used. In use a particular conversion should

get a new record in this table each time the exchange rate changes. This will

make it possible to reprint an invoice using the exchange rate that was in effect at

the time.

ConstraintColumn

Field Constraints

ExchangeKey ([ExchangeKey] >= 0 and [ExchangeKey] <= 999999)

Multiplier ([Multiplier] >= 0 and [Multiplier] <= 999999)

SymbolID ([SymbolID] >= 0 and [SymbolID] <= 99)

Page 141JohnsonGroup

Page 142: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustCodes Custom Codes List

The Custom Codes List table stores codes for custom tables. Custom

Codes can be added in both the Schema Designer and Table Maintenance

applications. See the Appl1CodesFile for more details

Indexes on Description

CodeKey Primary key, clustered

TypeColumn

CodeKey int For CodeKey values <= 999, the CodeKey is the Code base that links the code to

a field in the codes index tables.

For CodeKey values > 999 the CodeKey is in the format iiinnn, where iii is the

Code Base above and nnn is the numeric value the literal is mapped to in the

database.

Description varchar (50) A literal, or choice, for the field. The default

choice should always be listed first

ConstraintColumn

Field Constraints

CodeKey ([CodeKey] >= 0 and [CodeKey] <= 999999)

Page 142JohnsonGroup

Page 143: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustCodesIndex Custom Codes Index

The Codes Index table serves as an index to codes for custom tables.

Custom tables may use codes in either the standard (Appl1CodesFile) or

custom (CustCodes) codes tables. A field in a custom table can be linked

to a code using the Schema Designer application

Indexes on Description

SQLFileName,

SQLFieldName

Primary key, clustered

TypeColumn

CodeBase int The leading digits of the keys in the Codes List table or Custom Codes List table

for the given set of literals. Each set of literals has a Code Key in the format

iiinnn, where iii is the Code Base and nnn is the sequence of the literal (literals

are displayed in sequence order), making a unique key for each literal.

SQLFileName varchar (20) Table name for related table.

SQLFieldName varchar (20) The SQL Field name related to this code.

IsCustCode smallint 0 = FALSE

1 = TRUE

The value of this field determines whether to look in the standard

(Appl1CodesFile) or custom (CustCodes) table for the code value for this field.

ConstraintColumn

Field Constraints

CodeBase ([CodeBase] >= 0 and [CodeBase] <= 9999)

Page 143JohnsonGroup

Page 144: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustInvNotes Customer Invoice Notes

Table to store notes relevent to a specific customer invoice. Allows one

record per invoice.

Indexes on Description

CustomerN, InvoiceN Primary key, clustered

TypeColumn

CustomerN int The customer for whom this invoice note was created.

Relates to: Customer table

InvoiceN int The invoice number to which this note refers.

NoteDate datetime Date this note was added or edited.

Notes varchar (500) Text entered by user.

ReminderDate datetime If you want to be reminded of the note, this is the day you want the reminder

e-mailed. If the date is on the weekend, the reminder will be sent on Friday.

ChangedBy varchar (128) User who last entered, or edited, this record

ReminderEmailAddr varchar (128) E-mail address of person to whom the note should be sent on the reminder date.

Division int Division for this Invoice

Relates to: AcctDivisions table

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

Page 144JohnsonGroup

Page 145: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Customer Customer

The Customer table contains information about each of your company's

customers, including their name, address, industry classification, and

salesperson. Records are created, maintained, and deleted through Table

Maintenance; however, you cannot delete a customer if there are sales or

invoice information listed in the accounting tables.

Indexes on Description

CustomerN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ARTransaction CustomerN

CustomerExpenseCode CustomerN

CustomerIntegration CustomerN

CustShipAddr CustomerN

Related Tables

AccountngInput CustomerN

ACRunProducts Customer

ARBatch Customer

CRCDBatch Customer

CT_Customer CustomerN

CT_CustomerInfo CustomerNumber

CT_RLM_Job CustomerN

CustInvNotes CustomerN

CustomerNotes CustomerN

DieInventory ForCustomer

Estimates CustomerN

FGInvMaster CustomerN

FGIOrderMast CustomerN

JobLog CustomerN

MatlCostCntr CustomerN

OpenJob CustomerN

PCafeCustomer CustomerN

PrintcafeProj LogicCustomerN

QQOrder CustomerN

Shipments CustomerN

WebOrderMaster CustomerN

WinInvoice CustomerN

TypeColumn

CustomerN int A unique number used to identify the individual customer, entered with Table

Maintenance program.

CustomerName varchar (24) Either the customer's name or the first line of the customer's address, entered

with Table Maintenance.

IndustryClass tinyint The Industry Classification numbers are specified by the Industry Classes

(11110) parameter. The industry classification number is used by the Product

Report to provide a breakdown of sales by industry. EFI Logic set up your

industry classification numbers to your specifications when you installed the

system.

TermsCode smallint The number of days within which payment can be

expected from the customer, to predict cash

receipts. Not used at this time.

SvcChgClass tinyint Indicates the category of service charge class (rate and number of days allowed

before the fee is applied). Rates and periods are set in the ServiceCharge table..

Page 145JohnsonGroup

Page 146: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Customer Customer

Relates to: ServiceCharge table

SalespersonN int The salesperson number for this customer. The number must be the identifier of

an entry in the Salesperson table. If more than one salesperson is assigned to the

customer, enter 0.

Relates to: Salesperson table

AddrLine1 varchar (40) Street address

AddrLine2 varchar (40) 2nd part of street address.

City varchar (30) The customer's city.

StateProv varchar (4) The customer's state or province abbreviation.

PostalCode varchar (15) The customer's Postal Code. This will be printed/displayed exactly as entered

in the table including hypens, spaces, etc.

TelephoneN varchar (25) The customer's telephone number will be printed/displayed exactly as entered in

the table including hypens, spaces, (), etc.

Attention varchar (35) Attention

CustStartDate datetime The date on which the customer ordered their first job. Used to determine how

long they have been a customer. Appears on the credit report.

CreditLimit int The maximum amount of credit you will extend to this customer. When adding

a new customer, you should always set this to 999999 or the actual credit limit.

If you leave it at zero, the customer will be overdrawn immediately. Appears on

the credit report.

CommentN1 varchar (60) Comments on the credit-worthiness of this customer. Appears in the header of

the credit report.

CommentN2 varchar (70) Further comments on the credit-worthiness of this customer. Appears in the

header of the credit report.

DfProdPlanner smallint The default product planner for jobs that are opened for this customer.

Relates to: ProdPlanner table

ShipToCode tinyint Indicates where jobs for this customer should be shipped, either the Billing

Address or one of several alternative addresses.. This is a default value copied

to each new Open Job record, where it can be accepted or changed.

0 = none

1 = Bill To

2 = Ship To

3 = See List

SalesAcctN int The number of a sales account listed in the Tax Calculation table. It determines

where sales dollars for this customer are applied and which, if any, taxes are

applied.

Relates to: GLAccounts table

DfCommission decimal (9,2) Default commission percentage for jobs that are opened for this customer. The

commission report will get the percentage from the Open Job if it exists. For

billings with no job the percent in the customer table will be used to calculate the

commission.

Page 146JohnsonGroup

Page 147: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Customer Customer

FaxTelephoneN varchar (25) Optional. The customer's fax number.

Informational only. Does not print on any

reports.

SICCode int The Standard Industry Classification Code

published by the federal gov't. Optional field

for customer use via RPT.

Relates to: SICCodes table

SalesAreaCode smallint An optional field for users who wish to define their own set of sales areas to

classify their customers. Not used in EFI Logic reports at this time.

Relates to: SalesAreaCode table

CreditRating varchar (3) Intended for the Dun & Bradstreet Rating, but can be used for any

customer-defined string. Optional; appears on Credit Report.

CreditRisk varchar (1) Intended for the D&B credit risk, but can be used for any customer-defined

string. Optional; appears on Credit Report.

PAYDEX smallint Intended for D&B PAYDEX code. Optional; appears on Credit Report.

TaxExemptCert varchar (20) Tax exempt certification #. Can be printed on

invoices to this customer.

StdMarkup decimal (9,2) Standard markup for estimates and quotes created for this customer. This value

should be entered as a percent value, ie. 4 = 4%, .5 = .5%

InactivePurge tinyint A setting that controls whether this customer will be available as a selection in

other parts of the Logic system. If it has been marked Inactive, it will not be

available. Is this customer currently inactive?

0 = No

1 = Yes

RequiresPON tinyint 0 = PO not required; 1 = PO required.

Indicates whether or not you may open a job without assigning a PO#. For use

in a future release

0 = No

1 = Yes

CustRateSched int Default QuickQuote Rate schedule for customer.

Relates to: QQRate table

LongName varchar (50) Longer customer name used by some applications

Email varchar (128) Email address

CountryCode varchar (3) Three letter country code.

Relates to: Country table

RequireStatmnt tinyint A setting that controls whether the customer requires a statement:

0 = No

1 = Yes

CreditStatus tinyint Credit status of customer.

0 = Normal

Page 147JohnsonGroup

Page 148: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Customer Customer

1 = Credit Hold

2 = C.O.D.

3 = To Collections

ParentCompany int Foreign key to ParentCompany table.

Currently not used by EFI Logic software.

Relates to: ParentCompany table

SalesTaxCode int Foreign key to TaxCode table. Contains the default tax code for the customer.

Relates to: TaxCode table

AddrLine3 varchar (40) Third line of street address.

PhoneExt varchar (6) Telephone extension.

DefaultSymbolID int Related to Symbol_ID table. Contains the customer default ID to be used when

printing an Invoice (report) using the currency exchange multiplier currently in

effect for this ID.

Relates to: Symbol_ID table

DefOverallMarkup varchar (15) Overall markup to use as a default markup for this customer in Estimating 3. If

entered, this default markup table will replace the system default specified in the

Estimating 3 standards.

Relates to: Markups table

AltRateSchedule int Default Alterations Rate schedule for customer.

Relates to: QQRate table

DfFOBCode tinyint Assigns default FOB code to customer to be used in shipping.

1 = Our Plant

2 = Customer

DefShipAddr int Indicates default shipping address for this customer. The value is an integer >=

0.

value = 0 = the Billing Address on the customer record

value > 0 = the AddressNumber of one of the alternative addresses

Page 148JohnsonGroup

Page 149: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Customer Customer

ConstraintColumn

Field Constraints

AltRateSchedule ([AltRateSchedule] >= 0 and [AltRateSchedule] <= 9999999)

CreditLimit ([CreditLimit] >= 0 and [CreditLimit] <= 999999999)

CreditStatus ([creditstatus] >= 0 and [creditstatus] <= 3)

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

CustRateSched ([CustRateSched] >= 0 and [CustRateSched] <= 999999)

DefaultSymbolID ([defaultSymbolID] >= 0 and [defaultSymbolID] <= 99)

DefShipAddr ([DefShipAddr] >= 0 and [DefShipAddr] <= 9999999)

DfCommission ([DfCommission] >= 0 and [DfCommission] <= 100)

DfFOBCode ([DfFOBCode] >= 0 and [DfFOBCode] <= 2)

DfProdPlanner ([DfProdPlanner] >= 0 and [DfProdPlanner] <= 9999)

InactivePurge ([InactivePurge] >= 0 and [InactivePurge] <= 1)

IndustryClass ([IndustryClass] >= 0 and [IndustryClass] <= 5)

ParentCompany ([ParentCompany] >= 0 and [ParentCompany] <= 9999999)

PAYDEX ([PAYDEX] >= 0 and [PAYDEX] <= 99)

RequiresPON ([RequiresPON] >= 0 and [RequiresPON] <= 1)

RequireStatmnt ([RequireStatmnt] >= 0 and [RequireStatmnt] <= 1)

SalesAcctN ([SalesAcctN] >= 0 and [SalesAcctN] <= 999999999)

SalesAreaCode ([SalesAreaCode] >= 0 and [SalesAreaCode] <= 99)

SalespersonN ([SalespersonN] >= 0 and [SalespersonN] <= 9999999)

SalesTaxCode ([salestaxcode] >= 0 and [salestaxcode] <= 9999999)

ShipToCode ([ShipToCode] >= 0 and [ShipToCode] <= 3)

SICCode ([SICCode]>=(0) AND [SICCode]<=(999999))

StdMarkup ([StdMarkup] >= (-100) and [StdMarkup] <= 1000)

SvcChgClass ([SvcChgClass] >= 0 and [SvcChgClass] <= 9)

TermsCode ([TermsCode] >= 0 and [TermsCode] <= 365)

Page 149JohnsonGroup

Page 150: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustomerExpenseCode Customer Expense Code

Stores expense codes, known as cost centers in PrinterSite Fulfillment

Indexes on Description

CustomerN, KeyN Primary key, clustered

TypeColumn

CustomerN int FK to Customer table

Relates to: Customer table

KeyN int Unique key field for internal usage.

CustExpenseCodeID varchar (24) Composite PK for table with CustomerN field.

ExpenseCodeName varchar (255) Name of expense code (cost center in PrinterSite Fulfillment)

Inactive tinyint Determines whether the expense code is inactive . Only active cost centers are

available to integrated apps.

Values:

0 = No

1 = Yes

0 = No

1 = Yes

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

KeyN ([KeyN] >= 1 and [KeyN] <= 999999999)

Page 150JohnsonGroup

Page 151: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustomerIntegration Customer Integration

This table allows customers to be associated with applications that are

integrated and registered with Logic SQL, for example, PrinterSite

Exchange and Printer Site Fulfillment. When a customer is associated

with an integrated application, information about the customer will be

included in any mass updates and/or individual, real-time updates that are

sent to the integrated application.

Indexes on Description

CustomerN, PCafeBrandKey Primary key, clustered

TypeColumn

CustomerN int The unique ID of a customer as defined in the Customer table.

Relates to: Customer table

PCafeBrandKey int The unique id of an integrated application (such as PrinterSite Exchange) as

defined in the PCafeBrand table.

Relates to: PCafeBrand table

ConstraintColumn

Field Constraints

Page 151JohnsonGroup

Page 152: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustomerNotes Customer Notes

Allow entry of notes for each customer by date. Primarily used for

collections.

Indexes on Description

CustomerN, SeqNbr Primary key, clustered

TypeColumn

CustomerN int The customer for whom this note was created.

Relates to: Customer table

NoteDate datetime Most recent date this entry was made or edited.

Notes varchar (1,000) Information about this customer as entered by the user.

ChangedBy varchar (128) User ID of last user to add or edit this record.

SeqNbr int Internal field used by EFI Logic software.

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

Page 152JohnsonGroup

Page 153: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustParms Customer Parameter

The Customer Parameter table contains values of all the parameters that

customers maintain using System Maintenance. The descriptions of the

parameters and their uses are in the Master Parameter (MasterParams)

table.

Indexes on Description

ParameterN Primary key, clustered

TypeColumn

ParameterN int Parameter number

ParameterValue varchar (500) The current value of this parameter.

DateChanged datetime Date parameter was last changed.

WhoChangedIt varchar (128) User name of the user who last changed the value of the parameter.

ConstraintColumn

Field Constraints

ParameterN ([ParameterN] >= 0 and [ParameterN] <= 999999)

Page 153JohnsonGroup

Page 154: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: CustShipAddr Customer Ship Address

This table is used to store shipping addresses and contacts for your

customers. They can be specified in the Table Maintenance application.

A customer can have several shipping addresses/contacts, each identified

by the Address number.

Indexes on Description

CustomerN, AddressNumber Primary key, clustered

GlobalID Nonclustered

Related Tables with Foreign Keys Column

Related Tables

Estimates PrintBuyer

FGIOrderMast PrintBuyer

OpenJob PrintBuyer

QQOrder PrintBuyer

Shipments CustomerAddressN

TypeColumn

CustomerN int A unique number used to identify the individual customer.

Relates to: Customer table

AddressNumber int A numeric key assigned by the user to reference this shipping address/contact for

this customer.

AddressDescr varchar (30) A description to go along with the key so that users can search for a particular

address/contact.

Addressee varchar (50) Line 1 of address (should be the company name).

AddrLine1 varchar (40) First line of street address

AddrLine2 varchar (40) Second line of street address

City varchar (30) City in shipping/contact address.

StateProv varchar (4) State abbreviation for this address.

PostalCode varchar (15) The Zip code for the contact/shipping address; do not enter a hyphen in zip+4.

Attention varchar (35) The name of the contact person. For print buyers, this is the name that will be

displayed in other applications. For accounting contacts, this is the name that

will be listed when you do a customer inquiry in Accounting.

SalesAcct int For alternate shipping addresses, if the link to accounting is turned on and if

distribution is turned on, this is the General Ledger sales account number to be

used in distributing sales for items shipped to this address. Used by Finished

Good Inventory.

Relates to: GLAccounts table

TelephoneN varchar (25) The voice telephone number for this contact/address. Provides an on-line

reference for person(s) responsible for coordinating deliveries to the ship-to site.

FaxPhoneN varchar (25) The fax telephone number (if any) for this contact or ship-to address. Provides

an on-line reference for person(s) at your plant communicating with personnel at

shipping destinations.

DeliveryNotes varchar (40) A text field to make notes about delivery to this ship-to site. For example, notes

about hours an institution is open for business or unusual delivery locations in a

building can be recorded here.

Page 154JohnsonGroup

Page 155: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CustShipAddr Customer Ship Address

PreferredMethd int For alternate shipping addresses, identifies the preferred method of delivery to

this shipping destination.

Relates to: ShipMethods table

TaxCode int The default sales tax code for this address. If you specify a tax code, and the

alternate address is used in a planned shipment, the tax associated with the

address will carry through to the invoice.

Relates to: TaxCode table

AddrLine3 varchar (40) Third line of street address.

CountryCode varchar (3) The three letter code of the country.

Relates to: Country table

PhoneExt varchar (6) Telephone extension.

Email varchar (128) E-mail address.

GlobalID int identity Unique address identifier.

ContactName varchar (60) Another name or description that you want to provide for the contact, for

example, Periodicals Contact.

InactivePurge bit A setting that controls whether this address or contact will be available as a

selection in other parts of the Logic system. If it has been marked Inactive, it

will not be available. Is this contact/address currently inactive?

0 = No

1 = Yes

IsPrintBuyerContact bit Indicates whether the contact described by this entry is a Print Buyer.

0 = No

1 = Yes

DefPrintBuyerContact bit Indicates whether this contact is the default print buyer for the customer. The

default print buyer is automatically selected in other parts of the Logic system

when you select this customer, but you can always select a different print buyer

instead.

0 = No

1 = Yes

IsAcctContact bit Indicates whether the contact described by this entry is an Accounting Contact.

Accounting contacts can be viewed in the Customer Inquiry portion of the

Accounting application.

0 = No

1 = Yes

DefAcctContact bit Indicates whether this contact is the default accounting contact for this

customer.The default accounting contact is identified with an asterisk when you

do a customer inquiry in Accounting.

0 = No

1 = Yes

Page 155JohnsonGroup

Page 156: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: CustShipAddr Customer Ship Address

IsShipAddr bit Indicates whether the record is an additional shipping address for the customer.

You can specify a default shipping address in the customer record. A default

shipping address applies only if you are using PrinterSite Exchange or

PrinterSite Fulfillment.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

AddressNumber ([AddressNumber]>(0) AND [AddressNumber]<=(9999999))

CustomerN ([CustomerN] >= 1 and [CustomerN] <= 999999999)

PreferredMethd ([PreferredMethd] >= 0 and [PreferredMethd] <= 9999999)

SalesAcct ([SalesAcct] >= 0 and [SalesAcct] <= 999999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

Page 156JohnsonGroup

Page 157: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: D1099TaxTypes 1099 Tax Types

The D1099TaxTypes table contains a list of all 1099 categories in which

invoices paid to 1099 vendors can be classed. The 1099 Type field is

displayed by Accounting for each A/P transaction for a 1099 vendor. The

'1099 Default Tax Type' (11351) parameter specifies the default 1099 tax

type for 1099 vendors. The table is set up by EFI Logic and should not be

altered.

Indexes on Description

D1099TypeKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AccountngInput D1099Type

APBatch D1099Type

APTransaction D1099Type

RecurringTrans D1099Type

TypeColumn

D1099TypeKey smallint A unique number to identify each 1099 type. The keys (after subtracting 100)

correspond to the boxes on the IRS Form 1099-MISC.

D1099TypeName varchar (25) The description of the 1099 type.

ConstraintColumn

Field Constraints

D1099TypeKey ([D1099TypeKey] >= 0 and [D1099TypeKey] <= 999)

Page 157JohnsonGroup

Page 158: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCConfiguration Data Collection Configuration

This table holds Data Collection configuration information.

Indexes on Description

ServiceN, ConfigID,

IDOffset

Primary key, clustered

TypeColumn

ServiceN int The number of the service to which the option applies.

Enabled bit A flag indicating that this configuration option is enabled.

0=disabled, 1=enabled.

ConfigID varchar (20) Keyword for the configuration option.

IDOffset tinyint An integer used to make multiple options with the same ID unique.

ConfigValue varchar (100) Configuration option value.

ConstraintColumn

Field Constraints

IDOffset ([IDOffset] >= 0 and [IDOffset] <= 99)

ServiceN ([ServiceN] >= 0 and [ServiceN] <= 99)

Page 158JohnsonGroup

Page 159: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCDMIAdjust DC DMI Adjust

A table used by the DataCollection keypad client DCPoll to maintain

information about

AC100 DMI devices that must by scaled manually.

Indexes on Description

Machine Primary key, clustered

TypeColumn

Machine int The machine to which the DMI device is attached.

GrossAdj bigint The amount that is added to each reading from the DMI gross counter.

NetAdj bigint The amount that is added to each reading from the DMI net counter.

RemainAdj bigint The amount that is added to each reading from the DMI remaining counter.

OrigQty bigint The original quantity to do.

GrossScale float The scaling factor applied to each gross count from the DMI device.

NetScale float The scaling factor applied to each net count from the DMI device.

RemainScale float The scaling factor applied to each remaining count from the DMI device.

RateScale float The scaling factor applied to each calculated rate.

ConstraintColumn

Field Constraints

Page 159JohnsonGroup

Page 160: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCDMIConfig DC DMI Configuration

This table holds Data Collection DMI configuration information.

Most of the data in this table in used to build the initialization

string that is sent to the AC500 DMI device when a job is

started.

The fields in this table are maintained by Data Collection Manager.

Indexes on Description

DMIConfig Primary key, clustered

TypeColumn

DMIConfig tinyint The DMI Configuration number.

Description varchar (50) A decription of this DMIConfiguration.

GrossDisp varchar (10) Gross display part of DUCODE

1 = form gross

4 = shift gross

GrossUnits varchar (10) Gross units part of DUCODE

1 = impressions

2 = pieces,

3 = inches

4 = feet

RemainDisp varchar (10) Remaining display part of DUCODE

8 = remaining gross

3 = remaining net

RemainUnits varchar (10) Remaining units part of DUCODE

1 = impressions

2 = pieces

3 = inches

4 = feet

NetDisp varchar (10) Net display part of DUCODE

2 = form net

5 = shift net

NetUnits varchar (10) Net units part of DUCODE

1 = impressions

2 = pieces

3 = inches

4 = feet

RateDisp varchar (10) Rate display part of DUCODE

always 7

Page 160JohnsonGroup

Page 161: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DCDMIConfig DC DMI Configuration

RateUnits varchar (10) Rate units part of DUCODE

1 = imps/hr

2 = pieces/hr

3 = in/min

4 = ft/min

Setcgs varchar (10) When count good switch is set:

NU Never

RF RED at end of form

RFS RED at end of form and STOPS

RFSG RED at end of form and GREEN on RUN.

GateGross varchar (10) Gate gross count with sensor/switch into input #1.

Values are:

NO (default)

OPEN Count only when open

CLOSED Count only when closed

StopNet varchar (10) Stop counting net when remaining count reaches 0:

Values are : YES or NO

Z37Speed varchar (10) Either:

SLOW Minimum 600/hr

FAST Miminum 2000/hr

DelaySecs int Number of seconds to hold the signal on output 1.

DelayOut1 varchar (20) The code used by the AC500 to implement the value in the

DelaySecs field.

Ducode varchar (10) The ducode ( display/units code ) is an 8 digit number that represents what is

being displayed on the DMI device and in what units for the gross, net, rate and

remaining respectively.

It's use by PlantVista.

The format is:

GD GU ND NU RD RU RMD RMU

Where:

GD gross display: 1 = form gross, 4 = shift gross

GU gross units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

ND net display: 2 = form net, 5 = shift net

NU net units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

RD rate display: always 7

RU rate units: 1 = imps/hr, 2 = pieces/hr, 3 = in/min, 4 = ft/min

RMD remaining display: 8 = remaining gross 3 = remaining net

RMU remaining units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

Page 161JohnsonGroup

Page 162: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DCDMIConfig DC DMI Configuration

DMIInit char The alphanumeric string that is generated from the data in the

other fields in this table. The string is used to initialize the AC500 at the start of

a new job.

ConstraintColumn

Field Constraints

Page 162JohnsonGroup

Page 163: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCLog DC Log

A table used to contain messages from the DataCollection keypad client

DCPoll.

This table is similar to the 'error' files maintained on the LMS UNIX

server.

Indexes on Description

SeqNo, Service, LogTime Primary key, clustered

TypeColumn

SeqNo bigint identity A sequence number reflecting the order in which the messages are added to the

table.

LogTime datetime The date and time that the message was added.

Service int An ID that specifies which of the multiple DCPoll clients sent the message.

Text varchar (200) The text of the message.

ConstraintColumn

Field Constraints

Page 163JohnsonGroup

Page 164: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCMachConfig DC Machine Configuration

This table holds Data Collection machine configuration information.

Indexes on Description

Machine Primary key, clustered

TypeColumn

Machine int The number of the machine.

Must be a machine number from the DeptSchedule table.

Enabled bit A code indicating whether or not this machine configuration

is enabled. If the configuration is disabled, DCPoll will ignore the

machine.

Values are:

0 = disabled

1 = enabled

PromptSuffix char A suffix that can be used to customize the prompting at the

keypad for this machine.

DMIAddress smallint The address on the DMI device connected to the machine.

KeypadAddress smallint The address of the keypad at which the machine operator

will enter operation code and stop reasons.

DMItype tinyint A code that indicates the type of DMI device attached to the machine.

Values are:

5 = AC500

7 = AC100

SampleSeconds int The number of seconds between reads of the DMI counters connected to the

machine.

WriteSeconds int NOT USED.

DMIConfigs varchar (30) The DMI configurations allowed on this machine.

This is a text string containing the DMI configuration numbers

separated by commas.

Ex: 1,2,4

AutoPaper bit Indicates that Auto-Paper is enabled in this machine.

Auto-paper measures the amount of paper used based on the

value of the gross counter.

Values are:

0 = not enabled

1 = enabled

ServiceN int The service number with which this machine is associated.

Page 164JohnsonGroup

Page 165: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DCMachConfig DC Machine Configuration

DMIPrefix bit The prefix .

Possible values are: 0 to 8.

See the description of the Prefixes table for more details.

DMIJStat bit Indicates whether a status code is requested when the operator

enters an end of form operation.

Values are:

0 = don't ask for a job status code

1 = ask fro a job status code.

ConstraintColumn

Field Constraints

DMIAddress ([DMIAddress]>=(1) AND [DMIAddress]<=(299))

DMItype ([DMIType] >= 1 and [DMIType] <= 99)

KeypadAddress ([KeypadAddress]>=(1) AND [KeypadAddress]<=(299))

SampleSeconds ([SampleSeconds] >= 0 and [SampleSeconds] <= 1800)

WriteSeconds ([WriteSeconds] >= 0 and [WriteSeconds] <= 1800)

Page 165JohnsonGroup

Page 166: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCMessages DC Messages

Table of messages used by the DataCollection keypad client DCPoll.

Indexes on Description

MsgID Primary key, clustered

TypeColumn

MsgID varchar (30) A keyword used to identify the message.

Message varchar (50) The text of the message.

ConstraintColumn

Field Constraints

Page 166JohnsonGroup

Page 167: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCParameters DC Parameters

Parameters used by DataCollection clients.

Indexes on Description

ParamID, IDOffset Primary key, clustered

TypeColumn

ParamID varchar (30) A keyword used to identify the parameter.

IDOffset smallint An integer used to allow multiple instances of the same parameter.

Provided incase parameter needs to be continued on another row.

ParamValue varchar (100) A string containing the parameter.

ConstraintColumn

Field Constraints

IDOffset ([IDOffset] >= 0 and [IDOffset] <= 99)

Page 167JohnsonGroup

Page 168: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCPrompts DC Prompts

This table holds Data Collection keypad prompts.

Indexes on Description

PromptID, Suffix Primary key, clustered

TypeColumn

PromptID varchar (20) A keyword used to identify the prompt.

Suffix varchar (20) A string used to customize prompts for different pieces of equipment.

Prompt varchar (30) The text of the prompt.

Repeat bit A flag indicating that the previous value entered for this prompt can be

re-entered using the REPEAT key.

PromptDefault varchar (20) A defualt value for the prompt (optional)

Minimum varchar (20) Optional minimum value acceptable for this prompt.

Maximum varchar (20) Optional maximum value acceptable for this prompt.

ConstraintColumn

Field Constraints

Page 168JohnsonGroup

Page 169: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCReportQ DC Report Q

Contains transactions that are used to print time cards when employees log

out of the Data Collection system.

Indexes on Description

Sequence Primary key, clustered

TypeColumn

Sequence bigint identity A number that reflects the order in which transactions are added to the table.

ShiftDate datetime The shiftdate on which the employee worked. It is used to select transactions

from the JobLabor, JobMaterial, JobStatus1, and WSRollInventory tables.

Employee int The employee who timecard is to be printed.

Shift int The employee's shift.

PrinterName varchar (50) Filled in by DCReport with the name of the printed to which the repport was

sent.

PrintTime datetime Date and time that the report was processed.

Remarks varchar (200) A field that indicates whether the report was printed successfully. If so, the word

'OK' is placed in this field, Otherwise, the reason that the rpeort failed is placed

here.

InsertTime datetime The date and time that the transaction was added to the table.

EndOfType int The type of End transaction that created this entry.

0 = A Labor end of day

1 = A DMI end of shift

ConstraintColumn

Field Constraints

EndOfType ([EndOfType] >= 0 and [EndOfType] <= 9)

Page 169JohnsonGroup

Page 170: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCReportSetup DC Report Setup

Used by Data Collect report printer (DCReport) to determine

which printer to send a report to.

Indexes on Description

TypeColumn

ReportType varchar (30) The name of the report to be printed.

Current list consisits of:

Employee Timecard

SelectBy varchar (50) The criteria used to select the printer to use.

SelectRange varchar (50) The range of values of the 'SelectBy' type used to determine if the employee is

included in the type.

SendTo varchar (50) The name of the printer to send the report to.

ConstraintColumn

Field Constraints

Page 170JohnsonGroup

Page 171: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCServiceStatus DC Service Status

Used by DCManager to display the status (Running or Stopped) of various

DC services.

Indexes on Description

ServiceN Primary key, clustered

TypeColumn

ServiceN smallint The number of the DC service whose status is represented by this record.

Status varchar (30) The status (Running or Stopped) of this DC service.

TimeUpdated datetime The date and time that the status of this service was last updated.

ConstraintColumn

Field Constraints

Page 171JohnsonGroup

Page 172: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCTerminalMap DC Terminal Map

Maps the terminal numbers of networked keypads to their

network addresses.

Example: Terminal 201 mapped to IP address 10.40.4.54

Indexes on Description

ServiceN, TerminalN Primary key, clustered

TypeColumn

ServiceN int Service number.

Enabled bit A flag that indicates that this entry is enabled.

0 = disabled, 1 = enabled.

If a terminal is flagged as disabled, DCPoll will not attempt to use it.

TerminalN int The terminal number assigned to the netwrok enabled keypad.

Numbers must be from 201 to 299.

NetworkAddress char The network address assigned to the keypad.

Ex: 10.40.4.54

ConstraintColumn

Field Constraints

Page 172JohnsonGroup

Page 173: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DCXKeypads DCX Keypads

Extended Keypad translation table.

Indexes on Description

Service, KeypadAddr,

XKeyNumber

Primary key, clustered

TypeColumn

Service smallint Data Collection service number

KeypadAddr smallint Address of keypad to which the extended keypad is

attached.

XKeyNumber smallint Extended keypad key number ( 1 to 72 )

ReplaceString varchar (24) Character string that will be used when this key is pressed.

Legend varchar (60) Text that describes this key on the extended keypads legend.

QuestionType varchar (5) A code that specifies what type of input this key is for.

Ex: If code is EMP, this response is valid only for the

Employee? prompt.

ConstraintColumn

Field Constraints

Page 173JohnsonGroup

Page 174: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DeptNames Department Names

The DeptNames table lists the numbers and names of accounting

departments in your company. Department numbers can be assigned to

accounts in the GLAccounts table. The department names and numbers are

used for headings on the Departmental Income Statement. See the section

on accounting departments in the Implementation Manual. (Note: Do not

confuse these accounting departments with your job costing departments in

the LaborCostCntr table or with your scheduling, DMI, and VOC

departments in the DeptSchedule table.)

Indexes on Description

DeptNo Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AccountngInput Department

AcctBudget AcctDepartment

APOffsets Department

ApprovedItems DepartmentNumb

AROffsets Department

CRCDBatch Department

CRCDInvoices Department

FGInvMaster DepartmentN

FixedAssets DeprExpDeptN

GJTransactions Department

GLAccountData DepartmentN

GLAccounts DefaultDept

LaborCostCntr DefaultAcctgDpt

MatlCostCntr DepartmentN

POItem DepartmentN

QQProdPrices DeptNo

RecurringEntry DeptN

SupplyList DepartmentN

Vendor DefaultDeptN

WinInvDist Department

TypeColumn

DeptNo int The unique number assigned to the department.

DeptName varchar (30) The name of the department, as it should appear on reports.

ProfitCenterN int Not currently used.

Relates to: ProfitCenter table

LastChanged datetime Date on which this department was last changed.

ChangedBy varchar (128) The "Login ID" of the person who last changed this department.

InactiveRemove tinyint A setting that controls whether this department will be available as a selection in

other parts of the Logic system. If it has been marked Inactive, it will not be

available. (Accounting will not allow an inactive department to be used in a

transaction.) Is this department currently inactive?

0 = No

1 = Yes

Page 174JohnsonGroup

Page 175: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DeptNames Department Names

ConstraintColumn

Field Constraints

DeptNo ([DeptNo] >= 1 and [DeptNo] <= 9999999)

InactiveRemove ([InactiveRemove] >= 0 and [InactiveRemove] <= 1)

ProfitCenterN ([ProfitCenterN] >= 0 and [ProfitCenterN] <= 999999)

Page 175JohnsonGroup

Page 176: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DeptSchedule Department Schedule

The Department Schedule table contains the list of departments used for

recording Shop Floor transactions. If you are using Logic Scheduling or

Planning, this table is populated automatically as you set up your work

centers. If you are not using Scheduling, the table should be populated

using Table Maintenance.

The table is also used to list VOC departments (for hazardous waste

tracking) and machines tracked via DMI. Machines to be listed in the

Equipment table must have an associated department in the Department

Schedule file.

Indexes on Description

SchedulingDept Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Employee DepartmentN

Equipment MainEquipN

JobMaterial UsedInDept

MachineInfo MainEquipNum

TypeColumn

SchedulingDept smallint The Department Number is the key to the table. This number is usually directly

related to the LCC Number in Job Costing, main equipment numbers in the DMI

Equipment table and Scheduling work centers if you are using Scheduling.

DeptName varchar (20) The title of the Department. For Scheduling, DMI, and VOC.

EquipmentType smallint Used by DMI. Indicates the type of machine.

0 = not defined

5 = Perfect Binder

10 = Cutter

15 = Ink Jet Press

20 = Folder

25 = Inserter

30 = Collator

35 = Labeler

40 = Sheet Fed Press

50 = Single Web Press

60 = Multi Web Press

70 = Gather/Stitch

75 = Rewinder

80 = Xerox: DocuTech

85 = Slitter

90 = Xerox: 5090

ConstraintColumn

Field Constraints

EquipmentType ([EquipmentType] >= 0 and [EquipmentType] <= 99)

SchedulingDept ([SchedulingDept] >= 1 and [SchedulingDept] <= 999)

Page 176JohnsonGroup

Page 177: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DieInventory Die Inventory

The DieInventory table was created to assist our customers who do die

cutting. This table will enable the customer to know the whereabouts of

their dies and to keep track of many common parameters describing a die.

We will also make some of the fields available to estimating (for pricing

purposes) and to the job form file (for sequencing purposes). You may

reference a die from this table in a job form record.

Indexes on Description

DieInventoryN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Components DieInventoryN

JobComponent DieInventoryN

JobFormSpecs DieNumber

TypeColumn

DieInventoryN int This number is assigned by the user and used by the EFI Logic system.

DieName varchar (40) Descriptive name for the die that you provide.

DieType varchar (14) Another form of description available to classify dies. Some examples would be

Flexo, carton, screen.

PitchUnit tinyint Generally referred to as 1/8 Circumferential Pitch or 32 Diametrical Pitch.

Written as 1/8CP or 32DP.

0 = 1/8CP

1 = 32DP

Pitch decimal (9,5) Pitch when multiplied by the number of teeth will give you the repeat dimension.

For a 1/8CP, the pitch is .125. So if you have a gear with 48 teeth, the repeat

will be 6 inches.

DieTeeth smallint Number of teeth on the gear expressed as a number, such as 172 teeth. If it is a

1/8CP die, it will have 8 teeth to the inch on the gear.

CavityAcross decimal (9,5) The width of the die cavity.

CavityAround decimal (9,5) The length of the die cavity

SpaceAcross decimal (9,5) The space across is the horizontal dimension between 2 cavities.

SpaceAround decimal (9,5) Space around is the vertical space between two cavities.

StockWidth decimal (10,5) This is the width of the stock.

RepeatAround decimal (9,5) The number of inches before the cut repeats. Formula for a 32dp is #of teeth

times .09817, for 1/8cp #of teeth times .125.

NumberAcross smallint The number of cavities across the form.

NumberAround smallint The number of cavities around the cylinder.

RndCrnrRadius decimal (9,5) The corner radius on a rectangular die.

Shape smallint This indictes the shape of the die. Is it oval? Is it round or perhaps rectangular?

0 = Rectangle

1 = Oval

2 = Circle

Page 177JohnsonGroup

Page 178: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DieInventory Die Inventory

3 = Special

4 = Butt cutter

5 = Sheeter

6 = Other

CostOfDie decimal (9,2) What is the cost of the die?

ForCustomer int Which customer was the die made for?

Relates to: Customer table

PurchasedFrom int Which vendor did you purchase the die from?

Relates to: Vendor table

Availability tinyint Is the die inhouse ready for use? Is it out for retooling? Is it on order?

0 = Available

1 = Out for retooling

2 = On order

DieLocation varchar (20) Where the die located within the shop.

Comment1 varchar (55) This is a comment field available for any additional information about a die.

Comment2 varchar (55) This is a comment field available for any additional information about a die.

ConstraintColumn

Field Constraints

Availability ([Availability] >= 0 and [Availability] <= 9)

CavityAcross ([CavityAcross] >= 0 and [CavityAcross] <= 99)

CavityAround ([CavityAround] >= 0 and [CavityAround] <= 99)

CostOfDie ([CostOfDie] >= 0 and [CostOfDie] <= 999999)

DieInventoryN ([DieInventoryN] >= 0 and [DieInventoryN] <= 999999)

DieTeeth ([DieTeeth] >= 0 and [DieTeeth] <= 999)

ForCustomer ([ForCustomer] >= 0 and [ForCustomer] <= 999999999)

NumberAcross ([NumberAcross] >= 0 and [NumberAcross] <= 99)

NumberAround ([NumberAround] >= 0 and [NumberAround] <= 99)

Pitch ([Pitch] >= 0 and [Pitch] <= 99)

PitchUnit ([PitchUnit] >= 0 and [PitchUnit] <= 1)

PurchasedFrom ([PurchasedFrom] >= 0 and [PurchasedFrom] <= 999999999)

RepeatAround ([RepeatAround] >= 0 and [RepeatAround] <= 99)

RndCrnrRadius ([RndCrnrRadius] >= 0 and [RndCrnrRadius] <= 99)

Shape ([Shape] >= 0 and [Shape] <= 99)

SpaceAcross ([SpaceAcross] >= 0 and [SpaceAcross] <= 99)

SpaceAround ([SpaceAround] >= 0 and [SpaceAround] <= 99)

StockWidth ([StockWidth] >= 0 and [StockWidth] <= 99999)

Page 178JohnsonGroup

Page 179: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DirectPurchase Direct Purchase

The DirectPurchase table contains the records of the direct purchases

posted for each job. The records are posted to the table from the POItem

table when the purchase order is issued. The records may be edited by

Jobvista to make corrections or to assign prices to items (rather than wait

for the vendor's invoice). The close process also writes to the

DirectPurchase table, both when a vendor invoice for a PO is posted via

the approve-acct-close-post process, and when the job for the direct

purchase is closed.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job.

Relates to: OpenJob table

PurchaseOrderN int The PO number on which the direct purchase was made.

Relates to: PurchaseOrder table

POItemN smallint The item number of the direct purchase item on the original PO.

TextInfo varchar (45) The description of the direct purchase item that was originally entered on the

purchase order.

DateUpdated datetime The date on which the price for this item was passed through to job costing. If

there is no date, it indicates that it has not been passed through. Prices can be

passed through on issue, via Jobvista or via close after the vendor's invoice is

approved and posted to A/P.

QtyUpdated decimal (9,2) The quantity ordered.

DateClosed datetime The date on which the job was closed.

SubJobNumber int The sub-job for which the item is used. Sub-job tracking is optional.

JobCostPrefix tinyint Key from an entry in the prefix table. Could indicate if the item was ordered as a

normal component of a job, for an author's alteration, or because of rework.

SourceOfJC tinyint Indicates which program last updated this direct purchase item.

0 = NONE

1 = ORDER

2 = POPRICE

3 = ACCT

4 = CANCEL

5 = JOBVISTA

6 = DISTRCOMBO

7 = RECEIVE

MaterialCCN int The MCC number of the item.

Relates to: MatlCostCntr table

VendorNumber int The vendor number on the original PO.

Relates to: Vendor table

DateOrdered datetime The date of creation of the original PO.

Page 179JohnsonGroup

Page 180: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: DirectPurchase Direct Purchase

InvoiceN varchar (12) The invoice number from the vendor. Entered by close when the invoice is

posted to A/P.

DollarAmount decimal (15,2) The price passed through from either issue, jobvista or close.

TransferFlag tinyint Indicates if this item has been transferred from a different job.

0 = No

1 = Yes

ProductionJobN int If this record had been distributed from a combo job, this would be the number

of the job from which it was distributed.

Relates to: OpenJob table

LLRecNum int identity Unique key.

ConstraintColumn

Field Constraints

DollarAmount ([DollarAmount] >= (-999999) and [DollarAmount] <= 9999999)

JobCostPrefix ([JobCostPrefix] >= 0 and [JobCostPrefix] <= 2)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

MaterialCCN ([MaterialCCN] >= 0 and [MaterialCCN] <= 9999999)

POItemN ([POItemN] >= 0 and [POItemN] <= 9999)

ProductionJobN ([ProductionJobN] >= 0 and [ProductionJobN] <= 999999999)

PurchaseOrderN ([PurchaseOrderN] >= 0 and [PurchaseOrderN] <= 999999999)

QtyUpdated ([QtyUpdated] >= (-9999999) and [QtyUpdated] <= 9999999)

SourceOfJC ([SourceofJC] >= 0 and [SourceofJC] <= 7)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

TransferFlag ([TransferFlag] >= 0 and [TransferFlag] <= 1)

VendorNumber ([VendorNumber] >= 0 and [VendorNumber] <= 999999999)

Page 180JohnsonGroup

Page 181: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DMIMaterial DMI Material

Indexes on Description

MachineN, LLRecNum Primary key, clustered

TypeColumn

MachineN smallint The machine on with the material is being used.

MaterialCode int The material being used.

Relates to: MatlCostCntr table

Prefix tinyint Prefix code.

ReasonCode int Reason code that indicates the reason for rework.

Relates to: ReasonCodes table

VOCDept int Dept in which the VOC material was used. Only used if VOC tracking is

enabled.

Distibution decimal (9,2) The muliplier that specifieds how much of the final gross count is allocated to

this material

Ex: If Distribution is .40 then forty percent of the gross is allocated to this entry.

MaterialForced tinyint Not used in SQL.

ReasonForced tinyint Not used in SQL.

VOCForced tinyint Not used in SQL.

Gross int The gross count on the machine at the time the material was entered.

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

Distibution ([Distibution] >= 0 and [Distibution] <= 999)

Gross ([Gross] >= 0 and [Gross] <= 9999999)

MachineN ([MachineN] >= 0 and [MachineN] <= 999999)

MaterialCode ([MaterialCode] >= 0 and [MaterialCode] <= 9999999)

MaterialForced ([MaterialForced] >= 0 and [MaterialForced] <= 1)

Prefix ([Prefix] >= 0 and [Prefix] <= 2)

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

ReasonForced ([ReasonForced] >= 0 and [ReasonForced] <= 1)

VOCDept ([VOCDept] >= 0 and [VOCDept] <= 999999)

VOCForced ([VOCForced] >= 0 and [VOCForced] <= 1)

Page 181JohnsonGroup

Page 182: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: DSFFeature DSF Feature

System table of standard system features provided by PrinterSite Exchange

(DSF).

Indexes on Description

FeatureCatId, FeatureId Primary key, clustered

TypeColumn

FeatureCatId int Category ID (from PrinterSite Exchange) mapped to QuickQuote product.

FeatureCategoryDesc varchar (255) Category Description (from PrinterSite Exchange) becomes QuickQuote

product description.

FeatureId int Feature ID (from PrinterSite Exchange) mapped to QuickQuote option.

FeatureDesc varchar (255) Feature description (from PrinterSite Exchange) becomes QuickQuote option.

Abbrev varchar (8) Abbreviation used as Product abbreviation in QuickQuote.

PerformsFeature int Not currently used.

ConstraintColumn

Field Constraints

Page 182JohnsonGroup

Page 183: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJT EJT

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

OrdQty1 varchar (10)

OrdQty2 varchar (10)

OrdQty3 varchar (10)

OrdQty4 varchar (10)

OrdQty5 varchar (10)

OrdFinSz1 varchar (10)

OrdFinSz2 varchar (10)

OrdFinSz3 varchar (10)

OrdFinSz4 varchar (10)

OrdFinSz5 varchar (10)

OrdFltSz1 varchar (10)

OrdFltSz2 varchar (10)

OrdFltSz3 varchar (10)

OrdFltSz4 varchar (10)

OrdFltSz5 varchar (10)

OrdPgs1 varchar (10)

OrdPgs2 varchar (10)

OrdPgs3 varchar (10)

OrdPgs4 varchar (10)

OrdPgs5 varchar (10)

OrdDsc1 varchar (50)

OrdDsc2 varchar (60)

OrdDsc3 varchar (60)

OrdDsc4 varchar (60)

OrdDsc5 varchar (60)

OrdDes1 varchar (60)

NoShts1 int

NoShts2 int

NoShts3 int

NoShts4 int

Page 183JohnsonGroup

Page 184: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EJT EJT

NoShts5 int

ShtsSzW1 decimal (9,3)

ShtsSzW2 decimal (9,3)

ShtsSzW3 decimal (9,3)

ShtsSzW4 decimal (9,3)

ShtsSzW5 decimal (9,3)

ShtSzL1 decimal (9,3)

ShtsSzL2 decimal (9,3)

ShtSzL3 decimal (9,3)

ShtSzL4 decimal (9,3)

ShtSzL5 decimal (9,3)

PapKnd1 varchar (50)

PapKnd2 varchar (50)

PapKnd3 varchar (50)

PapKnd4 varchar (50)

PapKnd5 varchar (50)

MCC1 varchar (10)

MCC2 varchar (10)

MCC3 varchar (10)

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999)

NoShts1 ([NoShts1] >= 0 and [NoShts1] <= 999999)

NoShts2 ([NoShts2] >= 0 and [NoShts2] <= 999999)

NoShts3 ([NoShts3] >= 0 and [NoShts3] <= 999999)

NoShts4 ([NoShts4] >= 0 and [NoShts4] <= 999999)

NoShts5 ([NoShts5] >= 0 and [NoShts5] <= 999999)

ShtsSzL2 ([ShtsSzL2] >= 0 and [ShtsSzL2] <= 999999)

ShtsSzW1 ([ShtsSzW1] >= 0 and [ShtsSzW1] <= 999999)

ShtsSzW2 ([ShtsSzW2] >= 0 and [ShtsSzW2] <= 999999)

ShtsSzW3 ([ShtsSzW3] >= 0 and [ShtsSzW3] <= 999999)

ShtsSzW4 ([ShtsSzW4] >= 0 and [ShtsSzW4] <= 999999)

ShtsSzW5 ([ShtsSzW5] >= 0 and [ShtsSzW5] <= 999999)

ShtSzL1 ([ShtSzL1] >= 0 and [ShtSzL1] <= 999999)

ShtSzL3 ([ShtSzL3] >= 0 and [ShtSzL3] <= 999999)

ShtSzL4 ([ShtSzL4] >= 0 and [ShtSzL4] <= 999999)

ShtSzL5 ([ShtSzL5] >= 0 and [ShtSzL5] <= 999999)

Page 184JohnsonGroup

Page 185: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJTbindery EJTbindery

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

CutPrePrint varchar (3) Cut before Printing

CutPostPrint varchar (3) Cut Before Printing

Fold varchar (3) Fold

HandFold varchar (3) Hand Fold

HandGather varchar (3) Hand Gather

Multibind varchar (3) Multibind

Saddlebind varchar (3) Saddlebind

PerfectBind varchar (3) Perfect Bind

PlasticBind varchar (3) Plastic Bind

WireBind varchar (3) Wire Bind

Padding varchar (3) Pad

RoundCorner varchar (3) Round Corner

Drill varchar (3) Drill

Band varchar (3) Band

Shrink varchar (3) Shrink Wrap

Carton varchar (3) Carton

Tube varchar (3) Tubing

Skids varchar (3) Skids

Comments varchar (3,000) Comments

ShrnkPerPkg varchar (10) Shrink Per Pkg

CtnPerCtn varchar (10) Carton Per Carton

ShtsPerPad varchar (5) Shts per Pad

HoleCount varchar (5) No. of Holes

DrillSize varchar (6) Drill Size

Samp1Qty varchar (10) Samples

Samp2Qty varchar (10) Samples

Samp3Qty varchar (10) Samples

Samp4Qty varchar (10) Samples

Page 185JohnsonGroup

Page 186: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EJTbindery EJTbindery

Samp1To varchar (50) To

Samp2To varchar (50) To

Samp3To varchar (50) To

Samp4To varchar (50) To

Samp1Addr varchar (100) Address

Samp2Addr varchar (100) Address

Samp3Addr varchar (100) Address

Samp4Addr varchar (100) Address

BandType varchar (25) Band Type

FinalShipDate varchar (10) Final Ship Date

WireChoice varchar (12) Wire Choice

InkJet varchar (3)

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 186JohnsonGroup

Page 187: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJTcustsup EJTcustsup

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

KeyStrks varchar (10)

LsrCpy varchar (10)

ColPrfs varchar (10)

Fotos varchar (10)

Negs varchar (10)

Flats varchar (10)

Disc varchar (10)

Seps varchar (10)

ColCpr varchar (10)

CamRdyArt varchar (10)

FTP varchar (10)

Other varchar (10)

OtherT varchar (100)

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 187JohnsonGroup

Page 188: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJTheader EJTheader

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

FHSItemN1 varchar (450) FHS Item Numbers

Comments varchar (150) Comments

OnTimeYN tinyint

CostedYN tinyint

FastQuoteID int

QREligible varchar (100)

ConstraintColumn

Field Constraints

CostedYN ([CostedYN] >= 0.0 and [CostedYN] <= 255)

FastQuoteID ([FastQuoteID] >= 0.0 and [FastQuoteID] <= 999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

OnTimeYN ([OnTimeYN] >= 0.0 and [OnTimeYN] <= 255)

Page 188JohnsonGroup

Page 189: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJTletterpress EJTletterpress

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

DieCut varchar (3)

Emboss varchar (3) Emboss

BlindEmboss varchar (3) Blind Emboss

FoilStamp varchar (3) Foil Stamp

FoilEmboss varchar (3) Foil Emboss

Number varchar (3) Number

Score varchar (3) Score

NumPos varchar (50) Number Position

FoilN varchar (50) Foil Number

FoilColor varchar (50) Foil Color

InkClr varchar (50) Ink Color

FirstNum varchar (12) First Number

Perf varchar (3) Perforate

BsCdSlits varchar (3) Business Card Slits

Comments varchar (400) Comments

PktLR varchar (6) Pocket Left/Right

dieNum varchar (4)

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 189JohnsonGroup

Page 190: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJToffset1 EJToffset1

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

InkColors varchar (150) Ink Colors

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 190JohnsonGroup

Page 191: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EJTprepress EJTprepress

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

Design varchar (3)

Typset varchar (3)

SepCnt varchar (10)

Imgset varchar (3)

Lrule varchar (10)

Stndg varchar (3)

MastNo varchar (10)

Layout varchar (10)

TkOffBrs varchar (3)

Strip varchar (3)

ReStrp varchar (3)

FilmFileT varchar (10)

SepCntT varchar (5)

LruleT int

MastNoT varchar (10)

PrepComments varchar (1,000) Prepress Comments

MedFurn1 varchar (20) Med Furn 1

MedFurn2 varchar (20) Med Furn 2

MedFurn3 varchar (20) Med Furn 3

BWLaser varchar (3) B/W Laser

Dylux varchar (3) Dylux

ColCpr varchar (3) Color Copier

RealApprvl varchar (3) Veris

Name varchar (50) Name

Address varchar (100) Address

City varchar (50) City

ST varchar (50) State

Zip varchar (50) Zip Code

Other varchar (100) Other Furnished

Page 191JohnsonGroup

Page 192: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EJTprepress EJTprepress

NoProof varchar (4) None Required

Stochastic varchar (3) Stochastic

CutBack varchar (9) Cut-Back Curve

PDF varchar (3) PDFProof

Phone varchar (20) Phone

EMail varchar (50) E-Mail

IntOnly varchar (3) Internal Proof Only

SalesDel varchar (3) SalesRep to Deliver

Guides varchar (100) Create Guides

Scan varchar (3) Scan

Address2 varchar (100) Address2

Round varchar (3) Round

DateOut varchar (10) Date Out

DateRet varchar (10) Date Returned

Status varchar (25) Status

DateOKtoPlate varchar (10) Date ok to Plate

ProofDelMethod varchar (40)

ContractColorIE tinyint

DigitalDyluxIE tinyint

PDFIE tinyint

Bleeds tinyint

ConstraintColumn

Field Constraints

Bleeds ([Bleeds] >= 0.0 and [Bleeds] <= 255)

ContractColorIE ([ContractColorIE] >= 0.0 and [ContractColorIE] <= 255)

DigitalDyluxIE ([DigitalDyluxIE] >= 0.0 and [DigitalDyluxIE] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LruleT ([LruleT] >= 0 and [LruleT] <= 999999)

PDFIE ([PDFIE] >= 0.0 and [PDFIE] <= 255)

Page 192JohnsonGroup

Page 193: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Employee Employee

The Employee table contains information about each of your company's

employees, including their number, name, and shift. Records are created,

maintained, and deleted through Table Maintenance; however, you cannot

delete an employee that is still being referenced in other tables.

Indexes on Description

EmployeeN Primary key, clustered

MailAlias Nonclustered

Related Tables with Foreign Keys Column

Related Tables

Employee SupervisorN

EmployeeStatus Employee

JDFDevice EmployeeN

JDFDeviceWorkCenter EmployeeN

JobLabor EmployeeN

JobMaterial Employee

JobStatus1 EmployeeN

MachineCards Employee

MstatData Emp

RollTransactions Employee

Salesperson EmployeeN

UserCredentials EmployeeN

WSRollInventory Employee

TypeColumn

EmployeeN int A unique number used to identify the individual employee.

EmployeeName varchar (35) The employee's name. It is recommended that the names be entered last name

first (see the Implementation Manual for details).

Shift tinyint The employee's shift number. In the past, this was limited to 4 shifts, with shifts

1, 2, and 3 being the normal shifts and used by the Verify option of the Input

program to assign an employee's time to a his or her normal shift. Shift 4

indicated that the employee was a floater who did not work a regular shift, so the

person responsible for entering labor and material charges with the Input

program must enter the appropriate shift number each time he or she enters the

employee's transactions. This system still in use at many customers; newer

customers can pick any shift number to indicate a floater.

DepartmentN smallint The department in which the employee normally works. SFDC reports can be

selected and sorted by department. Note that this is the department as defined in

the Scheduled Department file.

Relates to: DeptSchedule table

SupervisorN int The supervisor field is used in the INPUT program to identify a set of employees

for whom to select their timecards for validation and updating.

Relates to: Employee table

InactiveFlag tinyint Inactive employees will not be listed with the Non-used Employees produced by

the Verify option of input. They are deleted by zero at the end of the year.

0 = Active

1 = Inactive

CostingRate decimal (9,2) The out-of-pocket rate for this employee. This is an hourly rate to charge in

addition to the OOP Rate for the employee's cost center whenever the OOP Rate

is used in direct costing.

Page 193JohnsonGroup

Page 194: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Employee Employee

MailAlias varchar (50) The employee's mail alias. The name by which the employee receives electronic

mail.

HomeCostCenter int Default cost center for employee. Only used by ShopStation.

Relates to: LaborCostCntr table

LoginID varchar (128) The login id used to log in to the EFI Logic SQL database.

PCafeUserType int Code for the "printCafe user type". PrinterSite Internal classifies users by type,

e.g. SalesAgent, CSR, etc.

0 = General

1 = Salesperson

WebConfigID int For PrinterSite Internal document management. Decides which web

configuration (in table: WebConfiguration) the user has been assigned to.

Relates to: WebConfiguration table

ConstraintColumn

Field Constraints

CostingRate ([CostingRate] >= 0 and [CostingRate] <= 999)

DepartmentN ([DepartmentN] >= 0 and [DepartmentN] <= 999)

EmployeeN ([EmployeeN] >= 1 and [EmployeeN] <= 999999)

HomeCostCenter ([HomeCostCenter] >= 0 and [HomeCostCenter] <= 99999)

InactiveFlag ([InactiveFlag] >= 0 and [InactiveFlag] <= 1)

PCafeUserType ([PCafeUserType] >= 0 and [PCafeUserType] <= 999)

Shift ([Shift] >= 0 and [Shift] <= 9)

SupervisorN ([SupervisorN] >= 0 and [SupervisorN] <= 999999)

WebConfigID ([WebConfigID] >= 0 and [WebConfigID] <= 999999999)

Page 194JohnsonGroup

Page 195: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EmployeeStatus Employee Status

Table used to record the current status of each employee.

Indexes on Description

Employee, ProcessIndex Primary key, clustered

TypeColumn

Employee int Employee number. Must be in the Employee table.

Relates to: Employee table

Shift tinyint The employee's shift.

DefaultShift tinyint The default shift for this employee from the Employee table.

Department int The department that the employee is assigned to.

Supervisor int The employee's supervisor. Must be a entry in Employee table.

LogDate datetime The shiftdate assigned to the employee when he/she logged in.

StartDate datetime The date the employee logged in.

StartTime int The time the employee logged in.

PreviousDate datetime The date that the current transaction began.

PreviousTime int The time that the current transaction began.

NumberJobs tinyint The number of jobs entered. Range is 1 to 10.

Job1 int The job being worked on, or the first of a set of ganged jobs.

Job2 int The 2nd job of a set a ganged jobs.

Job3 int The 3rd job of a set a ganged jobs.

Job4 int The 4th job of a set a ganged jobs.

Job5 int The 5th job of a set a ganged jobs.

Job6 int The 6th job of a set a ganged jobs.

Job7 int The 7th job of a set a ganged jobs.

Job8 int The 8th job of a set a ganged jobs.

Job9 int The 9th job of a set a ganged jobs.

Job10 int The 10th job of a set a ganged jobs.

SubJob1 int The subjob being worked on, or the first subjob for a set of ganged jobs.

Subjob2 int The 2nd subjob for a set of ganged jobs.

Subjob3 int The 3rd subjob for a set of ganged jobs.

Subjob4 int The 4th subjob for a set of ganged jobs.

Subjob5 int The 5th subjob for a set of ganged jobs.

Subjob6 int The 6th subjob for a set of ganged jobs.

Subjob7 int The 7th subjob for a set of ganged jobs.

Subjob8 int The 8th subjob for a set of ganged jobs.

Page 195JohnsonGroup

Page 196: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EmployeeStatus Employee Status

Subjob9 int The 9th subjob for a set of ganged jobs.

Subjob10 int The 10th subjob for a set of ganged jobs.

LCCN int Labor cost center number.

MCCN int Material code.

LaborPfx tinyint Labor prefix: 0-8 See prefixes table.

MaterialPfx tinyint Material prefix: 0-2 See prefixes table.

VOCDepartment int For material entry, the VOC dept if the material being used is hazardous and

VOC tracking is enabled.

ReasonCode int The reasoncode entered if the prefix was non-0.

JobStatusCode int Job status code

LaborCount decimal (9,2) Count associated with a labor code that has a standard.

MaterialQty decimal (9,2) If entering material, this is the material quantity.

PageN int Page number.

CountDate datetime If the current labor cost center requires a count, this is the

date of the start of the transaction.

CountTime int If the current labor cost center requires a count, this is the

time of the start of the transaction.

CountLCC int If the current labor cost center requires a count, this is the

lcc of the of the transaction.

CountJob int If the current labor cost center requires a count, this is the

job for the transaction.

CountSubjob int If the current labor cost center requires a count, this is the

subjob (if any) for the transaction.

StatusBits int Not used.

Signature smallint For jobstatus, the signature.

Impressions int For Webstock input, the number of impressions produced from a roll of paper.

StartingWeight decimal (9,2) For Webstock, the starting weight of the roll of paper.

EndingWeight decimal (9,2) If entering Webstock, this is the ending weight of the roll of paper.

RollID varchar (18) For Webstock, the ID of the roll of paper.

MachineN int Machine number.

ConfigurationN int For DMI input, the machine configuration number.

DMIConfigN smallint The DMI configuration number currently used if entering DMI

transactions.

Operation int For DMI, the last machine operation.

PREMPrefix tinyint DMI prefix: 0-8 See prefixes table.

Page 196JohnsonGroup

Page 197: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EmployeeStatus Employee Status

PREMCatagory smallint The PREM catagory.

A older method of catagorizing the operation codes.

This is not the same as the DMI catagory.

DMICatagory smallint The DMI catagory of the last operation entered at a DMI device

by this employee.

NWebs smallint For DMI, the number of webs.

NParts smallint For DMI, the number of parts.

NWide smallint For DMI, the number wide.

NOut smallint For DMI, the number out.

SSEndActivity tinyint Not used in SQL

SSStartGang tinyint Not used in SQL

FormN smallint For DMI input, the form number.

FormLength decimal (9,2) For DMI input, the length of the form.

FormWidth decimal (9,2) For DMI input, the width of the form.

StopLocation int Optional location code for a STOP.

HomeCC int The home labor cost center assigned to the employee.

Relates to: LaborCostCntr table

EmployeeName varchar (40) Employee's name

InputType smallint The type of the last transaction sent to the server.

10 = login

11 = labor

12 = labor count

13 = labor charge

30 = material

40 = webstock

50 = job status

60 = DMI scaling

61 = DMI operation

63 = DMI information

90 = DMI count

Form1 smallint If tracking by form, this is the form number for the job or for the first job in a set

of ganged jobs.

Form2 smallint If tracking by form, this is the form number for the 2nd job in a set of ganged

jobs.

Form3 smallint If tracking by form, this is the form number for the 3rd job in a set of ganged

jobs.

Form4 smallint If tracking by form, this is the form number for the 4th job in a set of ganged

jobs.

Form5 smallint If tracking by form, this is the form number for the 5th job in a set of ganged

jobs.

Page 197JohnsonGroup

Page 198: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EmployeeStatus Employee Status

Form6 smallint If tracking by form, this is the form number for the 6th job in a set of ganged

jobs.

Form7 smallint If tracking by form, this is the form number for the 7th job in a set of ganged

jobs.

Form8 smallint If tracking by form, this is the form number for the 8th job in a set of ganged

jobs.

Form9 smallint If tracking by form, this is the form number for the 9th job in a set of ganged

jobs.

Form10 smallint If tracking by form, this is the form number for the 10th job in a set of ganged

jobs.

JobInUse1 int The job being worked on, or the first of a set of ganged jobs.

JobInUse2 int The 2nd job of a set of jobs being worked on.

JobInUse3 int The 3rd job of a set of jobs being worked on.

JobInUse4 int The 4th job of a set of jobs being worked on.

JobInUse5 int The 5th job of a set of jobs being worked on.

JobInUse6 int The 6th job of a set of jobs being worked on.

JobInUse7 int The 7th job of a set of jobs being worked on.

JobInUse8 int The 8th job of a set of jobs being worked on.

JobInUse9 int The 9th job of a set of jobs being worked on.

JobInUse10 int The 10th job of a set of jobs being worked on.

ProcessIndex int A number from 0 to 99 which refers to a concurrent process started using MyDC

4.0.

Processes with processindex of 0 are started by older sfdc client programs such

as WinTrak and serial data collection (keypads).

ProcessStatus int A number that indicates the status of one of the concurrent processes from

MyDC 4.0.

0 = process started

1 = process suspended

2 = process on break

3 = process ended

EndDate datetime Date on which labor transaction ended.

EndTime int Time of day (hhmm) that labor transaction ended.

StartCounter int Value of machine counter at start of task.

EndCounter int Value of machine counter at end of task.

GrossCount int Number of pieces produced including any waste.

Should equal the difference between the endcounter and the startcounter if they

are non-zero.

Page 198JohnsonGroup

Page 199: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EmployeeStatus Employee Status

ConstraintColumn

Field Constraints

ConfigurationN ([ConfigurationN] >= 0 and [ConfigurationN] <= 999999)

CountJob ([CountJob] >= 0 and [CountJob] <= 999999999)

CountLCC ([CountLCC] >= 0 and [CountLCC] <= 99999)

CountSubjob ([CountSubjob] >= 0 and [CountSubjob] <= 999999)

CountTime ([CountTime] >= 0 and [CountTime] <= 999999)

DefaultShift ([DefaultShift] >= 0 and [DefaultShift] <= 9)

Department ([Department] >= 0 and [Department] <= 9999)

DMICatagory ([DMICatagory] >= 0 and [DMICatagory] <= 99)

DMIConfigN ([DMIConfigN] >= 0 and [DMIConfigN] <= 99)

Employee ([Employee] >= 0 and [Employee] <= 999999)

EndCounter ([EndCounter]>=(0) AND [EndCounter]<=(999999999))

EndingWeight ([EndingWeight] >= 0 and [EndingWeight] <= 9999)

EndTime ([EndTime]>=(0) AND [EndTime]<=(999999))

Form1 ([Form1] >= 0 and [Form1] <= 9999)

Form10 ([Form10] >= 0 and [Form10] <= 9999)

Form2 ([Form2] >= 0 and [Form2] <= 9999)

Form3 ([Form3] >= 0 and [Form3] <= 9999)

Form4 ([Form4] >= 0 and [Form4] <= 9999)

Form5 ([Form5] >= 0 and [Form5] <= 9999)

Form6 ([Form6] >= 0 and [Form6] <= 9999)

Form7 ([Form7] >= 0 and [Form7] <= 9999)

Form8 ([Form8] >= 0 and [Form8] <= 9999)

Form9 ([Form9] >= 0 and [Form9] <= 9999)

FormLength ([FormLength] >= 0 and [FormLength] <= 99999)

FormN ([formn] >= 0 and [formn] <= 9999)

FormWidth ([FormWidth] >= 0 and [FormWidth] <= 99999)

GrossCount ([GrossCount]>=(0) AND [GrossCount]<=(999999999))

HomeCC ([HomeCC] >= 0 and [HomeCC] <= 99999)

Impressions ([Impressions] >= 0 and [Impressions] <= 999999999)

Job1 ([Job1] >= 0 and [Job1] <= 999999999)

Job10 ([Job10] >= 0 and [Job10] <= 999999999)

Job2 ([Job2] >= 0 and [Job2] <= 999999999)

Job3 ([Job3] >= 0 and [Job3] <= 999999999)

Job4 ([Job4] >= 0 and [Job4] <= 999999999)

Job5 ([Job5] >= 0 and [Job5] <= 999999999)

Job6 ([Job6] >= 0 and [Job6] <= 999999999)

Job7 ([Job7] >= 0 and [Job7] <= 999999999)

Job8 ([Job8] >= 0 and [Job8] <= 999999999)

Job9 ([Job9] >= 0 and [Job9] <= 999999999)

JobInUse1 ([JobInUse1] >= 0 and [JobInUse1] <= 999999999)

JobInUse10 ([JobInUse10] >= 0 and [JobInUse10] <= 999999999)

JobInUse2 ([JobInUse2] >= 0 and [JobInUse2] <= 999999999)

JobInUse3 ([JobInUse3] >= 0 and [JobInUse3] <= 999999999)

JobInUse4 ([JobInUse4] >= 0 and [JobInUse4] <= 999999999)

JobInUse5 ([JobInUse5] >= 0 and [JobInUse5] <= 999999999)

JobInUse6 ([JobInUse6] >= 0 and [JobInUse6] <= 999999999)

JobInUse7 ([JobInUse7] >= 0 and [JobInUse7] <= 999999999)

JobInUse8 ([JobInUse8] >= 0 and [JobInUse8] <= 999999999)

JobInUse9 ([JobInUse9] >= 0 and [JobInUse9] <= 999999999)

JobStatusCode ([JobStatusCode] >= 0 and [JobStatusCode] <= 99999)

LaborCount ([LaborCount] >= 0 and [LaborCount] <= 9999999)

LaborPfx ([LaborPfx] >= 0 and [LaborPfx] <= 8)

Page 199JohnsonGroup

Page 200: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EmployeeStatus Employee Status

LCCN ([LCCN] >= 0 and [LCCN] <= 99999)

MachineN ([MachineN] >= 0 and [MachineN] <= 99999)

MaterialPfx ([MaterialPfx] >= 0 and [MaterialPfx] <= 2)

MaterialQty ([MaterialQty] >= 0 and [MaterialQty] <= 9999999)

MCCN ([MCCN] >= 0 and [MCCN] <= 9999999)

NOut ([NOut] >= 0 and [NOut] <= 999)

NParts ([NParts] >= 0 and [NParts] <= 99)

NumberJobs ([NumberJobs] >= 0 and [NumberJobs] <= 10)

NWebs ([NWebs] >= 0 and [NWebs] <= 99)

NWide ([NWide] >= 0 and [NWide] <= 99)

Operation ([Operation] >= 0 and [Operation] <= 9999)

PageN ([PageN] >= 0 and [PageN] <= 999999)

PREMCatagory ([PREMCatagory] >= 0 and [PREMCatagory] <= 99)

PREMPrefix ([PREMPrefix] >= 0 and [PREMPrefix] <= 2)

PreviousTime ([PreviousTime] >= 0 and [PreviousTime] <= 999999)

ProcessIndex ([ProcessIndex]>=(0) AND [ProcessIndex]<=(99))

ProcessStatus ([ProcessStatus]>=(0) AND [ProcessStatus]<=(3))

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

Shift ([Shift] >= 0 and [Shift] <= 9)

Signature ([Signature] >= 0 and [Signature] <= 999)

SSEndActivity ([SSEndActivity] >= 0 and [SSEndActivity] <= 1)

SSStartGang ([SSStartGang] >= 0 and [SSStartGang] <= 1)

StartCounter ([StartCounter]>=(0) AND [StartCounter]<=(999999999))

StartingWeight ([StartingWeight] >= 0 and [StartingWeight] <= 9999)

StartTime ([StartTime] >= 0 and [StartTime] <= 999999)

StatusBits ([StatusBits] >= 0 and [StatusBits] <= 9999999)

StopLocation ([StopLocation] >= 0 and [StopLocation] <= 999999)

SubJob1 ([SubJob1] >= 0 and [SubJob1] <= 999999)

Subjob10 ([Subjob10] >= 0 and [Subjob10] <= 999999)

Subjob2 ([Subjob2] >= 0 and [Subjob2] <= 999999)

Subjob3 ([Subjob3] >= 0 and [Subjob3] <= 999999)

Subjob4 ([Subjob4] >= 0 and [Subjob4] <= 999999)

Subjob5 ([Subjob5] >= 0 and [Subjob5] <= 999999)

Subjob6 ([Subjob6] >= 0 and [Subjob6] <= 999999)

Subjob7 ([Subjob7] >= 0 and [Subjob7] <= 999999)

Subjob8 ([Subjob8] >= 0 and [Subjob8] <= 999999)

Subjob9 ([Subjob9] >= 0 and [Subjob9] <= 999999)

Supervisor ([Supervisor] >= 0 and [Supervisor] <= 999999)

VOCDepartment ([VOCDepartment] >= 0 and [VOCDepartment] <= 999999)

Page 200JohnsonGroup

Page 201: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Equipment Equipment

The Equipment table defines each machine and machine

configuration tracked through DMI. Through

the Main Equip #, it relates each machine to the

Department Schedule table.

Indexes on Description

Equipnumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

ACRunlist MachConfig

Components EquipmentNum

FormTotalizer MachineN

JobComponent EquipmentNum

JobFormSpecs MachineN

MachineCards ConfigurationN

RollTransactions Press

WSRollInventory Press

TypeColumn

Equipnumber int Identifies the machine and, if there is more than one, the configuration. The

leading digits of this number must match the Main Equip #, which is also the

Scheduling Department Number. The final digit of this number identifies a

specific machine configuration.

Description varchar (40) Description of the machine and configuration.

MainEquipN smallint The Scheduling Department Number of this machine.

Relates to: DeptSchedule table

CylinCircu decimal (9,2) The circumference, in inches, of the cylinder whose turning is counted by the

sensor. In other words, the sensor must count once for each turn of this cylinder.

If the sensor is not counting the turn of a cylinder (e.g., a stitcher), this should be

1.

Used for scaling and in premrep to determine output in feet. If a web press can

have different cylinder circumferences, there must be a configuration record for

each one.

NumberOfWebs smallint The number of webs that will be run in this configuration.

In the main record, this should be the maximum number that can be run through

the press. For a stitcher, this should be the number of pockets. For a sheetfed

press or folder, it should be 1.

Revolutiontype tinyint Indicates how this configuration's output will be measured:

1 = impressions per hour

2 = impressions per minute

3 = feet per minute

ObjMRmins decimal (9,2) The number of minutes in which you expect the operator to complete makeready

(the operator's performance objective). Compared to actual makeready minutes

on the Press Status display.

Not required.

ObjWaste decimal (9,2) The percent waste you expect the operator to achieve [calculated as (Gross

minus Net)/Gross * 100]. Compared to actual percent waste on the Press Status

display.

Not required.

Page 201JohnsonGroup

Page 202: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Equipment Equipment

ObjRate int The average speed that you expect the operator to maintain. Compared to actual

speed on the Press status display.

Not required.

InchesRev decimal (9,2) The number of inches per revolution of the cutoff cylinder.

This is used with the Cylin Circu to calculate a scaling factor that gives the

number out per click of the sensor. If the sensor is not counting the turn of a

cylinder, this should be 1. Used for scaling and in premrep to determine output

in feet.

NoDeliveries tinyint Number of deliveries on this machine.

AICRate decimal (9,2) The AIC Rate for this machine's cost center

OOPRate decimal (9,2) The Out-of-Pocket Rate for this machine's cost center.

Used to calculate costs for the Machine Time section of the Job Report.

WIPSummaryN smallint From the LCC list: the Work-in-Process Summary number for this machine's

cost center.

Used to group this machine's hours and costs on the WIP Summary section of the

Job Report.

Relates to: WIPSummaryNs table

BillSumN int From the LCC list: the Billing Summary number for this machine's cost center.

Used to group this machine's costs on the Billing Worksheet section of the Job

Report.

Relates to: JOBREPSummaryN table

ProductionSumN int From the LCC list: the Production Summary number for this machine's cost

center.

Used to group this machine's hours and costs on the Production Summary section

of the Job Report.

Relates to: JOBREPSummaryN table

FormFityn tinyint For web presses that can have different cylinder circumferences. If form fit is

yes, the form must fit onto the press exactly.

This is not used in SQL.

0 = No

1 = Yes

MachClass tinyint Not used in SQL.

PayrollLcc int The cost center assigned to this machine for payroll.

Not currently used.

Relates to: LaborCostCntr table

BreakOperation int The operation code to use for Breaks.

Relates to: OperationCodes table

StopSeconds int The number of seconds the machine must be stopped before a STOP transaction

is sent to the server.

MR2impshour int The rate, in impressions/hour which the machine must attain while in MR1

before MR2 begins.

If this field is zero, MR2 begins as soon as the GROSS counter is greater than 0.

Page 202JohnsonGroup

Page 203: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Equipment Equipment

DMImr1 int Used for Automatic State Detection: the operation code that DMI should

automatically enter when MRI begins (when form# is first entered ).

Relates to: OperationCodes table

DMImr2 int Used for Automatic State Detection: the operation code that DMI should

automatically enter when MRII begins (when gross count starts going up).

Relates to: OperationCodes table

DMIrun int Used for Automatic State Detection: the operation code that DMI should

automatically enter when a run begins (when count good switch is pressed).

Relates to: OperationCodes table

DMIstop int Used for Automatic State Detection: the operation code that DMI should

automatically enter when a stop occurs (when net count stops going up).

Relates to: OperationCodes table

ConstraintColumn

Field Constraints

AICRate ([AICRate] >= 0 and [AICRate] <= 99999)

BillSumN ([BillSumN] >= 0 and [BillSumN] <= 99999)

BreakOperation ([BreakOperation] >= 0 and [BreakOperation] <= 99999)

CylinCircu ([CylinCircu] >= 0 and [CylinCircu] <= 9999)

DMImr1 ([DMImr1] >= 0 and [DMImr1] <= 9999)

DMImr2 ([DMImr2] >= 0 and [DMImr2] <= 9999)

DMIrun ([DMIrun] >= 0 and [DMIrun] <= 9999)

DMIstop ([DMIstop] >= 0 and [DMIstop] <= 9999)

Equipnumber ([Equipnumber] >= 1 and [Equipnumber] <= 999999)

FormFityn ([FormFityn] >= 0 and [FormFityn] <= 1)

InchesRev ([InchesRev] >= 0 and [InchesRev] <= 999)

MachClass ([MachClass] >= 0 and [MachClass] <= 2)

MainEquipN ([MainEquipN] >= 0 and [MainEquipN] <= 999)

MR2impshour ([MR2impshour] >= 0 and [MR2impshour] <= 999999)

NoDeliveries ([NoDeliveries] >= 0 and [NoDeliveries] <= 8)

NumberOfWebs ([NumberOfWebs] >= 0 and [NumberOfWebs] <= 99)

ObjMRmins ([ObjMRmins] >= 0 and [ObjMRmins] <= 9999)

ObjRate ([ObjRate] >= 0 and [ObjRate] <= 999999)

ObjWaste ([ObjWaste] >= 0 and [ObjWaste] <= 100)

OOPRate ([OOPRate] >= 0 and [OOPRate] <= 99999)

PayrollLcc ([PayrollLcc] >= 0 and [PayrollLcc] <= 99999)

ProductionSumN ([ProductionSumN] >= 0 and [ProductionSumN] <= 9999)

Revolutiontype ([Revolutiontype] >= 0 and [Revolutiontype] <= 9)

StopSeconds ([StopSeconds] >= 0 and [StopSeconds] <= 999999)

WIPSummaryN ([WIPSummaryN] >= 0 and [WIPSummaryN] <= 999)

Page 203JohnsonGroup

Page 204: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstCalc Est Calc

Contains the totals for each configuration of an Estimating 3 estimate.

Also contains any Quote value overrides provided by the user in the

Overall Markups calculation.

Indexes on Description

IssNum, ConfigNum Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

ConfigNum int Configuration section for this set of total values.

EstNum decimal (15,2) Estimate number - EEESSSS where EEE = Estimator number and

SSSS = Sequence number

Cost1 decimal (15,2) Estimated Raw Cost - Qty1

Cost2 decimal (15,2) Estimated Raw Cost - Qty2

Cost3 decimal (15,2) Estimated Raw Cost - Qty3

Cost4 decimal (15,2) Estimated Raw Cost - Qty4

Cost5 decimal (15,2) Estimated Raw Cost - Qty5

AICCost1 decimal (15,2) All Inclusive Cost - Qty1

AICCost2 decimal (15,2) All Inclusive Cost - Qty2

AICCost3 decimal (15,2) All Inclusive Cost - Qty3

AICCost4 decimal (15,2) All Inclusive Cost - Qty4

AICCost5 decimal (15,2) All Inclusive Cost - Qty5

EstTSP1 decimal (15,2) Targeted Selling Price - Qty1

EstTSP2 decimal (15,2) Targeted Selling Price - Qty2

EstTSP3 decimal (15,2) Targeted Selling Price - Qty3

EstTSP4 decimal (15,2) Targeted Selling Price - Qty4

EstTSP5 decimal (15,2) Targeted Selling Price - Qty5

TSPAddl1 decimal (15,2) Target Selling Price for Addls - Qty 1. The quantity that this amount is based on

is in the AddlQty field in the corresponding Estimates record.

TSPAddl2 decimal (15,2) Target Selling Price for Addls - Qty 2

TSPAddl3 decimal (15,2) Target Selling Price for Addls - Qty 3

TSPAddl4 decimal (15,2) Target Selling Price for Addls - Qty 4

TSPAddl5 decimal (15,2) Target Selling Price for Addls - Qty 5

Quote1 decimal (15,2) Quoted price - Qty 1

Quote2 decimal (15,2) Quoted price - Qty 2

Page 204JohnsonGroup

Page 205: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: EstCalc Est Calc

Quote3 decimal (15,2) Quoted price - Qty 3

Quote4 decimal (15,2) Quoted price - Qty 4

Quote5 decimal (15,2) Quoted price - Qty 5

ConstraintColumn

Field Constraints

AICCost1 ([AICCost1] >= (-999999999) and [AICCost1] <= 999999999)

AICCost2 ([AICCost2] >= (-999999999) and [AICCost2] <= 999999999)

AICCost3 ([AICCost3] >= (-999999999) and [AICCost3] <= 999999999)

AICCost4 ([AICCost4] >= (-999999999) and [AICCost4] <= 999999999)

AICCost5 ([AICCost5] >= (-999999999) and [AICCost5] <= 999999999)

ConfigNum ([ConfigNum] >= 0 and [ConfigNum] <= 999999)

Cost1 ([Cost1] >= (-999999999) and [Cost1] <= 999999999)

Cost2 ([Cost2] >= (-999999999) and [Cost2] <= 999999999)

Cost3 ([Cost3] >= (-999999999) and [Cost3] <= 999999999)

Cost4 ([Cost4] >= (-999999999) and [Cost4] <= 999999999)

Cost5 ([Cost5] >= (-999999999) and [Cost5] <= 999999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

EstTSP1 ([EstTSP1] >= (-999999999) and [EstTSP1] <= 999999999)

EstTSP2 ([EstTSP2] >= (-999999999) and [EstTSP2] <= 999999999)

EstTSP3 ([EstTSP3] >= (-999999999) and [EstTSP3] <= 999999999)

EstTSP4 ([EstTSP4] >= (-999999999) and [EstTSP4] <= 999999999)

EstTSP5 ([EstTSP5] >= (-999999999) and [EstTSP5] <= 999999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Quote1 ([Quote1] >= (-999999999) and [Quote1] <= 999999999)

Quote2 ([Quote2] >= (-999999999) and [Quote2] <= 999999999)

Quote3 ([Quote3] >= (-999999999) and [Quote3] <= 999999999)

Quote4 ([Quote4] >= (-999999999) and [Quote4] <= 999999999)

Quote5 ([Quote5] >= (-999999999) and [Quote5] <= 999999999)

TSPAddl1 ([TSPAddl1] >= (-999999999) and [TSPAddl1] <= 999999999)

TSPAddl2 ([TSPAddl2] >= (-999999999) and [TSPAddl2] <= 999999999)

TSPAddl3 ([TSPAddl3] >= (-999999999) and [TSPAddl3] <= 999999999)

TSPAddl4 ([TSPAddl4] >= (-999999999) and [TSPAddl4] <= 999999999)

TSPAddl5 ([TSPAddl5] >= (-999999999) and [TSPAddl5] <= 999999999)

Page 205JohnsonGroup

Page 206: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstCompCalc Est Comp Calc

This table contains the total quantities and other shared attributes for

components within a configuration for an Estimating 3 estimate.

Indexes on Description

IssNum, ConfigNum,

CompNum

Primary key, clustered

TypeColumn

IssNum int Issue number

Relates to: Estimates table

EstNum decimal (15,2) Estimate number

ConfigNum int Configuration number.

CompNum int Component number.

QuantityC1 int Total quantity for given component number to be produced for quantity 1 in this

configuration and estimate.

QuantityC2 int Total quantity for given component number to be produced for quantity 2 in this

configuration and estimate.

QuantityC3 int Total quantity for given component number to be produced for quantity 3 in this

configuration and estimate.

QuantityC4 int Total quantity for given component number to be produced for quantity 4 in this

configuration and estimate.

QuantityC5 int Total quantity for given component number to be produced for quantity 5 in this

configuration and estimate.

CompRunOrder int Production run order of components (forms) within this configuration of this

estimate.

CompCnt int Number of component multiples produced for this component.

ConstraintColumn

Field Constraints

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum]>=(0) AND [CompNum]<=(99999))

CompRunOrder ([CompRunOrder]>=(0) AND [CompRunOrder]<=(999999))

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

QuantityC1 ([QuantityC1]>=(-1) AND [QuantityC1]<=(999999999))

QuantityC2 ([QuantityC2]>=(-1) AND [QuantityC2]<=(999999999))

QuantityC3 ([QuantityC3]>=(-1) AND [QuantityC3]<=(999999999))

QuantityC4 ([QuantityC4]>=(-1) AND [QuantityC4]<=(999999999))

QuantityC5 ([QuantityC5]>=(-1) AND [QuantityC5]<=(999999999))

Page 206JohnsonGroup

Page 207: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstContentDocs Est Content Docs

Associates a content document via its path or URL to a particular part of

an Estimating 3 estimate.

Indexes on Description

IssNum, CompNum,

DocInstance

Primary key, clustered

TypeColumn

EstNum int The estimate number.

IssNum int Issue number

Relates to: Estimates table

CompNum smallint Component number with which document is associated.

DocInstance int Document instance - a unique key to allow list of documents not necessarily tied

to specific forms within the component.

CompMultiple smallint The specific multiple of the component that this document is associated with, if

desired.

WebNum smallint Web number - the choice of web that this document is associated with, if desired.

ContentDocumentPath nvarchar The path or URL to the document.

Notes nvarchar Notes concerning the document

ConstraintColumn

Field Constraints

Page 207JohnsonGroup

Page 208: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstimateCode Estimate Codes

Allows customers to create their own status codes for estimates. They are

typically used to assign reasons for not having won an estimate, but they

can also be used for other purposes. These codes are assigned to the

EstimateCode field in the Estimates table using the Manage Issued

Estimates activity in Estimating 3. The code values are maintained using

Table Maintenance.

Indexes on Description

CodeKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Estimates EstimateCode

QQOrder EstimateCode

TypeColumn

CodeKey int Key for Estimate Code

Description varchar (30) Description of estimate code status.

ConstraintColumn

Field Constraints

CodeKey ([CodeKey] >= 1 and [CodeKey] <= 999999)

Page 208JohnsonGroup

Page 209: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Estimates Estimates

Header file containing all header specific information for Estimating 3

estimates.

Indexes on Description

IssNum Primary key, clustered

pCafeID Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

Answers IssNum

Calculations IssNum

Components IssNum

ConfigProduct IssNum

ConfigProductComp IssNum

Configuration IssNum

EstCalc IssNum

EstCompCalc IssNum

EstContentDocs IssNum

EstProduct IssNum

EstProductComp IssNum

InkCalc IssNum

InkOptions IssNum

LayoutImages IssNum

Notes IssNum

Operations IssNum

OverallMarkups IssNum

SpecInstruct IssNum

SpoilAddlTab IssNum

Spoilage IssNum

StockCalc IssNum

StockOptions IssNum

Stocks IssNum

Related Tables

JobEstHeader IssueNum

TypeColumn

IssNum int Issued Estimate Number

This is the number used to track the particular version of an estimate. If an

estimate is Opened for Edit and reissued, it will receive a new Issue Number.

These are assigned sequentially.

EstNum int Estimate Number

This reflects the original estimate number made up of

the estimator's number (1-3 digits) and a sequence

number (EEESSSS). If an estimate is edited and

reissued, the estimate number remains the same.

Description varchar (50) Description of Estimate. When an estimate is associated, the job description

defaults to the beginning of this description.

DetDesc varchar (5,000) Detailed description. During association, this field is written to the ExtraJobInfo

field in the Open Job table.

EstDate datetime Original Date on which the Estimate was created.

DueDate datetime Due Date of job - picked up from printCafe RFQ or entered manually in

Estimating 3

Page 209JohnsonGroup

Page 210: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Estimates Estimates

CustomerName varchar (50) Customer Name

This is either a current customer name or typed in by the estimator for new

customers.

CustomerN int Customer number. Will be 0 if not a current customer.

Relates to: Customer table

CustContact varchar (35) Contact name at customer for estimate.

AddrLine1 varchar (40) Address fields are taken from the Customer table for current customers or they

can be typed in by the Estimator for new customers or to override the default

address.

AddrLine2 varchar (40) .

City varchar (30) .

StateProv varchar (4) .

PostalCode varchar (15) .

TelephoneN varchar (25) .

FaxTelephoneN varchar (25) .

StdMarkup decimal (9,4) Standard Markup from Customer table. This markup is used on top of the

Overall Markups to adjust the final Targeted Selling Price and may be

overridden in Estimating 3. (It is stored as a decimal value, ie. .04 = 4%)

pCafeID int System-assigned ID of a Request for estimate from the PrintCafeProj table.

pcVersionName varchar (40) Not used in EFI Logic SQL.

pcVersionID int Not used in EFI Logic SQL.

ProductCode int Product Code of this estimate from Product table.

Relates to: ProductCode table

SalesRepName varchar (40) Sales Representative's Name from Salesperson table.

SalesRepN int Sales person number from Salesperson table.

Relates to: Salesperson table

Estimator varchar (35) Estimator Name as entered when Estimating 3 is installed on client machine

EstorN int Estimator number as entered when Estimating 3 is installed on the client.

ModDate datetime Date of this modification of an estimate

ModEstorN int Estimator number of estimator who issued this version of the estimate.

Quantity1 int 1st Quantity used in the estimate.

Quantity2 int 2nd Quantity (if any)

Quantity3 int 3rd Quantity (if any)

Quantity4 int 4th Quantity (if any)

Quantity5 int 5th Quantity (if any)

Addlqty int Additional quantity (500, 1000) - This field determines the quantity used for the

calculation of the Additional Quantity Price. It is set in standards as an a0head

parameter question.

Page 210JohnsonGroup

Page 211: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Estimates Estimates

Width decimal (10,4) Finished size, width of the estimated product

Length decimal (10,4) Finished size, length (spine) of the estimated product.

EStatus varchar (25) Status of the estimate:

Working: should only occur in the local Estimating 3 database

Issued: the estimate is ready for association,

Replaced: if an estimate is reissued, the original version has this status

Copied:should only occur in the local database when an estimate has been

issued

Won: the estimate has been associated with a job

Lost: the estimate will not be used. This status is set using the Manage Issued

Estimates activity in Estimating 3.

Template: for estimates used only as templates for other estimates.

EstimateCode int A field to allow an additional status or informative category to be associated

with an estimate. When an estimate is Lost, this code should reflect the reason

that this estimate was Lost and not entered for Production. These codes appear

on the Won/Lost report. The values are under customer control, and are set up

in the EstimateCodes table in Table Maintenance.

Relates to: EstimateCode table

Edited tinyint Whether a local estimate has been Edited from original. Not important for issued

estimates

LockedBy varchar (50) Estimator name of user with Lock when an issued estimate is Opened for Edit

(EStatus = Locked)

LockedOn datetime Date/Time when an estimate was Opend for Edit (Locked).

FOBPoint varchar (40) FOB Point for this estimate

JobNumber int Job Number with which the estimate is associated Assigned when an estimate is

associated in JobVista.

Relates to: OpenJob table

RFEDocumentN int Not used in EFI Logic SQL.

Relates to: InternetDocs table

QtyIndex tinyint The Qty Index chosen when the estimate is used for association

in JobVista.

ConfigNum int Configuration section used when associating the estimate using JobVista.

Permanent tinyint If an estimate is marked Permanent, it will not be purged regardless of other

characteristics of the estimate. This field is maintained using the Manage Issued

Estimates activity in Estimating 3.

0 = No

1 = Yes

Closed tinyint Represents the state of the estimate. If the estimate has been Closed, all details

have been deleted and only the header information has been preserved. If the

estimate has been Cleared, all calculations have been deleted, to associate the

estimate, an estimator must reopen the estimate using Estimating 3 and reissue it.

0 = Complete

1 = Closed

Page 211JohnsonGroup

Page 212: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Estimates Estimates

2 = Cleared

StdsID varchar (20) Standards ID of standards database used to create this estimate (reflects identity

of company) Must match identity of local standards to allow the Standards

Editor to upload standards that match this estimate.

StdsVers varchar (10) Version of Standards (Reflects updates by Company Head Estimator of

standards) If the standards have been updated and have a different version

number since this estimate was calculated, JobVista will provide a warning to a

user who tries to associate the estimate with a job.

Cost decimal (15,2) Associated Estimated Cost of the particular configuration and quantity chosen

when an estimate is associated in JobVista.

AICCost decimal (15,2) Associated All Inclusive Cost. This is the cost of the specific quantity and

configuration and is assigned when an estimate is associated in JobVista.

EstTSP decimal (15,2) Associated Targeted Selling Price from the particular configuration and quantity

chosen when an estimate is associated in JobVista.

TSPAddl decimal (15,2) Target Selling Price for Additional Qty. The quantity used in this calcuation is

reflected in the Addlqty field.

Quote decimal (15,2) Associated Quoted price of the specific configuration and quantity used when

the estimate is associated in JobVista.

AddrLine3 varchar (40) .

CountryCode varchar (3) Three letter country code.

Relates to: Country table

PhoneExt varchar (6) Telephone extension.

Email varchar (128) Email address

DefOverallMarkup varchar (15) The default overall markup used for this estimate. Will come from either the

Customer or the Estimating 3 standards.

CustomerOrderN varchar (30) Identifies the order for which you are producing this job. This data will be

passed into the job when associated with an estimate. Refer to the corresponding

field in the Open Job table for details.

DueTime datetime The time the job is due. This data will be passed into the job when associated

with an estimate.

VaryingSizes bit This field indicates that each component of the estimate has independent finished

dimensions so no header dimensions are used as a default.

EstimateType tinyint Designates whether the estimate is intended for use as a quote only, a plan only

or both. This will determine whether costing data is put into Labor/Material

Quote tables, Planned Labor/Material tables, or both.

0 = Quote and Plan

1 = Quote Only

2 = Plan Only

PrintBuyer int The print buyer chosen for this estimate.

Relates to: CustShipAddr table

Page 212JohnsonGroup

Page 213: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Estimates Estimates

ConstraintColumn

Field Constraints

Addlqty ([Addlqty] >= 0 and [Addlqty] <= 9999999)

AICCost ([AICCost] >= (-999999999) and [AICCost] <= 999999999)

Closed ([Closed] >= 0 and [Closed] <= 2)

ConfigNum ([ConfigNum] >= 0 and [ConfigNum] <= 99999)

Cost ([Cost] >= (-999999999) and [Cost] <= 999999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

Edited ([Edited] >= 0 and [Edited] <= 1)

EstimateCode ([EstimateCode] >= 0 and [EstimateCode] <= 999999)

EstimateType ([EstimateType]>=(0) AND [EstimateType]<=(2))

EstorN ([EstorN] >= 0 and [EstorN] <= 9999)

EstTSP ([EstTSP] >= (-999999999) and [EstTSP] <= 999999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

Length ([Length] >= 0 and [Length] <= 99999)

ModEstorN ([ModEstorN] >= 0 and [ModEstorN] <= 9999)

pCafeID ([pCafeID] >= 0 and [pCafeID] <= 999999999)

pcVersionID ([pcVersionID] >= 0 and [pcVersionID] <= 999999)

Permanent ([Permanent] >= 0 and [Permanent] <= 1)

PrintBuyer ([PrintBuyer]>=(0) AND [PrintBuyer]<=(9999999))

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

QtyIndex ([QtyIndex] >= 0 and [QtyIndex] <= 5)

Quantity1 ([Quantity1]>=(-1) AND [Quantity1]<=(999999999))

Quantity2 ([Quantity2]>=(-1) AND [Quantity2]<=(999999999))

Quantity3 ([Quantity3]>=(-1) AND [Quantity3]<=(999999999))

Quantity4 ([Quantity4]>=(-1) AND [Quantity4]<=(999999999))

Quantity5 ([Quantity5]>=(-1) AND [Quantity5]<=(999999999))

Quote ([Quote] >= (-999999999) and [Quote] <= 999999999)

RFEDocumentN ([RFEDocumentN] >= 0 and [RFEDocumentN] <= 9999999)

SalesRepN ([SalesRepN] >= 0 and [SalesRepN] <= 999999)

StdMarkup ([StdMarkup] >= (-100) and [StdMarkup] <= 1000)

TSPAddl ([TSPAddl] >= (-999999999) and [TSPAddl] <= 999999999)

Width ([Width] >= 0 and [Width] <= 99999)

Page 213JohnsonGroup

Page 214: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstProduct Est Product

This table contains the list of products available within an Estimating 3

estimate.

Indexes on Description

IssNum, ProductNum Primary key, clustered

TypeColumn

EstNum int Estimate number.

IssNum int Issue number.

Relates to: Estimates table

ProductNum int Product number.

Description nvarchar Description of product.

Width decimal (10,4) Width of finished product.

Length decimal (10,4) Length of finished product.

VaryingSizes bit Whether components used in product have varying dimensions.

CustomerPartN varchar (20) The customer's assigned part number, if any, for this product.

ConstraintColumn

Field Constraints

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

Length ([Length]>=(0) AND [Length]<=(99999))

ProductNum ([ProductNum]>=(-1) AND [ProductNum]<=(99999))

Width ([Width]>=(0) AND [Width]<=(99999))

Page 214JohnsonGroup

Page 215: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstProductComp Est Product Comp

This table lists the components to be included in a particular product for an

estimate.

Indexes on Description

IssNum, ProductNum,

CompNum

Primary key, clustered

TypeColumn

EstNum int Estimate number.

IssNum int Issue number.

Relates to: Estimates table

ProductNum int Product number.

CompNum int Component number.

CompCnt smallint Multiple for this component in the product

ConstraintColumn

Field Constraints

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum]>=(0) AND [CompNum]<=(99999))

EstNum ([EstNum]>=(0) AND [EstNum]<=(99999999))

IssNum ([IssNum]>=(1) AND [IssNum]<=(999999999))

ProductNum ([ProductNum]>=(0) AND [ProductNum]<=(99999))

Page 215JohnsonGroup

Page 216: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: EstVersion Est Version

Provides the current version of Estimating 3 installed on this server/client.

Allows for verification that the local working database is synchronized

with the standards and the server.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use.

Est3Vers varchar (10) Current Estimating version ( for compatiblity with the application)

DateLastMod datetime Date the standards were last modified.

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 216JohnsonGroup

Page 217: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGIAsmblyHdr FGI Assembly Hdr

This table records work orders for an assembly for

a finished goods "kit". Once the assembly has been

done and the work order "posted", records are deleted

from this file and the corresponding table FGIAsmDetail.

Indexes on Description

AssemblyNumber Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

FGIAsmDetail AssemblyNumber

TypeColumn

AssemblyNumber int Assembly/work order number.

This number will be recorded in the finished

goods transaction file under reference number

whenever an assembly is posted.

KitItemNumber int Finished Goods item number for the "lead item"

for a kit.

Relates to: FGInvMaster table

AssemblyDate datetime Date you want the material added or subtracted

from inventory asof.

WorkOrderDate datetime Date the work order is entered.

Quantity int Quantity of kits to be assembled

UpdateHeader tinyint This value is either 0 (no) or 1 (yes) depending

on whether or not you want the finished goods

item header updated with the assembled cost of

the item.

LaborCostUnit decimal (15,3) If the finished goods item header is updated,

and you want some portion of the costs to be

recorded as labor costs you would input a value

for this field. Otherwise the entire cost of

the item will be recorded as a material cost.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

AssemblyNumber ([AssemblyNumber] >= 1 and [AssemblyNumber] <= 9999999)

KitItemNumber ([KitItemNumber] >= 0 and [KitItemNumber] <= 9999999)

LaborCostUnit ([LaborCostUnit] >= 0 and [LaborCostUnit] <= 999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 9999999)

UpdateHeader ([UpdateHeader] >= 0 and [UpdateHeader] <= 1)

Page 217JohnsonGroup

Page 218: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGIAsmDetail FGI Asm Detail

This file records detail lines for a work order for assembly of a finished

goods kit.

Indexes on Description

AssemblyNumber,

LLRecNum

Primary key, clustered

ItemNumber Nonclustered

TypeColumn

AssemblyNumber int Assembly/work order number.

This number will be recorded in the finished

goods transaction file under reference number

whenever an assembly is posted.

Relates to: FGIAsmblyHdr table

ItemNumber int Finished goods item number of a component of a kit

Relates to: FGInvMaster table

Quantity int Quantity of a component of a kit

LLRecNum int identity Unique key

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

AssemblyNumber ([AssemblyNumber] >= 0 and [AssemblyNumber] <= 9999999)

ItemNumber ([ItemNumber] >= 0 and [ItemNumber] <= 9999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 9999999)

Page 218JohnsonGroup

Page 219: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGInvDetail FG Inv Detail

The FGInvDetail table contains all additions and withdrawals posted

against inventory items in the FGInvMaster. Additions and adjustments

and withdrawals are recorded by fgpost and can be viewed through

FinishedGoodsInventory.

Indexes on Description

ItemN, LLRecNum Primary key, clustered

TypeColumn

ItemN int A unique number identifying each item. Required.

Relates to: FGInvMaster table

TransacDate datetime Date the transaction occurred. For withdrawals,

this is the date on the packing list.

TransacType tinyint Type of transaction this record represents.

0=Balance Frwd, 1=Addition, 2=Positive Adj.,

3=Withdrawal, 4=Negative Adj.

RefN int Reference number of this transaction.

Meaning varies according to the source of the

transaction (see value of :src field)

if source = fginv, ref# is user-defined

if source = receive, ref# is po number

if source = close/post, ref# is job number

if source = fgpl, ref# is order number

if source = fgasb, ref# is assembly number

if source=fgdist, ref# is distribuiton number

if source=fgpurge , ref# is zero

if source=fgirec, ref# is blank

Quantity int Quantity that was added or withdrawn.

ORCostUnit decimal (15,4) Cost per unit for this transaction. Only valid

for additions.

ORPriceUnit decimal (15,4) Price per unit for this transaction. Only valid

for withdrawals.

PackingListN int Packing list number for this transaction.

Meaning varies according to the source of the

transaction (see value of sourceoftrans field)

if source = fginv, value is user-defined

if source = receive, value is po line item number

if source = close/post, value is zero

if source = fgpl, value is shipment number

if source = fgasb, value is assembled item number

if source = fgdist, ref# is item number if item distributed

if source = fgpurge , ref# is zero

Page 219JohnsonGroup

Page 220: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvDetail FG Inv Detail

SourceOfTrans smallint Indicates the program that wrote this transaction

to the file. Legal values are:

1 = fginv

2 = receive

3 = close/post

4 = fgpl

5 = fgpurge

6 = fgasb

7 = fgdist

8 = manhat

9 = fgirec

LLRecNum int identity Unique key

UserText varchar (100) 100 character user comments field

if source = fgirec (reconciliation), comment contains reconciliation comment.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

ItemN ([ItemN] >= 0 and [ItemN] <= 9999999)

ORCostUnit ([orcostunit] >= 0 and [orcostunit] <= 999999999)

ORPriceUnit ([ORPriceUnit] >= 0 and [ORPriceUnit] <= 999999)

PackingListN ([packinglistn] >= 0 and [packinglistn] <= 999999999)

Quantity ([Quantity] >= (-99999999) and [Quantity] <= 99999999)

RefN ([refn] >= (-999999999) and [refn] <= 999999999)

SourceOfTrans ([SourceOfTrans] >= 0 and [SourceOfTrans] <= 99)

TransacType ([TransacType] >= 0 and [TransacType] <= 4)

Page 220JohnsonGroup

Page 221: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGInvMaster FG Inv Master

The FGInvMaster table lists all of the finished goods items maintained in

stock or produced for resale by your company. Use fginv to add and edit

records and to add quantities. Additions to inventory quantities and

withdrawals from inventory are listed in the FGInvDetail table. Order

templates are maintained in the KitTemplate table.

Indexes on Description

ItemN Primary key, clustered

ItemID Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

FGInvDetail ItemN

FGItemDetailedImages FGItemN

FGPricing ItemN

KitTemplate ItemN

Related Tables

AccountngInput FGIItemN

FGIAsmblyHdr KitItemNumber

FGIAsmDetail ItemNumber

FGIOrderDetl ItemN

KitTemplate ItemNumber

OpenJob FGIItemNumber

POItem FGIItemN

ShipmentItems FGItemNum

WinInvJobDetail FGItemNumber

TypeColumn

ItemN int A unique number identifying each item. Required.

ItemID varchar (20) An alphanumeric identifier for the item. There is a Finished Good system

parameter, "FG Unique Item ID" (11338) that, when set, requires new values for

ItemID to be unique. Note, this field is marked * (required) when the param is

set. When the parameter is set the field is read-only after the save; and item ID

(in place of item number) is used as the primary lookup for items.

ItemDescr varchar (40) The name of the finished goods item. For

example:

Small Carton

Line Film 20 x 24

Warm Red B13703

ProductClass int Same as product codes given in table ProductCode

Relates to: ProductCode table

ReorderPoint int Inventory quantity at which item should be

reordered.

CostUnit decimal (15,4) The unit cost of the item.

If the parameter FG to Job Costing is turned on, this

value is the sum of MatCostUnit (material cost/unit)

and LabCostUnit (labor cost/unit)

PriceUnit decimal (15,4) Default price per unit.

Units tinyint Costed and priced in units of:

(0=each, 1= 10, 2=100, 3=1000)

Page 221JohnsonGroup

Page 222: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvMaster FG Inv Master

0 = ea

1 = tens

2 = hundreds

3 = thousands

UnitsPkg int Number of items in a standard package.

WeightPkg decimal (11,4) Weight of a standard package.

PkgType varchar (15) Type of package (carton, shrink-wrap etc).

PkgDimensions varchar (30) Package dimensions. If the Manhattan module is in use format this field as length

X width X height. Spaces are optional. Upper or lower case X is optional.

Example 14 x 8 x 6

CustomerN int If the stock (usually paper) was ordered for a

specific customer, the number of the customer for

whom it was ordered. This applies to items in

the detailed inventory system only.

Relates to: Customer table

StorageLoc varchar (20) The storage location of the item: warehouse,

shelf, bin, etc.

PermanentItem tinyint Flag indicating if this item is permanent or

temporary. Temporary items are deleted during a

purge if the quantity on hand is zero. (0=no,

1=yes)

QuanOnHand int Quantity on hand (calculated by programs).

CustomerOwned tinyint Flag indicating if the stock is actually owned by

the customer. (0=no, 1=yes)

0 = No

1 = Yes

MatCostUnit decimal (15,4) Material component of the cost/unit. Is only

'activated' if the parameter FG to Job Costing is turned

on. Can be updated automatically by close/post

if the parameter FG Matl Labor Cost Update is turned on.

LabCostUnit decimal (15,4) Labor component of the cost/unit. Is only

'activated' if the parameter FG to Job Costing is turned

on. Can be updated automatically by close/post

if the parameter FG Matl Labor Cost Update is turned on.

LastJobN int This value is used as the default for job number

for the sales analysis data in ARTransaction when a

finished goods item is invoiced. It can be filled

in by the user, but is filled in automatically

when a finished goods item is created from the

JobVista program, or when a job is closed or

'partialled' out to finished goods.

Relates to: OpenJob table

Page 222JohnsonGroup

Page 223: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvMaster FG Inv Master

FreightItem tinyint Flag indicating whether this item should be posted

to the account used for freight for finished

goods shipments (FG Default Freight Acct) or to the

customer's default sales account when shipping

material out of finished goods.

TemplateType tinyint If there is a template for this item, this field

indicates the type. Valid values are:

0=assembly template

1=distribution template

Note that you cannot have both types valid at once

WebItem smallint This is a 0 or 1 flag to indicate whether to post this item to the website. 0=No,

1=Yes

LongDescr varchar (1,000) A 1000 chr description for use on the website.

Handling decimal (15,4) A one time charge applied once per line item on an order.

MTOEstNo int Make to order estimate number for an FG inventory item.

Replacement int The Item number of an alternate that can be used if the original is discontinued

or out of stock.

DateCreated datetime The date the Inventory item record was created. It can be set by the user. It is for

user reference only. New items and Item imports default to the current day.

DateChanged datetime This is the date the inventory item record was last changed. It updates

automatically when the user saves. Adding a transaction does not update this

date.

Active varchar (1) This can take the value if A,I or D in the table and indicates the item is Active,

Inactive or Discontinued. It is intended to indicate the item status which impacts

the ability to order and/or sell an item. This status operates in conjuction with

DateDiscon (discontinued date) and/or DateInactive (inactive date).

DLCC datetime This column is used as part of cycle counting. It is the date on which this item

was last counted. This date, along with the CycleABC code, can be used to

determine when the next physical count should take place.

CycleABC varchar (1) The ABC code in cycle counting indicates the activity level of the item and the

number of times it should be counted in a given period. The code assignment is

user maintained and defaults to C.

DateSentToManhattan datetime The last date and time that header information about this inventory item was sent

to Manhattan. This applies only to header information such as the description,

not transaction detail.

DateDiscon datetime This can preserve the date the item was discontinued. It works in conjunction

with the item status (Active field). It is read-only when the Item status (Active

field = 'I') is 'inactive.' It is today or a date in the past when the Item status

(Active field = 'D') is 'discontinued.'

SourceofQuote tinyint This specifies whether the value in the MTOEstNo column is from Estimating 3

or QuickQuote.

Valid values are:

3 = Est3

4 = QQ

Page 223JohnsonGroup

Page 224: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvMaster FG Inv Master

AllowUSAData bit This field determines for given finished good item user can add USAData

mailing list or not in Printersite Fullfillment.

AllowFileUpload bit Thsi field determines for given finished good item user can upload file or not in

Printersite Fullfillment.

AllowWebBackOrder bit This field determines for finished good item user can place back order or not in

Printersite Fullfillment.

UnitLength decimal (14,5) Field is decimal (14,5). Null is not allowed; default is 0. It will be used (by

Manhattan) in conjunction with other unit fields (UnitWidth and UnitHeight) to

determine package size.

UnitWidth decimal (14,5) Field is decimal (14,5). Null is not allowed; default is 0. It will be used (by

Manhattan) in conjunction with other unit fields (UnitLength and UnitHeight) to

determine package size.

UnitHeight decimal (14,5) Field is decimal (14,5). Null is not allowed; default is 0. It will be used (by

Manhattan) in conjunction with other unit fields (UnitLength and UnitWidth) to

determine package size.

DateInactive datetime This can preserve the date the item was made inactive. It works in conjunction

with the item status (Active field). It is read-only when the Item status (Active

field = 'I') is 'inactive.' It is today or a date in the past when the Item status

(Active field = 'I') is 'inactive.'

GLAcctN int The default G/L account number to use when you record a vendor purchase

order invoice for this FG item. This is the GLAccounts AccountN.

Relates to: GLAccounts table

DepartmentN int The default department to use when you record a vendor purchase order invoice

for this FG item. This is the DeptNames DeptNo.

Relates to: DeptNames table

DefaultGLSalesAcct int The default G/L sales account number for this FG item; used for automatic

distribution. This is the GLAccounts AccountN.

Relates to: GLAccounts table

DefaultAcctgDpt int The default sales department for this FG item; used for automatic distribution.

This is the DeptNames DeptNo.

Relates to: DeptNames table

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

Page 224JohnsonGroup

Page 225: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvMaster FG Inv Master

ConstraintColumn

Field Constraints

CostUnit ([CostUnit] >= 0 and [CostUnit] <= 999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

CustomerOwned ([CustomerOwned] >= 0 and [CustomerOwned] <= 1)

DefaultAcctgDpt ([DefaultAcctgDpt]>=(0) AND [DefaultAcctgDpt]<=(9999999))

DefaultGLSalesAcct ([DefaultGLSalesAcct]>=(0) AND [DefaultGLSalesAcct]<=(999999999))

DepartmentN ([DepartmentN]>=(0) AND [DepartmentN]<=(9999999))

FreightItem ([FreightItem] >= 0 and [FreightItem] <= 1)

GLAcctN ([GLAcctN]>=(0) AND [GLAcctN]<=(999999999))

Handling ([Handling] >= 0 and [Handling] <= 999999)

ItemN ([ItemN] >= 1 and [ItemN] <= 9999999)

LabCostUnit ([LabCostUnit] >= 0 and [LabCostUnit] <= 1000000)

LastJobN ([LastJobN] >= 0 and [LastJobN] <= 999999999)

MatCostUnit ([MatCostUnit] >= 0 and [MatCostUnit] <= 1000000)

PermanentItem ([PermanentItem] >= 0 and [PermanentItem] <= 1)

PriceUnit ([PriceUnit] >= 0 and [PriceUnit] <= 1000000)

ProductClass ([ProductClass] >= 0 and [ProductClass] <= 9999999)

QuanOnHand ([QuanOnHand] >= (-99999999) and [QuanOnHand] <= 99999999)

ReorderPoint ([ReorderPoint] >= 0 and [ReorderPoint] <= 9999999)

SourceofQuote ([SourceofQuote] >= 0 and [SourceofQuote] <= 4)

TemplateType ([TemplateType] >= 0 and [TemplateType] <= 1)

UnitHeight ([UnitHeight] >= 0 and [UnitHeight] <= 999999999)

UnitLength ([UnitLength] >= 0 and [UnitLength] <= 999999999)

Units ([Units] >= 0 and [Units] <= 3)

UnitsPkg ([UnitsPkg] >= 0 and [UnitsPkg] <= 99999)

UnitWidth ([UnitWidth] >= 0 and [UnitWidth] <= 999999999)

WeightPkg ([WeightPkg] >= 0 and [WeightPkg] <= 999999)

Page 225JohnsonGroup

Page 226: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGInvReport FG Inv Report

FGInvReport is used to hold temporary data for the reports/logs that are

run after the user does finished goods inventory reconciliation or purge.

The data is transient, and unless someone is actually in the process of

running a reconciliation report or a purge, the table could be completely

empty. However, data is normally retained for several days so that the

data can be reviewed if there is a question about the reconcilation or the

purge.

Indexes on Description

Seqno Primary key, clustered

TypeColumn

Seqno int identity Primary key

ReportDate datetime Date that the reconciliation or purge is run (current date).

ReportNum int number of the current report being run, used to determine which records to pull

for the reconciliation reports or purge log

ItemN int Used for FG reconciliation reports and FG purge log. For FG reconciliation

reports, this field contains the actual ItemN. For FG purge, this field contains

the identifier for items (ItemN), shipments (ShipmentNumber), and/or orders

(OrderN)

ItemID varchar (20) Used for FG reconciliation reports and purge log. For FG reconciliation reports

this field contains the FG Item ID. For FG purge log, this field contains the type

of purge record stored:

"O" - orders

"S" - shipments

"Z" - items that have had negative balances adjusted to zero

"T" - temporary items

"N" - inactive items

"I" - items that have had their detail records up to and including the purge date

deleted after each qty is rolled into one balance forward record

"WI" - image for the item. ItemDesc column has image name.

"WP" - pricing for the item

"WK" - kit template

"WKI" - kit template detail

ItemDesc varchar (50) item description (used for reconciliation reports). For ItemType "WI" records

(created by purge), the name of the image.

RepQty int Used for both reconciliation reports and the purge log. For reconciliation

reports, shows quantity on hand (according to the system) from FGInvmaster.

For the purge, this field could contain the adjustment to make negative balances

zero or the quantity for the balance forward when item detail transactions are

rolled up and purged.

ActQty int actual quantity per count (used for reconciliation reports)

Variance int difference between reported and actual qtys (used by reconciliation reports)

Cost decimal (15,4) unit cost of FG item (used for reconciliation reports)

Price decimal (15,4) unit price of FG item (not used for anything at this time)

Units varchar (10) units from FGInvMaster (used by reconciliation reports)

Page 226JohnsonGroup

Page 227: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGInvReport FG Inv Report

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

ActQty ([ActQty]>=(-99999999) AND [ActQty]<=(99999999))

Cost ([Cost]>=(-999999) AND [Cost]<=(999999))

Price ([Price]>=(-999999) AND [Price]<=(999999))

RepQty ([RepQty]>=(-99999999) AND [RepQty]<=(99999999))

Variance ([Variance]>=(-99999999) AND [Variance]<=(99999999))

Page 227JohnsonGroup

Page 228: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGIOrderDetl FGI OrderDetl

The FG Order Detail file contains the lists of inventory items included on

each order. Order header records are stored in table FGIOrderMast. Orders

are created with Finished Goods Inventory, shipped with Shipping.

Indexes on Description

OrderN, OrderSeqN Primary key, clustered

ItemN Nonclustered

TypeColumn

OrderN int Order number; assigned manually or by

fgorder.

Relates to: FGIOrderMast table

OrderSeqN smallint Sequence number to indicate the order of the

items.

ItemN int Item number you are ordering. This must be an

item in the Inventory Master File.

Relates to: FGInvMaster table

LastPLN int Last packing list that was shipped for this order

OrderAuditN int A unique number associated with this line item on

the order. Assigned by the order program.

QtyOrdered int Quantity originally ordered.

QtyRemaining int Quantity remaining to ship.

Comments varchar (300) Comments about this item.

DateDue datetime Due date for this item.

ORPriceUnit decimal (15,4) Selling price for this item.

BillCustyn tinyint Flag indicating if the customer should be billed

for the item (0=no, 1=yes)

Finalyn tinyint Flag indicating whether there is a final shipment

for this order (0=no, 1=yes)

Handling decimal (15,4) A one time charge applied once per line item on an order. Originates in the

FGInvmaster except when there are price break tables and then it comes from

there.

FirstShipmentN int ID of the first shipment made on this line item. Used for billing handling

charges. The whole charge is billed on the first shipment and is omitted from

successive partials if any.

EstIssueN int Estimate issue number for print on demand item

FGDiscount decimal (12,2) Discount percent to apply to this line item

PromotionCode int The code number for an entry in the FGPromotionCode table. This allows you

to identify the promotion to which the order of a Finished Goods item can be

attributed.

Relates to: FGPromotionCode table

Page 228JohnsonGroup

Page 229: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGIOrderDetl FGI OrderDetl

SourceofQuote tinyint This specifies whether the value in the EstIssueN column is from Estimating 3 or

QuickQuote.

Valid values are:

3 = Est3

4 = QQ

TimeDue datetime Field holds the time component of an order item due date and time. To obtain

the due date and time together, use the DateDue field (also in the FGIOrderDetl

table) plus this field.

UserItemDesc varchar (500) A description of the product entered by the user on the PrinterSite Fulfillment

Web site. This description is identified as the additional description for the order

item in Finished Goods Inventory and JobVista. It is also available on shipping

labels and invoices

AttachedFileUrl varchar (500) The URL for the file attached to an item in a PrinterSite Fulfillment order. This

URL is available in Finished Goods Inventory and Shipping.

CustExpenseCodeID varchar (24) Referencing column "CustExpenseCodeID" in CustomerExpenseCode table.

USADataAttached bit This field shows, a USADATA mailing list is attached to given finished good

order line item or not.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

BillCustyn ([BillCustyn] >= 0 and [BillCustyn] <= 1)

EstIssueN ([EstIssueN] >= 0 and [EstIssueN] <= 999999999)

FGDiscount ([FGDiscount] >= 0 and [FGDiscount] <= 100)

Finalyn ([Finalyn] >= 0 and [Finalyn] <= 1)

Handling ([Handling] >= 0 and [Handling] <= 999999)

ItemN ([ItemN] >= 0 and [ItemN] <= 9999999)

LastPLN ([LastPLN] >= 0 and [LastPLN] <= 999999999)

OrderAuditN ([OrderAuditN] >= 0 and [OrderAuditN] <= 9999999)

OrderN ([OrderN] >= 1 and [OrderN] <= 999999999)

OrderSeqN ([OrderSeqN] >= 0 and [OrderSeqN] <= 9999)

ORPriceUnit ([ORPriceUnit] >= 0 and [ORPriceUnit] <= 999999)

PromotionCode ([PromotionCode] >= 0 and [PromotionCode] <= 9999999)

QtyOrdered ([QtyOrdered] >= 0 and [QtyOrdered] <= 9999999)

QtyRemaining ([QtyRemaining] >= 0 and [QtyRemaining] <= 9999999)

SourceofQuote ([SourceofQuote] >= 0 and [SourceofQuote] <= 4)

Page 229JohnsonGroup

Page 230: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGIOrderMast FGI Order Mast

The FG Order Master file contains one header record for each order for

finished goods. Orders are created and maintained through the fgorder

program; they are shipped with the fgpl program. The list of items on the

order is contained in FGIOrderDetl table.

Indexes on Description

OrderN Primary key, clustered

CustomerN Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

FGIOrderDetl OrderN

Related Tables

Shipments FGOrder

WebOrderDetail OrderN

TypeColumn

OrderN int Order number; assigned manually or by

Finished Goods Inventory.

CustomerN int Customer Number from table Customer.

Relates to: Customer table

PON varchar (14) Customer's purchase order number.

ShipMethodN int Key number for ship method. If this field is

left blank, you may enter data into the Ship Via

field directly. Otherwise, the Ship Via

information is taken from the Ship Methods table

.

Relates to: ShipMethods table

ShipVia varchar (30) Text for shipping method. May be entered directly or by entering a key from

table ShipMethods in the Ship Method # field.

SalesmanN int Salesperson number from table Salesperson.

Relates to: Salesperson table

DateEntered datetime Order Date.

BillForShip tinyint Flag indicating if the ship $ should be added to

the invoice (0=no,1=yes)

OrderStatus tinyint Flag indicating order status. (0=open(pending) , 1=closed(shipped),

2=cancelled)

0 = Pending

1 = Shipped

2 = Cancelled

Comments varchar (60) General comments about the order.

WebOrderID int The number assigned to the order by the web site by which the web site user

references it.

WebContact int Not Used

WebPmtType varchar (12) Designates how payment is to be made should contain "po" or "creditcard"

Page 230JohnsonGroup

Page 231: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FGIOrderMast FGI Order Mast

OrderType int User controlled field using alternate table for list of types.

It could indicate the order is free samples or replacements for defective items or

any other partioning the user might require.

This is an important key field if Manhattan warehousing is installed. Each entry

is associated to different procedures in Manhattan so no new ones should be

added without coordination.

Relates to: FGOrderType table

NoPartials tinyint Flag indicating if Partials are allowed on this order

0 = Partials allowed

1= Partials prohibited

OrderSource int User controlled field using alternate table for list of sources. This could be used

to indicate whether an order was received via the web or entered manually.

Relates to: FGOrderSource table

PrintBuyer int Stores the number of the PrintBuyer designated for this order. This number

corresponds to the CustShipAddr.GlobalID. When a customer number is

entered/changed on an FG order, this value is defaulted to the default print

buyer, if one has been designated; otherwise, the default is zero. If multiple print

buyers exist and the order is not read-only, the user is able to choose another

print buyer from a dropdown list on the FG order.

Relates to: CustShipAddr table

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

BillForShip ([BillForShip] >= 0 and [BillForShip] <= 1)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

OrderN ([OrderN] >= 1 and [OrderN] <= 999999999)

OrderSource ([OrderSource] >= 0 and [OrderSource] <= 9999999)

OrderStatus ([OrderStatus] >= 0 and [OrderStatus] <= 2)

OrderType ([OrderType] >= 0 and [OrderType] <= 9999999)

PrintBuyer ([PrintBuyer]>=(0) AND [PrintBuyer]<=(9999999))

SalesmanN ([SalesmanN] >= 0 and [SalesmanN] <= 9999999)

ShipMethodN ([ShipMethodN] >= 0 and [ShipMethodN] <= 9999999)

Page 231JohnsonGroup

Page 232: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGItemDetailedImages FG Item Detailed Images

Stores status information for detailed images for finished goods items

Indexes on Description

FGItemN, ImageName Primary key, clustered

TypeColumn

FGItemN int Item number of finished good item.

Relates to: FGInvMaster table

ImageName varchar (50) Unique name of image for the finished goods item.

Enabled bit Enabled status of image.

Deleted bit Delete status of image.

SentToPSFDate datetime Date when image was last sent to PrinterSite Fulfillment

UpdatedDate datetime Date on which the image was last updated.

ImageDesc varchar (255) he description of the detailed image. If provided, it is displayed on the Web site

along with the image.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

Page 232JohnsonGroup

Page 233: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGOrderSource FG Order Source

This table can be used to list the sources for Finished Goods orders.

Examples include Web and Manual Entry.

Indexes on Description

SourceN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

FGIOrderMast OrderSource

TypeColumn

SourceN int A unique number used to identify a Finished Goods Order source.

Description varchar (20) The description of a Finished Goods Order source.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

SourceN ([SourceN] >= 0 and [SourceN] <= 9999999)

Page 233JohnsonGroup

Page 234: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGOrderType FG Order Type

FG Order Type

User defined set of codes that can be used when selecting

orders.

Ex:

1 = Standard

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

FGIOrderMast OrderType

TypeColumn

KeyN int Order type key

Description varchar (20) Order type description

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

Page 234JohnsonGroup

Page 235: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGPricing FG Pricing

Finished Goods price break tables contains 1 record per quantity range

Indexes on Description

ItemN, Level Nonclustered

TypeColumn

ItemN int links into FginvMaster to field ItemN

Relates to: FGInvMaster table

Level int Internal unique sequence number - sequences within an ItemN

BreakQty int Minimum amount for current price bracket range. Range ends on BreakQty of

next record minus 1. If there is no next record the prices apply for all all

quantities greather than or equal BreakQty

PricePct decimal (12,4) The percent of the PriceUnit in FgInvMaster for this break level.

The extended price is Quantity ordered times PricePct times PriceUnit.

HandlingPct decimal (12,2) A handling charge percentage based on the Handling field in FGInvMaster. It is

a one time charge per line item but not multiplied by the quantity.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

BreakQty ([BreakQty] >= 0 and [BreakQty] <= 9999999)

HandlingPct ([HandlingPct] >= 0 and [HandlingPct] <= 9999999)

PricePct ([PricePct] >= 0 and [PricePct] <= 9999999)

Page 235JohnsonGroup

Page 236: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FGPromotionCode FG Promotion Code

This table can be used to list Promotional Codes to which orders of

Finished Goods items can be tied.

Indexes on Description

PCNum Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

FGIOrderDetl PromotionCode

TypeColumn

PCNum int A unique number assigned to a promotional code.

PCDesc varchar (20) The description of a Finished Goods Order promotional code.

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ConstraintColumn

Field Constraints

PCNum ([PCNum] >= 0 and [PCNum] <= 9999999)

Page 236JohnsonGroup

Page 237: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FileMaintDefs File Maint Defs

This table determines the categories for table maintenance

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

MaintFiles KeyN

TypeColumn

KeyN int numeric key for the table

CategoryDesc varchar (25) description of the categories (e.g. Job Costing)

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

Page 237JohnsonGroup

Page 238: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FinancialFormat Financial Format

This table defines the items and some of the formatting of the Balance

Sheet and Income Statement that your system provides. The records in

this table define both literals, totalling ranges, totalling lines, and detail

lines for both the Balance Sheet and Income Statement. Detail lines are

made up of the sum of balances of one or more "Supporting Schedule"

items having a reference to the same Financial Format record. "Supporting

Schedule" items in turn are the sum of transactions for each General

Ledger Account having the same "Supporting Schedule".

Indexes on Description

FinancialsLine Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

GLAccounts CashFlowFrmt

SupportingSchd Financialsline

TypeColumn

FinancialsLine int The identifier of this entry on your Balance Sheet or Income Statement.

ReportLiteral varchar (30) The literal to be printed on the Balance Sheet or Income Statement for this

Financial Format line.

TypeOfAction smallint Indicates the type of action to be taken.

0 = Print item

1 = Start a total range

2 = Print a total

3 = Print Descrip-Header

4 = Print Desc-Rt Indent

5 = Skip a line

6 = Draw single line

7 = Draw double line

8 = Start new page

DebitCredit tinyint Indicates if the expected balance for this entry is a debit or a credit. Used to

control the numerical sign on the financial reports.

0 = Debit

1 = Credit

WhichStatement tinyint Indicates on which financial report this line appears.

0 = Balance sheet

1 = Income statement

2 = Cash Flow

ConstraintColumn

Field Constraints

DebitCredit ([DebitCredit] >= 0 and [DebitCredit] <= 1)

FinancialsLine ([FinancialsLine] >= 0 and [FinancialsLine] <= 29999)

TypeOfAction ([TypeOfAction] >= 0 and [TypeOfAction] <= 99)

WhichStatement ([WhichStatement] >= 0 and [WhichStatement] <= 2)

Page 238JohnsonGroup

Page 239: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Page 239JohnsonGroup

Page 240: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FiscalYears Fiscal Years

If you use accounting periods other than calendar months, you must define

the fiscal year start date and the period end dates in this table. You also

must set the parameter 'Use Non-Calendar Periods' (10675) to indicate that

this table should be used for determining accounting period dates. Note

that if your fiscal year starts on a date other than January 1 and your

accounting periods are calendar months, you do NOT need to use this

table. It is not necessary to use all thirteen periods for a fiscal year.

Indexes on Description

YearStartDate Primary key, clustered

TypeColumn

YearStartDate datetime The date marking the beginning of the fiscal year.

Period01End datetime The date marking the end of the first accounting period for this fiscal year.

Period02End datetime The date marking the end of the second accounting period of this fiscal year.

Period03End datetime The date marking the end of the third accounting period of this fiscal year.

Period04End datetime The date marking the end of the fourth accounting period of this fiscal year.

Period05End datetime The date marking the end of the fifth accounting period of this fiscal year.

Period06End datetime The date marking the end of the sixth accounting period of this fiscal year.

Period07End datetime The date marking the end of the seventh accounting period of this fiscal year.

Period08End datetime The date marking the end of the eighth accounting period of this fiscal year.

Period09End datetime The date marking the end of the ninth accounting period of this fiscal year.

Period10End datetime The date marking the end of the tenth accounting period of this fiscal year.

Period11End datetime The date marking the end of the eleventh accounting period of this fiscal year.

Period12End datetime The date marking the end of the twelfth accounting period of this fiscal year.

Period13End datetime The date marking the end of the thirteenth accounting period of this fiscal year.

ConstraintColumn

Field Constraints

Page 240JohnsonGroup

Page 241: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FixedAssets Fixed Assets

The Fixed Asset File (134) contains a list of your

company's fixed assets. All fields are entered through

acctmnt. The file is used by dprecs to print the

Depreciation Schedule and to create Group 7

transactions. The transactions are checked and loaded

into the Accounting Input File (114), ready for

posting.

Indexes on Description

AssetN Primary key, clustered

TypeColumn

AssetN int Unique number identifing the fixed asset.

Description varchar (20) Description of the fixed asset.

SerialN varchar (10) Serial number of the asset.

Cost decimal (15,2) Original cost of the asset, used as the basis for

depreciation.

SalvageValue decimal (15,2) Salvage value of the asset.

UsefulLife smallint The useful life of the asset, in years.

BookMethod tinyint The depreciation method to use for assets

depreciated by the Book Method. NOTE: The MACRS

method ONLY applies to the Tax Method.

@CODES=35

1 = Straight Line

2 = Double Declining Bal

3 = Sum of Year's Digits

4 = 150% Declining Bal.

5 = ACRS Method

6 = MACRS Method

DeprecStart datetime The year and month to start depreciating, in the

format YYMM. This will be converted internally to

YYYMM according to the century conversion

algorithm.

AssetACN int General ledger asset account number for the

asset, against which depreciation is applied.

Relates to: GLAccounts table

AddtlDeprecn decimal (15,2) Additional first year depreciation amount at 20%.

AcquiredDate datetime Year and month the asset was acquired, in the

format YYMM. This will be converted internally to

YYYMM according to the century conversion

algorithm.

DeprExpACN int The Depreciation Expense Account Number against

which to apply depreciation expense.

Relates to: GLAccounts table

Page 241JohnsonGroup

Page 242: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FixedAssets Fixed Assets

AccumDeprACN int The Accumulated Depreciation Account Number

against which to apply accumulated depreciation.

Relates to: GLAccounts table

Location varchar (10) The location of the asset.

LCCN int The Labor Cost Center Number in which department

the asset is located. Used to report

depreciation by department.

Relates to: LaborCostCntr table

DivisionN int The number of the division in which the asset is

located. Used to report depreciation by

division.

Relates to: AcctDivisions table

TaxMethod tinyint The depreciation method to use for assets

depreciated by the Tax Method.

@CODES=35

1 = Straight Line

2 = Double Declining Bal

3 = Sum of Year's Digits

4 = 150% Declining Bal.

5 = ACRS Method

6 = MACRS Method

Status tinyint Indicates if the asset has been retired.

0=active; 1=retired. Retired assets do not

appear on the Depreciation Report and do not have

transactions created for them.

0 = Active

1 = Retired

TaxUsefulLife smallint The useful life for tax purposes, in years.

DeprExpDeptN int The department number (associated with the

Depreciation Expense Account number) to which

depreciation expense will be applied. Departments

are defined in file 122.

Relates to: DeptNames table

Page 242JohnsonGroup

Page 243: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: FixedAssets Fixed Assets

ConstraintColumn

Field Constraints

AccumDeprACN ([AccumDeprACN] >= 0 and [AccumDeprACN] <= 999999999)

AddtlDeprecn ([AddtlDeprecn] >= 0 and [AddtlDeprecn] <= 999999)

AssetACN ([AssetACN] >= 0 and [AssetACN] <= 999999999)

AssetN ([AssetN] >= 1 and [AssetN] <= 999999)

BookMethod ([BookMethod] >= 0 and [BookMethod] <= 6)

Cost ([Cost] >= 0 and [Cost] <= 9999999)

DeprExpACN ([DeprExpACN] >= 0 and [DeprExpACN] <= 999999999)

DeprExpDeptN ([DeprExpDeptN] >= 0 and [DeprExpDeptN] <= 9999999)

DivisionN ([DivisionN] >= 0 and [DivisionN] <= 9999)

LCCN ([LCCN] >= 0 and [LCCN] <= 9999999)

SalvageValue ([SalvageValue] >= 0 and [SalvageValue] <= 999999)

Status ([Status] >= 0 and [Status] <= 1)

TaxMethod ([TaxMethod] >= 0 and [TaxMethod] <= 6)

TaxUsefulLife ([TaxUsefulLife] >= 0 and [TaxUsefulLife] <= 999)

UsefulLife ([UsefulLife] >= 0 and [UsefulLife] <= 999)

Page 243JohnsonGroup

Page 244: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FormList Form List

Header table for lists of forms that are used by the Job Ticket or Logic

Customization. For example, one list might be job ticket forms, another

might be customer forms, a third could be prospect forms.

Some lists are predefined and known to Logic applications, others are

custom to each site.

Indexes on Description

ListID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

FormListContent ListID

TypeColumn

ListID varchar (20) Unique identifier of list. Should be a short, meaningful string as it may be used

to specify startup arguments to the job ticket.

Name varchar (50) Name of list. This will be displayed to end users.

IsCustom bit Indicates whether this list is standard or custom. Standard lists can't be deleted.

The ListID of standard lists is known to one or more Logic applications.

Values:

0: custom (site-specific)

1: standard Logic list

RootTable varchar (20) Name of the "root table" of forms on this list. For standard lists (IsCustom = 0)

all forms on the list must have this table as the root. For example, all job ticket

forms must be rooted in OpenJob. Custom lists can contain tables rooted in any

permitted table, although it may be useful to organize by root table (e.g. one list

for prospect forms, another for customer forms, etc).

Type varchar (10) Type of form (job ticket, job vista custom tab, exploded form, etc). See define.h

in formlib VC++ project for definitions of types.

Although the type is really a property of the individual form, it is in the FormList

header because all forms on the same list must have the same type. We need the

type in order to relate entries on the form list to TextFile entries because

TextFileName isn't unique. You can have the same name for both a job ticket

form and a job vista custom tab.

MaximumListEntries int Maximum number of entries (forms / designs) that can appear in this list. This

refers to unique designs: the development and production versions of the same

design count as one design.

ConstraintColumn

Field Constraints

Page 244JohnsonGroup

Page 245: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FormListContent Form List Content

List of "job ticket" or other custom forms. Each row relates a form in the

TextFile table to a list in the FormList table.

Indexes on Description

ListID, TextFileName Primary key, clustered

TypeColumn

ListID varchar (20) Foreign key to FormList header table.

Relates to: FormList table

TextFileName varchar (100) Name of form. LInks to the TextFile table.

Sequence int Sequence in which forms on the list will be displayed to the end user.

ConstraintColumn

Field Constraints

Page 245JohnsonGroup

Page 246: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: FormTotalizer Form Totalizer

Used by PlantVista to display total gross and net for a job/form.

Indexes on Description

Job, LLRecNum Primary key, clustered

TypeColumn

Job int Job Number

Relates to: OpenJob table

FormN smallint Form number

MachineN int Press department

Relates to: Equipment table

EquipmentType smallint Equipment type:

10 = Cutter

20 = Folder

30 = CollatorSheetfed Press

45 = Flexo

50 = Singleweb Press

60 = Multiweb Press

70 = Stitcher

StartDate datetime Date the job/form started.

StartTime int Time the job/form started.

TotShiftGross varchar (10) Total gross accumulated on the current shift.

TotShiftNet varchar (10) Total net accumulated on the current shift.

TotFormGross varchar (10) Total gross accumulated on the form.

TotFormNet varchar (10) Total net accumulated on the form.

TotRunSecs varchar (10) Total seconds in run mode accumulated on the form.

PrintQty varchar (10) Quantity to print.

SequenceN varchar (9) Not used.

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

EquipmentType ([EquipmentType] >= 0 and [EquipmentType] <= 99)

FormN ([formn] >= 0 and [formn] <= 9999)

Job ([Job] >= 0 and [Job] <= 999999999)

MachineN ([MachineN] >= 0 and [MachineN] <= 999999)

StartTime ([StartTime] >= 0 and [StartTime] <= 999999)

Page 246JohnsonGroup

Page 247: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: GJBatch GJ Batch

General Journal batch table for Accounting input. Contains header

information for a single double-entry accounting transaction. Detail of GL

accounts to be posted is contained in the GJtransactions table. This table is

also used for the entry of non-invoiced checks. Data in this table will be

posted to the GLAccountData table and will be deleted when its

associated batch is deleted by the system (after the batch has been posted).

Indexes on Description

GJKey Primary key, clustered

BatchNumber, GJKey Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

GJTransactions GJKey

TypeColumn

GJKey int Unique key assigned by the system

BatchNumber int The number of the batch to which this transaction belongs.

Relates to: WinAcctBatch table

ReversalDate datetime Date to automatically reverse a general journal transaction.

Description varchar (60) Text that will be posted to the GLAccountData table for transactions that

comprise the complete double entry posting of this transaction.

TransactionAmt decimal (15,2) Amount of the check when used for non-invoiced checks.

DocumentRef varchar (14) The identification of the document that you want to use as a reference.

Address1 varchar (50) First line of the address when a non-invoiced check is written.

Address2 varchar (50) Second line of the address when a non-invoiced check is written.

Address3 varchar (50) Third line of the address when a non-invoiced check is written.

Address4 varchar (50) Fourth line of the address when a non-invoiced check is written.

CheckNumber int Check number input by the user when a non-invoiced check is written.

Status tinyint Used by the system when this batch contains a non-invoiced check. Indicates if

the check has been printed.

CheckImageN int The number used to locate the check image information that is stored in the

AcctCheckHeader and AcctCheckDetail tables. This number corresponds to

CheckHeaderN in the AcctCheckHeader table.

Relates to: AcctCheckHeader table

ConstraintColumn

Field Constraints

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 999999)

CheckImageN ([CheckImageN]>=(0) AND [CheckImageN]<=(999999999))

CheckNumber ([CheckNumber] >= 0 and [CheckNumber] <= 999999999)

GJKey ([GJKey] >= 1 and [GJKey] <= 999999)

Status ([Status] >= 0 and [Status] <= 9)

TransactionAmt ([TransactionAmt] >= (-999999999) and [TransactionAmt] <= 999999999)

Page 247JohnsonGroup

Page 248: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: GJTransactions GJ Transactions

Contains detail of accounts and amounts to comprise a GJ accounting

entry. Header information is contained in the associated table GJbatch.

Data in this table will be posted to the GLAccountData table and will be

deleted when its associated batch is deleted by the system (after the batch

has been posted).

Indexes on Description

GJKey, LLRecNum Primary key, clustered

TypeColumn

GJKey int Assigned internally by EFI Logic software. This relates the offset entries in this

table to the header entry in GJbatch table.

Relates to: GJBatch table

GLAccountNo int Account number from GLAccounts table.

Relates to: GLAccounts table

Department int Department number to charge for this transaction. A department number may

only be entered here when the GL Account for this transaction requires a

department.

Relates to: DeptNames table

Amount decimal (15,2) Amount of this line item in the double entry transaction

PercentV decimal (9,2) Used internally when building a batch of general journal recurring transactions.

LLRecNum int identity Unique key for internal use.

Comment varchar (60) A description of or comment about a line item in a transaction. Line item

comments can be defined for general journal, non-invoiced cash receipt,

non-invoiced cash disbursement, and non-invoice check transactions.

ConstraintColumn

Field Constraints

Amount ([Amount] >= (-999999999) and [Amount] <= 999999999)

Department ([Department] >= 0 and [Department] <= 9999999)

GJKey ([GJKey] >= 0 and [GJKey] <= 999999)

GLAccountNo ([GLAccountNo] >= 1 and [GLAccountNo] <= 999999999)

PercentV ([PercentV] >= 0 and [PercentV] <= 999)

Page 248JohnsonGroup

Page 249: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: GLAccountData GL Account Data

The GLAccountData table contains the accounting transactions for the

General Ledger accounts. Records are entered into this table by post using

data from the AccountngInput table. GLAccountData has two record

types:

1. Transactions created by post.

These may be the double entry offsets for either AR or AP transactions

which are stored in ARTransaction or APTransaction tables respectively

and are tied together by a common audit trail number. All records for a GJ

entry are recorded in this table and are also tied into a single double entry

transaction by the audit trail.

2. Summary, or balance forward, records created by the purge process.

Some columns in this table can be modified with the Adjust process or the

Date Change process.

Indexes on Description

AccountN, LLRecNum Primary key, clustered

AuditTrail Nonclustered

TypeColumn

AccountN int A unique number which identifies the account. This account must exist in

GLAccounts table.

Relates to: GLAccounts table

PostingDate datetime For detailed transactions, the batch date. For summary records, the date the

record was created by purge.

CheckN int The contents of this column depend on the AcctgGroup number: for Group 1, 2,

3, and 7 transactions, this column is always 0; for Group 4 transactions, this

column contains either the check number, if it is for the cash account, or 0. This

check number, not the check number in the Accounts Payable table, is the source

for the Check Register report.

Division int The division number to which the transaction applies. The division must be in

AcctDivisions table.

Relates to: AcctDivisions table

Transactions decimal (15,2) For detailed records, this is the amount of the transaction as loaded by post. For

summary records, this is the balance forward amount as summarized by the

purge process.

AcctgGroup tinyint The accounting group to which the transaction or summary record applies.

1 = Accounts Receivable; 2 = Cash Receipt; 3 = AP Invoices; 4= Cash

Disbursements and Checks; 7 = General Journal

Relates to: AccountingGrps table

Page 249JohnsonGroup

Page 250: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: GLAccountData GL Account Data

AuditTrail varchar (13) For a detailed record, an audit trail number is generated by the post process for

each transaction. It has the format yyyymmddsssss, where:

yyyy = year numbers

mm = month numbers

dd = day numbers

sssss = sequence number, starts at 00001 each day.

For summary records, the audit trail number is 0. Each double entry accounting

transaction is tied together by the audit trail. This table contains both sides of GJ

transactions and the sales or expense offsets for AR and AP. The customer side

of AR transactions are in the ARTransaction table and vendor side of AP

transactions are in the APtransaction table.

BankStmntDate datetime The date of the bank statement on which this transaction appears (as a check or a

deposit). Entered through 'Reconcile Checking Account' process.

HasDescyn tinyint Indicates that this double entry accounting transaction has a description.

0 = does not have description;

1 = has a description .

AdjustedFlag tinyint 0 = transaction has not been adjusted. 1 = transaction has been adjusted with

adjust or date change. In summary record, will be zero.

VendorN int Identifies the vendor to whom this transaction applies.

Relates to: Vendor table

DepartmentN int The department number charged in this transaction. Entered by the user via

Accounting. Default comes from 'DefaultDept' in GLAccounts table.

Relates to: DeptNames table

PostingUpdateN int The posting update number of the batch when this transaction was added to the

table. This number allows you to reconstruct the transactions that composed any

particular batch. Each double entry accounting transaction is tied together by the

audit trail. This table contains both sides of GJ transactions and the sales or

expense offsets for AR and AP. The customer side of AR transactions are in the

ARTransaction table and vendor side of AP transactions are in the APtransaction

table.

DocumentRefN varchar (14) The identification of the document that you want to use as a reference.

Description varchar (60) Text entered by the user at the time of data entry and displayed via Account

Inquiry screens and some reports.

LastChanged datetime Date this record was written by post or modified by adjust or date change

ChangedBy varchar (128) Login ID of the user who ran post for this record or edited with adjust or date

change.

TaxCode int Tax code for an AR transaction or an AP transaction (if the parameter 'Record

AP Tax' is on). The tax code must exist in the TaxCode table.

Relates to: TaxCode table

LLRecNum int identity Unique key for internal use.

BatchN int Batch number from which this transaction was posted. This is available as a

column on the transaction detail screen in Inquiry.

CheckImageN int The number used to locate the check image information that is stored in the

AcctCheckHeader and AcctCheckDetail tables. This number corresponds to

CheckHeaderN in the AcctCheckHeader table.

Page 250JohnsonGroup

Page 251: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: GLAccountData GL Account Data

Relates to: AcctCheckHeader table

ConstraintColumn

Field Constraints

AccountN ([AccountN] >= 1 and [AccountN] <= 999999999)

AcctgGroup ([AcctgGroup] >= 0 and [AcctgGroup] <= 9)

AdjustedFlag ([AdjustedFlag] >= 0 and [AdjustedFlag] <= 1)

BatchN ([BatchN] >= 0 and [BatchN] <= 999999)

CheckImageN ([CheckImageN]>=(0) AND [CheckImageN]<=(999999999))

CheckN ([CheckN] >= 0 and [CheckN] <= 999999999)

DepartmentN ([DepartmentN] >= 0 and [DepartmentN] <= 9999999)

Division ([Division] >= 0 and [Division] <= 9999)

HasDescyn ([HasDescyn] >= 0 and [HasDescyn] <= 1)

PostingUpdateN ([PostingUpdateN] >= 0 and [PostingUpdateN] <= 999999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

Transactions ([Transactions] >= (-99999999999) and [Transactions] <= 99999999999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

Page 251JohnsonGroup

Page 252: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: GLAccounts GL Accounts

The GLAccounts table lists your company's chart of accounts. Each

account is one record. Records are added, maintained, and deleted

through the Table Maintenance program; however, an account can be

deleted only if it has no entries in the GLAccountData table. See the

write-up in the Implementation Manual and in the overview of the

Accounting Reference Manual for details on how the chart of accounts

should be arranged.

Indexes on Description

AccountN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

AcctBudget AccountN

GLAccountData AccountN

Related Tables

AccountngInput AccountN

AcctDivisions DefCashAcctAR

APOffsets AccountNo

ApprovedItems GLAccountN

AROffsets AccountNo

CRCDBatch CashAccount

CRCDInvoices AccountNo

Customer SalesAcctN

CustShipAddr SalesAcct

FGInvMaster GLAcctN

FixedAssets DeprExpACN

GJTransactions GLAccountNo

LaborCostCntr DefaultGLSalesAcct

MatlCostCntr GLAcctN

OpenJob SalesAcctN

POItem GLAccountN

QQProdPrices SalesAcctN

RecurringEntry AccountN

SupplyList GLAcctN

SupportingSchd SupSchdAcctN

TaxMethod TaxAccountN

Vendor DefaultAccount

WinInvDist SalesAcct

WinInvTax TaxAcct

TypeColumn

AccountN int A unique number which identifies the account.

AccountName varchar (40) The name of the account.

DefaultDept int If the "Require Dept?" column is set to "Yes," this DefaultDept column can be

used to indicate the department that is most frequently used with this account.

An account's default department number will be displayed automatically in the

department column when entering accounting transactions.

Relates to: DeptNames table

AllowARGrp1 tinyint This column is used by the accounting system to determine whether you are

allowed to post "Group 1" transactions to this General Ledger Account. These

transactions include Accounts/Receivable invoices and related transactions.

0 = No

Page 252JohnsonGroup

Page 253: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: GLAccounts GL Accounts

1 = Yes

AllowARGrp2 tinyint This column is used by the accounting system to determine whether you are

allowed to post "Group 2" transactions to this General Ledger Account. These

transactions include cash receipts and related transactions.

0 = No

1 = Yes

AllowAPGrp3 tinyint This column is used by the accounting system to determine whether you are

allowed to post "Group 3" transactions to this General Ledger Account. These

transactions include Accounts/Payable invoices and related transactions.

0 = No

1 = Yes

AllowAPGrp4 tinyint This column is used by the accounting system to determine whether you are

allowed to post "Group 4" transactions to this General Ledger Account. These

transactions include Cash Disbursements and related transactions.

0 = No

1 = Yes

AllowJnlGrp7 tinyint This column is used by the accounting system to determine whether you are

allowed to post "Group 7" transactions to this General Ledger Account. These

transactions are General Ledger Journal Adjustments.

0 = No

1 = Yes

SupSchdAcctN int Defines the Supporting Schedule line where transactions for this General Ledger

Account will be summarized.

Relates to: SupportingSchd table

RequireDept tinyint Indicates to the accounting system whether or not transactions for this General

Ledger Account require a non-zero department number.

0 = No

1 = Yes

TypeOfAccount tinyint Indicates the type of General Ledger account.

0 = Asset

1 = Liability

2 = Equity

3 = Sales

4 = Expense

SpecialAccount tinyint There are a few General Ledger accounts which require special processing by

the accounting system. This column indicates if this account is one of them.

0 = No-Standard account

1 = Yes-a cash account

2 = Yes-Accounts/Rcvble

3 = Yes-Accounts/Payable

4 = Yes-Retained Earning

Page 253JohnsonGroup

Page 254: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: GLAccounts GL Accounts

Description1 varchar (50) Provides space for an extended description for this account. One of two fields

provided for this purpose. You may use it to describe to your staff and auditors

the types of entries to be made to this account. You may also note the special

nature of this account, such as the payment of a particular note, insurance policy,

or other pertinent information.

Description2 varchar (50) Provides space for an extended description for this account. One of two fields

provided for this purpose.

InactivePurge tinyint A setting that controls whether this General Ledger account will be available as a

selection in other parts of the Logic system. If it has been marked Inactive, it

will not be available. Is this General Ledger account currently inactive?

0 = No

1 = Yes

CashFlowFrmt int Not used in EFI Logic SQL.

Relates to: FinancialFormat table

SalesAnalysis tinyint A setting that controls whether the account is a sales account and if amounts

posted to this account are considered sales amounts.

0 = No

1 = Yes

LastChanged datetime The date on which this entry was entered or last edited.

ChangedBy varchar (128) The "UserID" of the person who last edited this entry.

ReportMapper1 int

Relates to: ReportMapper table

ReportMapper2 int

Relates to: ReportMapper table

ReportMapper3 int

Relates to: ReportMapper table

Page 254JohnsonGroup

Page 255: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: GLAccounts GL Accounts

ConstraintColumn

Field Constraints

AccountN ([AccountN] >= 1 and [AccountN] <= 999999999)

AllowAPGrp3 ([AllowAPGrp3] >= 0 and [AllowAPGrp3] <= 1)

AllowAPGrp4 ([AllowAPGrp4] >= 0 and [AllowAPGrp4] <= 1)

AllowARGrp1 ([AllowARGrp1] >= 0 and [AllowARGrp1] <= 1)

AllowARGrp2 ([AllowARGrp2] >= 0 and [AllowARGrp2] <= 1)

AllowJnlGrp7 ([AllowJnlGrp7] >= 0 and [AllowJnlGrp7] <= 1)

CashFlowFrmt ([CashFlowFrmt] >= 0 and [CashFlowFrmt] <= 999999)

DefaultDept ([DefaultDept] >= 0 and [DefaultDept] <= 9999999)

InactivePurge ([InactivePurge] >= 0 and [InactivePurge] <= 1)

ReportMapper1 ([ReportMapper1] >= 0 and [ReportMapper1] <= 999999)

ReportMapper2 ([ReportMapper2] >= 0 and [ReportMapper2] <= 999999)

ReportMapper3 ([ReportMapper3] >= 0 and [ReportMapper3] <= 999999)

RequireDept ([RequireDept] >= 0 and [RequireDept] <= 1)

SalesAnalysis ([SalesAnalysis] >= 0 and [SalesAnalysis] <= 1)

SpecialAccount ([SpecialAccount] >= 0 and [SpecialAccount] <= 9)

SupSchdAcctN ([SupSchdAcctN] >= 0 and [SupSchdAcctN] <= 999999999)

TypeOfAccount ([TypeOfAccount] >= 0 and [TypeOfAccount] <= 9)

Page 255JohnsonGroup

Page 256: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Groups Groups

Estimating 3 Standards: referred to as Departments. Groups or

Departments are used to organize Operations.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

GroupID varchar (8) ID for this department; used for link in OpList table.

GrpSeq smallint Order of departments. Controls the order in which the departments will be

processed by Estimating 3 (in which order they will be calculated). It is also the

order in which the operations will appear to the user in Estimating 3 and on

reports.

GroupName varchar (50) Full Department Name

ConstraintColumn

Field Constraints

GrpSeq ([GrpSeq] >= 0 and [GrpSeq] <= 999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 256JohnsonGroup

Page 257: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ImportDef Import Def

Contains information used in imports for some applications

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

TranslationTabs KeyN

TypeColumn

KeyN int Numeric key

ImportType varchar (20) At present, three application imports use this table. Valid values are "Job

Import", "Purchasing" and "Finished Goods".

Lowrange int When importing a purchase order or job, you can specify a range of POs or jobs

to import into. This is the bottom of the range.

HighRange int When importing a purchase order or job, you can specify a range of POs or jobs

to import into. This is the top of the range.

ConstraintColumn

Field Constraints

HighRange ([HighRange]>=(0) AND [HighRange]<=(999999999))

KeyN ([KeyN] >= 0 and [KeyN] <= 999999)

Lowrange ([LowRange]>=(0) AND [LowRange]<=(999999999))

Page 257JohnsonGroup

Page 258: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: InkCalc Ink Calc

File containing raw calculations for inks used in Estimating 3 estimates.

Indexes on Description

IssNum, ConfigNum,

CompNum, WebNum,

InkNum, InkTypID

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number

EstNum decimal (15,2) Estimate number

InkTypID int Ink Classification ID (from Ink Types table in standards)

InkTypDesc varchar (50) Ink Type Description (from InkTypes standards table)

PriceMethDesc varchar (14) Price Method Unit Desc (eg. $/lb)

Count1Q1 decimal (12,2) Amount of ink (weight) - qty 1

Count1Q2 decimal (12,2) Amount of ink (weight) - qty 2

Count1Q3 decimal (12,2) Amount of ink (weight) - qty 3

Count1Q4 decimal (12,2) Amount of ink (weight) - qty 4

Count1Q5 decimal (12,2) Amount of ink (weight) - qty 5

Unit1 varchar (10) Unit description for count (usually lbs)

Add1000 int Flag whether this cost should be included in Additional qty's

Cost1 decimal (15,2) Cost for quantity 1

Cost2 decimal (15,2) Cost for quantity 2

Cost3 decimal (15,2) Cost for quantity 3

Cost4 decimal (15,2) Cost for quantity 4

Cost5 decimal (15,2) Cost for quantity 5

Mkup1 decimal (9,4) Markup for quantity 1 (eg .1 = 10% markup)

Mkup2 decimal (9,4) Markup for quantity 2

Mkup3 decimal (9,4) Markup for quantity 3

Mkup4 decimal (9,4) Markup for quantity 4

Mkup5 decimal (9,4) Markup for quantity 5

Description varchar (50) Description line

CCnum int Material Cost Center number

Relates to: MatlCostCntr table

Page 258JohnsonGroup

Page 259: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: InkCalc Ink Calc

Multflag1 tinyint Multiple flag (if = 1 multiply the cost by component multiplier, = 0 cost

computed once)

WebNum int The web number for this ink record

InkNum int A sequence number identifying the individual ink record.

CompCnt int The multiple of this component in this configuration.

ConfigNum int The configuration for this calculation.

ConstraintColumn

Field Constraints

Add1000 ([Add1000] >= 0 and [Add1000] <= 1)

CCnum ([CCnum] >= 0 and [CCnum] <= 9999999)

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

Cost1 ([Cost1] >= (-999999999) and [Cost1] <= 999999999)

Cost2 ([Cost2] >= (-999999999) and [Cost2] <= 999999999)

Cost3 ([Cost3] >= (-999999999) and [Cost3] <= 999999999)

Cost4 ([Cost4] >= (-999999999) and [Cost4] <= 999999999)

Cost5 ([Cost5] >= (-999999999) and [Cost5] <= 999999999)

Count1Q1 ([Count1Q1] >= (-99999999) and [Count1Q1] <= 99999999)

Count1Q2 ([Count1Q2] >= (-99999999) and [Count1Q2] <= 99999999)

Count1Q3 ([Count1Q3] >= (-99999999) and [Count1Q3] <= 99999999)

Count1Q4 ([Count1Q4] >= (-999999999) and [Count1Q4] <= 999999999)

Count1Q5 ([Count1Q5] >= (-99999999) and [Count1Q5] <= 99999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

InkNum ([InkNum] >= 0 and [InkNum] <= 9999)

InkTypID ([InkTypID] >= 0 and [InkTypID] <= 99999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Mkup1 ([Mkup1] >= (-999) and [Mkup1] <= 999)

Mkup2 ([Mkup2] >= (-999) and [Mkup2] <= 999)

Mkup3 ([Mkup3] >= (-999) and [Mkup3] <= 999)

Mkup4 ([Mkup4] >= (-999) and [Mkup4] <= 999)

Mkup5 ([Mkup5] >= (-999) and [Mkup5] <= 999)

Multflag1 ([Multflag1] >= 0 and [Multflag1] <= 1)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 259JohnsonGroup

Page 260: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: InkOptions Ink Options

The inks used in each component of an Estimating 3 estimate.

Indexes on Description

IssNum, CompNum,

WebNum, InkNum

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate number

WebNum int Web or Bin number associated with this ink description.

InkNum int Ink Number- a sequence number used for this component

InkTypID int Ink Type ID - from Standards

Description varchar (50) Description of ink choice (eg, PMS number) (Typed in by estimator)

NumS1 int Number of inks on Side 1

CovS1 decimal (9,4) Percent coverage on Side 1 (eg. .20 = 20%)

NumS2 int Number of inks on Side 2

CovS2 decimal (9,4) Percent coverage on Side2

Price1 decimal (15,4) Price from InkTypes table or override price - Qty1

Price2 decimal (15,4) Price or override price- Qty2

Price3 decimal (15,4) Price or override price- Qty3

Price4 decimal (15,4) Price or override price- Qty4

Price5 decimal (15,4) Price or override price- Qty5

Mkup1 decimal (9,4) Internal Markup for quantity 1 (eg. .10 = 10%)

Mkup2 decimal (9,4) Markup for quantity 2

Mkup3 decimal (9,4) Markup for quantity 3

Mkup4 decimal (9,4) Markup for quantity 4

Mkup5 decimal (9,4) Markup for quantity 5

Page 260JohnsonGroup

Page 261: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: InkOptions Ink Options

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

CovS1 ([CovS1] >= 0 and [CovS1] <= 99999)

CovS2 ([CovS2] >= 0 and [CovS2] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

InkNum ([InkNum] >= 0 and [InkNum] <= 9999)

InkTypID ([InkTypID] >= 0 and [InkTypID] <= 99999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Mkup1 ([Mkup1] >= (-999) and [Mkup1] <= 999)

Mkup2 ([Mkup2] >= (-999) and [Mkup2] <= 999)

Mkup3 ([Mkup3] >= (-999) and [Mkup3] <= 999)

Mkup4 ([Mkup4] >= (-999) and [Mkup4] <= 999)

Mkup5 ([Mkup5] >= (-999) and [Mkup5] <= 999)

NumS1 ([NumS1] >= 0 and [NumS1] <= 9999)

NumS2 ([NumS2] >= 0 and [NumS2] <= 9999)

Price1 ([Price1] >= 0 and [Price1] <= 999999)

Price2 ([Price2] >= 0 and [Price2] <= 999999)

Price3 ([Price3] >= 0 and [Price3] <= 999999)

Price4 ([Price4] >= 0 and [Price4] <= 999999)

Price5 ([Price5] >= 0 and [Price5] <= 999999)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 261JohnsonGroup

Page 262: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: InkTypes Ink Types

Estimating 3 Standards: Ink Types file

Specifies Ink Types and their characateristics.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

InkTypID int ID number

InkDesc varchar (50) Description of this type (eg., Black, PMS, or process)

TextMapID varchar (15) Text Map ID used for mapping to Job Ticket and summarizing output on quote

reports. The fields in JobFormSpecs BlackInkyn,

NOfPMSInks,D4ColorProcess,Varnishyn are populated based on inks that have

a Text Map ID value of 'black', 'pms', 'proc4c', and 'varn' respectively. The Ink

Description field is also populated only by inks identified in this way.

Price decimal (15,4) Price by unit - the cost-price of ink (normally /lb)

CovFCoat decimal (9,2) Coverage Adjustment Factor coated. The area (in 1000's) covered (solid) by

one unit of ink, eg., a value of 360 may mean that 1lb of ink will cover 360,000

sq.inches of coated paper with solid ink. (Note that this forms the base for the

ink calculation, the actual amount needed is also determined by a coverage

modifier associated with the paper, and the % coverage the user enters)

CovFUncoat decimal (9,2) Coverage Adjustment Factor for uncoated stock (see Cov F Coated, for more

details)

Plate int Flag for whether plates are needed for this ink

0 = Never

1 = Always

2 = Spot coverage only (i.e., coverage < 100%)

WU int Needs Washup (0=no, 1=Yes)

DefCov decimal (9,4) Default Coverage Value. Will show on the screen as the coverage when the

user selects this ink.

DefNum int Default Ink count for side 1 only. Will show on the screen as the number of

inks when the user selects this ink (eg., often set to 4 for process colors)

PriceFunc int Function used for pricing

0 = multiply

1 = divide

2 = by weight (most common)

3 = by area

PriceFact int Price Factor used to calculate the price of this ink. Normally set to 1. The price

is divided by this factor except when price func is 0=multiply, in which case the

price is multiplied.

PriceLit varchar (10) Price Lit (eg. lbs, cwt, etc)

MinAmt decimal (9,2) Minimum Ink Amount. If the amount of ink calculated is less than this, the

amount will be set to this minimum.

Page 262JohnsonGroup

Page 263: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: InkTypes Ink Types

CCNum int MCC number used for Ink Type

Relates to: MatlCostCntr table

pCInkCode varchar (8) Code for importing from Printellect - Not used in EFI Logic SQL.

DefNumS2 int Default number of inks for second side.

ConstraintColumn

Field Constraints

CCNum ([CCNum] >= 0 and [CCNum] <= 9999999)

CovFCoat ([CovFCoat] >= (-9999999) and [CovFCoat] <= 9999999)

CovFUncoat ([CovFUnCoat] >= (-9999999) and [CovFUnCoat] <= 9999999)

DefCov ([DefCov] >= 0 and [DefCov] <= 999)

DefNum ([DefNum] >= 0 and [DefNum] <= 9999)

InkTypID ([InkTypID] >= 0 and [InkTypID] <= 99999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

MinAmt ([MinAmt] >= 0 and [MinAmt] <= 99999)

Plate ([Plate] >= 0 and [Plate] <= 9)

Price ([Price] >= (-999999) and [Price] <= 999999)

PriceFact ([PriceFact] >= (-9999999) and [PriceFact] <= 9999999)

PriceFunc ([PriceFunc] >= (-99) and [PriceFunc] <= 99)

WU ([WU] >= 0 and [WU] <= 1)

Page 263JohnsonGroup

Page 264: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: InternetDocs Internet Docs

Information about documents received via the Internet that are used as the

basis for EFI Logic data.

At this time this table is not being used.

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Estimates RFEDocumentN

QQOrder RFEDocumentN

TypeColumn

KeyN int Unique key field.

DocumentType int Type of document. Initially the only document type is "request for estimate".

Values for this field are not yet defined.

ExternalRef varchar (30) A reference identifier that is used by the person submitting the Internet document

to EFI Logic. The identifier has no significance to the EFI Logic system.

Path varchar (100) The file path to the Internet document.

DateLastUsed datetime The date that this document was last "used". This field exists to help purge this

file. Some documents may end up not being connected to any existing data in the

EFI Logic system. A purge program may be able to use this field to purge

documents that are clearly out of date.

ConstraintColumn

Field Constraints

DocumentType ([DocumentType] >= 0 and [DocumentType] <= 9999999)

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

Page 264JohnsonGroup

Page 265: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: InvRecReport Inv Rec Report

InvRecReport is used to hold temporary data for the report that is run after

the user does inventory reconciliation. The data is transient, and unless

someone is actually in the process of running a reconciliation report, the

table can be completely emptied. However, data is normally retained for

several days so that the data can be reviewed if there is a question about

the reconcilation.

The table is essentially the equivalent of the data text file that is created on

UNIX as part of the reconciliation process.

Indexes on Description

Seqno Primary key, clustered

TypeColumn

Seqno int identity Unique key (identity)

ReportDate smalldatetime Date on which report was run

MCCN int Material Cost Center number

Descript varchar (50) MCC Description

RemainingQty decimal (12,2) The change to the inventory quantity

Value decimal (13,3) Value of the adjustment

Quantity decimal (12,2) The new inventory quantity after the adjustment

ReportNum int Number assigned to all records for the same run of this report. This way we can

retain data for multiple runs. All rows that belong to the same set of adjustments

have the same value for ReportNum.

Price decimal (15,4) Unit Cost

Variance decimal (12,2) Difference between the quantity in inventory and the actual quantity.

UsageLit varchar (10) Holds the label for the usage units used in the inventory reconciliation.

RecLit varchar (10) Holds the label for the reconciliation units used for inventory reconciliation.

These may be the usage units or the order units depending on the material class

selection.

ConstraintColumn

Field Constraints

Price ([Price] >= (-999999) and [Price] <= 999999)

Page 265JohnsonGroup

Page 266: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFAudit JDF Audit

Internal table used to keep track of JDF audit elements received during

job execution. One new row is created for each audit element processed.

The main purpose of this table is to make sure each audit element is

processed only once, since the same element may be transmitted several

times in successive JDF snapshots, and again in the final returned JDF

ticket. This table may also be needed to handle audit corrections. The

rows in this table are only used during the processing of a single JDF

request, and once the request is completed or aborted, they may be deleted.

However, it is not harmful to leave rows for old requests in the table and it

may be useful for analysis.

Indexes on Description

AuditKey Primary key, clustered

RequestID, JobPartID,

AuditID

Nonclustered

TypeColumn

AuditKey int identity Unique key for row. Not used in any of the code.

RequestID int Key for request, points to the row in JDFRequest. Part of the secondary key for

the table.

Relates to: JDFRequest table

JobPartID varchar (80) JobPartID associated with the audit. Part of the secondary key for the table.

Used in case the audit ID is not unique across the whole job.

AuditID varchar (80) Identifier for the audit. Should be unique within the JDF ticket, which is

associated with the request, but we only require it to be unique within a

particular value of JobPartID.

AuditRefID varchar (80) If this audit corrected a previous audit, then this field contains the ID (AuditID)

for the audit that was corrected. If this is not a correction then this field contains

an empty string.

AuditName varchar (20) Name of the audit element.

Not used in the code, but may be useful for analysis.

AuditTimeStamp datetime Value of the TimeStamp attribute from the audit element.

Amount int Good amount from a PhaseTime audit.

Waste int Waste amount from a PhaseTime audit.

ConstraintColumn

Field Constraints

Page 266JohnsonGroup

Page 267: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFDevice JDF Device

Table of devices for which we generate JDF job tickets. Joined to

JDFWorkCenterDevice. Contains attributes that pertain only to JDF.

There are several parts to send to the device, and there is a column for

each part (among other columns). This table is likely to change in future

releases: A device type column in this table would allow generating partial

tickets. There may be other device characteristics specific to JDF that

should be tracked in this table.

Indexes on Description

JDFDeviceKey Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

JDFRequest JDFDeviceKey

Related Tables

JDFWorkCenterDevice JDFDeviceKey

TypeColumn

JDFDeviceKey int Unique key for device, used only to join other tables.

DeviceID varchar (60) External identifier for device used in JMF. Default empty value is for Table

Maintenance and should never be saved in the table.

Description varchar (40) Text description of device used in the JDF job ticket. If this is left blank, then

the name of the associated work center from the WorkCtrName column in the

SchWorkCenter table will be used. The associated work center is the one

mapped to this device by the JDFWorkCenterDevice table.

MIME int Whether or not the device supports MIME.

0 = Device does not support MIME

1 = Device supports MIME

JMF int Disposition of JMF part.

0 = Do not send

1 = Send

JDF int Disposition of JDF part.

1 = Send

2 = Publish

JobTicketForDisplay int Disposition of human-readable job ticket part.

0 = Do not send

1 = Send

2 = Publish

SubscriptionLocation int Where to emit the JMF status query subscriptions.

0 = Do not set up subscriptions

1 = Set up subscriptions using JMF

2 = Set up subscriptions using JDF NodeInfo

BriefStatusInterval int For JMF status query subscriptions, the number of seconds requested between

brief status signals.

Page 267JohnsonGroup

Page 268: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JDFDevice JDF Device

FullStatusInterval int For JMF status query subscriptions, the number of seconds requested between

detailed status signals.

EmployeeN int Default employee to use for Open DMI transactions. This is a temporary

workaround for the problem that DMI transactions require an employee, but

some JDF devices don't send usable employee information. If needed, it might

be filled in with a dummy employee number, one for each device, or it can be

changed each time the employee changes. Ideally, the device will send usable

employee information and this field will not need to be used. We hope to be

able to remove this column in a future release.

Relates to: Employee table

Content int Disposition of content parts.

0 = Do not send

1 = Send

2 = Publish

JDFTemplateKey int If a value is given here, the device will appear in then list of those available for a

JDF ticket independent of any scheduled tasks. If the device is selected, a ticket

of this template type will be sent.

Relates to: JDFTemplate table

XMLFolderPath varchar (512) If this field contains a string, it is expected to be the path to a hotfolder where the

XML will be placed when generated. The PNI will not be used and no status

return will be expected or handled.

ConstraintColumn

Field Constraints

BriefStatusInterval ([BriefStatusInterval] >= 0 and [BriefStatusInterval] <= 999999999)

Content ([Content] = 2 or ([Content] = 1 or [Content] = 0))

FullStatusInterval ([FullStatusInterval] >= 0 and [FullStatusInterval] <= 999999999)

JDF ([JDF] = 2 or [JDF] = 1)

JDFDeviceKey ([JDFDeviceKey] >= 0 and [JDFDeviceKey] <= 999999999)

JMF ([JMF] = 1 or [JMF] = 0)

JobTicketForDisplay ([JobTicketForDisplay] = 2 or ([JobTicketForDisplay] = 1 or [JobTicketForDisplay] = 0))

MIME ([MIME] = 1 or [MIME] = 0)

SubscriptionLocation ([SubscriptionLocation] = 2 or ([SubscriptionLocation] = 1 or [SubscriptionLocation] = 0))

Page 268JohnsonGroup

Page 269: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFDeviceWorkCenter JDF Device Work Center

Table to map incoming DeviceIDs in JMF messages to work centers.

This table only needs to be populated with rows where we expect incoming

DeviceIDs to differ from the outgoing DeviceID in JDFDevice.

Indexes on Description

DeviceID Primary key, clustered

TypeColumn

DeviceID varchar (60) DeviceID we expect to find in an incoming JMF message.

WorkCtrID int ID of the work center to which to DeviceID should be mapped. Uniquely

identifies a row in SchWorkCenter.

Relates to: SchWorkCenter table

ChangeSchedule int 1=Change scheduling work center based on DeviceID in incoming JMF

message. 0=Leave scheduling work center unchanged.

EmployeeN int Default employee to use for Open DMI transactions. This is a temporary

workaround for the problem that DMI transactions require an employee, but

some JDF devices don't send usable employee information. If needed, it might

be filled in with a dummy employee number, one for each device, or it can be

changed each time the employee changes. Ideally, the device will send usable

employee information and this field will not need to be used. We hope to be

able to remove this column in a future release. Note that this value will be used

instead of the one in JDFDevice only if it is not zero and the incoming DeviceID

matches this row.

Relates to: Employee table

ConstraintColumn

Field Constraints

ChangeSchedule ([ChangeSchedule] = 1 or [ChangeSchedule] = 0)

Page 269JohnsonGroup

Page 270: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFFoldCatalog JDF Fold Catalog

JDF Fold Catalog, about 85 standard folding schemes. This table is

incomplete: In a future release, we plan to fill in the description and

provide images for each folding scheme.

Indexes on Description

FoldCatalog Primary key, clustered

FoldCatalogCode Nonclustered

Related Tables with Foreign Keys Column

Related Tables

JobFormSpecs FoldCatalog

TypeColumn

FoldCatalog int Unique key for the entry.

FoldCatalogCode varchar (6) Code for this entry, used in JDF.

Description varchar (40) Text description for this entry.

PageCount int Number of finished pages resulting from this folding scheme.

ConstraintColumn

Field Constraints

Page 270JohnsonGroup

Page 271: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFHoleType JDF Hole Type

Hole types as specified by JDF Spec 1.2 - used in Media Catalog

transaction.

Indexes on Description

HoleType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

MatlCostCntr HoleType

TypeColumn

HoleType int Key field

NumberHoles smallint Number of holes in this pattern

JdfEdge varchar (20) Edge of the paper for holes - specified by JDF Spec 1.2

JdfHolePatternName varchar (30) JDF Pattern Name - unique id used to identify in a JDF ticket.

Description varchar (255) Explanatory description of the hole pattern

ConstraintColumn

Field Constraints

HoleType ([HoleType] > 0 and [HoleType] <= 999999)

NumberHoles ([NumberHoles] >= 0 and [NumberHoles] <= 999)

Page 271JohnsonGroup

Page 272: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFMediaColor JDF Media Color

JDF dictated descriptions for MediaColor - exported as part of Media

Catalog transaction.

Indexes on Description

MediaColor Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

MatlCostCntr MediaColor

TypeColumn

MediaColor int Key field for Color names - specified by JDF, may be added to in the future.

ColorName varchar (30) Colors of media - specified by JDF spec 1.2

ConstraintColumn

Field Constraints

MediaColor ([MediaColor] > 0 and [MediaColor] <= 9999)

Page 272JohnsonGroup

Page 273: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFNode JDF Node

Defines the structure of a JDF node to be generated from scheduling tasks.

A full description of how this works would require an understanding of the

CIP4 JDF specification and the Logic SQL JDF implementation, and

would be too long for this space. Several of the columns contain JDF

reserved words. Only someone with access to the source code should

change this table.

Indexes on Description

JDFNodeKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

JDFTemplateNode JDFNodeKey

TypeColumn

JDFNodeKey int Unique key for node. Used only in joins.

JDFGeneralCategory varchar (30) Used for several purposes. May be used in licensing.

Currently must be "PrePress", "Printing", or "DigitalPrinting".

JDFGrayBox varchar (30) If the node is a JDF Gray Box, this is its name. Otherwise, null.

JDF_Type varchar (30) Value of Type attribute for the JDF node.

JDF_Category varchar (30) Value of Category attribute for the JDF node, null if no Category.

JDF_Types varchar (80) Value of Types attribute for the JDF Node, null if no Types.

JDF_PrintingType varchar (30) Value of PrintingType attribute for the JDF Node, null if not a printing node.

ProgramName varchar (10) Equal to ProgramName in ApplProgramDesc if needed

ConstraintColumn

Field Constraints

Page 273JohnsonGroup

Page 274: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFOperationCode JDF Operation Code

Maps JMF DeviceStatus, JobPhase Status, and/or StatusDetails to Open

DMI Protocol operation codes. To facilitate table maintenance, this table

is populated in advance with all or most of the rows that will be needed,

based on Appendix C.1 of the JDF Specification, Release 1.3. Most of the

time, only operation codes will need to be changed. If an operation code is

changed, it should be changed to an operation code with the same DMI

category as the previous code. Rows should be added or deleted from this

table only with great care after consultation with someone very

knowledgable about JDF.

Indexes on Description

JDFOperationCodeID Primary key, clustered

TypeColumn

JobPhase_Status varchar (30) JMF job phase status being mapped, if any.

DeviceStatus varchar (30) JMF DeviceStatus being mapped, if any.

StatusDetails varchar (30) JMF StatusDetails being mapped, if any.

OperationCode int Open DMI Protocol Operation Code for this status.

Relates to: OperationCodes table

Description varchar (850) Text description for this entry.

JDFOperationCodeID int Unique key for this table. Used only for ordering.

ConstraintColumn

Field Constraints

JDFOperationCodeID ([JDFOperationCodeID] >= 0 and [JDFOperationCodeID] <= 999999999)

Page 274JohnsonGroup

Page 275: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFPublishRequest JDF Publish Request

Used internally by JDF to track eNetwork CMS publish requests.

Indexes on Description

RequestID Primary key, clustered

TypeColumn

RequestID int identity Unique key for the request.

FileName varchar (80) Name of file being published.

RequestDate datetime Date and time of request.

URL varchar (100) URL of published file returned by PNI.

ContentStatus varchar (50) Content Status returned by PNI.

Status int -1=Old row, archived request. 0=pending request. 1=completed request.

ConstraintColumn

Field Constraints

Page 275JohnsonGroup

Page 276: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFRequest JDF Request

Internal table used to keep track of JDF requests. One new row is created

for each request.

Indexes on Description

RequestID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

JDFAudit RequestID

JDFRequestMessage RequestID

TypeColumn

RequestID int identity Unique key for request. Each request gets a new number. Never changed.

JobN int Number of associated job. Never changed.

Relates to: OpenJob table

Type int Type of request, an index into JDFRequestType. Never changed.

Relates to: JDFRequestType table

JDFDeviceKey int Index into JDFDevice for the device associated with this request. Null if no

associated device. Never changed.

Relates to: JDFDevice table

RequestDate datetime The date and time of the request. Never changed.

Status int The current status of the request, an index into JDFRequestStatus. Updated as

the job progresses.

Relates to: JDFRequestStatus table

StatusDate datetime The date and time the status was last updated. Changed whenever the status is

updated.

RefID varchar (60) For a normal request, this is updated with the QueueEntryID when one is

assigned to the request by the remote device. For an abort request, this is the

RequestID of the original request being aborted. In both cases, the value is

assigned once and never change thereafter.

ConstraintColumn

Field Constraints

Page 276JohnsonGroup

Page 277: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFRequestMessage JDF Request Msg

Internal table used to store messages associated with JDF requests. The

number of messages per request varies. Once a message is added to this

table, it is not subsequently changed, although it will be deleted when and

it the request is deleted.

Indexes on Description

RequestID, Line Primary key, clustered

TypeColumn

RequestID int ID of associated request.

Relates to: JDFRequest table

Line int identity Unique key for this message, in order of addition.

Text text Text of message.

MessageDate datetime The date and time of the message was added.

ConstraintColumn

Field Constraints

Page 277JohnsonGroup

Page 278: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFRequestStatus JDF Request Status

Internal table defining statuses for requests in the JDFRequest table.

Indexes on Description

Status Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

JDFRequest Status

TypeColumn

Status int Unique key, a numeric code for the status.

DisplayText varchar (40) Text to display on screen for this status.

JDF_Status varchar (30) JDF Status that corrresponds to this status. Null if none. This may be the

QueueEntry Status, or a JobPhase Status

Description varchar (850) Description of status, mainly for internal documentation.

Stable int Flag indicated whether the status of this request

is expected to change after this status without intervention.

1=Status is stable, will not change without intervention.

0=Status is unstable, expected to change.

RefreshOK int Flag indicating whether the user should be asked to confirm if they

press the refresh button. 1=Refresh operation need not be confirmed.

0=Refresh operation should be confirmed.

AbortOK int Flag indicating whether the request can be aborted or not.

1=May abort. 0=May not abort.

ConstraintColumn

Field Constraints

AbortOK ([AbortOK] = 1 or [AbortOK] = 0)

RefreshOK ([RefreshOK] = 1 or [RefreshOK] = 0)

Stable ([Stable] = 1 or [Stable] = 0)

Page 278JohnsonGroup

Page 279: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFRequestType JDF Request Type

Internal table defining types of requests for the JDFRequest table.

Indexes on Description

Type Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

JDFRequest Type

TypeColumn

Type int Unique key, a numeric code for the type of request.

These codes are hard-wired in the code, so must not be changed

without corresponding code changes.

Description varchar (850) Description of request, for internal documentation only.

ConstraintColumn

Field Constraints

Page 279JohnsonGroup

Page 280: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFTask JDF Task

Specifies a JDF template for a TaskID from SchTask. The template is

used to generate the JDF node or nodes for the task. There may be zero,

one, or more rows in JDFTemplateNode for each row in SchTask.

Indexes on Description

TaskID Primary key, clustered

TypeColumn

TaskID int Unique key to the SchTask table, also unique in this table.

Relates to: SchTask table

JDFTemplateKey int Key to the JDFTemplate table. The template to use for this task.

Relates to: JDFTemplate table

ConstraintColumn

Field Constraints

TaskID ([TaskID] >= 0 and [TaskID] <= 999999999)

Page 280JohnsonGroup

Page 281: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFTemplate JDF Template

Defines a set of JDF nodes to which scheduling tasks may be mapped.

This table is not used by the JDF code itself. It is used mainly to provide a

descriptive name for the template, e.g., in Table Maintenance.

Indexes on Description

JDFTemplateKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

JDFDevice JDFTemplateKey

JDFTask JDFTemplateKey

JDFTemplateNode JDFTemplateKey

TypeColumn

JDFTemplateKey int Unique key for template.

Name varchar (30) Used only for display when maintaining this table.

Description varchar (200) Description of how the template is used.

ConstraintColumn

Field Constraints

Page 281JohnsonGroup

Page 282: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFTemplateNode JDF Template Node

Specifies which JDF nodes are generated by each template, and the order

in which they should be generated.

Indexes on Description

JDFTemplateKey,

JDFNodeKey,

JobPartIDsuffix

Primary key, clustered

TypeColumn

JDFTemplateKey int Unique key for the JDFTemplate table. A single value will appear multiple

times if one template generates multiple JDF nodes.

Relates to: JDFTemplate table

JDFNodeKey int Unique key for the JDFNode table. Points to one or more JDF nodes associated

with this template.

Relates to: JDFNode table

JobPartIDsuffix varchar (10) This column is used to distinguish and order the JDF nodes associated with a

template, but in an unusual way. If there is only one JDF node associated with a

template, then this field should be an empty string. If there is more than one

node associated with a template, then this field should be set to a different value

for each node, in the proper order, e.g., 1, 2, 3...., except the value for the last

node generated by the template should be set to the empty string. In other

words, every template should have exactly one node with an empty string in this

field, and if there is more than one node for one template, the empty string

should be associated with the last one, and the others should sort in the proper

order, alphabetically.

ConstraintColumn

Field Constraints

Page 282JohnsonGroup

Page 283: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFWorkCenterDevice JDF Work Center Device

Map from work centers from SchWorkCenter to JDF devices. This allows

having two different work centers mapped to the same JDF device.

Indexes on Description

WorkCtrID Primary key, clustered

TypeColumn

WorkCtrID int Unique key for SchWorkCenter table.

Relates to: SchWorkCenter table

JDFDeviceKey int Key for device in JDFDevice table.

Relates to: JDFDevice table

Resource_DeviceID varchar (60) DeviceID for the JDF Resource if a Resource is created for this Work Center.

Resources are created for presses, but not prepress devices. If this is null, then

the DeviceID in the JDFDevice table is used. It is often sufficient to leave this

null and use the DeviceID from JDFDevice.

ConstraintColumn

Field Constraints

WorkCtrID ([WorkCtrID] >= 0 and [WorkCtrID] <= 999999999)

Page 283JohnsonGroup

Page 284: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JDFWorkStyle Work Style

Work Style, e.g. Work & Turn, Work & Tumble, etc.

Indexes on Description

WorkStyle Primary key, clustered

WorkStyleName Nonclustered

Related Tables with Foreign Keys Column

Related Tables

JobFormSpecs WorkStyle

TypeColumn

WorkStyle int Unique key for the entry.

WorkStyleName varchar (13) Value of this entry, used in JDF.

Description varchar (850) Text description of this entry.

CustomName varchar (20) A field which can be modified for the customer's preferred description of the

JDF work style.

ConstraintColumn

Field Constraints

Page 284JohnsonGroup

Page 285: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JGroupJTicket JGroupJTicket

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

DropDownJobType varchar (10)

OverrunPercent varchar (10)

ShipMethod varchar (12)

Del1Qty int

Del1PO varchar (10)

Del1To1 varchar (20)

Del1To2 varchar (20)

Del1To3 varchar (20)

Del1Phone varchar (13)

Del1Via varchar (20)

Del2Qty int

Del2PO varchar (10)

Del2To1 varchar (20)

Del2To2 varchar (20)

Del2To3 varchar (20)

Del2Phone varchar (13)

Del2Via varchar (20)

Del3Qty int

Del3PO varchar (10)

Del3To1 varchar (20)

Del3To2 varchar (20)

Del3To3 varchar (20)

Del3Phone varchar (13)

Del3Via varchar (20)

PrepDesign varchar (10)

PrepPFlight varchar (10)

PrepImgMan varchar (10)

PrepElecAsmbl varchar (10)

PrepTypeset varchar (10)

Page 285JohnsonGroup

Page 286: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JGroupJTicket JGroupJTicket

PrepLoRes varchar (10)

PrepImageset varchar (10)

PrepStand varchar (10)

PrepSeeLayout varchar (10)

PrepBars varchar (10)

PrepStrip varchar (10)

PrepRestrip varchar (10)

PrepSepsCount varchar (10)

PrepLineRuling varchar (10)

PrepMasterNo varchar (10)

PrepComments varchar (10)

billeddate datetime

billedchoice varchar (10)

Code varchar (1)

RunCode varchar (1)

FlatSize varchar (50)

FoldSize varchar (50)

Pages varchar (50)

StkComments varchar (175) Comments

TrackN varchar (40) Tracking Number

rldPaper varchar (50)

rldPrint varchar (50)

rldFinishing varchar (150)

Plant varchar (6) Plant

RLMOrderN varchar (25)

RLMOrderDetailN varchar (25)

PaperDD varchar (35)

rldArtFurn varchar (25)

OutServ varchar (35)

FileLoc varchar (255)

rldOps varchar (150) rel leaf operations to be performed for job

CreatePDF tinyint

FirstOffProof tinyint

RLDComplete tinyint

securityShred tinyint

Page 286JohnsonGroup

Page 287: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JGroupJTicket JGroupJTicket

securityStore tinyint

RegEQtyChk int

RegEBookedChk int

rldAddlComments2 varchar (2,000)

rldAddlComments varchar (2,000)

ConstraintColumn

Field Constraints

CreatePDF ([CreatePDF] >= 0.0 and [CreatePDF] <= 255)

Del1Qty ([Del1Qty] >= 0 and [Del1Qty] <= 999999)

Del2Qty ([Del2Qty] >= 0 and [Del2Qty] <= 999999)

Del3Qty ([Del3Qty] >= 0 and [Del3Qty] <= 999999)

FirstOffProof ([FirstOffProof] >= 0.0 and [FirstOffProof] <= 255)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

RLDComplete ([RLDComplete] >= 0.0 and [RLDComplete] <= 255)

securityShred ([securityShred] >= 0.0 and [securityShred] <= 1)

securityStore ([securityStore] >= 0.0 and [securityStore] <= 1)

Page 287JohnsonGroup

Page 288: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobComponent Job Component

Estimating 3 Job Ticket Info; Information to be moved to the Job Ticket

for Components.

Indexes on Description

JobN, FormN,

EstComponentN

Primary key, clustered

TypeColumn

JobN int Job number

Relates to: JobEstHeader table

FormN smallint Form number for this record.

CompMultiple int Number of forms generated from this same component

ComponentType int Component Type (Default types: 1=Sheetfed, 2=Web, 3=Prep Only, 4=Binding

Only, 5=DPS)

CompTypeDesc varchar (20) Description of type of component: Config, Sheetfed, etc. List comes from

CompType table.

CompSubType varchar (20) Description of component subtype: Cover, Text, etc. List comes from

CompSubType table according to current Component Type

ComDescription varchar (50) Description

DetailedCDesc varchar (150) Detailed Description

QuantityC int Quantity for this form.

Pages decimal (9,2) Number of pages for this form

NumToFold int Number up to Fold

WorkAndTurn varchar (4) Production method for this form.

Typical values are "SW" or "W/T"

GrainCritical varchar (3) Is this form Grain Critical? 0=No, 1=Yes

PressName varchar (50) Name of the primary Press Operation/Process associated with this form.

MaxWebsBins smallint Maximum number of Webs/Bins on this press or 0 for sheetfed

WebsBinsUsed smallint Actual Number of webs used in this form.

RunOutOfOrder int Run Sheets Out Of Order Sheets - valid for single stream forms. For multiple

streams (webs or bins), this value will be for the first one. See JobLayout for

multiple values if different.

DieInventoryN int Die Inventory Number for this form.

Relates to: DieInventory table

DieName varchar (20) Name from Die Inventory table.

EquipmentNum int Number from Equipment table

Relates to: Equipment table

EquipmentDesc varchar (20) Description of machine configuration if chosen by estimator.

EstComponentN smallint Estimating Component number for this form.

Page 288JohnsonGroup

Page 289: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobComponent Job Component

SideGuideDepth decimal (6,4) Depth necessary for the side guide on the press for this component.

GripperDepth decimal (6,4) Depth necessary for the gripper on the press for this component.

ConstraintColumn

Field Constraints

CompMultiple ([CompMultiple] >= 0 and [CompMultiple] <= 999)

DieInventoryN ([DieInventoryN] >= 0 and [DieInventoryN] <= 999999)

EquipmentNum ([EquipmentNum] >= 0 and [EquipmentNum] <= 999999)

EstComponentN ([EstComponentN] >= 0 and [EstComponentN] <= 9999)

FormN ([formn] >= 0 and [formn] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MaxWebsBins ([MaxWebsBins] >= 0 and [MaxWebsBins] <= 999)

NumToFold ([NumToFold] >= 0 and [NumToFold] <= 99999)

Pages ([Pages] >= 0 and [Pages] <= 9999999)

QuantityC ([QuantityC] >= (-1) and [QuantityC] <= 999999999)

RunOutOfOrder ([RunOutOfOrder] >= 0 and [RunOutOfOrder] <= 999999)

WebsBinsUsed ([WebsBinsUsed] >= 0 and [WebsBinsUsed] <= 999)

Page 289JohnsonGroup

Page 290: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobContactInfo Job Contact Info

Holds customer contact information from associated estimate or quote.

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int Job number for this contact information.

Relates to: OpenJob table

CustContact varchar (35) Contact name at customer from estimate or quote.

AddrLine1 varchar (40) Address fields are taken from the estimate or quote which came from the

Customer table for current customers or typed in by the Estimator for new

customers or to override the default address.

AddrLine2 varchar (40) .

AddrLine3 varchar (40) .

City varchar (30) .

StateProv varchar (4) .

PostalCode varchar (15) .

CountryCode varchar (3) Three letter country code.

TelephoneN varchar (25) .

PhoneExt varchar (6) Telephone extension.

FaxTelephoneN varchar (25) .

Email varchar (128) Email address

ConstraintColumn

Field Constraints

Page 290JohnsonGroup

Page 291: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobContentDocs Job Content Docs

A list of documents that has been associated with production of the job.

Indexes on Description

JobN, EstComponentN,

DocInstance

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN smallint Form number for this document

EstComponentN int Number of estimating component - used if form number not generated.

CompMultiple smallint The component multiple assigned to this document.

DocInstance int Unique instance to identify document within the component.

WebNum smallint Web number associated with the document.

ContentDocumentPath nvarchar Path or URL to document.

Notes nvarchar Notes concerning document.

ConstraintColumn

Field Constraints

Page 291JohnsonGroup

Page 292: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobDSFItem Job DSF Item

Stores the Digital Storefront job tickets for the individual items associated

with a job

Indexes on Description

JobN, DSFItemID Primary key, clustered

TypeColumn

JobN int The job number.

Relates to: OpenJob table

DSFItemID varchar (50) The Digital Storefront id for this individual item. An item generally corresponds

to a Logic SQL component, such as a cover.

Description varchar (100) The description from of this item.

Ticket text The actual xml job ticket from Digital Storefront.

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 292JohnsonGroup

Page 293: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobEstGeneralNotes Job Est General Notes

Contains estimated general note detail from Estimating 3 operations

following association of a planning estimate.

Indexes on Description

JobN, FormN, OperationID,

OpInstance, CostFuncInst

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN int Form for this operation.

ComponentNum int Estimating 3 component number associated with this operation.

OperationID varchar (8) ID of the operation.

OperationDesc varchar (50) Description of the operation.

OpInstance smallint Instance of the operation - only relevant if more than one instance of the

operation is added to a component.

GeneralNote varchar (120) General note concerning this operation.

CostFuncInst varchar (8) Cost function and instance generating this note, usually GEN.

ConstraintColumn

Field Constraints

ComponentNum ([ComponentNum]>=(0) AND [ComponentNum]<=(9999))

FormN ([FormN]>=(0) AND [FormN]<=(9999))

JobN ([JobN]>=(0) AND [JobN]<=(999999999))

Page 293JohnsonGroup

Page 294: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobEstHeader Job Est Header

Est 3 Job Ticket Info; Information to be moved to the Job Ticket for the

main estimate info.

Indexes on Description

JobN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ConfigInstrs JobN

JobComponent JobN

JobContentDocs JobN

JobEstGeneralNotes JobN

JobEstLabor JobN

JobEstMaterial JobN

JobEstOutsidePurch JobN

JobInk JobN

JobLayout JobN

JobLayoutImages JobN

JobSpecInstrs JobN

JobStockCalc JobN

TypeColumn

JobN int Job number.

Relates to: OpenJob table

IssueNum int Issued Estimate number This is the number used to track the particular version of

an estimate. If an estimate is Opened for Edit and reissued, it will receive a new

Issue Number. These are assigned sequentially.

Relates to: Estimates table

EstimateNum int Estimate number. If an estimate is edited and reissued, the estimate number

remains the same and it receives a new issue number.

Description varchar (50) Description of Estimate

DetailedDesc varchar (250) Detailed description

EstimateDate datetime Original Date on which the Estimate was created.

ProductCode int Product Code of this job from Product table.

Relates to: ProductCode table

SalesRepName varchar (40) Sales Representative's Name from Salesperson table.

SalesRepNum int Sales Representative's number from Salesperson table.

Relates to: Salesperson table

EstimatorName varchar (40) Estimator Name as entered when Estimating 3 is installed on client machine

EstimatorNum int Estimator number as entered when Estimating 3 is installed on the client.

ModifiedDate datetime Date of this modification of an estimate

ModifEstimator int Estimator number of estimator who issued this version of the estimate. May be

different from EstimatorN if the estimate was reissued.

Quantity int Quantity of finished pieces

Width decimal (10,4) Finished size, width

Length decimal (10,4) Finished size, length (spine)

Page 294JohnsonGroup

Page 295: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobEstHeader Job Est Header

FOBPoint varchar (40) FOB Point for this estimate

QtyIndex tinyint The Qty Index from estimate used for this job

ConfigurationN int Configuration section used for this job.

ConfigDescript varchar (50) Description of Configuration section

ConfigDetDesc varchar (200) Detailed Description of Configuration section

ConfigQuantity int Finished Quantity from Configuration section

ConfigNumFold int Number to Fold from Configuration section

StandardsID varchar (20) ID of standards database used to create the estimate for this job.

StandardsVers varchar (10) Version of Standards used to create the estimate for this job.

ConstraintColumn

Field Constraints

ConfigNumFold ([ConfigNumFold] >= 0 and [ConfigNumFold] <= 99999)

ConfigQuantity ([ConfigQuantity] >= (-1) and [ConfigQuantity] <= 999999999)

ConfigurationN ([ConfigurationN] >= 0 and [ConfigurationN] <= 99999)

EstimateNum ([EstimateNum] >= 0 and [EstimateNum] <= 99999999)

EstimatorNum ([EstimatorNum] >= 0 and [EstimatorNum] <= 9999999)

IssueNum ([IssueNum] >= 0 and [IssueNum] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Length ([Length] >= 0 and [Length] <= 99999)

ModifEstimator ([ModifEstimator] >= 0 and [ModifEstimator] <= 9999999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

QtyIndex ([QtyIndex] >= 0 and [QtyIndex] <= 5)

Quantity ([Quantity] >= (-1) and [Quantity] <= 999999999)

SalesRepNum ([SalesRepNum] >= 0 and [SalesRepNum] <= 9999999)

Width ([Width] >= 0 and [Width] <= 99999)

Page 295JohnsonGroup

Page 296: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobEstLabor Job Est Labor

Contains estimated labor detail from Estimating 3 operations following

association of a planning estimate.

Indexes on Description

JobN, FormN, OperationID,

OpInstance, CostFuncInst

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN int Form for this operation.

ComponentNum int Estimating 3 component number associated with this operation.

OperationID varchar (8) ID of the operation.

OperationDesc varchar (50) Description of the operation.

OpInstance smallint Instance of the operation - only relevant if more than one instance of the

operation is added to a component.

Count1 decimal (15,2) First count generated for this labor transaction.

Count1Fixed decimal (15,2) Any fixed portion (usually setup) of the count associated with this labor

operation.

Unit1 varchar (30) Description of units for Count 1.

Count2 decimal (15,2) Second count generated for this labor transaction. (not always useful)

Count2Fixed decimal (15,2) Any fixed portion (usually setup) of the second count2 associated with this labor

operation.

Unit2 varchar (30) Description of units for Count 2.

Hours decimal (9,2) Hours generated for this cost function of the operation.

HoursFixed decimal (9,2) Any fixed portion of the hours generated for this cost function of the operation.

DetDescription varchar (120) Detailed description of the cost function.

LCCNum int Labor Cost Center for this labor record.

ScheduleDept int The scheduling task, if any, associated with this labor.

RunNote varchar (30) Any note generated for the cost function. Usually only relevant for a RUN cost

function record.

CostFuncInst varchar (8) Cost function generating this labor record, eg(SU, RUN, MR, HRS, SU-10,

RUN-40, etc)

Page 296JohnsonGroup

Page 297: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobEstLabor Job Est Labor

ConstraintColumn

Field Constraints

ComponentNum ([ComponentNum]>=(0) AND [ComponentNum]<=(9999))

FormN ([FormN]>=(0) AND [FormN]<=(9999))

JobN ([JobN]>=(0) AND [JobN]<=(999999999))

Page 297JohnsonGroup

Page 298: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobEstMaterial Job Est Material

Contains estimated material detail from Estimating 3 operations following

association of a planning estimate.

Indexes on Description

JobN, FormN, OperationID,

OpInstance, CostFuncInst

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN int Form for this operation.

ComponentNum int Estimating 3 component number associated with this operation.

OperationID varchar (8) ID of the operation.

OperationDesc varchar (50) Description of the operation.

OpInstance smallint Instance of the operation - only relevant if more than one instance of the

operation is added to a component.

Count1 decimal (15,2) First count generated for this material transaction.

Count1Fixed decimal (15,2) Any fixed portion (usually setup) of the count associated with this material

operation.

Unit1 varchar (30) Description of units for Count 1.

Count2 decimal (15,2) Second count generated for this material transaction. (not always useful)

Count2Fixed decimal (15,2) Any fixed portion (usually setup) of the second count2 associated with this

material operation.

Unit2 varchar (30) Description of units for Count 2.

DetDescription varchar (120) Detailed description of the cost function.

MCCNum int Material Cost Center assigned to this material.

ScheduleDept int The scheduling task, if any, associated with this material.

VendorN int Vendor number associated with this material.

Relates to: Vendor table

CostFuncInst varchar (8) Cost function and instance generating this material record, eg(SU, RUN, MR,

HRS, SU-1, RUN-40, etc)

ConstraintColumn

Field Constraints

ComponentNum ([ComponentNum]>=(0) AND [ComponentNum]<=(9999))

FormN ([FormN]>=(0) AND [FormN]<=(9999))

JobN ([JobN]>=(0) AND [JobN]<=(999999999))

VendorN ([VendorN]>=(0) AND [VendorN]<=(999999999))

Page 298JohnsonGroup

Page 299: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobEstOutsidePurch Job Est Outside Purch

Contains estimated outside purchase detail from Estimating 3 operations

following association of a planning estimate.

Indexes on Description

JobN, FormN, OperationID,

OpInstance, CostFuncInst

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN int Form for this operation.

ComponentNum int Estimating 3 component number associated with this operation.

OperationID varchar (8) ID of the operation.

OperationDesc varchar (50) Description of the operation.

OpInstance smallint Instance of the operation - only relevant if more than one instance of the

operation is added to a component.

Count1 decimal (15,2) First count generated for this outside purchase transaction.

Count1Fixed decimal (15,2) Any fixed portion (usually setup) of the count associated with this outside

purchase operation.

Unit1 varchar (30) Description of units for Count 1.

Count2 decimal (15,2) Second count generated for this outside purchase transaction. (not always useful)

Count2Fixed decimal (15,2) Any fixed portion (usually setup) of the second count2 associated with this

outside purchase operation.

Unit2 varchar (30) Description of units for Count 2.

DetDescription varchar (120) Detailed description of the cost function.

MCCNum int Material Cost Center number assigned to this outside purchase.

ScheduleDept int The scheduling task, if any, associated with this outside purchase.

VendorN int Vendor number associated with this outside purchase.

Relates to: Vendor table

CostFuncInst varchar (8) Cost function generating this outside purchase record, eg(SU, RUN, MR, HRS,

SU-1, RUN-40, etc)

ConstraintColumn

Field Constraints

ComponentNum ([ComponentNum]>=(0) AND [ComponentNum]<=(9999))

FormN ([FormN]>=(0) AND [FormN]<=(9999))

JobN ([JobN]>=(0) AND [JobN]<=(999999999))

VendorN ([VendorN]>=(0) AND [VendorN]<=(999999999))

Page 299JohnsonGroup

Page 300: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobFormSpecs Job Form Specs

The Job-Form Specs table contains information about the press forms to be

created as part of the job. This information is used in the following ways:

- to aid in the calculation of paper commitments

- to display on the SFDC press status report

- to display on the Job Ticket

- to display on the Job Report

- to display in the work center schedule and use in

sorting tasks by job-form specifications

Indexes on Description

JobN, FormorPartN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with JobVista. Used to

cross-reference the job to other tables.

Relates to: OpenJob table

FormorPartN smallint Identifier of press form.

CustOrderPcs int The number of final pieces to produce, based on the customer's order.

PrntOrderPcs int The number of pieces to produce in order to yield customer's order, plus

allowances for bindery spoilage and billable overs.

NumberOfWebs tinyint The number of webs on which this form is to be run.

PiecesWide smallint The number of finished pieces that are printed across the press sheet. This factor

is used to calculate the number of press sheets required from the number of Print

Order pieces. This is done for press-forms printed on presses whose press form

must fit the press.

LengthOfPiece decimal (10,4) The length of the finished piece.

WidthOfPiece decimal (10,4) The width of the finished piece.

Description varchar (50) A short description of the finished piece produced by this press form.

PaperCodeInfo varchar (50) All text information about the paper, except the description.

Nup smallint The number up or, in the case of a web component, the number up (across) *

number around.

WTorWTmbl tinyint Indicates if press form is printed as sheetwise, work-and-turn or

work-and-tumble.

0 = Sheetwise

1 = Work and Turn

2 = Work and Tumble

3 = Perfecting

NGanged smallint The number of jobs ganged.

Page 300JohnsonGroup

Page 301: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobFormSpecs Job Form Specs

NumberOfPages int The number of pages per impression. This field is computed by estimating and

will be filled in if you have enabled the option to update the job-form table when

associating an estimate with a job.

Note: a 16-page impression estimate 2-up has 32 pages on the form. This field

will have a value of 16. A form of 32 pages, printed 1 up will have a value of

32.

MachineN int The number of the machine being used.

Relates to: Equipment table

PaperMCCN int The material cost center number for the paper being used.

Relates to: MatlCostCntr table

PressShtWidth decimal (9,3) The width of the press sheet.

PressShtLenth decimal (9,3) The length of the press sheet.

NOfPressShts smallint The number of press sheets that you will get from each sheet of stock. (For

example, you might cut a 22 x 34 sheet into quarters to get four 11 x 17 press

sheets.)

MR1Esthrs decimal (9,2) The estimated hours for Makeready 1.

MR2Esthrs decimal (9,2) The estimated hours for Makeready 2.

RunEsthrs decimal (9,2) The estimated hours for running the press form.

NWasteSheets int The number of press sheets allowed for waste during the printing process. This

includes makeready, setup, plate changes, additional makeready and run

spoilage.

DieNumber int Indicates the die inventory number of the die to be used to manufacture this

form. This field can be associated from an estimate component or editted via

JobVista. The die number in the Job-Form Specs table may be referenced in the

scheduling system to help to sequence efficiently jobs to be run on a particular

machine.

Relates to: DieInventory table

FinishingNotes varchar (30) Allows you to record notes or codes indicating the type of finishing needed to be

done on this form. If you enter codes or specifications in a consistent format,

you may use this field to help sequence work efficiently in the scheduling

system. This field is editted in JobVista or in Scheduling.

InkDescription varchar (400) A description of the inks to be used on the press-form.

D4ColorProcess tinyint Is the press-form printed with a 4-color process? A 4 color process ink is

defined as an ink whose ink type has 'proc4c' as its Job Ticket ID (TextMapID)

value.

0 = No

1 = Yes

NOfPMSInks smallint The number of PMS inks to be used on this press form. PMS inks are defined as

inks whose ink type has 'pms' as its Job Ticket ID (TextMapID) value.

Varnishyn tinyint Is the press-form to be varnished? A varnish is defined as an ink whose ink type

has 'varn' as its Job Ticket ID (TextMapID) value.

Page 301JohnsonGroup

Page 302: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobFormSpecs Job Form Specs

0 = No

1 = Yes

BlackInkyn tinyint Is the press-form to be printed with black ink? A black ink is defined as an ink

whose ink type has 'black' as its Job Ticket ID (TextMapID) value.

0 = No

1 = Yes

CustomField1 varchar (120) This is a string field intended to be available for customized use.

CustomField2 varchar (120) This is a string field intended to be available for customized use.

CustomField3 varchar (120) This is a string field intended to be available for customized use.

EstComponentN smallint If this record was created during the process of associating an estimate with a

job, this field indicates the component number of the estimate from which the

information for this record was derived. A non-zero number indicates the record

was created by associating an estimate; The value of 0 indicates the record was

created via JobVista.

EstMultipleN smallint If this record was created during the process of associating an estimate with a

job, this field indicates which multiple of the estimate component this record

represents. For example, an estimate having two components, one having a

"multiple" of 1 and one having a "multiple" of 3, will have 4 records created in

this table. One component will generate one job-form record with its component

number and a multiple of 1. The second component will have 3 records, each

with the second component's number and multiple numbers of 1, 2, and 3 to trace

the source of each of the form records.

ComponentType smallint Indicates the "type" of component. This field updated this record is created by

associating an estimate with a job. The values are taken from the SubInd field

of the CompSubType table.

EarliestStartDate datetime Earliest date on which tasks for this form should start being scheduled.

DueDate datetime Due date for tasks for this form.

FormType tinyint Type of form

0 = Printing

1 = PrePress

2 = Finishing

3 = Supplied

FoldCatalog int Unique key to FoldCatalog table. There are more than 80 different fold catalog

codes, too many to list here.

Relates to: JDFFoldCatalog table

WorkStyle int Unique key to JDFWorkStyle table.

0 = Simplex

1 = WorkAndTurn

2 = WorkAndTumble

3 = Perfecting

4 = WorkAndBack

5 = WorkAndTwist

Relates to: JDFWorkStyle table

Page 302JohnsonGroup

Page 303: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobFormSpecs Job Form Specs

NumColorsS1 int Sum of number of inks assigned to Side 1 on this form. When created from an

Estimating 3 estimate, this field is filled in automatically. See detail in JobInk.

NumColorsS2 int Total number of inks assigned to Side 2 on this form. When created from an

Estimating 3 estimate, this field is filled in automatically. See detail in JobInk.

ContentDocumentPath varchar (512) Path to or URL for the document containing the content for this form. Used by

JDF to obtain content sent with the JDF ticket. May also be used in custom

reports. Note: if you use mapped drives, they must be mapped on the client you

are running on.

ConstraintColumn

Field Constraints

BlackInkyn ([BlackInkyn] >= 0 and [BlackInkyn] <= 1)

ComponentType ([ComponentType]>=(0) AND [ComponentType]<=(9999))

CustOrderPcs ([CustOrderPcs] >= 0 and [CustOrderPcs] <= 999999999)

D4ColorProcess ([D4ColorProcess] >= 0 and [D4ColorProcess] <= 1)

DieNumber ([DieNumber] >= 0 and [DieNumber] <= 9999999)

EstComponentN ([EstComponentN] >= 0 and [EstComponentN] <= 9999)

EstMultipleN ([EstMultipleN] >= 0 and [EstMultipleN] <= 999)

FormorPartN ([formorpartn] >= 0 and [formorpartn] <= 9999)

FormType ([FormType] >= 0 and [FormType] <= 9)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

LengthOfPiece ([LengthOfPiece] >= 0 and [LengthOfPiece] <= 99999)

MachineN ([MachineN] >= 0 and [MachineN] <= 999999)

MR1Esthrs ([MR1Esthrs] >= 0 and [MR1Esthrs] <= 999999)

MR2Esthrs ([MR2Esthrs] >= 0 and [MR2Esthrs] <= 999999)

NGanged ([NGanged] >= 0 and [NGanged] <= 999)

NOfPMSInks ([NOfPMSInks] >= 0 and [NOfPMSInks] <= 999)

NOfPressShts ([NOfPressShts] >= 0 and [NOfPressShts] <= 999)

NumberOfPages ([NumberOfPages] >= 0 and [NumberOfPages] <= 99999)

NumberOfWebs ([NumberOfWebs] >= 0 and [NumberOfWebs] <= 99)

NumColorsS1 ([NumColorsS1] >= 0 and [NumColorsS1] <= 9999)

NumColorsS2 ([NumColorsS2] >= 0 and [NumColorsS2] <= 9999)

Nup ([Nup]>=(0) AND [Nup]<=(9999))

NWasteSheets ([NWasteSheets] >= 0 and [NWasteSheets] <= 999999999)

PaperMCCN ([PaperMCCN] >= 0 and [PaperMCCN] <= 9999999)

PiecesWide ([PiecesWide] >= 0 and [PiecesWide] <= 99999)

PressShtLenth ([PressShtLenth] >= 0 and [PressShtLenth] <= 99999)

PressShtWidth ([PressShtWidth] >= 0 and [PressShtWidth] <= 99999)

PrntOrderPcs ([PrntOrderPcs] >= 0 and [PrntOrderPcs] <= 999999999)

RunEsthrs ([RunEsthrs] >= 0 and [RunEsthrs] <= 999999)

Varnishyn ([Varnishyn] >= 0 and [Varnishyn] <= 1)

WidthOfPiece ([WidthOfPiece] >= 0 and [WidthOfPiece] <= 99999)

WTorWTmbl ([WTorWTmbl]>=(0) AND [WTorWTmbl]<=(3))

Page 303JohnsonGroup

Page 304: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobInk Job Ink

Estimating 3 Job Ticket Info; Information to be moved to the Job Ticket

for Ink Calculations

Indexes on Description

JobN, FormN, WebNum,

InkNum, InkTypeID

Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN smallint Form number

InkNum int Ink Number- a sequence number used for this form

InkTypeID int Ink Type ID - from Estimating 3 Standards

InkTypeDesc varchar (50) Type Description, eg. PMS, Black

PriceUnits varchar (14) Units for Price

Count1 decimal (12,2) Multiplied Count of this Ink Type for form in Units (lbs, kg, etc)

Unit1 varchar (10) Unit for Count1

Price decimal (15,4) Price of Ink in Units.

Description varchar (50) Description (eg. PMS number) (Typed in by estimator)

MCCNum int MCC Number for this Ink Type

Relates to: MatlCostCntr table

WebNum int Number of web with which this ink is associated

NumS1 int Number of inks of this type on side 1 of form.

NumS2 int Number of inks of this type on side 2 of form.

CovS1 decimal (9,4) % of ink coverage for this ink on side 1 of form

CovS2 decimal (9,4) % of ink coverage for this ink on side 2 of form

ConstraintColumn

Field Constraints

Count1 ([Count1] >= (-99999999) and [Count1] <= 99999999)

FormN ([formn] >= 0 and [formn] <= 9999)

InkNum ([InkNum] >= 0 and [InkNum] <= 999999)

InkTypeID ([InkTypeID] >= 0 and [InkTypeID] <= 99999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MCCNum ([MCCNum] >= 0 and [MCCNum] <= 9999999)

Price ([Price] >= (-999999) and [Price] <= 999999)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 304JohnsonGroup

Page 305: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobLabor Job Labor

Labor transactions are entered by data collection to the Job Labor table.

They can be partially editted with Transaction Editor and editcost. They

are marked as closed by post and removed by zero. They are used for

costing and productivity reports.

Indexes on Description

JobN, LLRecNum Primary key, clustered

UpdateDate Nonclustered

TypeColumn

JobN int A unique number that identifies the job, as entered with the JobVista program.

Used to cross-reference the job to other tables.

Relates to: OpenJob table

Hours decimal (12,4) The number of hours that have been charged to the cost center during this

transaction.

LaborQuantity decimal (9,2) The total quantity charged to the labor cost center during this transaction. This is

also referred to as the gross count.

UpdateDate datetime Also referred to as the "shift date." This is the date to which the current shift

belongs.

EmployeeN int Employee number entered in a labor transaction.

Relates to: Employee table

Shift tinyint Employee's shift number as entered with the employee's number in a labor

transaction.

StartDate datetime Date on which labor transaction began.

StartTime smallint Time of day (hhmm) that labor transaction began.

SubJobNumber int Optional subjob number entered with the job number during input.

LccN int The LCC Number for this entry.

Relates to: LaborCostCntr table

Prefix tinyint The prefix for this transaction which indicates if the labor is reported as an AA,

overtime, etc.

Prefix values are maintained in the Prefixes table.

ReasonCode int A code from the ReasonCode table indicating the cause of rework.

Relates to: ReasonCodes table

AICCost decimal (9,2) The dollar value of the transaction, calculated by mulitplying hours worked by

the AIC Rate in the LaborCostCntr table. Can be changed manually with

editcost.

DirectCost decimal (9,2) The out-of-pocket value of the transaction, calculated by multiplying hours

worked by the OOP Rate in the Labor Cost Center table and by including the

Costing Rate in the Employee table if there is one. Can be changed manually

with editcost.

CloseDate datetime Date the job was closed, written to the associated transaction by the post

program. If the job is re-opened, subsequent transactions do not have a close

date until the job is closed again.

Page 305JohnsonGroup

Page 306: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobLabor Job Labor

UpdateNumber int Not used in SQL.

EdittedFlag tinyint Indicates if the transaction has been changed since it was first entered.

0 = Not edited

1 = Transferred

2 = Edited

3 = NOT USED

4 = Distributed from combo job

ProductionJobN int The original combo-job job number if the job was part of a combo-job and has

been distributed into it's component jobs.

Relates to: OpenJob table

TransSource smallint A code indicating which program generated the transaction.

0: DCPoll

20: MacTrak

30: AC3000

40: WinTrak

45: MyDC

100: JDF

TransType tinyint Not currently used.

TransErrors tinyint A flag that indicates that a problem was encountered by the real-time updating

system when this transaction was created.

Updater tinyint Not currently used.

LastChanged datetime Date that this transaction was last changed.

ChangedBy varchar (128) User name of the user editing the transaction.

LLRecNum int identity Unique key

Note varchar (200) A note that can be entered from data collection when the transaction is created.

Form smallint Form being worked on if tracking of job forms in labor is enabled.

LaborCharge tinyint Flag indicating whether the transaction is a labor charge or not. Set to 1 if a labor

charge, else set to 0. A labor charge is a transaction that specifies the hours work

on a cost center.

EndDate datetime Date on which labor transaction ended.

EndTime int Time of day (hhmm) that labor transaction ended.

StartCounter int Value of machine counter at start of task.

EndCounter int Value of machine counter at end of task.

NetCount decimal (9,2) Number of pieces produced minus any waste.

GangIndex smallint For a set a of ganged labor transactions, this is the index of the transaction in the

set of ganged transactions. The number of ganged transactions is in the

GangCount field.

GangCount smallint The number of ganged transactions is in the set of ganged transactions.

ProcessIndex smallint Index of a concurrent process used by MyDC 4.0.

Page 306JohnsonGroup

Page 307: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobLabor Job Labor

ConstraintColumn

Field Constraints

AICCost ([AICCost] >= (-999999999) and [AICCost] <= 999999999)

DirectCost ([DirectCost] >= (-999999999) and [DirectCost] <= 999999999)

EdittedFlag ([EdittedFlag] >= 0 and [EdittedFlag] <= 4)

EmployeeN ([EmployeeN] >= 0 and [EmployeeN] <= 999999)

EndCounter ([EndCounter]>=(0) AND [EndCounter]<=(999999999))

EndTime ([EndTime]>=(0) AND [EndTime]<(2400))

Form ([Form] >= 0 and [Form] <= 9999)

GangCount ([GangCount]>=(0) AND [GangCount]<=(99))

GangIndex ([GangIndex]>=(0) AND [GangIndex]<=(99))

Hours ([Hours] >= (-9999) and [Hours] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LaborCharge ([LaborCharge] >= 0 and [LaborCharge] <= 1)

LaborQuantity ([LaborQuantity] >= (-9999999) and [LaborQuantity] <= 9999999)

LccN ([LCCN] >= 0 and [LCCN] <= 2 or [LCCN] >= 900 and [LCCN] <= 910 or [LCCN] >= 1000 and [LCCN] <= 999999)

NetCount ([NetCount]>=(0) AND [NetCount]<=(9999999))

Prefix ([Prefix] >= 0 and [Prefix] <= 8)

ProcessIndex ([ProcessIndex]>=(0) AND [ProcessIndex]<=(99))

ProductionJobN ([ProductionJobN] >= 0 and [ProductionJobN] <= 999999999)

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

Shift ([Shift] >= 0 and [Shift] <= 9)

StartCounter ([StartCounter]>=(0) AND [StartCounter]<=(999999999))

StartTime ([StartTime] >= 0 and [StartTime] <= 4800)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

TransErrors ([TransErrors] >= 0 and [TransErrors] <= 1)

TransSource ([TransSource] >= 0 and [TransSource] <= 999)

TransType ([TransType] >= 0 and [TransType] <= 9)

UpdateNumber ([UpdateNumber] >= 0 and [UpdateNumber] <= 9999999)

Updater ([Updater] >= 0 and [Updater] <= 9)

Page 307JohnsonGroup

Page 308: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobLayout Job Layout

Estimating 3 Job Ticket Info; Information to be moved to the Job Ticket

from Est3 that is web/bin specific for each component.

For a web press, this may contain stock information for each web.

For a digital press, this may contain stock information for each paper bin,

e.g. a heavy stock in one bin for covers and a different stock in another bin

for pages.

Indexes on Description

JobN, FormN, WebBinNum Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN smallint Form number.

WebBinNum int Web or Bin number for this layout information.

StockNum int Stock Choice number - Index into stocks table

RunWidth decimal (9,3) Run dimensions for form (web/bin) (Width)

RunLength decimal (9,3) Run Length

FinishWidth decimal (10,4) Finish dimensions for form (web/bin) (Width)

FinishLength decimal (10,4) Finish Length

FlatWidth decimal (10,4) Flat dimensions for form (web/bin) (Width)

FlatLength decimal (10,4) Flat Length

PageCount int Total number of pages for this bin/web (DPS/Web comp)

NumberUp int Number Up/Across

NumberOut int Number Out

NumAround int Number Around

Bleed varchar (3) Type of bleed for this form

Ganged smallint Is this form Ganged? 0=Yes, 1=No

LayoutDocument varchar (255) Path of Layout Document from originating estimator's client machine.

InkSide1 varchar (200) Description of Inks for Side 1 of this Web/Bin or form. Includes Coverage,

count and description.

InkSide2 varchar (200) Description of Inks for Side 2 of this Web/Bin or form. Includes Coverage,

count and description.

StockType varchar (50) Stock Type

StockMCCN int MCC number of stock

Relates to: MatlCostCntr table

StockMccDesc varchar (60) Description of stock from estimate

StockWidth decimal (9,3) Width of stock

Page 308JohnsonGroup

Page 309: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobLayout Job Layout

StockLength decimal (9,3) Length of stock

StckBWTorGSM decimal (9,2) Basis weight or Gram/sq meter of Stock

StockMWT int MWT

StockCaliper decimal (10,5) Caliper

StockCoated varchar (10) Whether stock is coated.

Typical values are "Coat 2Side", "Uncoated", and "Coat 1Side"

StockHiBulk varchar (3) Whether stock is High Bulk

Typical values are "Yes" and "No"

StockColor varchar (15) Color of stock. Entered by estimator or defaulted from MCC entry.

StockPrice decimal (15,4) Price of stock

StockPriceLit varchar (10) Unit of stock price

SheetsperCart int Sheets per Carton

BleedDepth decimal (6,4) Depth required for bleed on this component or web/bin

HeadBarDepth decimal (6,4) Depth required for head color registration bar on this component or web/bin

SideBarDepth decimal (6,4) Depth required for side color registration bar on this component or web/bin

MarginDepth decimal (6,4) Depth of the edge margin for wide format layouts.

PageMultiple int For DPS, the number of leaves from this bin for each piece output. It may have

a multiple page layout on the leaf. For other press types, it will always be 1.

RunOutOfOrder int Number of run sheets cut out of parent sheet for this web or bin of the form.

PagesInLayout int Number of pages (must be even) in the imposition. For all except DPS, this will

be the same as PageCount.

Page 309JohnsonGroup

Page 310: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobLayout Job Layout

ConstraintColumn

Field Constraints

FinishLength ([FinishLength] >= 0 and [FinishLength] <= 99999)

FinishWidth ([FinishWidth] >= 0 and [FinishWidth] <= 99999)

FlatLength ([FlatLength] >= 0 and [FlatLength] <= 99999)

FlatWidth ([FlatWidth] >= 0 and [FlatWidth] <= 99999)

FormN ([formn] >= 0 and [formn] <= 9999)

Ganged ([Ganged] >= 0 and [Ganged] <= 999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

NumAround ([NumAround] >= 0 and [NumAround] <= 999999)

NumberOut ([NumberOut] >= 0 and [NumberOut] <= 999999)

NumberUp ([NumberUp] >= 0 and [NumberUp] <= 99999)

PageCount ([PageCount] >= 0 and [PageCount] <= 10000)

PagesInLayout ([PagesInLayout]>=(0) AND [PagesInLayout]<=(9999))

RunLength ([RunLength] >= 0 and [RunLength] <= 99999)

RunOutOfOrder ([RunOutOfOrder]>=(0) AND [RunOutOfOrder]<=(999))

RunWidth ([RunWidth] >= 0 and [RunWidth] <= 99999)

SheetsperCart ([SheetsperCart] >= 0 and [SheetsperCart] <= 999999)

StckBWTorGSM ([StckBWTorGSM] >= 0 and [StckBWTorGSM] <= 99999)

StockCaliper ([StockCaliper] >= 0 and [StockCaliper] <= 99999)

StockLength ([StockLength] >= 0 and [StockLength] <= 99999)

StockMCCN ([StockMCCN] >= 0 and [StockMCCN] <= 9999999)

StockMWT ([StockMWT] >= 0 and [StockMWT] <= 9999)

StockNum ([StockNum] >= 0 and [StockNum] <= 9999999)

StockPrice ([StockPrice] >= 0 and [StockPrice] <= 999999)

StockWidth ([StockWidth] >= 0 and [StockWidth] <= 99999)

WebBinNum ([WebBinNum] >= 0 and [WebBinNum] <= 9999999)

Page 310JohnsonGroup

Page 311: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobLayoutImages Job Layout Images

This table includes the detailed specifications for images from wide format

components from Estimating 3.

Indexes on Description

JobN, FormN, WebNum,

ImageNum

Primary key, clustered

TypeColumn

JobN int The job number associated with this record.

Relates to: JobEstHeader table

FormN int The form number associated with this record.

WebNum int The web/bin/substrate number associated with this record.

ImageNum int The sequential image number associated with this individual image.

ImageDesc varchar (30) Description of individual image

ImageCnt int Number of times this image is reproduced on layout.

ImageWidth decimal (10,4) Width of this individual image.

ImageLength decimal (10,4) Length of this individual image.

ConstraintColumn

Field Constraints

FormN ([FormN] >= 0 and [FormN] <= 9999)

ImageCnt ([ImageCnt] >= 0 and [ImageCnt] <= 9999)

ImageLength ([ImageLength] >= 0 and [ImageLength] <= 99999)

ImageNum ([ImageNum] >= 0 and [ImageNum] <= 99999)

ImageWidth ([ImageWidth] >= 0 and [ImageWidth] <= 99999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 311JohnsonGroup

Page 312: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobLog Job Log

Not implemented in EFI Logic SQL.

Databases converted from UNIX may have historical data in the following

form.

The Job Log Table contains summary data about billed jobs. The data are

loaded by the Close program (called by Post). The table must be

periodically purged by running joblogpg. Some of the data are listed on the

Job Log report; the rest is included so it can be used by customers for

custom reporting.

Indexes on Description

TransactionN Primary key, clustered

BookedDate Nonclustered

PostingDate Nonclustered

TypeColumn

TransactionN int Sequential transaction number assigned by the Post program Close operation.

CustomerN int The customer number of the closed job, copied from the Open Job table.

Relates to: Customer table

JobDescription varchar (30) The job description of the closed job, copied from the Open Job table

InvoiceN int The invoice number of the final bill, copied from the Accounting Input table

PostingDate datetime The date the job was closed (when Close ran).

JobN int The job number of the billed job, copied from the Open Job table

SalesAnalysis decimal (9,2) For detailed records, AR transactions only. The value in this field is computed

and written here by the Close operation, which adds up all the accounting dollars

for the General Ledger sales accounts (i.e., it is the sum of all offsetting

transactions to General Ledger sales accounts).

Transactions decimal (15,2) The invoice amount, from the accounting input table

Quantity int The quantity ordered.

CustomersPON varchar (14) The customer's PO number.

BookedDate datetime The date on which the job was booked.

ShippedDate datetime The date on which the job was shipped.

ProductCode int The product code assigned to the job.

Relates to: ProductCode table

SalesmanN int The salesperson assigned to the job.

Relates to: Salesperson table

QuoteFlag tinyint Flag indicating whether or not the job was quoted. 0 = no; 1 = yes.

PricePerM decimal (9,2) The price per thousand quoted on the job.

ReprintCode tinyint 0 = new job. 1 = exact reprint. 2 = Reprint with changes.

3 = reprint due to PE.

Page 312JohnsonGroup

Page 313: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobLog Job Log

TypeOfBilling tinyint Entered by close. Indicates the type of bill posted to create this record.

0 = Close. Transaction closed the job for the first time (final bill on new job).

1 = Reclose. Transaction closed a job that had been reopened (final bill on

reprint).

2 = Partial bill.

3 = Adjustment.

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999)

JobN ([JobN] >= 0 and [JobN] <= 999999)

PricePerM ([PricePerM] >= 0 and [PricePerM] <= 99999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 99999999)

QuoteFlag ([QuoteFlag] >= 0 and [QuoteFlag] <= 2)

ReprintCode ([ReprintCode] >= 0 and [ReprintCode] <= 5)

SalesAnalysis ([SalesAnalysis] >= (-9999999) and [SalesAnalysis] <= 9999999)

SalesmanN ([SalesmanN] >= 0 and [SalesmanN] <= 9999999)

TransactionN ([TransactionN] >= 0 and [TransactionN] <= 999999)

Transactions ([Transactions] >= (-99999999) and [Transactions] <= 99999999)

TypeOfBilling ([TypeOfBilling] >= 0 and [TypeOfBilling] <= 3)

Page 313JohnsonGroup

Page 314: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobMaterial Job Material

Material transactions to the Job Material table by data collection. They can

be editted with Transaction Editor and partially editted with editcost. They

are marked as closed by post (close) and are deleted by zero. They are

used for costing and productivity reports.

Indexes on Description

JobN, LLRecNum Primary key, clustered

UpdateDate Nonclustered

TypeColumn

JobN int A unique number that identifies the job, as entered with the JobVista program.

Used to cross-reference the job to other tables.

Relates to: OpenJob table

MccN int The MCC number from the MatlCostCntr table.

Relates to: MatlCostCntr table

Prefix tinyint The prefix for this transaction. The values for the prefixes are maintained in the

Prefixes table.

ReasonCode int A code from the ReasonCode table indicating the cause of rework.

Relates to: ReasonCodes table

Subjobnumber int The subjob number entered with the job number during input. An optional

feature.

MatlQuantity decimal (9,2) The total quantity charged to this cost center for this transaction.

Employee int The number of the employee who created the transaction.

Relates to: Employee table

Shift tinyint Employee's shift number.

TransDate datetime The date on which the transaction occurred.

TransTime int The time at which the transaction occurred.

Unit decimal (15,4) The dollars per unit entered in a transaction as an override of AIC rate in the

Material Cost Center table. This value will be used to compute the cost of the

transaction. Can be changed manually with editcost.

AICCost decimal (11,2) The computed cost of the transaction (quantity X AIC Rate from Material Cost

Center (MatlCostCntr) table or quantity X $/Unit, if $/Unit is not zero). Can be

changed manually through editcost.

UsedOverride tinyint Indicates which price was used to calculate the cost of the transaction, the AIC

rate in the Material Cost Center (MatlCostCntr) table (0) or the $/Unit in this

table (1).

0 = No

1 = Yes

UpdateDate datetime Date the transaction was written to this table.

UpdateNumber int Not used in SQL.

CloseDate datetime The date the transaction was closed, written here by close when the final bill is

posted.

Page 314JohnsonGroup

Page 315: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobMaterial Job Material

EdittedFlag tinyint Indicates if the transaction has been changed with editcost:

0 = Not edited

1 = Transferred

2 = Edited

3 = NOT USED

4 = Distributed from combo job

UsedInDept smallint The VOC department number, required for hazardous materials (Hazardous

Waste flag in Material Cost Center (MatlCostCntr) table is 1 = yes). The

department must be listed in the Dept Schedule table.

Relates to: DeptSchedule table

ProductionJobN int The original combo-job job number if the job was part of a combo-job and has

been distributed into it's component jobs.

Relates to: OpenJob table

TransSource smallint A code indicating which program generate the transaction.

0: DCPoll

20: MacTrak

30: AC3000

40: WinTrak

45: MyDC

100: JDF

TransErrors tinyint A flag that indicates that a problem was encountered by the real-time updating

system when this transaction was created.

Updater tinyint Not currently used.

LastChanged datetime The date and time this transaction was last changed.

ChangedBy varchar (128) The user name of the operator who last changed this transaction.

LLRecNum int identity Unique key

Note varchar (200) A note entered by the employee with WinTrak or MyDC that provides additional

information about this transaction.

Form smallint Form being worked on if tracking of job forms in material is enabled.

Page 315JohnsonGroup

Page 316: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobMaterial Job Material

ConstraintColumn

Field Constraints

AICCost ([AICCost] >= (-999999999) and [AICCost] <= 999999999)

EdittedFlag ([EdittedFlag] >= 0 and [EdittedFlag] <= 4)

Employee ([Employee] >= 0 and [Employee] <= 999999)

Form ([Form] >= 0 and [Form] <= 9999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

MatlQuantity ([MatlQuantity] >= (-9999999) and [MatlQuantity] <= 9999999)

MccN ([MccN] >= 1 and [MccN] <= 9999999)

Prefix ([Prefix] >= 0 and [Prefix] <= 2)

ProductionJobN ([ProductionJobN] >= 0 and [ProductionJobN] <= 999999999)

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

Shift ([Shift] >= 0 and [Shift] <= 9)

Subjobnumber ([Subjobnumber] >= 0 and [Subjobnumber] <= 9999)

TransErrors ([TransErrors] >= 0 and [TransErrors] <= 1)

TransSource ([TransSource] >= 0 and [TransSource] <= 999)

TransTime ([TransTime] >= 0 and [TransTime] <= 9999)

Unit ([Unit] >= (-9999999) and [Unit] <= 9999999)

UpdateNumber ([UpdateNumber] >= 0 and [UpdateNumber] <= 9999999)

Updater ([Updater] >= 0 and [Updater] <= 9)

UsedInDept ([UsedInDept] >= 0 and [UsedInDept] <= 999)

UsedOverride ([UsedOverride] >= 0 and [UsedOverride] <= 1)

Page 316JohnsonGroup

Page 317: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JOBREPSummaryN JOBREP Summary#

The Job Report Summary table lists the Production summary numbers and

Billing summary numbers assigned to each material and labor cost center

in the Material and Labor Cost Center tables. These summary numbers are

used to summarize and print the costs on the Production Summary and

Billing Worksheet sections of the Job Report. This table controls the

category descriptions, sub-totals, and mark up percentages on the

Production Summary and Billing Worksheet. See the Implementation

Manual for details and samples. Maintained through Table Maintenance.

Numbers 1 to 999 are reserved for Production summary numbers and

numbers 1000 to 32000 are reserved for Billing summary numbers.

Indexes on Description

JOBREPSummaryN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Equipment ProductionSumN

LaborCostCntr ProductionSumN

MatlCostCntr ProdnSummaryN

ShipMethods ProductionSumN

TypeColumn

JOBREPSummaryN int A unique number to identify this summary category. Production summary

numbers are 1 to 999. Billing summary numbers are 1000 to 32000.

JSDescription varchar (40) Description of the summary category, as it should appear on the Job Report.

MarkupMultplr decimal (9,2) A mark up factor for the cost centers summarized to this summary number. For

example, a value of 1.25 marks up costs by 25%. A value of 1 does not mark up

costs at all.

SubTotalN int The summary number to which the totals for this summary number should be

added. For example, if this is Billing Summary Number 2000, and if the total

for 2000 should be totaled into Billing Summary Number 2001, this field should

be 2001. Note that the sub-total number must be greater than the summary

number. Enter 0 if this summary number does not sub-total into another

summary number.

ConstraintColumn

Field Constraints

JOBREPSummaryN ([JOBREPSummaryN] >= 1 and [JOBREPSummaryN] <= 9999)

MarkupMultplr ([MarkupMultplr] >= 0 and [MarkupMultplr] <= 100)

SubTotalN ([SubTotalN] >= 0 and [SubTotalN] <= 9999)

Page 317JohnsonGroup

Page 318: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobShipIndex Job Ship Index

The JobShipIndex tables relates the OpenJob table and the Shipments

table. For each job number it lists the numbers of the shipments for that

job.

Indexes on Description

JobN, ShipmentN Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with the Open program add

options.

Relates to: OpenJob table

ShipmentN int The shipment number of a shipment having shipment items for this job.

Relates to: Shipments table

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

ShipmentN ([ShipmentN] >= 1 and [ShipmentN] <= 999999999)

Page 318JohnsonGroup

Page 319: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobShipments Job Shipments

The JobShipments table contains information about each planned shipment

for the goods produced for a job. Planned shipments are optional.

Indexes on Description

JobN, JobShipmentN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

ShipmentItems JobShipmentN

TypeColumn

JobN int The number of the job in the OpenJob table.

Relates to: OpenJob table

JobShipmentN int Identifier of a planned shipment within a particular job. The combination of the

JobN and JobShipmentN refers to a specific planned shipment.

ShippingMethod int Identifies the method of shipment. This field references a method defined in the

ShippingMethods table. The information in that table controls a variety of

functions provided by the shipping system.

Relates to: ShipMethods table

QtyToShip int Indicates the quantity of pieces to be shipped for this job-shipment.

Addressee varchar (50) Name, usually the company, portion of the address

AddrLine1 varchar (40) Address line 1.

AddrLine2 varchar (40) Address line 2

City varchar (30) The city to which this shipment should be sent.

StateProv varchar (4) The state to which this shipment should be sent.

PostalCode varchar (15) The ZIP code to which this shipment should be sent.

Attention varchar (35) The attention-line portion of the address to which this shipment should be sent.

TelephoneN varchar (25) The telephone number of the person or company to whom this shipment should

be sent.

DeliveryReqstd datetime Indicates the date that the customer requested delivery for this job shipment.

ShippingNotes varchar (250) Contains notes about this shipment, such as special instructions or a description

of this shipment. For example, you could indicate this shipment is for a sales

sample.

PackingNotes varchar (20) Notes about packing for this shipment, such as palletizing, special boxing or

labeling.

InnerPacking varchar (20) Notes and specifications about the inner packaging, for example, "banded in

100s" or "shrink-wrapped." This information is included as part of the shipment

items when the product is shipped.

QuantityCarton int Indicates the number of pieces packaged in each shipping carton.

AddrLine3 varchar (40) Third line of the address

CountryCode varchar (3) 3 letter Country Code. Related to the Country table.

Relates to: Country table

PhoneExt varchar (6) Telephone extension

Page 319JohnsonGroup

Page 320: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobShipments Job Shipments

FaxTelephoneN varchar (25) Fax phone number

Email varchar (128) Email address

FormN int Form being shipped. Zero if entire job is being shipped.

ItemDescLine1 varchar (45) Line 1 of the item description. This flows into the shipment item description.

ItemDescLine2 varchar (45) Line 2 of the item description. This flows into the shipment item description.

ItemDescLine3 varchar (45) Line 3 of the item description. This flows into the shipment item description.

ItemDescLine4 varchar (45) Line 4 of the item description. This flows into the shipment item description.

TaxCode int Tax Code for this shipment. If it exists, it is used as the default in shipping when

bringing in a planned shipment

Relates to: TaxCode table

DeliveryTime datetime The delivery time field is used to store the planned delivery time.

LocationN int The number of the location address from which the shipment is being sent.

Relates to: LocationAddres table

ShipmentType tinyint Indicates the type of shipment and controls how other programs in the shipping,

costing, and accounting systems will process the information associated with this

shipment item.

0 = Product

1 = Job-related

SubjobNumber int The number of the subjob, if appropriate, to be shipped on this planned

shipment.

DeliveryInside tinyint This delivery note field is used to tell the person delivering the shipment whether

the goods need to be delivered inside. This will carry over to the actual

shipment when it is created.

Legal values:

0 = Inside delivery not necessary

1 = Deliver inside

DelCallFirst tinyint This delivery note field is used to indicate whether the person delivering the

shipment should call the recipient prior to the actual delivery. This will carry

over to the actual shipment when it is created.

Legal values:

0 = Do not call first

1 = Call before delivery

Page 320JohnsonGroup

Page 321: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobShipments Job Shipments

ConstraintColumn

Field Constraints

FormN ([FormN] >= 0 and [FormN] <= 9999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

JobShipmentN ([JobShipmentN] >= 0 and [JobShipmentN] <= 9999999)

LocationN ([LocationN]>=(0) AND [LocationN]<=(9999999))

QtyToShip ([QtyToShip] >= 0 and [QtyToShip] <= 999999999)

QuantityCarton ([QuantityCarton] >= 0 and [QuantityCarton] <= 999999)

ShipmentType ([ShipmentType]>=(0) AND [ShipmentType]<=(9))

ShippingMethod ([ShippingMethod] >= 0 and [ShippingMethod] <= 9999999)

SubjobNumber ([SubjobNumber]>=(0) AND [SubjobNumber]<=(9999))

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

Page 321JohnsonGroup

Page 322: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobSpecInstrs Job Spec Instrs

Estimating 3 Job Ticket Information; Information to be moved to the Job

Ticket from the Estimating 3 Special Instructions.

Indexes on Description

JobN, FormN, LineNum Primary key, clustered

TypeColumn

JobN int Job number

Relates to: JobEstHeader table

FormN smallint Form Number

LineNum int Line number of text - used to order lines for this component.

Instructions varchar (5,000) Special Instructions Line - actual text of special instructions.

ConstraintColumn

Field Constraints

FormN ([formn] >= 0 and [formn] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LineNum ([LineNum] >= 0 and [LineNum] <= 9999)

Page 322JohnsonGroup

Page 323: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobStatus1 Job Status 1

The Job Status table contains the list of status transactions posted to each

open job through SFDC. These transactions indicate the status of each job

in its production schedule. Status transactions are defined in the Status

Code table.

Indexes on Description

JobN, TransactionN Primary key, clustered

TypeColumn

JobN int The Job Number of the open job to which the

transaction was posted.

Relates to: OpenJob table

TransactionN int The key to the field. Generated by the system as

a unique identifier within each job number.

Date datetime The date on which the status code was entered.

StatusCode int The status code entered with the transaction,

indicating where the job is in the production

schedule.

Relates to: StatusCode table

Time int The time at which the transaction was recorded.

Set by the computer clock.

Format is hhmm.

EmployeeN int The Employee Number entered with the transaction.

Must match an Employee Number in the Employee

File.

Relates to: Employee table

Quantity decimal (9,2) A quantity entered with the transaction. The

Status Code determines if a quantity is required

or not.

SRCOfTx tinyint Indicates which program was used to enter the

transaction.

0 = SF

1 = SC

DiD tinyint A flag indicating if work on the job in this

department is completed. The Status Code

indicates which transaction means done in

department.

0 = Not Done

1 = Done WC

2 = Done Task

3 = Done Dept

4 = Done Job

5 = Partial Task

Page 323JohnsonGroup

Page 324: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobStatus1 Job Status 1

SubJobN int The number of the subjob, if this is for a

subjob. Otherwise, zero.

SignatureN smallint The number identifying the signature that was

worked on. The Status Code determines whether or

not the user must enter a signature number.

FormN smallint The number identifying the form that was worked

on. The Status Code determines whether or not

the user must enter a form number.

Note varchar (200) A note that can be entered from data collection when the transaction is created.

Shift tinyint Employee's shift number as entered with the employee's number

UpdateDate datetime The shift date associated with this transaction. All of the transactions produced

on a shift will have the same shift date.

ConstraintColumn

Field Constraints

DiD ([DID] >= 0 and [DID] <= 5)

EmployeeN ([EmployeeN] >= 0 and [EmployeeN] <= 999999)

FormN ([formn] >= 0 and [formn] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 9999999)

Shift ([Shift] >= 0 and [Shift] <= 9)

SignatureN ([SignatureN] >= 0 and [SignatureN] <= 99)

SRCOfTx ([SRCOfTx] >= 0 and [SRCOfTx] <= 1)

StatusCode ([StatusCode] >= 0 and [StatusCode] <= 99999)

SubJobN ([SubJobN] >= 0 and [SubJobN] <= 9999)

Time ([Time] >= 0 and [Time] <= 2359)

TransactionN ([TransactionN] >= 0 and [TransactionN] <= 9999999)

Page 324JohnsonGroup

Page 325: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JobStockCalc Job Stock Calc

Estimating 3 Job Ticket Information ; Information to be moved to the Job

Ticket for Stock Calculation values.

Indexes on Description

JobN, FormN, StockNum Primary key, clustered

TypeColumn

JobN int Job number.

Relates to: JobEstHeader table

FormN smallint Form number.

StockNum int Stock number, listed in Layout Info

OrderShts decimal (15,2) Multiplied Order sheets for this stock for this form.

NetSheets decimal (15,2) Multiplied Net Press Sheets for this stock for

this component. (No spoilage)

RunSpoil decimal (15,2) Multiplied Run Spoilage; Press Sheets

BindSpoil decimal (15,2) Multiplied Bindery Spoilage; Press Sheets

MRSpoil decimal (15,2) Multiplied Makeready Spoilage; Press Sheets per MR

SetupSpoil decimal (15,2) Multiplied Setup Spoilage; Press Sheets

BindSUSpl decimal (15,2) Multiplied Bindery Setup Spoilage; Press Sheets

CWSpoil decimal (15,2) Multiplied Core & Wrap Spoilage; Press Sheets

PltChgSpl decimal (15,2) Multiplied Plate Change Spoilage; Press Sheets

AddlMRSpl decimal (15,2) Multiplied Additional Makeready Spoilage; Press Sheets

MiscSpoil decimal (15,2) Multiplied Miscellaneous Spoilage; Press Sheets

ShtCutoffUnit varchar (10) Units for Sheets/Cutoffs

TotalWgt decimal (15,2) Multiplied Weight for this stock

WeightUnit varchar (10) Units for Weight field

TotalLen decimal (15,2) 0 for sheet or Multiplied Total Length for Web

LengthUnit varchar (10) Units for Length

WebList varchar (30) List of Webs for which this stock is used

Page 325JohnsonGroup

Page 326: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: JobStockCalc Job Stock Calc

ConstraintColumn

Field Constraints

AddlMRSpl ([AddlMRSpl] >= (-99999999) and [AddlMRSpl] <= 99999999)

BindSpoil ([BindSpoil] >= (-99999999) and [BindSpoil] <= 99999999)

BindSUSpl ([BindSUSpl] >= (-99999999) and [BindSUSpl] <= 99999999)

CWSpoil ([CWSpoil] >= (-99999999) and [CWSpoil] <= 99999999)

FormN ([formn] >= 0 and [formn] <= 9999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MiscSpoil ([MiscSpoil] >= (-99999999) and [MiscSpoil] <= 99999999)

MRSpoil ([MRSpoil] >= (-99999999) and [MRSpoil] <= 99999999)

NetSheets ([NetSheets] >= (-999999999) and [NetSheets] <= 999999999)

OrderShts ([OrderShts] >= (-999999999) and [OrderShts] <= 999999999)

PltChgSpl ([PltChgSpl] >= (-99999999) and [PltChgSpl] <= 99999999)

RunSpoil ([RunSpoil] >= (-99999999) and [RunSpoil] <= 99999999)

SetupSpoil ([SetupSpoil] >= (-99999999) and [SetupSpoil] <= 99999999)

StockNum ([StockNum] >= 0 and [StockNum] <= 9999)

TotalLen ([TotalLen] >= (-999999999) and [TotalLen] <= 999999999)

TotalWgt ([TotalWgt] >= (-99999999) and [TotalWgt] <= 99999999)

Page 326JohnsonGroup

Page 327: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: JWOpenJobExt JWOpenJobExt

Indexes on Description

JobN Primary key, clustered

TypeColumn

JobN int

Relates to: OpenJob table

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 327JohnsonGroup

Page 328: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: KitTemplate Kit Template

The KitTemplate table contains a list of items that should usually be

shipped with other items. This allows you to set up standard packages of

items that normally get ordered and shipped together. See the description

in the overview of the Finished Goods Inventory Manual for details.

Templates are created via a quick menu option in Finished Goods

Inventory. Template orders are created via a menu option in Finished

Goods Inventory.

Indexes on Description

ItemN, LLRecNum Primary key, clustered

TypeColumn

ItemN int A unique number identifying each item. Required.

Relates to: FGInvMaster table

ItemNumber int Item number of item on template.

Relates to: FGInvMaster table

Quantity int Quantity of above item to be shipped with each

parent item.

PercentOfCost decimal (9,3) For a "distribution" template only, this number

is the percentage of the cost of the job going to

this item. Note that this percentage refers to

the total cost getting transferred into this item,

not the cost of one piece of one component.

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

ItemN ([ItemN] >= 0 and [ItemN] <= 9999999)

ItemNumber ([ItemNumber] >= 0 and [ItemNumber] <= 9999999)

PercentOfCost ([PercentOfCost] >= 0 and [PercentOfCost] <= 100)

Quantity ([Quantity] >= 0 and [Quantity] <= 9999999)

Page 328JohnsonGroup

Page 329: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LaborCostCntr Labor Cost Center

A labor cost center is an area in your plant where a specific production

activity is performed and costs are accumulated; for example, the

typesetting area within the Art/Composition department. Departments like

Art/Composition are broken down into specific labor cost centers; e.g.,

Creative Art, Retouching, Typesetting, and Proofing.

Within each labor cost center are listed the specific operations or activities

performed. For example, listed under cost center Press #1 are the

operations called Makeready, Run, and Washup. `Refer to the

Implementation Manual for a complete description of how labor cost

centers can be arranged.

Indexes on Description

LCCN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Calculations LCCNum

Employee HomeCostCenter

EmployeeStatus HomeCC

Equipment PayrollLcc

FixedAssets LCCN

JobLabor LccN

LaborQuote LccNumber

PlannedLabor LccNumber

QQProdLabor LCC

Questions LCCNum

TypeColumn

LCCN int The number of the department, cost center, and operation. See the

Implementation Manual.

LCCDescription varchar (40) The name of the labor cost center. For example, CREATIVE ART, PRESS, or

HELPER.

AICCostRate decimal (9,2) The All Inclusive Cost Rate. This is an hourly rate used by the update program

to calculate the cost for this operation (in optional cases, the OOP Rate is used).

For cost centers, where 'oo' in the LCC number is equal to 00, the value in this

field is the percentage of chargeable time budgeted for the cost center. The

percent of chargeable time is used by the Labor and Productivity reports.

OOPCostRate decimal (9,2) The Out-of-pocket cost rate. This rate is used to calculate the OOP cost, which

can be shown as an option on some reports. See the Implementation Manual for

details.

ProductionSumN int The Production Summary number from the Job Report Summary table to which

costs to this cost center are added for the Job Report. During installation a series

of Production Summary Numbers was developed and entered in the Job Report

Summary table. The sub-totals and total costs for these logical categories are

printed on the Production Summary section of the Job Report.

Relates to: JOBREPSummaryN table

Page 329JohnsonGroup

Page 330: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: LaborCostCntr Labor Cost Center

BillingSumN int The Billing Summary Number (usually 1000, 2000, 3000, etc.) from the Job

Report Summary table to which costs to this cost center are added for the Job

Report Billing Worksheet. During installation you developed a series of Billing

Summary Numbers and entered them in the Job Report Summary table. The

sub-totals and total costs for these logical categories are printed on the Billing

Worksheet section of the Job Report.

Relates to: JOBREPSummaryN table

Standard decimal (9,2) The production standard for this labor cost center operation. This number is

compared to the actual time or quantity for an operation to see whether it is in

the range where you expect it to be. Standards take two formats: units/hr is a

positive number from 1 to 99999; minutes/operation is a negative number from

-1 to -600.00. A standard of 0 is ignored.

MinimumStd int The minimum percent of standard that will be allowed during input or SFDC

entry. In other words, if the count or time entered is less than this percent of the

standard, the entry will not be allowed. The default is 5 percent.

MaximumStd int The maximum percent of standard that will be allowed during input or SFDC

entry. In other words, if the count or time entered is greater than this percent of

the standard, the entry will not be allowed. The default is 1000 percent.

OperationSumN smallint No longer used.

WIPSummaryN smallint Number that is used by the Work-in-Process Report to total work-in-process

amounts into departmental summaries. All charges to labor cost centers with the

same WIP summary number are added together. The total for each WIP

summary number is listed on the Work-in-Process Report.

Relates to: WIPSummaryNs table

InactiveFlag tinyint Allows you to make an LCC number no longer active for Labor entries via Shop

Floor Data Collection. A value of 1 (yes) in this field makes an LCC number

inactive.

0 = No

1 = Yes

TaskID int Schedule Task type created by labor in this LCC. If this field is left zero, hours

for this LCC in the Labor Quote table will not be loaded into the schedule.

Relates to: SchTask table

DefaultGLSalesAcct int Used for mapping LCC's to GL Sales accounts for automatic distribution from

E3 to Invoicing.

Relates to: GLAccounts table

DefaultAcctgDpt int Used for mapping LCC's to GL Sales accounts and Accounting Department for

automatic distribution from E3 to Invoicing.

Relates to: DeptNames table

NeedsCounters bit Bit field that indicates whether or not the start and end machine counters need to

be supplied when this lcc is used.

0 = not needed

1 = counters are needed

0 = No

1 = Yes

Page 330JohnsonGroup

Page 331: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: LaborCostCntr Labor Cost Center

NeedsNet bit A bit field that indicates whether or not the net count needs to be supplied when

this lcc is used. The net count is the count of all of the pieces produced minus

any waste.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

AICCostRate ([AICCostRate] >= 0 and [AICCostRate] <= 999999)

BillingSumN ([BillingSumN] >= 0 and [BillingSumN] <= 9999)

DefaultAcctgDpt ([DefaultAcctgDpt] >= 0 and [DefaultAcctgDpt] <= 999999999)

DefaultGLSalesAcct ([DefaultGLSalesAcct] >= 0 and [DefaultGLSalesAcct] <= 999999999)

InactiveFlag ([InactiveFlag] >= 0 and [InactiveFlag] <= 1)

LCCN ([LCCN] >= 1000 and [LCCN] <= 99999 or [LCCN] >= 900 and [LCCN] <= 910)

MaximumStd ([MaximumStd] >= 0 and [MaximumStd] <= 99999)

MinimumStd ([MinimumStd] >= 0 and [MinimumStd] <= 99999)

OOPCostRate ([OOPCostRate] >= 0 and [OOPCostRate] <= 9999)

OperationSumN ([OperationSumN] >= 0 and [OperationSumN] <= 99)

ProductionSumN ([ProductionSumN] >= 0 and [ProductionSumN] <= 9999)

Standard ([Standard] >= (-600) and [Standard] <= 99999)

TaskID ([TaskID] >= 0 and [TaskID] <= 99999)

WIPSummaryN ([WIPSummaryN] >= 0 and [WIPSummaryN] <= 999)

Page 331JohnsonGroup

Page 332: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LaborQuote Labor Quote

The Labor Quote table stores labor estimate data tranferred from the

Estimating system or entered manually in JobVista. If the data is from the

Estimating system, it is computed from the estimate tables, based on the

LCC and the estimate standards, and written to this table during the

association in JobVista. Zero purges the data for closed jobs.

The data is used for estimate/planning to actuals comparisons. EFI Logic

Scheduling also uses this data to load a preliminary schedule for a job.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with JobVista. Used to

cross-reference the job to other tables.

Relates to: OpenJob table

LccNumber int The labor cost center number of the operation in the estimate (each component

in an estimate is made up of a number of operations. The scheduling program

combines all operations for the same task type into a single task for the form.)

Relates to: LaborCostCntr table

SubJobNumber int The subjob number, if any, that this part of the estimate is for. Must be entered

manually in JobVista.

Value decimal (12,2) The dollar value of the estimated cost of the operation. Not used by scheduling.

Hours decimal (9,2) The number of hours the operation will take to complete.

Quantity decimal (12,2) The quantity to be produced or processed by the operation.

CompMultiplier smallint For operations loaded from an estimate: if the component is to be repeated, this

is the number of repetitions, or multiples.

SetupFlag tinyint Indicates the type of operation. Used by the scheduling program. Helper

operations are not loaded into the schedule.

0 = Running operation

1 = Setup operation

2 = Helper operation

3 = Waiting for customer

LLRecNum int identity Unique key for this transaction record.

EstComponentN smallint Estimate component number (for reference).

FormorPartN smallint Form number for this cost estimate. When component multiples are specified,

the labor hours are entered in this table by individual form number.

EstimatedSales decimal (12,2) Written by Estimating, and editable from JobVista, this field is used for

automatic distribution of sales to Invoicing from Estimating3.

Page 332JohnsonGroup

Page 333: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: LaborQuote Labor Quote

ConstraintColumn

Field Constraints

CompMultiplier ([CompMultiplier] >= 0 and [CompMultiplier] <= 999)

EstComponentN ([EstComponentN] >= 0 and [EstComponentN] <= 9999)

EstimatedSales ([EstimatedSales] >= 0 and [EstimatedSales] <= 999999999)

FormorPartN ([FormorPartN] >= 0 and [FormorPartN] <= 9999)

Hours ([Hours] >= 0 and [Hours] <= 99999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

LccNumber ([LccNumber] >= 0 and [LccNumber] <= 99999)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

SetupFlag ([SetupFlag] >= 0 and [SetupFlag] <= 3)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

Value ([Value] >= 0 and [Value] <= 999999999)

Page 333JohnsonGroup

Page 334: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LayoutImages Layout Images

This table includes the detailed information about the layout of images for

wide format components in Estimating 3.

Indexes on Description

IssNum, CompNum,

WebNum, ImageNum

Primary key, clustered

TypeColumn

IssNum int The issue number associated with this record.

Relates to: Estimates table

CompNum int The component number associated with this record.

EstNum decimal (15,2) The estimate number associated with this record.

WebNum int The web/bin/substrate number associated with this record.

ImageNum int The sequential image number associated with this individual image.

ImageDesc varchar (30) Description of individual image

ImageCnt int Number of times this image is reproduced on layout.

ImageWidth decimal (10,4) Width of this individual image.

ImageLength decimal (10,4) Length of this individual image.

ImageLocations varchar (5,000) Delimited list of positions of individual instances of this image on layout.

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

ImageCnt ([ImageCnt] >= 0 and [ImageCnt] <= 9999)

ImageLength ([ImageLength] >= 0 and [ImageLength] <= 99999)

ImageNum ([ImageNum] >= 0 and [ImageNum] <= 99999)

ImageWidth ([ImageWidth] >= 0 and [ImageWidth] <= 99999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 334JohnsonGroup

Page 335: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LocalityTypeList Locality Type List

LocalityType

Indexes on Description

LocalityType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts LocalityName

TypeColumn

LocalityType varchar (150) LocalityType

Active numeric Active

ConstraintColumn

Field Constraints

Page 335JohnsonGroup

Page 336: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LocationAddres Location Address

The Location Address file contains information

about each location from which you will be shipping.

This information is used by the shipping system. The

bill-to address (the address to which carriers should

send shipping bills) and the ship-from address (the

"FROM" address printed on the bills of lading) are

stored here.

Indexes on Description

LocationN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

JobShipments LocationN

Shipments DivisionN

TypeColumn

LocationN int The number associated with this location.

LocationName varchar (50) The name of the location.

BillToAddrLine1 varchar (40) The second line of address for the bill-to

address for this location.

BillToAddrLine2 varchar (40) The third line of address for the bill-to address

for this location.

BilltoCity varchar (30) The city portion of the bill-to address for this

location.

BillToStateProv varchar (4) The state portion of the bill-to address for this location.

BillToPostalCode varchar (15) The postal or zip code portion of the bill-to address for this location.

ARtelephoneN varchar (25) The telephone number to be used by customers

to call this location to reconcile their invoices.

BillToFaxPhone varchar (25) The telephone number of the fax for this location.

ShipAddrLine1 varchar (40) The street address from which goods are shipped

for this location.

ShipCity varchar (30) The city portion of the address from which goods

are shipped for this location.

ShipStateProv varchar (4) The state portion of the address from which

goods are shipped for this location.

ShipPostalCode varchar (15) The zip code portion of the address from which

goods are shipped for this location.

ShipAddrLine2 varchar (40) Second line of "ship from" street address

BillToAddrLine3 varchar (40) Third line of "bill to" street address.

ShipAddrLine3 varchar (40) Third line of "ship from" street address

BillToCountryCode varchar (3) Three letter code of the "bill to" country.

Relates to: Country table

ShipCountryCode varchar (3) Three letter code of the "ship from" country.

Relates to: Country table

Page 336JohnsonGroup

Page 337: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: LocationAddres Location Address

ARPhoneExt varchar (6) Phone extension for ARTelephoneN

ShipEmail varchar (128) The email address for the shipping location.

ShipTelephoneN varchar (25) The telephone number for the shipping location.

ShipPhoneExt varchar (6) The phone extension for the shipping address.

ShipFaxPhone varchar (25) The fax telephone number of the shipping address.

BillToEmail varchar (128) The email address for the billing address

ConstraintColumn

Field Constraints

LocationN ([LocationN] >= 0 and [LocationN] <= 9999999)

Page 337JohnsonGroup

Page 338: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LogicApplMessages Logic Appl Messages

Table to store message templates used to construct confirmation emails

Indexes on Description

KeyN Primary key, clustered

TypeColumn

KeyN int identity numeric key (identity)

MsgType varchar (20) Type of message; eg jobvista_confirm

MainTable varchar (50) The root table where the data will come from

MsgText text The formatted text of the message

MsgSubject varchar (256) What the user would like to see show up on the subject line in the email

message, eg "Job Opened"

ConstraintColumn

Field Constraints

Page 338JohnsonGroup

Page 339: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: LogicLookups Logic Lookups

Table for storing lookup definitions. Lookups stored in this table can be

customized using the LookupBuilder utility.

Indexes on Description

LkupKey, IsCustom Primary key, clustered

TypeColumn

LkupKey varchar (20) A (key) field indicating the type of lookup. There can be multiple lkupkey

entries for a single table.

IsCustom tinyint A flag that indicates if this is the logic supplied lookup or it has been

customized.

0 = Logic supplied

1= Custom

MainTable varchar (256) The "main table" this lookup is looking up on.

Description varchar (50) A description of how/where this lookup will be used, e.g., OpenJob lookup for

order entry.

LookupDef varchar (7,000) An XML string which contains the lookup definition.

ConstraintColumn

Field Constraints

IsCustom ([IsCustom]>=(0) AND [IsCustom]<=(1))

Page 339JohnsonGroup

Page 340: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Logos Logos

Contains jpg or bmp images of Company Logos to be used on Crystal

Reports.

NOTE: Tifs may be used but they cannot be previewed from Table

Maintenance

Indexes on Description

KeyN Primary key, clustered

TypeColumn

KeyN int Numeric key for table

Description varchar (40) Description of this Logo. Users who wish to store logos for multiple divisions

should note the division in this field.

SourceFileName varchar (256) Path and file name used to load the image into Table Maintenance. This field

can not be edited by the user.

LastChanged datetime Date this record was added or edited.

ChangedBy varchar (128) User who added or edited this record.

LogoImage image Image stored for this logo. Image may not be edited.

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 1 and [KeyN] <= 9999999)

Page 340JohnsonGroup

Page 341: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Lookup Lookup

Estimating 3 Standards: Provides the criteria used when the user is given

field lookups in the Operation editing dialogs.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

LookupID int Key field for this lookup.

Description varchar (30) Description of this lookup.

TabName varchar (40) Name of table to use, must be available in the info database and the server.

DisplayFlds varchar (250) List of fields to display for selection.

SearchFlds varchar (250) Fields available in the search of this lookup.

InitSelect varchar (250) An initial selection applied to the records during the lookup.

AllowExpand tinyint Not used in EFI Logic SQL.

KeyN varchar (45) The key field of the lookup table.

KeyDesc varchar (45) The field used as the description of the key in the lookup table.

ConstraintColumn

Field Constraints

AllowExpand ([AllowExpand] >= 0 and [AllowExpand] <= 1)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

LookupID ([LookupID] >= 0 and [LookupID] <= 9999)

Page 341JohnsonGroup

Page 342: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MachineCards Machine Cards

The Machine Cards table stores information about work performed on a

particular machine.

DMI transactions from Auto-Count and serial DMI devices are entered

into the table via the real-time updating system. They may be edited by

Transaction Editor.

Indexes on Description

PPPYDDD, LLRecNum Primary key, clustered

JobN Nonclustered

Press Nonclustered

TypeColumn

Press smallint The department to which the machine belongs.

UpdateDate datetime The shift date associated with this transaction. All of the transactions

produced on the machine for a shift will have the save shift date.

PPPYDDD int Key of Machine Journal file.

This field is composed of the following values:

PPP = Press# or Machine # (1 is the lowest possible machine #) Y =

Last digit of year (3=2003)

DDD = Julian day of year (e.g., January 1=001)

The lowest possible number is 10001.

RunNumber int A number associated with a group of products (job/forms) produced

at the same time on the machine.

GangIndex smallint If multiple products were produced during a single run, this identifies one of the

set of products that were run.

NumberGanged tinyint If multiple products were produced during a single run, this is the number or

products that were run.

JobN int Job # on which work was performed.

Relates to: OpenJob table

FormN smallint Form # on which work was performed.

SubjobNumber int The subjob number related to the job number on which the work was performed.

GrossCounter int Value of the gross counter at the start of this operation.

NetCounter int Value of the net counter at the start of this operation.

OperationCode int Operation code identifying the work or process.

Relates to: OperationCodes table

NOfWebsParts smallint Number of webs running during this operation.

Employee int Employee # of person operating the machine.

Relates to: Employee table

Shift tinyint Shift on which this work is done.

StartDate datetime Date that the operation started.

Page 342JohnsonGroup

Page 343: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MachineCards Machine Cards

TimeOfDay smallint Time of day on which work was started.

CloseDate datetime Date transaction closed. Set by the Job Close process.

AICCost decimal (9,2) Costs associated with operation.

ElapsedHours decimal (12,4) Amount of time spent performing the operation.

Time is hours and hundredths of hours.

GrossCount int Gross count of items produced during the current operation.

NetCount int Net count of items produced during the current operation.

Prefix tinyint The prefix. Values can be 0-8.

DMICategory smallint A code that indicates which catagory the operation code belongs to:

1 = MR1

2 = MR2

3 = RUN

4 = STOP

NumberOut smallint The number of pieces that come out of one impression on a machine.

DirectCost decimal (9,2) This is the cost for running the machine for the job.

It is calculated by adding the Out Of Pocket expense for the machine, from the

Equipment table and the costing rate from the Employee table multiplied by the

number of hours run.

ConfigurationN int The configuration number of the machine performing the work.

Relates to: Equipment table

EdittedFlag tinyint Not currently used.

ProductionJobN int The original combo-job job number if the job was part of a combo-job and has

been distributed into it's component jobs.

Relates to: OpenJob table

TransSource smallint The source of the transaction.

0: DCPoll

20: MacTrak

30: AC3000

40: WinTrak

45: MyDC

100: JDF

TransType tinyint Used as a flag by Auto-Count.

TransErrors tinyint A flag indicating whether or not any errors where detected in the transaction by

the real-time updating system.

Updater tinyint A code indicating which program changed the transaction.

Not currently used.

Reason tinyint A code used to describe why the job is being reworked.

Can be non-0 if prefix in not 0.

LastChanged datetime The date the transaction was last changed.

Not currently used.

Page 343JohnsonGroup

Page 344: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MachineCards Machine Cards

ChangedBy varchar (128) Who last changed the transaction.

Not currently used.

LLRecNum int identity Unique key

Note varchar (200) Any notes or remarks associated with the transaction.

ConstraintColumn

Field Constraints

AICCost ([AICCost] >= (-9999999) and [AICCost] <= 999999)

ConfigurationN ([ConfigurationN] >= 0 and [ConfigurationN] <= 999999)

DirectCost ([DirectCost] >= (-9999999) and [DirectCost] <= 9999999)

DMICategory ([DMICategory] >= 0 and [DMICategory] <= 99)

EdittedFlag ([EdittedFlag] >= 0 and [EdittedFlag] <= 1)

ElapsedHours ([ElapsedHours] >= 0 and [ElapsedHours] <= 999999)

Employee ([Employee] >= 0 and [Employee] <= 999999)

FormN ([formn] >= 0 and [formn] <= 9999)

GangIndex ([GangIndex] >= 0 and [GangIndex] <= 99)

GrossCount ([GrossCount] >= 0 and [GrossCount] <= 999999999)

GrossCounter ([GrossCounter] >= 0 and [GrossCounter] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

NetCount ([NetCount] >= (-999999999) and [NetCount] <= 999999999)

NetCounter ([NetCounter] >= 0 and [NetCounter] <= 999999999)

NOfWebsParts ([NOfWebsParts] >= 0 and [NOfWebsParts] <= 99)

NumberGanged ([NumberGanged] >= 0 and [NumberGanged] <= 8)

NumberOut ([NumberOut] >= 0 and [NumberOut] <= 99)

OperationCode ([OperationCode] >= 0 and [OperationCode] <= 9999)

PPPYDDD ([PPPYDDD] >= 10000 and [PPPYDDD] <= 9999366)

Prefix ([Prefix] >= 0 and [Prefix] <= 8)

ProductionJobN ([ProductionJobN] >= 0 and [ProductionJobN] <= 999999999)

Reason ([Reason] >= 0 and [Reason] <= 1)

RunNumber ([RunNumber] >= 0 and [RunNumber] <= 999999)

Shift ([Shift] >= 0 and [Shift] <= 9)

SubjobNumber ([SubjobNumber] >= 0 and [SubjobNumber] <= 9999)

TimeOfDay ([TimeOfDay] >= 0 and [TimeOfDay] <= 8000)

TransErrors ([TransErrors] >= 0 and [TransErrors] <= 1)

TransSource ([TransSource] >= 0 and [TransSource] <= 999)

TransType ([TransType] >= 0 and [TransType] <= 9)

Updater ([Updater] >= 0 and [Updater] <= 9)

Page 344JohnsonGroup

Page 345: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MachineInfo Machine Info

Estimating 3 Standards: Machine Information table. Contains

specifications for all machines in the Estimating 3 operations, including

presses, folders, cutters, bindery machines, etc.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on server only).

OperID varchar (8) Operation ID of operation using this machine

MchType int Indicates what type of machine this is:

0 = other

1 = sheet offset

2 = web offset

3 = letter press

4 = bind type

PerfType int Perfector Type

0 = not a perfecting press

1 = perfecting on 2C: straight or 1/1

on 3C: straight or 2/1

on 4C: straight or 2/2 - 3/1

on 5C: straight or 3/2 - 4/1

on 6C: straight or 3/3 - 4/2

2 = perfecting on 4C: straight or 2/2 only

on 6C: straight or 4/2 only

3 = perfecting on 4C: straight or 3/1 only

on 5C: straight or 4/1 only

4 = perfecting on 5C: straight or 3/2 only

5 = perfecting on 6C: straight or 4/2 - 5/1 only

6=perfect in one position on 6C and up

NumUnits int Number of press Units (same as number colors for now)

NumWebs int Number of Web stands (web feeders) i.e., maximum number of webs that can

be printed on this press

VaryingDim int Indicates whether this machine allows varying dimensions (cutoffs) 0=No,

1=Yes

MinWidth decimal (9,3) Minimum width of stock handled by machine

MinLength decimal (9,3) Minimum length of stock handled by machine

MaxWidth decimal (9,3) Maximum width of stock handled by machine

MaxLength decimal (9,3) Maximum length of stock handled by machine

SpoilID int Default Spoilage Table identifier

MaxDiff decimal (9,2) Max difficulty factor

Page 345JohnsonGroup

Page 346: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MachineInfo Machine Info

WUFlag int Indicates whether this machine requires washup.

0 = no washup

1 = WU all colors

2 = WU side with most colors

NumFdr int Number of feeders (pockets for bindery equipment)

MinThick decimal (9,3) Minimum thickness for this press

MaxThick decimal (9,3) Max thickness for this press

MainEquipNum smallint Used for mapping to the Equipment table. Can be used to provide the estimator

with a selection of machine configurations.

Relates to: DeptSchedule table

HeadBarDepth decimal (6,4) This field records the depth needed for the head color registration bar, if any, on

this press.

SideBarDepth decimal (6,4) This field records the depth needed for the side color registration bar, if any, on

this press.

GripperDepth decimal (6,4) This field records the depth needed for the gripper, if any, on this press.

SideGuideDepth decimal (6,4) This field records the depth needed for the side guide, if any, on this press.

DefaultGap decimal (9,3) Default gap used to provide length of repeat when single image is used in a wide

format component.

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

MainEquipNum ([MainEquipNum] >= 0 and [MainEquipNum] <= 999)

MaxDiff ([MaxDiff] >= (-9999) and [MaxDiff] <= 9999)

MaxLength ([MaxLength] >= 0 and [MaxLength] <= 99999)

MaxThick ([MaxThick] >= 0 and [MaxThick] <= 99999)

MaxWidth ([MaxWidth] >= 0 and [MaxWidth] <= 99999)

MchType ([MchType] >= 0 and [MchType] <= 99999)

MinLength ([MinLength] >= 0 and [MinLength] <= 99999)

MinThick ([MinThick] >= 0 and [MinThick] <= 99999)

MinWidth ([MinWidth] >= 0 and [MinWidth] <= 99999)

NumFdr ([NumFdr] >= 0 and [NumFdr] <= 9999)

NumUnits ([NumUnits] >= 0 and [NumUnits] <= 9999)

NumWebs ([NumWebs] >= 0 and [NumWebs] <= 999)

PerfType ([PerfType] >= 0 and [PerfType] <= 9)

SpoilID ([SpoilID] >= 0 and [SpoilID] <= 99999)

VaryingDim ([VaryingDim] >= 0 and [VaryingDim] <= 1)

WUFlag ([WUFlag] >= 0 and [WUFlag] <= 9)

Page 346JohnsonGroup

Page 347: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MaintFiles Maint Files

This contains a list of files for each category in table maintenace

Indexes on Description

KeyN, FileNumber Primary key, clustered

TypeColumn

KeyN int category number

Relates to: FileMaintDefs table

FileNumber int file number for the table

SequenceN int The sequence number indicates the order the table will show up in its category in

the Table Maintenance application.

ConstraintColumn

Field Constraints

FileNumber ([FileNumber] >= 0 and [FileNumber] <= 9999999)

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

Page 347JohnsonGroup

Page 348: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Markups Markups

Estimating 3 Standards: Markup options. Lists internal markups and

names of Overall Markup tables available in Estimating 3.

Indexes on Description

MkUpID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer DefOverallMarkup

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

MkUpID varchar (15) ID For Markup (referenced in standards by markup questions)

Pct decimal (9,2) % Markup (eg. 10 = 10%)

Description varchar (30) Description of markup

MUTab int Indicates whether this is a markup value or table. 0 = Markup value used in

standards, 1 = Markup table, details are in MarkupTab

BreakType varchar (1) Q = Quantity

C = Cost (Not yet implemented)

IntervalType tinyint Type of interval used when calculating this markup. 0 = Discrete intervals, 1 =

Prorated between breaks

LabDef tinyint Not yet implemented

MatDef int Not yet implemented.

OPDef tinyint Not yet implemented.

StkDef tinyint Not yet implemented.

ConstraintColumn

Field Constraints

IntervalType ([IntervalType] >= 0 and [IntervalType] <= 4)

LabDef ([LabDef] >= 0 and [LabDef] <= 4)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

MatDef ([MatDef] >= (-99999) and [MatDef] <= 99999)

MUTab ([MUTab] >= 0 and [MUTab] <= 99999)

OPDef ([OPDef] >= 0 and [OPDef] <= 4)

Pct ([Pct] >= (-9999) and [Pct] <= 9999)

StkDef ([StkDef] >= 0 and [StkDef] <= 4)

Page 348JohnsonGroup

Page 349: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MarkupTab Markup Tab

Estimating 3 Standards: Markup Table - Contains details of Overall

Markup options.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

MkUpID varchar (15) ID For Markup - Markup options available to user for Overall Markups

BrkPt decimal (12,2) Quantity Break Point

Labor decimal (9,4) Markup for this interval (eg. 10 = 10%)

Material decimal (9,4) Markup for this interval (eg. 10 = 10%)

OutsidePurch decimal (9,4) Markup for this interval (eg. 10 = 10%)

Stock decimal (9,4) Markup for this interval (eg. 10 = 10%)

ConstraintColumn

Field Constraints

BrkPt ([BrkPt] >= 0 and [BrkPt] <= 999999999)

Labor ([Labor] >= (-999) and [Labor] <= 999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Material ([Material] >= (-999) and [Material] <= 999)

OutsidePurch ([OutsidePurch] >= (-999) and [OutsidePurch] <= 999)

Stock ([Stock] >= (-999) and [Stock] <= 999)

Page 349JohnsonGroup

Page 350: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MasterFieldSchema Master Field Schema

Contains documentation on columns in EFI Logic tables and how they are

used.

Indexes on Description

FileName, FieldName Primary key, clustered

TypeColumn

FileName varchar (20) Name of table

FieldName varchar (20) Name of column

LLFieldName varchar (5) <obsolete>

TextDesc varchar (850) Description of column usage

ColType smallint The SQL column type for checking the schema (maintained automatically by EFI

Logic SQL build process).

ColPrec smallint The SQL column precision for checking the schema (maintained automatically

by EFI Logic SQL build process).

ColScale tinyint The SQL column scale for checking the schema (maintained automatically by

EFI Logic SQL build process).

ColConstraint varchar (200) The SQL column constraint for checking the schema (maintained automatically

by EFI Logic SQL build process).

OmitCodes bit This flag allows complete documentation for codes entries to be entered into the

field description and not have the Table Documentation report include the codes

list entries.

LogicType int Used internally to designate time fields. Presently a value of 1 indicates a time.

Prompt varchar (25) Suggested prompt or column header for this field

ConstraintColumn

Field Constraints

Page 350JohnsonGroup

Page 351: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MasterForeignKey Master Foreign Key

This table is generated and used internally to simplify detection of table

relationships.

Indexes on Description

FKConstraintName,

ReferencingTable,

ReferencingColumn

Primary key, clustered

TypeColumn

RelatedTable varchar (50) This is the table of the primary key. eg. Customer table is the related table for

the OpenJob CustomerN field relationship.

RelatedKeyColumn varchar (50) The column in the related table that is the key of the relationship.

KeySeq int The sequence of the column in the key relationship. Normally will be 1 unless

multiple columns are included in the relationship.

ReferencingTable varchar (50) The table holding the referencing column - eg. The OpenJob table holds the

CustomerN field.

ReferencingColumn varchar (50) The column containing the foreign key relationship.

FKConstraintName varchar (120) The constraint that defines the relationship.

PKConstraintName varchar (120) The constraint for the key of the related table. Normally this will be the primary

key of that table. CustShipAddr is one table which has relationships based on a

second key, GlobalID.

IsDisabled bit Whether the key is enabled (0)as for header/detail relationships or disabled(1) as

for related references.

ReferencedFromKey bit Whether the referencing column is also the key of its own table, as in

JobEstHeader's relationship to OpenJob.

ConstraintColumn

Field Constraints

Page 351JohnsonGroup

Page 352: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MasterParams Master Parameter

The Master Parameter table describes the function of each system

parameter. System parameters allow the system to be tailored to the needs

and preferences of each customer.

Indexes on Description

ParameterN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

ApplProgramDesc CtrlParameter

TypeColumn

ParameterN int The identifying number of the parameter.

ParameterName varchar (40) Name of parameter

Description1 varchar (850) Description of the parameter's use and meanings of valid values.

ParameterType tinyint Type of the parameter- 0=numeric, 1=string

LOGICMaintains tinyint Whether parameter can be edited from System Maintenance.

ApplicationN tinyint Indicates the application category used for this parameter.

MinimumValue int Minimum value for a numeric parameter or 0 for a string parameter.

MaxorStrLen int Maximum value for a numeric parameter or the maximum character length for a

string parameter.

DefaultValue varchar (60) Default value of parameter when created.

ArchiveName varchar (20) The old name for this parameter. Preserved for a transitional period.

ConstraintColumn

Field Constraints

ApplicationN ([ApplicationN] >= 0 and [ApplicationN] <= 255)

LOGICMaintains ([LOGICMaintains] >= 0 and [LOGICMaintains] <= 1)

MaxorStrLen ([maxorstrlen] >= (-999999999) and [maxorstrlen] <= 999999999)

MinimumValue ([MinimumValue] >= (-999999) and [MinimumValue] <= 9999999)

ParameterN ([ParameterN] >= 0 and [ParameterN] <= 99999)

ParameterType ([ParameterType] >= 0 and [ParameterType] <= 2)

Page 352JohnsonGroup

Page 353: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MasterSchema Master Schema

Table to contain all table names and documentation. Used by Job Works

to access custom tables.

Indexes on Description

FileName Primary key, clustered

TypeColumn

FileName varchar (20) Name of table

FileNum int No longer used, except by Table maintenance. If table is going to be edited by

Table Maintenance, a number needs to be assigned.

ApplNum int Used to indicate a custom table (5), one that is accessible from JobWorks

custom forms(1) and others (0).

NiceName varchar (30) Text name of table

KeyTag varchar (30) Descriptive field to accompany key for header type table

FileLevel int 1 = header, 2 = detail

Used by Table Maintenance to restrict editable custom tables to only header

tables.

TextDesc varchar (850) Description of table's use

AllowImport bit Indicates that this table can be used with the System Maintenance import

function.

AllowRenum bit Indicates that this table can be renumbered using System Maintenance.

ApplicationN tinyint Application category for this table. All tables are assigned to a particular

application category, even though many are accessed and, perhaps, updated by

several applications.

AllowExtension bit Indicates that table can be used as a root table when creating custom forms in

Form Designer or Table Maintenance.

ConstraintColumn

Field Constraints

Page 353JohnsonGroup

Page 354: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MaterialClass Material Class

The MaterialClass table contains definitions and conversion factors for

different classes of material. It specifies functions, factors and literals for

pricing, ordering, using, and estimating material. It also contains

specifications for up to two lines of text to be printed on the purchase

order.

Indexes on Description

MatClassN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

MatlCostCntr MaterialClass

TypeColumn

MatClassN int Key into the MaterialClass table.

MatClassDesc varchar (60) Description of this material class. For example: Ink - ordered by the drum, used

by the pound.

PricingFunc smallint This function is used to calculate the extended price on a purchase order.

Valid choices are

1 = divide by a factor

extended price = (quantity*unit price)/factor

2 = Cwt (price per hundred weight)

extended price = (quantity*unit price*Mwt)/100000

(NOTE: Mwt is MWT column from the MatlCostCntr table)

(NOTE: the factor is ignored for this function)

PricingFactor decimal (15,3) This is the factor used with the pricing function to calculate extended price on a

purchase order. Valid choices are 1, 100, 1000.

PriceUnitAbbr varchar (5) This is the abbreviation that will be printed on the purchase order. A '/' will be

pre-pended. Examples are ea, Ms, box, kg. and is the unit the the purchase price.

OrderLiteral varchar (10) This is the literal that is used by Purchasing to describe the units that were

ordered and therefore will be received. Examples are "sheets" (of paper) or

"cartons" (of film).

OrderFunction smallint This function is used to convert quantities in "order units" to "usage units." For

example, film may be ordered by the box, but used by the foot. Valid choices

are:

0=multiply usage quan = order quan * factor

1=divide usage quan = order quan / factor

3=area usage quan = order quan * factor / width

(NOTE: width is the Width column from MatlCostCntr table.)

(NOTE: often used for webstock)

OrderFactor decimal (15,3) This is the factor used with the Order function to convert quantities from "order

units" to "usage units."

UsageLiteral varchar (10) This is the literal used to designate the units in which a material is consumed or

used. This literal is used for headings on reports and by Inventory.

Page 354JohnsonGroup

Page 355: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MaterialClass Material Class

UsageFunction smallint This is the function used to value inventory. It is mostly used for paper that is

used by the sheet, but priced by Cwt.

Valid choice are:

0=multiply by a factor

value = quantity*unit cost*factor

1=divide by a factor

value = quantity*unit cost/factor

2 = Cwt (price per hundred weight)

value = (quantity*unit cost*Mwt)/100000

(NOTE: Mwt is MWT column from the MatlCostCntr table.)

(NOTE: the factor is ignored for this function)

UsageFactor decimal (15,3) This is the factor used with the usage function for inventory valuation.

UsageAbbr varchar (5) The unit of measure to which the AIC rate refers. This unit is included in the

Inventory report as the MCC’s unit.

EstLiteral varchar (10) This is the literal that is used by Estimating 3 to describe the units of the price

used by Estimating.

EstFunction smallint This function is used to apply the Estimating 3 price to the estimated quantities.

EstFactor decimal (15,3) This is the factor used with the Est Function to convert quantities from estimated

units to the units needed to apply the price.

EstMatType smallint This is the type for estimating 3; 1 = stock, 2 = ink or 0 for other.

PoField1 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField2 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField3 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField4 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField5 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField6 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField7 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField8 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField9 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

PoField10 varchar (52) Descriptive information to determine the lines on a printed purchase order. See

documentation.

Page 355JohnsonGroup

Page 356: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MaterialClass Material Class

UsageType int This fields indicates what units are to be used in inventory for usage and

commitments. It allows an estimate association to commit the right type of units.

The actual units are determined within the estimating system.

Current values are:

0 = sheets

1 = weight

2= length

3 = area

ClassType int This class separates material classes to be used for different inventory types.

Current values are 0 = Standard, 1 = Webstock.

Inventory will only allow WebStock MCCs (using InventoryType = 3) to be

assigned a material class of class type 1. These MCCs are handled somewhat

differently from other standard MCCs. For web stock the material class is

primarily used for literals and factors.

UseOrderInventRec bit If set to 1, this field indicates that the order units rather than the usage units are

to be entered into the inventory reconciliation form. The order units are then

converted to usage units before calculating the variance.

UseMCCOrdFactor bit If set to 1, this field indicates that the OrderFactor field in the material class will

be ignored in conversion calculations and the MaterialFactor field from the

MCC record will be used in its place.

UseMCCUsgFactor bit If set to 1, this field indicates that the UsageFactor field in the material class will

be ignored in conversion calculations and the MaterialFactor field from the

MCC record will be used in its place.

UseMCCEstFactor bit This column is not yet implemented

ConstraintColumn

Field Constraints

ClassType ([ClassType] >= 0 and [ClassType] <= 1)

EstFactor ([EstFactor] >= 0 and [EstFactor] <= 9999999)

EstFunction ([EstFunction] >= 0 and [EstFunction] <= 99)

EstMatType ([EstMatType] >= 0 and [EstMatType] <= 99)

MatClassN ([MatClassN] >= 1 and [MatClassN] <= 999999)

OrderFactor ([OrderFactor] >= 0 and [OrderFactor] <= 9999999)

OrderFunction ([OrderFunction] >= 0 and [OrderFunction] <= 99)

PricingFactor ([PricingFactor] >= 0 and [PricingFactor] <= 9999999)

PricingFunc ([PricingFunc] >= 0 and [PricingFunc] <= 99)

UsageFactor ([UsageFactor] >= 0 and [UsageFactor] <= 9999999)

UsageFunction ([UsageFunction] >= 0 and [UsageFunction] <= 99)

UsageType ([UsageType] >= 0 and [UsageType] <= 3)

Page 356JohnsonGroup

Page 357: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MaterialPlan Material Plan

The Material Plan table lists material commitments entered through

JobVista, calculated when associating an estimate or created when an

inventory item is passed through to job costing (optional function).

Indexes on Description

JobN, LLRecNum Primary key, clustered

MccNumber, SchedDate Nonclustered

TypeColumn

JobN int A unique number that identifies the job.

Relates to: OpenJob table

MccNumber int The material cost center number for which materials are committed.

Relates to: MatlCostCntr table

PurchaseOrderN int The PO number on which the material was ordered.

Relates to: PurchaseOrder table

Quantity decimal (12,2) The quantity of the material committed to the job.

SchedDate datetime The date the committed material is expected to be used.

LastRevised datetime The date on which this material commitment was last changed.

FormOrPartN smallint The form or part number in which the material will be used.

Notes varchar (40) Space for notes or comments concerning the material. For example, cutting

instructions could be given here.

HowCommitDone tinyint Indicates how this commitment record was created:

0 = Editted in OPEN

1 = When issued P.O.

2 = Calculated commit

3 = Associated from est.

4 = Edited in JobVista

LLRecNum int identity Unique key

EstComponentN smallint Estimating component number

ConstraintColumn

Field Constraints

EstComponentN ([EstComponentN] >= 0 and [EstComponentN] <= 9999)

FormOrPartN ([formorpartn] >= 0 and [formorpartn] <= 9999)

HowCommitDone ([HowCommitDone] >= 0 and [HowCommitDone] <= 9)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

MccNumber ([MccNumber] >= 0 and [MccNumber] <= 9999999)

PurchaseOrderN ([PurchaseOrderN] >= 0 and [PurchaseOrderN] <= 999999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

Page 357JohnsonGroup

Page 358: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MaterialQuote Material Quote

The Material Quote table stores material estimate data tranferred from the

Estimating system or entered manually using JobVista. If the data is from

the Estimating system, it is computed from the estimate tables, based on

the MCC# and the estimate standards, and written to this table during the

estimate assocation. Zero purges the data for closed jobs.

The data is used primarily for estimate/planning to actuals comparisons.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with JobVista. Used to

cross-reference the job to other tables.

Relates to: OpenJob table

MccNumber int The material cost center number of the item that was included on the estimate.

Relates to: MatlCostCntr table

SubJobNumber int The subjob number, if any, for which the estimate was made.

Value decimal (12,2) The estimated dollar value of the material to be used.

Quantity decimal (12,2) The estimated quantity to be used for the job.

VendorN int Vendor number passed from Estimating to be used in a Purchase Order.

Relates to: Vendor table

SchedDept int The number of the scheduling work center in which this item will be used. Note

that this is only for buyout operations, in which the estimator is prompted for the

department number and item description. The scheduling program loads these

items as schedulable tasks for each buyout item. Not intended for paper; use for

color seps, dies, outside finishing, etc.

Relates to: SchTask table

ItemDescr varchar (45) A description of the buyout item that will be scheduled as a task in the Sched

Work Center (SchedDept field). Prompted for in the buyout operation, loaded

into scheduling when the job is loaded.

LLRecNum int identity Unique key for this transaction record.

EstComponentN smallint Estimate component number (for reference).

FormorPartN smallint Form number for this cost estimate

Notes varchar (1,000) Notes that will be passed through to the purchase order. Can be filled in from

the general notes in Estimating 3 operations.

EstimatedSales decimal (12,2) Written by Estimating, and editable from JobVista, this field is used for

automatic distribution of sales to Invoicing from Estimating.

Page 358JohnsonGroup

Page 359: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MaterialQuote Material Quote

ConstraintColumn

Field Constraints

EstComponentN ([EstComponentN] >= 0 and [EstComponentN] <= 9999)

EstimatedSales ([EstimatedSales] >= 0 and [EstimatedSales] <= 999999999)

FormorPartN ([FormorPartN] >= 0 and [FormorPartN] <= 9999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

MccNumber ([MccNumber] >= 0 and [MccNumber] <= 9999999)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

SchedDept ([SchedDept] >= 0 and [SchedDept] <= 99999)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

Value ([Value] >= 0 and [Value] <= 999999999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

Page 359JohnsonGroup

Page 360: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MaterialTrans Material Trans.

The MaterialTrans table contains all of the transactions for the detailed

material cost centers. Two of those types of records -- receipts and cancels

-- are also maintained for non-detailed material cost centers. See the

description of the RecordType column for more information.

Indexes on Description

MCCN, LLRecNum Primary key, clustered

TypeColumn

MCCN int The number of the material cost center. Numbers 1000 to 99999 are generally

assigned to non-paper stock. Outside contractors are usually listed first in the

file. Numbers 100000 to 999999 are usually assigned to paper stock. See the

Job Costing Implementation Manual for details.

Relates to: MatlCostCntr table

TransDate datetime The 'as of' date for the transaction

DateOrdered datetime This is the date ordered for a receipt, the actual day on which the transaction was

made for an adjustment or a usage.

JobN int For a receipt, this is the job number for which the material was ordered. For a

usage, this is the job number for which the item was used.

Relates to: OpenJob table

PurchaseOrderN int If this is a receipt, this is the purchase order number against which the material

was received.

Relates to: PurchaseOrder table

VendorN int The vendor number for the material, as copied from the corresponding entry in

the PurchaseOrder table.

Relates to: Vendor table

QtyOrdered decimal (9,2) The quantity ordered, copied from the corresponding entry in the POItem table

by Purchasing. For an adjustment, this is the new balance entered with

Inventory.

LastChanged datetime Update number, indicating which run of update posted this transaction to the

table.

Priceunit decimal (10,4) The cost per unit for the material.

RemainingQty decimal (15,2) For a receipt record, the quantity received as entered via Purchasing. For an

adjustment, the amount of the adjustment as entered with Inventory.

QtyRecUUnits decimal (9,2) The quantity received in "usage units." For an adjustment, it will be zero.

POItemN smallint The item number of the item being received.

Page 360JohnsonGroup

Page 361: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MaterialTrans Material Trans.

RecordType tinyint The type of transaction. Legal values are:

1="putback" (minus update)

2=receipt

3=reverse PE (minus update)

4=positive adjustment

5=balance forward

6=usage

7=P(rinter's) E(rror)

8=negative adjustment

SourceOfTran smallint The name of the program that entered this

transaction. Legal values are:

0=Conversion

1=Purchasing/Receive

2=Real Time Update

3=Inventory

4=Inventory Purge

5=Inventory Reconciliation

ReasonCode int This code is a key into the ReasonCodes table. It points to a reason for the

transaction.

Relates to: ReasonCodes table

ReasonText varchar (50) This is either text loaded from the ReasonCodes table or entered by the user.

Whodunnit varchar (128) This is the logname of the user who was running the program that made the

transaction.

Changed tinyint This is a flag that indicates whether or not anything in the record has been

changed by Inventory.

QtyRecOUnits decimal (9,2) This is the quantity received in "order units." It is used for determining order

status.

PriceOUnits decimal (10,4) Price in order units.

LLRecNum int identity Unique key

Page 361JohnsonGroup

Page 362: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MaterialTrans Material Trans.

ConstraintColumn

Field Constraints

Changed ([Changed] >= 0 and [Changed] <= 1)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MCCN ([MCCN] >= 1 and [MCCN] <= 9999999)

POItemN ([POItemN] >= 0 and [POItemN] <= 9999)

PriceOUnits ([priceOunits] >= 0 and [priceOunits] <= 999999)

Priceunit ([priceunit] >= 0 and [priceunit] <= 999999)

PurchaseOrderN ([purchaseordern] >= 0 and [purchaseordern] <= 999999999)

QtyOrdered ([QtyOrdered] >= (-9999999) and [QtyOrdered] <= 9999999)

QtyRecOUnits ([qtyrecounits] >= 0 and [qtyrecounits] <= 9999999)

QtyRecUUnits ([qtyrecuunits] >= 0 and [qtyrecuunits] <= 9999999)

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

RecordType ([RecordType] >= 0 and [RecordType] <= 8)

RemainingQty ([RemainingQty] >= (-9999999) and [RemainingQty] <= 9999999)

SourceOfTran ([SourceOfTran] >= 0 and [SourceOfTran] <= 999)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

Page 362JohnsonGroup

Page 363: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MatlCostCntr Material Cost Center

A material cost center is a cost incurred by using materials or outside

services. Stock items such as ink, film, plates, and paper are examples of

material cost centers. The MatlCostCntr table lists all of the material cost

centers in your plant. See the Job Costing Implementation Manual for an

extensive description of how this table is set up and used.

Indexes on Description

MCCN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

MaterialTrans MCCN

RollStock MCC

WSRollInventory MCC

Related Tables

ACRunDeliveries MaterialCode

ACRunWebs MaterialCode6

Calculations MCCNum

DirectPurchase MaterialCCN

DMIMaterial MaterialCode

InkCalc CCnum

InkTypes CCNum

JobFormSpecs PaperMCCN

JobInk MCCNum

JobLayout StockMCCN

JobMaterial MccN

MaterialPlan MccNumber

MaterialQuote MccNumber

MatlSaftyData MatlCostCntrN

PlannedMaterial MccNumber

POItem MaterialCCN

QQProdMatl MCC

QQSize MCCN

Questions MCCNum

RollTransactions ChangedMCC

Stocks MCCN

StockTypes DefaultMCC

TypeColumn

MCCN int The number of the material cost center. Numbers 1000 to 99999 are generally

assigned to non-paper stock. Outside contractors are usually listed first in the

file. Numbers 100000 to 999999 are usually assigned to paper stock. See the

Job Costing Implementation Manual for details.

MCCDescription varchar (40) The description of the MCC.

AICRate decimal (15,4) The All-Inclusive-Cost Rate. This rate is used by the Work-in-Process Report,

the Job Report, and when closing jobs to calculate the all-inclusive-cost for this

material cost center. See the description of the M Weight (MWT below) and the

chapter on Material Cost Centers in the Job Costing Implementation Manual.

WIPSummaryN smallint The work-in-process (WIP) summary number for the MCC. All charges to

MCCs with the same WIP summary number are totaled in the summary section

of WIP reports.

Relates to: WIPSummaryNs table

Page 363JohnsonGroup

Page 364: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MatlCostCntr Material Cost Center

ProdnSummaryN int The Production Summary Number from the JOBREPSummaryN table to which

costs for this cost center are added for the Job Report. During installation, a

series of Production Summary Numbers was developed and entered into the

JOBREPSummaryN table. The sub-totals and total costs for these logical

categories are printed on the Production Summary section of the Job Report.

Relates to: JOBREPSummaryN table

BillingSummary int The Billing Summary Number (usually 1000, 2000, 3000, etc.) from the

JOBREPSummaryN table to which costs for this cost center are added for the

Job Report Billing Worksheet. During installation, a series of Billing Summary

Numbers was developed and entered into the JOBREPSummaryN table. The

sub-totals and total costs for these logical categories are printed on the Billing

Worksheet section of the Job Report.

Relates to: JOBREPSummaryN table

PurgeType tinyint Controls the type of items for which transactions are deleted when you use the

Purge option of Inventory. The MCCs themselves are not deleted during a

purge. You can delete MCCs for which the Purge type is set to Temporary with

Table Maintenance when their balance is zero and there are no outstanding

commitments, material transactions, orders, or receipts against them. Note: This

only affects the material cost centers used in the Detailed Inventory Control

System. Valid values are:

0 = Undefined

1 = Permanent

2 = Temporary

PassThruflag tinyint Indicates whether or not costs from this cost center should be included in the

total cost of the job when the job is closed. This is used for shipping charges,

postage, and similar expenses passed through to the customer when a job is

invoiced. You might want to see the passed-through costs on your Job Report,

but not on your Sales Report. Valid values are:

0 = Include in Job Cost

1 = Exclude from Job Cost

2 = Exclude if FOB-Manf

MWT int (See the Implementation Manual.) The M weight, or weight per thousand sheets,

used to convert sheets into weight for extension with a cost/unit, that is cost per

hundred weight (cost/Cwt). Use these values:

0 = If the material is not paper and the AIC rate is cost/unit.

0 = If the material is paper and the AIC rate is cost/1000 sheets.

MWT = If the material is paper and the AIC rate is cost/CWT.

1000 = If the material is roll stock, the AIC rate is cost/CWT, and you specify

weight of paper for quantity used when entering transactions.

Color varchar (15) The color of the item.

Width decimal (9,3) The width of the item.

Parameter 10425 is used to determine whether this is in english or metric units.

If english units, this is normally in inches.

If metric, this is normally in millimeters.

Page 364JohnsonGroup

Page 365: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MatlCostCntr Material Cost Center

Length decimal (9,3) The length of the item.

Parameter 10425 is used to determine whether this is in english or metric units.

If english units, this is normally in inches.

If metric, this is normally in millimeters.

BWTorGSM decimal (9,2) For paper items, the standard basis weight or grams per square meter of the

paper.

BasisSize decimal (9,2) For U.S. customers, the standard number of square inches for paper of this stock

type. If you use the metric system, enter 0.

ReorderPoint decimal (9,2) The quantity (in usage units) at which the item should be re-ordered. Used to

produce the Reorder Report. (This applies to detailed items only.)

SelectCode varchar (1) An optional value, either alphabetic or numeric, that you can use to group related

material codes. The meanings of these codes are not stored on line; they are

your responsibility.

LocationWhere varchar (40) The MCC's storage location.

CoreWeight decimal (9,2) For webstock items, the weight of the core.

CustomerN int For customer-owned stock, the number from the Customer table of the customer

who owns the inventory item (or for whom it has been ordered).

Relates to: Customer table

InventoryType tinyint Set via Inventory.

0 = Detailed

1 = Non Detailed

2 = Direct Purchase

3 = Roll Stock

4 = Special

PrimaryVendor int The primary vendor from whom you order this item.

Relates to: Vendor table

HazardousWaste tinyint Indicates whether this material is a Volatile Organic Compound (VOC) to be

tracked for federal environmental reporting. If so, employees must enter a VOC

department number with any material usage transaction to indicate where the

material was used. The VOC department must be listed in the DeptSchedule

table.

0 = No

1 = Yes

Caliper decimal (10,5) The thickness of the material (usually paper).

Depth decimal (9,3) The depth dimension of boxes and other three-dimensional materials.

SecondryVendor int A secondary vendor from whom you might order this material.

Relates to: Vendor table

GLAcctN int The default G/L account number to use when you record a vendor purchase

order invoice for this MCC.

Relates to: GLAccounts table

DepartmentN int Default department number for the account specified in the GLAcctN field. This

is an Accounting department from the DeptNames table.

Page 365JohnsonGroup

Page 366: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MatlCostCntr Material Cost Center

Relates to: DeptNames table

MaterialClass int Key into MaterialClass table.

Relates to: MaterialClass table

QuanOnHand decimal (15,2) Quantity on hand as of today. NOTE: If you have transactions postdated, they

will not be included in this value. Updated any time a record is written to the

MaterialTrans table.

Coated tinyint Indicates whether the material is coated. Possible values are:

0 = Uncoated

1 = 1 Side

2 = 2 Sides

StockType smallint For paper MCCs, the stock type number from the StockTypes table.

Relates to: StockTypes table

ExtraInfo varchar (40) A text field which can be any extra information you would like to include about

a material. This could be used to hold specific ordering information, and then

could be printed on the PO as the 'second line of text.'

InactiveFlag tinyint A flag indicating whether the MCC is inactive. If this flag is set to 1, no usages

can be posted against the material. Valid values are:

0 = No

1 = Yes

Paper tinyint Indicates whether an item is paper. Valid values are:

0 = No

1 = Yes

AverageRollWrapper decimal (2,0) Average weight of brown wrapper on roll of this material.

IsWrapperInRollWgt bit Indicates whether the weight of the brown wrapper is included in the weight that

is printed on the role wrapper. This information is used by Paper Monitor.

Values are:

0=No

1=Yes

0 = No

1 = Yes

IsCoreInRollWgt bit Indicates whether the weight of the fiber core is included in the weight that is

printed on the roll wrapper. This information is used by Paper Monitor. Values

are:

0 = No

1 = Yes

0 = No

1 = Yes

StockBrand varchar (50) Column in which to store brand of paper, Samples: Sappi, Xpedx

Mill varchar (50) Column for mill designation of particular material.

Grade smallint Set of values to specify grade of paper.

Page 366JohnsonGroup

Page 367: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MatlCostCntr Material Cost Center

0 = Unspecified

1 = Gloss-coated paper

2 = Matt-coated paper

3 = Gloss-coated web paper

4 = Uncoated, white paper

5 = Uncoated, yellowish paper

TextureType int Column for texture designation which customer can maintain in Texture table.

Relates to: Texture table

OpacityLevel decimal (5,2) Decimal designation of opacity of paper. Percentage value. Note that a zero

value means the opacity level is unknown or unspecified. Zero does not mean

that the opacity level is actually zero.

Opacity tinyint Choice of JDF opacity designations.

0 = Unspecified

1 = Opaque

2 = Translucent

3 = Transparent

Brightness decimal (5,2) Percentage value used to describe brightness of paper. Note that a zero value

means the brightness is unknown or unspecified. Zero does not mean that the

brightness is actually zero.

MediaType smallint JDF designation of types of media.

0 = Unspecified

10 = Disc

20 = Endboard

30 = EmbossingFoil

40 = Film

50 = Foil

60 = LaminatingFoil

70 = Other

80 = Paper

90 = Plate

100 = ShrinkFoil

110 = Transparency

HoleType int JDF designation of type of hole pattern.

Relates to: JDFHoleType table

MediaColor int JDF designation of media color (for stock type media)

Relates to: JDFMediaColor table

UNSPSCommCode varchar (16) UNSPS commodity code.

Relates to: UNSPSCommodity table

DefaultGLSalesAcct int The default GL Sales account number for this material.

Relates to: GLAccounts table

DefaultAcctgDpt int Used for mapping LCC's to GL Sales accounts and Accounting Department for

automatic distribution from E3 to Invoicing.

Relates to: DeptNames table

Page 367JohnsonGroup

Page 368: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MatlCostCntr Material Cost Center

MaterialFactor decimal (12,2) If the material class associated with an MCC record has any of the fields set that

indicate using this field instead of the factor fields from the material class, this

field must be non zero and will be used in the conversion calculations for this

MCC in place of the factor in the material class associated with that conversion.

ConstraintColumn

Field Constraints

AICRate ([aicrate] >= 0 and [aicrate] <= 999999)

AverageRollWrapper ([AverageRollWrapper] >= 0 and [AverageRollWrapper] <= 99)

BasisSize ([BasisSize] >= 0 and [BasisSize] <= 999)

BillingSummary ([BillingSummary] >= 0 and [BillingSummary] <= 9999)

Brightness ([Brightness] >= 0 and [Brightness] <= 999)

BWTorGSM ([BWTorGSM] >= 0 and [BWTorGSM] <= 99999)

Caliper ([Caliper] >= 0 and [Caliper] <= 99999)

Coated ([Coated] >= 0 and [Coated] <= 2)

CoreWeight ([CoreWeight] >= 0 and [CoreWeight] <= 99)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

DefaultAcctgDpt ([DefaultAcctgDpt]>=(0) AND [DefaultAcctgDpt]<=(9999999))

DefaultGLSalesAcct ([DefaultGLSalesAcct] >= 0 and [DefaultGLSalesAcct] <= 999999999)

DepartmentN ([DepartmentN] >= 0 and [DepartmentN] <= 9999999)

Depth ([Depth] >= 0 and [Depth] <= 999)

GLAcctN ([GLAcctN] >= 0 and [GLAcctN] <= 999999999)

Grade ([Grade] >= 0 and [Grade] <= 10)

HazardousWaste ([HazardousWaste] >= 0 and [HazardousWaste] <= 1)

HoleType ([HoleType] >= 0 and [HoleType] <= 999999)

InactiveFlag ([InactiveFlag] >= 0 and [InactiveFlag] <= 1)

InventoryType ([inventorytype] >= 0 and [inventorytype] <= 4)

Length ([Length] >= 0 and [Length] <= 99999)

MaterialClass ([MaterialClass] >= 0 and [MaterialClass] <= 9999999)

MaterialFactor ([MaterialFactor] >= 0 and [MaterialFactor] <= 9999999)

MCCN ([MCCN] >= 1 and [MCCN] <= 9999999)

MediaColor ([MediaColor] >= 0 and [MediaColor] <= 9999)

MediaType ([MediaType] >= 0 and [MediaType] <= 999)

MWT ([MWT] >= 0 and [MWT] <= 9999)

OpacityLevel ([OpacityLevel] >= 0 and [OpacityLevel] <= 999)

Paper ([Paper] >= 0 and [Paper] <= 1)

PassThruflag ([PassThruflag] >= 0 and [PassThruflag] <= 2)

PrimaryVendor ([PrimaryVendor] >= 0 and [PrimaryVendor] <= 999999999)

ProdnSummaryN ([ProdnSummaryN] >= 0 and [ProdnSummaryN] <= 9999)

PurgeType ([PurgeType] >= 0 and [PurgeType] <= 2)

QuanOnHand ([QuanOnHand]>=(-99999999) AND [QuanOnHand]<=(99999999))

ReorderPoint ([ReorderPoint] >= 0 and [ReorderPoint] <= 99999999)

SecondryVendor ([SecondryVendor] >= 0 and [SecondryVendor] <= 999999999)

StockType ([StockType] >= 0 and [StockType] <= 999)

TextureType ([TextureType] >= 0 and [TextureType] <= 999)

Width ([Width] >= 0 and [Width] <= 99999)

WIPSummaryN ([WIPSummaryN] >= 0 and [WIPSummaryN] <= 999)

Page 368JohnsonGroup

Page 369: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MatlSaftyData Material Safety Data

The MatlSaftyData table contains one entry for each MCC number that

identifies a Volatile Organic Compound (VOC) that must be tracked to

meet federal environmental regulations. Most of the data in this table will

be copied from the Material Safety Data Sheet that the manufacturer or

vendor must supply with the material. This table is maintained with Table

Maintenance. The material item must be listed in the MatlCostCntr table

prior to being defined here.

Indexes on Description

MatlCostCntrN Primary key, clustered

TypeColumn

MatlCostCntrN int The MCC number of this VOC. The MCC must exist in the MatlCostCntr table

before you can define the Material Safety information in this table.

Relates to: MatlCostCntr table

ProductCode varchar (20) The manufacturer's product code for this VOC. Do not confuse this with the EFI

Logic Product Code.

ProductName varchar (20) The brand name of the product.

Manufacturer varchar (20) The name of the manufacturer of the VOC.

Vendor int The Vendor number of the vendor who sold you this product (from the Vendor

table). The vendor must exist in the Vendor table before you can define the

VOC information.

Relates to: Vendor table

FireExplosion varchar (30) The fire and explosion rating data from the material safety data sheet.

Reactivity varchar (30) The reactivity rating data from the material safety data sheet.

HealthData varchar (30) The health data from the material safety data sheet.

Densitylbgal decimal (9,2) The density of the VOC in pounds per gallon.

VOCOfLbs decimal (9,2) The percent of volatility of the VOC from the material safety data sheet.

MfgContact varchar (20) The name of the person at the manufacturer who you can call with questions

regarding this VOC.

ConstraintColumn

Field Constraints

Densitylbgal ([Densitylbgal] >= 0 and [Densitylbgal] <= 99)

MatlCostCntrN ([MatlCostCntrN] >= 0 and [MatlCostCntrN] <= 9999999)

Vendor ([Vendor] >= 0 and [Vendor] <= 999999999)

VOCOfLbs ([VOCOfLbs] >= 0 and [VOCOfLbs] <= 99)

Page 369JohnsonGroup

Page 370: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Matrix Matrix

This table provides pricing breakpoints and values for Estimating 3 press

operations that use grid pricing by click.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on server only).

OperID varchar (12) The ID of the operation to which this matrix entry applies.

QuesID int The question that identifies the run cost function to which this matrix entry

applies.

BrkPt int The quantity breakpoint based on the run quantity for the operation.

BrkType smallint Flag to indicate how price is calculated:

Value greater or equal 0 (>=0) = prorate price between breakpoints

Value smaller than 0 (<0) = select price in discreet intervals

-1 = select down (price at previous breakpoint),

-2 = select up (price at next breakpoint))

Rate decimal (9,4) Price to be used for this breakpoint.

ConstraintColumn

Field Constraints

BrkPt ([BrkPt] >= 0 and [BrkPt] <= 999999999)

BrkType ([BrkType] >= (-9) and [BrkType] <= 9)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

QuesID ([QuesID] >= 0 and [QuesID] <= 9999999)

Page 370JohnsonGroup

Page 371: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MessageLog Message Log

Contains a log of Logic SQL Connector messages. This log is essentially a

duplicate of the log files on the connector server machine. However, if the

server is handling multiple databases, MessageLog will only have the

messages that apply to its database.

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity The sequence number and primary key. Identity column that is normally not

specified on SQL INSERTs.

LogDate datetime Date and time message was logged.

ProgramName varchar (10) Foreign key to ApplProgramDesc of the program that is logging.

Relates to: ApplProgramDesc table

Severity varchar (10) Severity of the message:

. Info: informational

. Warning: Unusual occurance that may be worth investigating.

. Error: An unexpected error that indicates a problem that should be investigated.

If parameter 70014 has been set, email will be sent to the address with the error

message.

Message varchar (7,500) The actual log message.

ConstraintColumn

Field Constraints

Severity ([Severity] = 'Info' or ([Severity] = 'Warning' or [Severity] = 'Error'))

Page 371JohnsonGroup

Page 372: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: MstatData Mstat Data

The current status of machines connected to DMI devices.

Used by PlantVista.

Indexes on Description

Machine Primary key, clustered

TypeColumn

Machine int Machine number from DeptSched table.

Config int Machine configuration number from Equipment table.

LineN int Number of the service that the machine is running on.

SeqN int Not used.

TxDate datetime Not used

TxTime int Not used

LogDate datetime Employee's shift date.

Emp int Employee number

Relates to: Employee table

Shift tinyint Employee's shift

Job int Job number

SJob int Subjob (ifany)

Cust int Customer number

Form int Form number

DispUnits int The ducode ( display/units code ) is an 8 digit number that represents what is

being displayed on the DMI device and in what units for the gross, net, rate and

remaining respectively.

It's use by PlantVista.

The format is:

GD GU ND NU RD RU RMD RMU

Where:

GD gross display: 1 = form gross, 4 = shift gross

GU gross units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

ND net display: 2 = form net, 5 = shift net

NU net units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

RD rate display: always 7

RU rate units: 1 = imps/hr, 2 = pieces/hr, 3 = in/min, 4 = ft/min

RMD remaining display: 8 = remaining gross 3 = remaining net

RMU remaining units: 1 = impressions, 2 = pieces, 3 = inches, 4 = feet

GrossDisp smallint See dispunits

GrossUnits smallint See dispunits

Page 372JohnsonGroup

Page 373: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

NetDisp smallint See dispunits

NetUnits smallint See dispunits

RateUnits smallint See dispunits

RemainDisp smallint See dispunits

RemainUnits smallint See dispunits

GrossCntr int Gross counter reading

NetCntr int Net counter reading.

RemainCntr int Remaining counter reading.

Rate int Machine running speed.

Rateftmin int Machine speed in ft/min

MaxRate int Max rate encounted for this machine.

JobSDate datetime Date that job started.

JobSTime int Time that job started.

FormSDate datetime Date that form started.

FormSTime int Time that form started.

MstatReads int Not used.

DMISTime int Starting time of current operation.

CustOrdQty int Customer order quantity

PrintQty int Quantity being printed.

PrintQtyTime int Not used.

TotParts int Not used

NWide smallint Number wide

NOut smallint Number out.

NGanged smallint Number of job/forms in this run.

NWebs smallint Number of webs

QtyOnSkid int Not used.

WasteSheets int Not used

EquipType smallint Type of machine as specified in the DeptSched table.

FormLen decimal (9,2) Form length

FormWid decimal (9,2) Form width

InchesPerRev decimal (9,2) Inches per each revolution of the cutoff cylinder.

FormFit tinyint Not used

CountsPerRev smallint Sensor counts per revolution of press cylinder

CylCircum decimal (9,2) Circumferance of cutoff cylinder.

Page 373JohnsonGroup

Page 374: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

ScalingFact decimal (9,2) One of the factors used in scaling the DMI counters.

ScaleFactA decimal (9,2) One of the factors used in scaling the DMI counters.

ScaleFactB decimal (9,2) One of the factors used in scaling the DMI counters.

ScaleFactC decimal (9,2) One of the factors used in scaling the DMI counters.

MRObj decimal (9,2) MR objective

RateObj int Objective running rate.

WasteObj decimal (9,2) Waste objective

EstMR1Hrs decimal (9,2) Estimated MR1 hours

EstMR2Hrs decimal (9,2) Estimated MR2 hours

EstRUNHrs decimal (9,2) Estimated RUN hours

MRSecs int Seconds in MR

RunSecs int Number of seconds in RUN mode.

OtherSecs int Number of seconds not in MR or RUN.

OperSecs int Number of seconds since the start of the operation.

PremCat smallint Prem catagory

DMICat smallint DMI catagory

PrevDMICat smallint DMI catagory of the previous operation.

Oper int Operation code

PrevOper int Previous operation code.

OperSDate datetime Date that the operation began.

OperSTime int Time that the operation began.

EOSOper int Operation in effect at end of shift.

ReasonOper int Operation code of the reason for a previous STOP.

DMIType smallint Type of DMI device;

5 = AC500

7 = AC100

ReasonDelay int Number of seconds to wait after a STOP before displaying the reason required

message.

NeedReason tinyint The previous generic STOP operation needs a reasoncode.

EOSGross int Gross at end of shift

EOSNet int Net at end of shift

TotEndGross int Not used

TotEndNet int Not used

TotEndRun int Not used

Page 374JohnsonGroup

Page 375: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

TotFormGross int Not used

TotFormNet int Not used

TotFormRem int Not used

TotRunSecs int Not used

Waste int Waste accumulated of this run.

DMTime int Unused

DMMcc1 int Material code for 1st DMI material entry.

DMMcc2 int Material code for 2nd DMI material entry.

DMMcc3 int Material code for 3rd DMI material entry.

DMMcc4 int Material code for 4th DMI material entry.

DMMcc5 int Material code for 5th DMI material entry.

DMMcc6 int Material code for 6th DMI material entry.

DMMcc7 int Material code for 7th DMI material entry.

DMMcc8 int Material code for 8th DMI material entry.

DMMcc9 int Material code for 9th DMI material entry.

DMMcc10 int Material code for 10th DMI material entry.

DMMult1 decimal (9,2) Multiplier for 1st DMI material entry.

DMMult2 decimal (9,2) Multiplier for 2nd DMI material entry.

DMMult3 decimal (9,2) Multiplier for 3rd DMI material entry.

DMMult4 decimal (9,2) Multiplier for 4th DMI material entry.

DMMult5 decimal (9,2) Multiplier for 5th DMI material entry.

DMMult6 decimal (9,2) Multiplier for 6th DMI material entry.

DMMult7 decimal (9,2) Multiplier for 7th DMI material entry.

DMMult8 decimal (9,2) Multiplier for 8th DMI material entry.

DMMult9 decimal (9,2) Multiplier for 9th DMI material entry.

DMMult10 decimal (9,2) Multiplier for 10th DMI material entry.

DMGross1 int Starting gross count for 1st DMI material code.

DMGross2 int Starting gross count for 2nd DMI material code.

DMGross3 int Starting gross count for 3rd DMI material code.

DMGross4 int Starting gross count for 4th DMI material code.

DMGross5 int Starting gross count for 5th DMI material code.

DMGross6 int Starting gross count for 6th DMI material code.

DMGross7 int Starting gross count for 7th DMI material code.

DMGross8 int Starting gross count for 8th DMI material code.

Page 375JohnsonGroup

Page 376: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

DMGross9 int Starting gross count for 9th DMI material code.

DMGross10 int Starting gross count for 10th DMI material code.

HelpTime int Not used

Help1 int Not used

Help2 int Not used

Help3 int Not used

Help4 int Not used

Help5 int Not used

Help6 int Not used

MACHEntries smallint Not used

MACHMaxEntry smallint Not used.

MACHSample smallint Not used

MACHUpdTime int Not used

MACHScanTIme int Not used

MACHBusy int Not used

MACHSeq int Not used

MACHDebug tinyint Not used

MACHDMach int Not used

MACHDJob int Not used

MACHSortTime int Not used

MACHFormStart int Not used

MACHFormEnd int Not used

Help1Name varchar (40) Not used

Help2Name varchar (40) Not used

Help3Name varchar (40) Not used

Help4Name varchar (40) Not used

Help5Name varchar (40) Not used

Help6Name varchar (40) Not used

DM1Desc varchar (40) Description of 1st DMI material code.

DM2Desc varchar (40) Description of 2nd DMI material code.

DM3Desc varchar (40) Description of 3rd DMI material code.

DM4Desc varchar (40) Description of 4th DMI material code.

DM5Desc varchar (40) Description of 5th DMI material code.

DM6Desc varchar (40) Description of 6th DMI material code.

Page 376JohnsonGroup

Page 377: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

DM7Desc varchar (40) Description of 7th DMI material code.

DM8Desc varchar (40) Description of 8th DMI material code.

DM9Desc varchar (40) Description of 9th DMI material code.

DM10Desc varchar (40) Description of 10th DMI material code.

CustName varchar (40) Customer Name

FormName varchar (50) Form Name

OrderName varchar (40) Not used

MachName varchar (40) Machine name

ConfName varchar (40) Machine configuration name.

OperName varchar (40) Operation description.

EmpName varchar (40) Employee Name

FormHdr varchar (30) Not used

NWebsHdr varchar (30) Not used

NWideHdr varchar (30) Not used

NOutHdr varchar (30) Not used

AllFields varchar (1,900) Not used

JobTaskID int This is the ID used as the operation code when sending job schedules to

PrintFlow.

Page 377JohnsonGroup

Page 378: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

ConstraintColumn

Field Constraints

Config ([Config] >= 0 and [Config] <= 999999)

CountsPerRev ([CountsPerRev] >= 0 and [CountsPerRev] <= 999)

Cust ([Cust] >= 0 and [Cust] <= 999999999)

CustOrdQty ([CustOrdQty] >= 0 and [CustOrdQty] <= 999999999)

CylCircum ([CylCircum] >= 0 and [CylCircum] <= 999999)

DispUnits ([DispUnits] >= 0 and [DispUnits] <= 99999999)

DMGross1 ([DMGross1] >= 0 and [DMGross1] <= 999999999)

DMGross10 ([DMGross10] >= 0 and [DMGross10] <= 999999999)

DMGross2 ([DMGross2] >= 0 and [DMGross2] <= 999999999)

DMGross3 ([DMGross3] >= 0 and [DMGross3] <= 999999999)

DMGross4 ([DMGross4] >= 0 and [DMGross4] <= 999999999)

DMGross5 ([DMGross5] >= 0 and [DMGross5] <= 999999999)

DMGross6 ([DMGross6] >= 0 and [DMGross6] <= 999999999)

DMGross7 ([DMGross7] >= 0 and [DMGross7] <= 999999999)

DMGross8 ([DMGross8] >= 0 and [DMGross8] <= 999999999)

DMGross9 ([DMGross9] >= 0 and [DMGross9] <= 999999999)

DMICat ([DMICat] >= 0 and [DMICat] <= 999)

DMISTime ([DMISTime] >= 0 and [DMISTime] <= 999999)

DMIType ([DMIType] >= 0 and [DMIType] <= 99)

DMMcc1 ([DMMcc1] >= 0 and [DMMcc1] <= 9999999)

DMMcc10 ([DMMcc10] >= 0 and [DMMcc10] <= 9999999)

DMMcc2 ([DMMcc2] >= 0 and [DMMcc2] <= 9999999)

DMMcc3 ([DMMcc3] >= 0 and [DMMcc3] <= 9999999)

DMMcc4 ([DMMcc4] >= 0 and [DMMcc4] <= 9999999)

DMMcc5 ([DMMcc5] >= 0 and [DMMcc5] <= 9999999)

DMMcc6 ([DMMcc6] >= 0 and [DMMcc6] <= 9999999)

DMMcc7 ([DMMcc7] >= 0 and [DMMcc7] <= 9999999)

DMMcc8 ([DMMcc8] >= 0 and [DMMcc8] <= 9999999)

DMMcc9 ([DMMcc9] >= 0 and [DMMcc9] <= 9999999)

DMMult1 ([DMMult1] >= 0 and [DMMult1] <= 9999999)

DMMult10 ([DMMult10] >= 0 and [DMMult10] <= 9999999)

DMMult2 ([DMMult2] >= 0 and [DMMult2] <= 9999999)

DMMult3 ([DMMult3] >= 0 and [DMMult3] <= 9999999)

DMMult4 ([DMMult4] >= 0 and [DMMult4] <= 9999999)

DMMult5 ([DMMult5] >= 0 and [DMMult5] <= 9999999)

DMMult6 ([DMMult6] >= 0 and [DMMult6] <= 9999999)

DMMult7 ([DMMult7] >= 0 and [DMMult7] <= 9999999)

DMMult8 ([DMMult8] >= 0 and [DMMult8] <= 9999999)

DMMult9 ([DMMult9] >= 0 and [DMMult9] <= 9999999)

DMTime ([DMTime] >= 0 and [DMTime] <= 9999999)

Emp ([Emp] >= 0 and [Emp] <= 999999)

EOSGross ([EOSGross] >= 0 and [EOSGross] <= 999999999)

EOSNet ([EOSNet] >= 0 and [EOSNet] <= 999999999)

EOSOper ([EOSOper] >= 0 and [EOSOper] <= 9999)

EquipType ([EquipType] >= 0 and [EquipType] <= 99)

EstMR1Hrs ([EstMR1Hrs] >= 0 and [EstMR1Hrs] <= 999999)

EstMR2Hrs ([EstMR2Hrs] >= 0 and [EstMR2Hrs] <= 999999)

EstRUNHrs ([EstRUNHrs] >= 0 and [EstRUNHrs] <= 999999)

Form ([Form] >= 0 and [Form] <= 999999)

FormFit ([FormFit] >= 0 and [FormFit] <= 1)

FormLen ([FormLen] >= 0 and [FormLen] <= 999999)

FormSDate ([FormSDate] >= 0 and [FormSDate] <= 999999)

Page 378JohnsonGroup

Page 379: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

FormSTime ([FormSTime] >= 0 and [FormSTime] <= 999999)

FormWid ([FormWid] >= 0 and [FormWid] <= 999999)

GrossCntr ([GrossCntr] >= 0 and [GrossCntr] <= 999999999)

GrossDisp ([GrossDisp] >= 0 and [GrossDisp] <= 99)

GrossUnits ([GrossUnits] >= 0 and [GrossUnits] <= 99)

Help1 ([Help1] >= 0 and [Help1] <= 999999)

Help2 ([Help2] >= 0 and [Help2] <= 999999)

Help3 ([Help3] >= 0 and [Help3] <= 999999)

Help4 ([Help4] >= 0 and [Help4] <= 999999)

Help5 ([Help5] >= 0 and [Help5] <= 999999)

Help6 ([Help6] >= 0 and [Help6] <= 999999)

HelpTime ([HelpTime] >= 0 and [HelpTime] <= 999999)

InchesPerRev ([InchesPerRev] >= 0 and [InchesPerRev] <= 999999)

Job ([Job] >= 0 and [Job] <= 999999999)

JobSDate ([JobSDate] >= 0 and [JobSDate] <= 999999)

JobSTime ([JobSTime] >= 0 and [JobSTime] <= 999999)

LineN ([LineN] >= 0 and [LineN] <= 9999)

LogDate ([LogDate] >= 0 and [LogDate] <= 999999)

MACHBusy ([MACHBusy] >= 0 and [MACHBusy] <= 9999999)

MACHDebug ([MACHDebug] >= 0 and [MACHDebug] <= 9)

MACHDJob ([MACHDJob] >= 0 and [MACHDJob] <= 9999999)

MACHDMach ([MACHDMach] >= 0 and [MACHDMach] <= 99999)

MACHEntries ([MACHEntries] >= 0 and [MACHEntries] <= 999)

MACHFormEnd ([MACHFormEnd] >= 0 and [MACHFormEnd] <= 9999999)

MACHFormStart ([MACHFormStart] >= 0 and [MACHFormStart] <= 9999999)

Machine ([Machine] >= 0 and [Machine] <= 9999)

MACHMaxEntry ([MACHMaxEntry] >= 0 and [MACHMaxEntry] <= 999)

MACHSample ([MACHSample] >= 0 and [MACHSample] <= 999)

MACHScanTIme ([MACHScanTIme] >= 0 and [MACHScanTIme] <= 9999999)

MACHSeq ([MACHSeq] >= 0 and [MACHSeq] <= 9999999)

MACHSortTime ([MACHSortTime] >= 0 and [MACHSortTime] <= 9999999)

MACHUpdTime ([MACHUpdTime] >= 0 and [MACHUpdTime] <= 9999999)

MaxRate ([MaxRate] >= 0 and [MaxRate] <= 999999)

MRObj ([MRObj] >= 0 and [MRObj] <= 999999)

MRSecs ([MRSecs] >= 0 and [MRSecs] <= 9999999)

MstatReads ([MstatReads] >= 0 and [MstatReads] <= 999999)

NeedReason ([NeedReason] >= 0 and [NeedReason] <= 1)

NetCntr ([NetCntr] >= 0 and [NetCntr] <= 999999999)

NetDisp ([NetDisp] >= 0 and [NetDisp] <= 99)

NetUnits ([NetUnits] >= 0 and [NetUnits] <= 99)

NGanged ([NGanged] >= 0 and [NGanged] <= 999)

NOut ([NOut] >= 0 and [NOut] <= 999)

NWebs ([NWebs] >= 0 and [NWebs] <= 999)

NWide ([NWide] >= 0 and [NWide] <= 999)

Oper ([Oper] >= 0 and [Oper] <= 9999)

OperSDate ([OperSDate] >= 0 and [OperSDate] <= 999999)

OperSecs ([OperSecs] >= 0 and [OperSecs] <= 9999999)

OperSTime ([OperSTime] >= 0 and [OperSTime] <= 999999)

OtherSecs ([OtherSecs] >= 0 and [OtherSecs] <= 9999999)

PremCat ([PremCat] >= 0 and [PremCat] <= 999)

PrevDMICat ([PrevDMICat] >= 0 and [PrevDMICat] <= 999)

PrevOper ([PrevOper] >= 0 and [PrevOper] <= 9999)

PrintQty ([PrintQty] >= 0 and [PrintQty] <= 999999999)

PrintQtyTime ([PrintQtyTime] >= 0 and [PrintQtyTime] <= 9999999)

QtyOnSkid ([QtyOnSkid] >= 0 and [QtyOnSkid] <= 9999999)

Rate ([Rate] >= 0 and [Rate] <= 999999)

Page 379JohnsonGroup

Page 380: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: MstatData Mstat Data

Rateftmin ([Rateftmin] >= 0 and [Rateftmin] <= 999999)

RateObj ([RateObj] >= 0 and [RateObj] <= 999999)

RateUnits ([RateUnits] >= 0 and [RateUnits] <= 99)

ReasonDelay ([ReasonDelay] >= 0 and [ReasonDelay] <= 99999)

ReasonOper ([ReasonOper] >= 0 and [ReasonOper] <= 9999)

RemainCntr ([RemainCntr] >= 0 and [RemainCntr] <= 999999999)

RemainDisp ([RemainDisp] >= 0 and [RemainDisp] <= 99)

RemainUnits ([RemainUnits] >= 0 and [RemainUnits] <= 99)

RunSecs ([RunSecs] >= 0 and [RunSecs] <= 9999999)

ScaleFactA ([ScaleFactA] >= 0 and [ScaleFactA] <= 9999999)

ScaleFactB ([ScaleFactB] >= 0 and [ScaleFactB] <= 9999999)

ScaleFactC ([ScaleFactC] >= 0 and [ScaleFactC] <= 9999999)

ScalingFact ([ScalingFact] >= 0 and [ScalingFact] <= 9999999)

SeqN ([SeqN] >= 0 and [SeqN] <= 9999999)

Shift ([Shift] >= 0 and [Shift] <= 9)

SJob ([SJob] >= 0 and [SJob] <= 999999)

TotEndGross ([TotEndGross] >= 0 and [TotEndGross] <= 999999999)

TotEndNet ([TotEndNet] >= 0 and [TotEndNet] <= 999999999)

TotEndRun ([TotEndRun] >= 0 and [TotEndRun] <= 999999999)

TotFormGross ([TotFormGross] >= 0 and [TotFormGross] <= 999999999)

TotFormNet ([TotFormNet] >= 0 and [TotFormNet] <= 999999999)

TotFormRem ([TotFormRem] >= 0 and [TotFormRem] <= 999999999)

TotParts ([TotParts] >= 0 and [TotParts] <= 999999)

TotRunSecs ([TotRunSecs] >= 0 and [TotRunSecs] <= 999999999)

TxDate ([TxDate] >= 0 and [TxDate] <= 999999)

TxTime ([TxTime] >= 0 and [TxTime] <= 999999)

Waste ([Waste] >= 0 and [Waste] <= 999999999)

WasteObj ([WasteObj] >= 0 and [WasteObj] <= 999999)

WasteSheets ([WasteSheets] >= 0 and [WasteSheets] <= 999999999)

Page 380JohnsonGroup

Page 381: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: NextEst Next Est

Single field controlling the next Issue Number supplied to a client issuing

an estimate.

Indexes on Description

EstSeq Primary key, clustered

TypeColumn

EstSeq int Number of Next New Estimate: In the estimators' loc work database, it is a

sequence number. On the server, it is the next Issued Estimate number.

ConstraintColumn

Field Constraints

EstSeq ([EstSeq] >= 0 and [EstSeq] <= 999999999)

Page 381JohnsonGroup

Page 382: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Notes Notes

Run notes provided by Estimating 3 concerning press speed and other run

details unique to an operation.

Indexes on Description

IssNum, ConfigNum,

CompNum, OperID,

Instance, CostID, CostIDinst

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number This is the number used to track the particular version of

an estimate. If an estimate is Opened for Edit and reissued, it will receive a new

Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number

EstNum decimal (15,2) Estimate number

OperID varchar (8) Operation ID

GrpOpSeq int Sequence number (including Group ID - GGGOOOO)

Instance smallint Instance of this operation

CostID varchar (4) Cost Function ID ( SU, MR, RUN)

CostIDinst smallint Instance of Cost ID if multiple Cost Functions (eg Makereadies) are used in a

single operation.

LabMatFlag varchar (2) Labor, Outside Purchase or Material Flag

Note1 varchar (30) Note about Cost ID for qty 1 These are generated by Estimating, generally

contains extra information about run operations.

Note2 varchar (30) Note about Cost ID for qty 2

Note3 varchar (30) Note about Cost ID for qty 3

Note4 varchar (30) Note about Cost ID for qty 4

Note5 varchar (30) Note about Cost ID for qty 5

Description varchar (200) General description of Operation Contains list of attachments and other info

about an operation.

PrintFormat varchar (10) Format Code for reports

mult = details of multiple instances of Cost Func

mach = details of multiple Cost Funcs (machines)

ConfigNum int The configuration for this note.

Page 382JohnsonGroup

Page 383: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Notes Notes

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

CostIDinst ([CostIDinst] >= 0 and [CostIDinst] <= 99)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

GrpOpSeq ([GrpOpSeq] >= 0 and [GrpOpSeq] <= 9999999)

Instance ([Instance] >= 0 and [Instance] <= 99)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Page 383JohnsonGroup

Page 384: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ODPTransactions ODP Transactions

This table contains a log of the ODP (Open DMI Protocol) transactions

sent by Shop Floor Data Collection and Auto-Count products.

ODP transactions are strings containing labor, material, job status, and

DMI data.

Indexes on Description

Date, TransNo Primary key, clustered

TypeColumn

TransNo bigint identity A sequence number that reflects the order in which the ODP transaction was

entered.

Date datetime The date and time on which the ODP transaction was added.

ODPData varchar (3,000) The ODP data string.

ShiftDate datetime The shiftdate associated with the transaction.

TxType smallint The type of the ODPTransaction

Employee int Employee that created the transaction

Shift smallint The shift.

ConstraintColumn

Field Constraints

Employee ([Employee]>=(0) AND [Employee]<=(999999))

Shift ([Shift]>=(0) AND [Shift]<=(9))

Page 384JohnsonGroup

Page 385: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: OpenJob Open Job

The OpenJob table stores header information for the jobs in your system.

The job number here is the key for lots of related information like Material

commitments or direct purchases.

Indexes on Description

JobN Primary key, clustered

BookedDate Nonclustered

CustomerN Nonclustered

DueDate Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

Alterations JobN

ComboJobDef JobN

CT_AddlShipInfo JobN

CT_JobForm JobN

CT_JobGrid1 JobN

CT_JobGrid2 JobN

DirectPurchase JobN

JDFRequest JobN

JobFormSpecs JobN

JobLabor JobN

JobMaterial JobN

JobShipIndex JobN

JobShipments JobN

LaborQuote JobN

MaterialPlan JobN

MaterialQuote JobN

PartialBilling JobN

PlannedLabor JobN

PlannedMaterial JobN

Revisions JobN

SubjobDetail JobN

SubjobList JobN

Related Tables

ACRunProducts JobNumber

ARBatch JobNumber

ARTransaction JobN

ComboJobDef ComponentJob

CT_BillPoolInit JobN

CT_CostSheet JobN

CT_EJTmailing JobN

CT_EJTOffset JobN

CT_Job JobN

CT_MailingChecklist JobN

CT_MileStones JobN

CT_RLD JobN

CT_RLM_Job JobN

CT_SoftwareTracker JobN

DirectPurchase ProductionJobN

EJTbindery JobN

EJTcustsup JobN

EJTheader JobN

EJTletterpress JobN

EJToffset1 JobN

EJTprepress JobN

Estimates JobNumber

Page 385JohnsonGroup

Page 386: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

FGInvMaster LastJobN

FormTotalizer Job

JGroupJTicket JobN

JobContactInfo JobN

JobDSFItem JobN

JobEstHeader JobN

JobLabor ProductionJobN

JobMaterial ProductionJobN

JobStatus1 JobN

JWOpenJobExt JobN

MachineCards ProductionJobN

MaterialTrans JobN

POItem JobN

PrintcafeProj JobN

QQHeaderInfo JobN

QQOrder JobNumber

RollTransactions ProductionJob

SchJob JobNumber

ShipmentItems MainReference

WebOrderDetail JobN

WinInvJobs Job

WSRollInventory ProductionJob

TypeColumn

JobN int A unique number that identifies the job. Used to cross-reference the job to other

tables.

CustomersPON varchar (14) The customer's purchase order number for this job, entered with JobVista.

JobDescription varchar (30) A description of the job, entered with Jobvista.

CustomerN int The number of the customer for this job. program.The customer number must be

in the Customer table.

Relates to: Customer table

ProductCode int The product code for this job. It must be a valid number in the ProductCode

table. The Sales Analysis Reports can be used to separate costs according to the

product codes to determine which types of jobs are the most profitable.

Relates to: ProductCode table

SalesmanN int The salesperson number for this job, as taken from the Customer table, or

entered with JobVista. The salesperson number must be in the Salesperson

table.

Relates to: Salesperson table

DueDate datetime The date the job should be completed.

QuotedSales decimal (12,2) The estimated final sale price of the job. This field is displayed in JobVista as

the "Estimated sales" field in the General Info window. When an estimate is

associated with a job, the value entered in this field is controlled by the

Estimated Quoted Sales Source parameter.

JobStatus tinyint The current status of the job.

0 = Open

1 = Closed

2 = Re-opened

Page 386JohnsonGroup

Page 387: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

BookedDate datetime The date the job was booked entered by Jobvista.

ProdPlanner smallint The number of the production planner for the job. The number must be listed in

the Production Planner table.

Relates to: ProdPlanner table

FOBCode tinyint Code indicating whether F.O.B. is at the printer's or the customer's. This value is

used with the Pass Thru Flag in an MCC record to determine how freight is

charged to a particular job.

1 = Our Plant

2 = Customer

IssueNumber int Issue number from the Estimating system for the estimate used for the quote for

the job.

ShippedDate datetime The date the job was shipped.

Configuration int Configuration number from the Estimating system. The Configuration number is

the bindery section specified when the estimate was associated with the job as a

Quote. (formerly part of BindQtyMod field)

Quantity int The quantity to be produced.

ReprintCode tinyint Indicates if the job is new or is being reprinted.

0 = New Job

1 = Reprint

2 = Changes

3 = Reprint-PE

4 = New Rev

5 = Prod Launch

PreviousJobN int The job number assigned the last time this specific work was performed.

Commission decimal (9,2) Commission percentage assigned to the salesperson

for this job.

TO BE IMPLEMENTED IN A FUTURE RELEASE

CommissionCode smallint An optional field for which the use defines the values. Designed to track sales

commissions.

1 = No Commission

2 = Commission level 1

3 = Commission level 2

TargetSell decimal (15,2) The targeted sales price brought over from the estimate when it was associated

with the job. The value entered in this field is controlled by the Estimated Target

Sales Source parameter. Can also be manually entered.

TargetValue decimal (15,2) The targeted value added dollar amount brought over from the estimate when it

was associated with the job. Can be manually entered as well.

ShipCode tinyint Indicates where the job should be shipped, either the billing address or an

alternative address

0 = none

Page 387JohnsonGroup

Page 388: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

1 = Bill To

2 = Ship To

3 = See List

SalesAcctN int Obsolete for SQL. Converted UNIX databases may contain historical data.

Relates to: GLAccounts table

Priority tinyint Indicates to the Scheduling System if this is a top priority job.

0 = Normal Priority

1 = ** TOP PRIORITY **

PriceperM decimal (15,4) The price per thousand units produced for this job.

OversAllowed decimal (9,2) The pecentage of billable overs allowed on the job.

JOBREPRunFlag tinyint Indicates whether or not the Job Report has been run for this job since the last

update to it. You are not allowed to close a job if jobrep has not been run since.

0 = NOT run; 1 = run, okay to close job.

FGIItemNumber int A value of 0 indicates that the current job is not being produced for finished

goods. If the value is non-zero, this field indicates the finished goods item #

which this job is producing.

Relates to: FGInvMaster table

ZEROType tinyint Identifies administrative jobs and determines how the zero program will deal

with the job record and associated transactions:

0 = Standard job

1 = Internal admin. job

SourceOfJob tinyint Indicates how the job was entered into the database.

You may not edit the Customer Order# field for jobs whose Source of job is 7 or

8; the Customer Order# contains the reference back to the original order.

0 = JobVista

1 = Job Ticket

2 = Job Import

3 = QuickQuote

4 = Estimating 3

5 = JobVista (imported)

7 = PrinterSite Internal

8 = Digital StoreFront

9 = Direct order - FG

SourceOfQuote tinyint Source of quote if estimate has been associated

0 = None

1 = Text file

2 = Estimating II

3 = Estimating 3

4 = QuickQuote

PagesPerPiece int Indicates the number of pages in each item produced.

Page 388JohnsonGroup

Page 389: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

CustomerPartN varchar (20) The identifier your customer uses for the product which you are producing. For

example, you may produce purchase orders, which are identified as Form

#12343 at your customer.

NotUsed varchar (20) RESERVED FOR FUTURE EXPANSION.

CustomerOrderN varchar (30) Identifies the order for which you are producing this job. Note that this

supplements a purchase order number. This field identifies the agreement

between the end consumer and the person taking the order. This is commonly

used when: 1) you produce a job for another printer. 2) you produce goods for a

distributor, such as a business forms company. 3) your product is a component

of a master project which has a type of work order number. 4) you want to

record a reference to a specific agreement or proposal, such as "Proposal #14."

For a Printer Site Exchange order, this is the PSE order number.

ExtraJobInfo varchar (5,000) Text field for use by customer. Can be populated from the Estimate Detailed

Description when associated from an estimate from Estimating 3.

RevisionFile varchar (31) This is the path to the revision detail file, relative to the database. If recording

revisions is enabled, whenever a user changes the job ticket detail is logged to

this text file.

TaxCode int Default tax code that will be used by Invoicing when you bill this job.

Relates to: TaxCode table

EarliestStartDate datetime The earliest date on which this job should start being scheduled.

SchedStatus tinyint A status field to indicate when a job is ready to be scheduled. A default value is

taken from the Product Code entry when a Product Code is assigned to a job.

0 = Not ready to schedule

1 = Ready to schedule

2 = Do not schedule

3 = Automatically add to schedule

QtyIndex tinyint The QtyIndex is the quantity index specified in the estimate or quote. (formerly

part of the BindQtyMod field)

QuoteFlag tinyint

1 = Quoted

2 = Not Quoted

FGOrderN int Finished goods order to be filled by this job .This is a print on demand job if this

field is nonzero.

WEBOrderN int This is the order number of the originating printer site fulfillment order. If this is

0 the order did not originate on the web site.

BookedTime datetime The time the job was booked

DueTime datetime The time the job is due.

ShippedTime datetime The time the job was shipped.

FGOrderItemN int The OrderAuditN for the order item that is mapped to this job for a direct order

workflow item.

Page 389JohnsonGroup

Page 390: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

BrandKey int If the job originated with an integrated application (for example, PrinterSite

Exchange), this field holds the unique numeric ID of that integrated application.

This allows real-time status updates about the job to be sent back to the

application.

Relates to: PCafeBrand table

ProductionHold bit A flag that indicates whether or not production is allowed on the job. If set it

prevents data collection clients from working on the job.

0 = No

1 = Yes

PlanIssueNumber int Issue number from the Estimating system for the estimate used for planning the

job.

PlanConfiguration int Configuration number from the Estimating system. The Configuration number is

the bindery section specified when the estimate was associated with the job as a

planning estimate.

PlanQtyIndex tinyint The index of the quantity used in the planning estimate or quote.

SourceOfPlan tinyint Source of the plan used for the job.

0 = None

3 = Estimating 3

4 = QuickQuote

JobCloseDate datetime The date as of which the job was closed.

PrintBuyer int A reference to the print buyer for this job. This number corresponds to the

AddressNumber column in the CustShipAddr record for the customer for this

job. The PrintBuyer would be contained in the Attention field for this record

Relates to: CustShipAddr table

ARContact int A reference to the AR Contact for this job. This number corresponds to the

AddressNumber column in the CustShipAddr record for the customer for this

job. The ARContact would be contained in the Attention field for this record.

Relates to: CustShipAddr table

Page 390JohnsonGroup

Page 391: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OpenJob Open Job

ConstraintColumn

Field Constraints

ARContact ([ARContact]>=(0) AND [ARContact]<=(9999999))

Commission ([Commission] >= 0 and [Commission] <= 100)

CommissionCode ([CommissionCode] >= 0 and [CommissionCode] <= 99)

Configuration ([Configuration] >= 0 and [Configuration] <= 99999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

FGIItemNumber ([FGIItemNumber] >= 0 and [FGIItemNumber] <= 9999999)

FGOrderItemN ([FGOrderItemN] >= 0 and [FGOrderItemN] <= 9999999)

FGOrderN ([FGOrderN] >= 0 and [FGOrderN] <= 999999999)

FOBCode ([FOBCode] >= 0 and [FOBCode] <= 2)

IssueNumber ([issuenumber] >= 0 and [issuenumber] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

JOBREPRunFlag ([JOBREPRunFlag] >= 0 and [JOBREPRunFlag] <= 1)

JobStatus ([JobStatus] >= 0 and [JobStatus] <= 2)

OversAllowed ([OversAllowed] >= 0 and [OversAllowed] <= 99.99)

PagesPerPiece ([PagesPerPiece] >= 0 and [PagesPerPiece] <= 9999)

PlanIssueNumber ([PlanIssueNumber]>=(0) AND [PlanIssueNumber]<=(999999999))

PlanQtyIndex ([PlanQtyIndex]>=(0) AND [PlanQtyIndex]<=(5))

PreviousJobN ([previousjobn] >= 0 and [previousjobn] <= 999999999)

PriceperM ([PriceperM] >= 0 and [PriceperM] <= 999999999)

PrintBuyer ([PrintBuyer]>=(0) AND [PrintBuyer]<=(9999999))

Priority ([Priority] >= 0 and [Priority] <= 1)

ProdPlanner ([ProdPlanner] >= 0 and [ProdPlanner] <= 9999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

QtyIndex ([QtyIndex] >= 0 and [QtyIndex] <= 5)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

QuotedSales ([QuotedSales] >= 0 and [QuotedSales] <= 999999999)

ReprintCode ([ReprintCode] >= 0 and [ReprintCode] <= 5)

SalesAcctN ([SalesAcctN] >= 0 and [SalesAcctN] <= 999999999)

SalesmanN ([SalesmanN] >= 0 and [SalesmanN] <= 9999999)

ShipCode ([ShipCode] >= 0 and [ShipCode] <= 3)

SourceOfJob ([SourceOfJob] >= 0 and [SourceOfJob] <= 9)

SourceOfPlan ([SourceOfPlan]>=(0) AND [SourceOfPlan]<=(4))

SourceOfQuote ([SourceOfQuote] >= 0 and [SourceOfQuote] <= 4)

TargetSell ([TargetSell] >= 0 and [TargetSell] <= 9999999999999)

TargetValue ([TargetValue] >= 0 and [TargetValue] <= 9999999999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

WEBOrderN ([WEBOrderN] >= 0 and [WEBOrderN] <= 999999999)

ZEROType ([ZEROType] >= 0 and [ZEROType] <= 1)

Page 391JohnsonGroup

Page 392: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: OperationCodes Operation Codes

The Operation Code table defines the operation codes that the DMI system

recognizes. The Operation Code table also defines the category of the

operation, used by premops to determine the type of sequence (MRI,

MRII, or RUN) the machine is in. Also used by DMI for auto state

detection and by SFDC to determine which prompt to display next.

Maintained by Table Maintenance.

Indexes on Description

OperationCode Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Equipment DMIstop

JDFOperationCode OperationCode

MachineCards OperationCode

TypeColumn

OperationCode int Unique number to identify the operation code.

Description varchar (20) The description of the operation code.

OpcodeCategory tinyint Used by DMI to determine how to summarize data on reports. Indicates the

general category of operation into which each operation code fits. This value

relates directly to the DMI Category field, and in many cases will match it. See

the DMI Manual for details.

0 = none

1 = Makeready 1

2 = Makeready 2

3 = Run

4 = Completion

5 = Not Crewed

6 = Event

7 = Idle

9 = Misc

10 = Stop

11 = Stop-Plant

12 = Stop-Supplier

NonCh1Chg0 tinyint If this field is 0, then the operation is an operation whose time is normally

chargeable to a customer; 1 means the operation is not normally chargeable.

DMICategory smallint Required whether or not you will be using DMI. Used by SFDC to determine

which prompt to display after the operator enters an operation code. Used by

DMI for Automatic State Detection. This value relates directly to the Opcode

Category field, and in many cases will match it. See the DMI Manual for details.

0 = none

1 = MR1

2 = MR2

3 = Run

4 = Stop

5 = Un Stop

6 = EOF

7 = EOJ

8 = EOS

9 = EOU

Page 392JohnsonGroup

Page 393: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OperationCodes Operation Codes

10 = HelpIN

11 = HelpOUT

20 = Idle time

60 = Splice

65 = Add DMI.material

66 = Replace DMI.material

67 = Delete DMI.material

68 = End DMI.material Use

69 = Clear DMI.material

70 = Mount Roll

71 = DisMount Roll

72 = Reject Roll

73 = Splice Fail

74 = Web Break

81 = GetCnt

82 = SetCnt

83 = IncCnt

84 = DecCnt

85 = IncDec

86 = DecInc

91 = Matl

92 = Prog

93 = SkidQty

94 = Scale

95 = Jstat

96 = New Skid

ConstraintColumn

Field Constraints

DMICategory ([DMICategory] >= 0 and [DMICategory] <= 99)

NonCh1Chg0 ([NonCh1Chg0] >= 0 and [NonCh1Chg0] <= 1)

OpcodeCategory ([OpcodeCategory] >= 0 and [OpcodeCategory] <= 13)

OperationCode ([OperationCode] >= 0 and [OperationCode] <= 9999)

Page 393JohnsonGroup

Page 394: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Operations Operations

The list of operations used in each component in an Estimating 3 estimate.

Indexes on Description

IssNum, CompNum, OperID,

Instance

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number

EstNum decimal (15,2) Estimate Number

GrpOpSeq int Sequence number (including Group sequence number and Operation sequence

number - GGGOOOO) Used for ordering the Operation Calculations on reports.

OperID varchar (8) Operation ID used for the given component

Instance smallint Instance of this operation in this component (If there are more than one of an

operation this field keeps track of which one is being referenced)

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

GrpOpSeq ([GrpOpSeq] >= 0 and [GrpOpSeq] <= 9999999)

Instance ([Instance] >= 0 and [Instance] <= 99)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Page 394JohnsonGroup

Page 395: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: OpList Operation List

Estimating 3 Standards: contains operation information for all operations

available in Est 3. Whether the operation or process is available in a

particular component type depends on the CompOp entries.

Indexes on Description

LogicID Primary key, clustered

GroupID Nonclustered

OperID Nonclustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

GroupID varchar (8) Department ID for display. Identifies the department to which the operation

belongs.

OperID varchar (8) Unique Operation ID

Opseq int Sequence number for Operation within Department. Controls the sequence in

which the opertions will be calculated as well as the order in which the

operations will appear on the screen, within the departments.

Description varchar (50) Description of operation

PrintFormat varchar (10) Format Code for reports

mult = detail for multiple Cost function instances

mach = detail for multiple Cost Functions

Process tinyint Indicates that this operation is a process ( 1 = Yes, 0 = No)

MachineOperID varchar (8) OperID for link to MachineInfo file (also flags that this should appear in the

Press listbox in Estimating 3). For simple operations this will be the same as the

operation if this is a machine type operation. For processes, it will be the

operation that represents the machine.

TextMapID varchar (8) Short Text string used for categorizing operations for Job Ticket mapping.

DeactivatedOn datetime Date Deactivated ("deleted") or 0 if still valid.

QuoteFormat varchar (10) Currently 'Qxxxx' for field to be added to local QuoteInfo file. This field

determines in which Quote report category this operation will be placed.

SpoilID int Spoilage ID for a spoilage table associated with the operation.

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Opseq ([Opseq] >= 0 and [Opseq] <= 9999)

Process ([Process] >= 0 and [Process] <= 1)

Page 395JohnsonGroup

Page 396: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: OrgTypeList Org Type List

OrgTypeList

Indexes on Description

OrgType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts OrgType

TypeColumn

OrgType varchar (150) Org Type

Active numeric Active

ConstraintColumn

Field Constraints

Page 396JohnsonGroup

Page 397: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: OverallMarkups Overall Markups

Contains the Overall Markup table overrides selected for an Estimating 3

estimate.

Indexes on Description

IssNum, ConfigNum, Seqno Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

ConfigNum int Configuration number

EstNum decimal (15,2) Estimate number

MkUpID varchar (15) ID of Markup table used as basis for this markup.

Description varchar (50) Description of Option - description of markup table.

Seqno int Maintains the user's original order in the chosen markup options.

OverQ1 varchar (4) Codes for which markups have override - Quantity 1

L=Labor, M=Material, O=Outside, S=Stock

If code is not included for a class of costs, the markup is taken from the Markups

table.

OverQ2 varchar (4) Codes for which markups have override - Quantity 2

OverQ3 varchar (4) Codes for which markups have override - Quantity 3

OverQ4 varchar (4) Codes for which markups have override - Quantity 4

OverQ5 varchar (4) Codes for which markups have override - Quantity 5

LaborQ1 decimal (9,4) Overall Labor Markup - Qty1 If overrides are not signalled in Override fields,

the rest of these quantities are calculated from the indicated Markup Table. If

overrides are indicated, they were entered by the user.

MaterialQ1 decimal (9,4) Overall Material Markup- Qty1

OutsideQ1 decimal (9,4) Overall Outside Purchases Markup- Qty1

StockQ1 decimal (9,4) Overall Stock Markup- Qty1

LaborQ2 decimal (9,4) Overall Labor Markup - Qty2

MaterialQ2 decimal (9,4) Overall Material Markup- Qty2

OutsideQ2 decimal (9,4) Overall Outside Purchases Markup- Qty2

StockQ2 decimal (9,4) Overall Stock Markup- Qty2

LaborQ3 decimal (9,4) Overall Labor Markup - Qty3

MaterialQ3 decimal (9,4) Overall Material Markup- Qty3

OutsideQ3 decimal (9,4) Overall Outside Purchases Markup- Qty3

StockQ3 decimal (9,4) Overall Stock Markup- Qty3

Page 397JohnsonGroup

Page 398: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: OverallMarkups Overall Markups

LaborQ4 decimal (9,4) Overall Labor Markup - Qty4

MaterialQ4 decimal (9,4) Overall Material Markup- Qty4

OutsideQ4 decimal (9,4) Overall Outside Purchases Markup- Qty4

StockQ4 decimal (9,4) Overall Stock Markup- Qty4

LaborQ5 decimal (9,4) Overall Labor Markup - Qty5

MaterialQ5 decimal (9,4) Overall Material Markup- Qty5

OutsideQ5 decimal (9,4) Overall Outside Purchases Markup- Qty5

StockQ5 decimal (9,4) Overall Stock Markup- Qty5

ConstraintColumn

Field Constraints

ConfigNum ([ConfigNum] >= 0 and [ConfigNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

LaborQ1 ([LaborQ1] >= (-999) and [LaborQ1] <= 999)

LaborQ2 ([LaborQ2] >= (-999) and [LaborQ2] <= 999)

LaborQ3 ([LaborQ3] >= (-999) and [LaborQ3] <= 999)

LaborQ4 ([LaborQ4] >= (-999) and [LaborQ4] <= 999)

LaborQ5 ([LaborQ5] >= (-999) and [LaborQ5] <= 999)

MaterialQ1 ([MaterialQ1] >= (-999) and [MaterialQ1] <= 999)

MaterialQ2 ([MaterialQ2] >= (-999) and [MaterialQ2] <= 999)

MaterialQ3 ([MaterialQ3] >= (-999) and [MaterialQ3] <= 999)

MaterialQ4 ([MaterialQ4] >= (-999) and [MaterialQ4] <= 999)

MaterialQ5 ([MaterialQ5] >= (-999) and [MaterialQ5] <= 999)

OutsideQ1 ([OutsideQ1] >= (-999) and [OutsideQ1] <= 999)

OutsideQ2 ([OutsideQ2] >= (-999) and [OutsideQ2] <= 999)

OutsideQ3 ([OutsideQ3] >= (-999) and [OutsideQ3] <= 999)

OutsideQ4 ([OutsideQ4] >= (-999) and [OutsideQ4] <= 999)

OutsideQ5 ([OutsideQ5] >= (-999) and [OutsideQ5] <= 999)

Seqno ([Seqno] >= 0 and [Seqno] <= 99999)

StockQ1 ([StockQ1] >= (-999) and [StockQ1] <= 999)

StockQ2 ([StockQ2] >= (-999) and [StockQ2] <= 999)

StockQ3 ([StockQ3] >= (-999) and [StockQ3] <= 999)

StockQ4 ([StockQ4] >= (-999) and [StockQ4] <= 999)

StockQ5 ([StockQ5] >= (-999) and [StockQ5] <= 999)

Page 398JohnsonGroup

Page 399: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ParentCompany Parent Company

This table has a Foreign Key relationship with the Customer table. While

this table is currently not used in EFI Logic SQL reporting, the Customer

column relating to this table could be used for custom reports.

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer ParentCompany

TypeColumn

KeyN int Unique key. May be used internally by EFI Logic software.

CompanyName varchar (24) Name of the Parent Company

LongName varchar (50) This longer version of the name field may be used for reporting.

AddrLine1 varchar (40) First address line

AddrLine2 varchar (40) Second address line

City varchar (30) City portion of the address

StateProv varchar (4) State/Province portion of the addresss

PostalCode varchar (15) Postal Code

CountryCode varchar (3) 3 letter Country Code. Related to Country Table

Relates to: Country table

Contact varchar (35) Main contact person for this company

TelephoneN varchar (25) Telephone number

FaxTelephoneN varchar (25) Fax telephone number

Email varchar (128) E-mail address

CommentN1 varchar (70) May be used for any text.

CommentN2 varchar (70) May be used for any text.

AddrLine3 varchar (40) Third line of address.

PhoneExt varchar (6) Telephone extension

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 9999999)

Page 399JohnsonGroup

Page 400: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PartialBilling Partial Billing

The Partial Billing Table stores records of pre-billings and associated

labor and material costs and quantities. Costs are not calculated by the

program; instead, you enter them into this table via ARmemos or Invoicing

programs, and they are written here by the Close operation of post. This is

a job costing table and does not hold accounting transactions which are

posted to ARtransaction when a partial billing is entered. The Partial

Billing data is used for sales analysis and WIP reporting.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with Job Vista. Used to

cross-reference the job to other files.

Relates to: OpenJob table

PostingDate datetime The accounting batch date when this billing was posted.

SalesAmount decimal (15,4) The sales amount of the transaction, computed by the Post program Close

operation. This figure is the sum of all offsetting transactions to general ledger

sales accounts; that is, the invoice amount minus the passed-thru charges.

LaborCost decimal (15,2) The labor cost, entered in the partial billing transaction using ARmemos or

Invoicing.

MaterialCost decimal (15,2) The material cost, entered in the partial billing transaction using ARmemos or

Invoicing.

InvoiceN int The invoice number of the partial billing transaction, entered with ARmemos or

Invoicing.

QtyInvoiced decimal (11,2) The quantity invoiced, entered in the partial billing transaction using ARmemos

or Invoicing.

CloseDate datetime The date the job was closed, written here by the Post program Close operation

using the batch date on which the job was closed.

LLRecNum int identity Unique key for internal use.

ConstraintColumn

Field Constraints

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

JobN ([JobN] >= 1 and [JobN] <= 999999999)

LaborCost ([laborcost] >= (-999999999) and [laborcost] <= 999999999)

MaterialCost ([materialcost] >= (-999999999) and [materialcost] <= 999999999)

QtyInvoiced ([qtyinvoiced] >= (-9999999) and [qtyinvoiced] <= 9999999)

SalesAmount ([SalesAmount] >= (-999999999) and [SalesAmount] <= 999999999)

Page 400JohnsonGroup

Page 401: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeBrand Integrations

This table is the master table for Integrations that register with Logic, such

as PrinterSite Internal or PrinterSite Exchange. The table includes

identifying information about both the application (typically its Web site)

and the Logic SQL database. Note that when working with this table in

Table Maintenance, it is named Integrations. Any integrated application

that has registered with the MIS will have a record in the Integrations

table. In Table Maintenance, the user may not add records; however, the

user may give the integrated application a user defined name. All other

fields are system populated.

This table is the parent of several tables that store images and other info

about the integration.

Indexes on Description

BrandKey Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

CustomerIntegration PCafeBrandKey

ShipMethIntegration PCafeBrandKey

Related Tables

OpenJob BrandKey

PCafeBrandImage BrandKey

PCafeBrandKeyValue BrandKey

WebOrderDetail BrandKey

WebOrderMaster BrandKey

TypeColumn

FilePath varchar (100) Also known as the branded site ID, the URL of the Web site followed by the

name of the "portal." Except for PrinterSite Internal, the FilePath may not

uniquely identify the Web site. In some cases, it may be blank (PrinterSite

Fulfillment). PrinterSite Fulfillment and PrinterSite Exchange, for example, use

DeviceID instead. The integration sends this information when it registers with

the MIS.

ErpCompanyToken varchar (100) A unique identifier for the Logic SQL database that is accessed via the integrated

app identified by AppType. The MIS Unique ID is entered via System

Maintenance. The integration sends this information when it registers with the

MIS.

AppType varchar (20) The appID. Some possible values are:

fom (represents PrinterSite Fulfillment)

dsfConnector (represents PrinterSite Exchange)

The integration sends this information when it registers with the MIS.

DeviceID varchar (100) Identifies an individual integration. DeviceID is used in combination with

nodeName and appID to specify a destination when transmitting async

(real-time) updates. It is theoretically possible (but unlikely) to have two

integrations with the same appID but different device ids. The integrated

application sends the DeviceID information when it registers with the MIS.

BrandKey int identity The unique key for the table. When an integration registers with the MIS this

value is the next, system-generated, consecutive number.

Page 401JohnsonGroup

Page 402: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PCafeBrand Integrations

IntegrationName varchar (30) The user-defined name for the integrated application, entered with Table

Maintenance. This is the only field that may be accessed by the user; all other

fields are populated by the system when the integration registers with Logic.

Note that in Table Maintenance, when associating Integrations with Customers

or Ship Methods, the user-defined name is displayed on the Integration Form and

in the Integration Lookup.

LicenseMode tinyint For DSF integration only. Populated when a site registers Logic for async

communication (attribute will be included in DSF 4.2 InstallRequest).

Determines the licensing for this DSF site (integration).

0 - none

1 - fulfillment ONLY

2 - DSF ONLY

3 - DSF and fulfillment

ConstraintColumn

Field Constraints

Page 402JohnsonGroup

Page 403: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeBrandImage PCafe Brand Image

PCafeBrandImage stores images (e.g. logos) for PrinterSite Internal web

sites. The parent table is PCafeBranf.

Note that the entire xml text for the <Image> element is stored as a blob

column, so attributes such as MimeType, Name, etc do not need to be

stored separately. Only those attributes that need to be searched on are

stored separately in the table.

PCafeBrandImage also stores the EncodedInterceptorMap from the

PSInternal SavePortalBrandingRequest transaction.

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity Artificial, auto-incrementing key.

Type varchar (50) The type of this row. Currently there is only one type, but in the future portal

branding might include multiple types.

Values:

image

LastModifiedDate datetime Last modified date. Broken out in case we need to search on it, e.g. only return

images that have been modified since a particular date.

Data text The actual XML from the <pcpsi:Image> element of the

SavePortalBrandingRequest.

This is returned exactly as is when a LoadPortalBrandingRequest is received.

BrandKey int Foreign key to parent table PCafeBrand.

Relates to: PCafeBrand table

ConstraintColumn

Field Constraints

Page 403JohnsonGroup

Page 404: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeBrandKeyValue PCafe Brand Key Value

This PrinterSite Internal table is parented by PCafeBrand, with the foreign

key FilePath. It stores the attributes of the <PortalBranding> XML

element. By storing these attributes in a simple key value pair list, we

avoid being too closely tied to changes in the web site. For these

attributes, the type column is "attr"

At one time is also stored "interceptor map" keyword / value pairs, with a

type of "int" but that is no longer used. Instead the "encoded interceptor

map" is stored in PCafeBrandImage.

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity Auto-incrementing artificial key

Type varchar (50) Type of this key value pair row. Currently only one type is valid:

Values:

'attr': attribute of the <PortalBranding> element of the xml

KeyName varchar (50) If type = 'attr', this is the name of an attribute of <PortalBranding>

Value varchar (1,000) If type = 'attr', this is the value of an attribute of <PortalBranding>

Previously if type = 'int', this is the value of the 'keyValue' attribute of

<Interceptor>, but this is no longer used.

BrandKey int Foreign key to parent table PCafeBrand.

Relates to: PCafeBrand table

ConstraintColumn

Field Constraints

Page 404JohnsonGroup

Page 405: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeCustomer PCafe Customer

Maps web site Printcafe customer ids to EFI Logic customer ids.

Indexes on Description

KeyN Primary key, clustered

TypeColumn

KeyN int Unique key

pCafeCustomerID int Web site Printcafe customer ID

CustomerN int Customer number from the EFI Logic system.

Relates to: Customer table

ConstraintColumn

Field Constraints

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

KeyN ([KeyN] >= 0 and [KeyN] <= 999999)

pCafeCustomerID ([pCafeCustomerID] >= 0 and [pCafeCustomerID] <= 999999)

Page 405JohnsonGroup

Page 406: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeFormCategory Pcafe Form Category

Provides operation categories for PSInternal website forms.

Indexes on Description

CategoryID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

PCafeFormCatOper CategoryID

TypeColumn

CategoryID varchar (12) ID for this category - these are currently fixed values that are sent in the

dictionary XML.

CategoryDesc varchar (50) Description for this category

SeqNo int Number indicating order of display

IsCustom bit Indicates whether a category is one of the standard categories or a custom

category added to the interface.

ConstraintColumn

Field Constraints

Page 406JohnsonGroup

Page 407: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeFormCatOper Pcafe Form Category Ops

Child table of PCafeFormCategory table that lists which operations will

show up in which operation lists on the Printersite Internal website forms.

Indexes on Description

CategoryID, SeqNo Primary key, clustered

OperID, NonOperID Nonclustered

TypeColumn

CategoryID varchar (12) ID for category of form operations

Relates to: PCafeFormCategory table

OperID varchar (16) Estimating 3 Operation ID for this mapping or empty if custom entry

SeqNo int Sequence number to control order of operations in category lists

Description varchar (50) Text description of this entry

NonOperID varchar (30) For operation rows (those rows that have a non-empty OperID) this is empty.

For rows that are simply text, and are not operations, this is the actual id that will

be associated with the description.

So for operations, the web site will return the operid as the value when that

choice is selected. For simple text values, the web site will return the

NonOperID.

ConstraintColumn

Field Constraints

Page 407JohnsonGroup

Page 408: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeFormData PCafe Form Data

PCafeFormData holds data from PrinterSite Internal web forms filled out

by users. Each row specifies the value of an instance of a field within an

instance of a "section", where a section is equivalent to an EFI Logic

component (header, prepress, press, etc).

Indexes on Description

ProjectID, RevisionID,

GroupID, SectionToken,

SectionInstance, FieldToken,

FieldInstance

Primary key, clustered

TypeColumn

ProjectID int PrintCafe Project id. Should match a projectid in PrintCafeProj.

RevisionID int Revision id of a print cafe project. Should match a revision of project ProjectID

within PrintCafeProj.

GroupID varchar (50) This is the highest level of "grouping" in a PrinterSite Internal web form.

SectionToken varchar (50) A section id from the EFI Logic data dictionary, e.g. "Header", "Prepress",

"Printing", etc. The sections are EFI Logic components.

SectionInstance int Instance of a section in the form. Some sections such as the Header can only

have one instance. Others such as Printing can occur multiple times (e.g.

multiple press components).

FieldToken varchar (50) Token of a field from the EFI Logic data dictionary that can occur within the

section. For example, the field token CustomerN can occur in the Header

section. All tokens have to be defined in the data dictionary.

Most of the tokens will be the same across all customers. Some of the tokens are

used for choice lists of operations. For the moment, there are a fixed set of these

tokens, and the customer must map all operations that they want into this fixed

set. In the future, we may permit the customer to create new categories of

operations (new tokens).

FieldInstance int Instance of the given field in the section. For example, Bindery_oper can have

multiple instances, as you can have multiple bindery operations.

Value text Actual value of the given field on the web form.

LinkID int Used by PSInternal to determine which data fields are "linked" together. For

example, there may be multiple instances of the number of inks and the coverage

on a PSInternal form. The link id specifies which "number of inks" goes with

which "coverage.

TabOrderID int Gives the order of the field on the PSInternal RFQ form (the user's tabbing

order).

CustomTable varchar (20) Used for PSInternal "order form" data that is loaded directly into custom tables

when a job is created. This specifies the custom table that will be loaded during

the association of the estimate. The table must be either directly related to

OpenJob, or parented by a table that is directly related to OpenJob.

For RFQ data that is used to populate an estimate, this is an empty string.

Page 408JohnsonGroup

Page 409: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PCafeFormData PCafe Form Data

CustomColumn varchar (20) Used for PSInternal "order form" data that is loaded directly into custom tables

when a job is created. This specifies the custom column to be loaded. The table

that this column belongs to must be either directly related to OpenJob, or

parented by a table that is directly related to OpenJob.

For RFQ data that is used to populate an estimate, this is an empty string.

Label varchar (100) Preserve the label used on the PrinterSite Internal form for use in estimating.

ConstraintColumn

Field Constraints

FieldInstance ([FieldInstance] >= 0 and [FieldInstance] <= 999)

SectionInstance ([SectionInstance] >= 0 and [SectionInstance] <= 999)

Page 409JohnsonGroup

Page 410: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeRFQForm PCafe RFQ Form

Keeps the list of RFQ forms for the PrinterSite Internal web site.

Indexes on Description

RFQFormID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

PCafeRFQFormElement RFQFormID

TypeColumn

RFQFormID int identity Key to PCafeRFQForm. This is the id that the web site uses to access the form.

RFQFormName varchar (100) The human readable name of the web form.

DefaultForm tinyint This indicates whether the form is the "default form" for not.

Values:

0: not default

1: default

Published tinyint This indicates if the form is "published" (visible to end users).

Values:

0: not published

1: published

FDVersion varchar (50) The version of the PSInternal form designer that created this form.

FormType varchar (20) Type of Printersite Internal form. There are now two types of forms: RFQ forms

and ORDER forms. RFQ forms are displayed when submitting an request for a

quote. ORDER forms are displayed when actually placing an order based on a

quote.

OrigSpecFormID int For RFQ forms, this column is zero.

For ORDER forms, the PCafeRFQForm.RFQFormID of the RFQ form that this

ORDER form is related to.

ConstraintColumn

Field Constraints

DefaultForm ([DefaultForm] >= 0 and [DefaultForm] <= 1)

Published ([Published] >= 0 and [Published] <= 1)

Page 410JohnsonGroup

Page 411: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeRFQFormElement PCafe RFQ Form Element

This table is used to store various encoded "elements" of PrinterSite

Internal web forms. For example, it stores the html presented to users, as

well as the form source edited by the forms designer, and images that are

presented on the web site.

It is a child of PCafeRFQForm (using foreign key RFQFormID).

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity The artificial key. Integer identity column.

RFQFormID int Foreign key to the parent row in PCafeRFQForm. Note that a single parent row

has multiple children in PCafeRFQFormElement several html elements, images,

etc).

Relates to: PCafeRFQForm table

Type varchar (50) The type of element. This is by convention the lowercase of the element name in

the xml, without any namespace. For example, the element "pcpsi:FormHTML"

has a type of "formhtml".

LastModifiedDate datetime The "last modified date" attribute that was received with this element. This is

stored outside of the "data" column so it can be selected on if necessary.

Data text The actual XML that makes up the element. This stores the exact XML that was

received for this element on the SaveRFQFormRequest transaction, so it can be

returned on a

LoadRFQFormRequest. This way the database structure is not tied to the XML,

unless a new attribute is added that also needs to be selected on.

ItemName varchar (100) The name of the item, if any. Stored external to the data so it can be selected on.

ConstraintColumn

Field Constraints

Page 411JohnsonGroup

Page 412: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeTableInDictFKs PCafe Dictionary Foreign Keys

Used by PSInternal custom order forms. For each table in

PCafeTableInDictnary, this table lists those columns that should be

displayed as combo boxes, instead of as edit boxes.

Indexes on Description

TableName, ColumnName Primary key, clustered

TypeColumn

TableName varchar (20) Name of database table that contains one or more columns that are foreign keys

that should be displayed as combo boxes, using the values from the FK table.

Relates to: PCafeTableInDictnary table

ColumnName varchar (20) Name of the column that is a foreign key to another table. This column must be

the only column that makes up the foreign key. The foreign key must refer to a

database table that appears in the MasterSchema table, and that has a KeyTag

column (most descriptive column) defined in MasterSchema.

This column will be available as a combo box when designing a form in the

PSInternal form designer. When the user is entering data into the website, the

combo box will display the keytag values in the combo box. The actual value

saved in the database will be the key value, not the descriptive value.

ConstraintColumn

Field Constraints

Page 412JohnsonGroup

Page 413: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PCafeTableInDictnary Table In Dictionary

Lists those custom tables that are related to the OpenJob table and that

should appear in the PSInternal data dictionary. These tables will be

available through PSInternal Form Designer to be added to Request for

Quote forms.

Indexes on Description

TableName Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

PCafeTableInDictFKs TableName

TypeColumn

TableName varchar (20) Name of table that should be included in the PSInternal data dictionary. This

table must be a custom table that is related to the OpenJob table. Its primary key

can contain either one or two columns, and the first column must be a foreign

key to the OpenJob table.

ConstraintColumn

Field Constraints

Page 413JohnsonGroup

Page 414: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: pcCompPress pc Comp Press

Matches pcLookups codes for Printing Methods with component types to

allow mapping to specific component types from PrintCafe Printellect

projects.

Not used in EFI Logic SQL.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use. Used on server only.

OpCode varchar (10) Op Code of printing method from pcLookups (278)

CompType int Component type for this record. If a single

printing method is available for a component type,

that type will be created when the printing method

is used in a printCafe project.

ConstraintColumn

Field Constraints

CompType ([CompType] >= 0 and [CompType] <= 99)

LogicID ([LogicID] >= 0 and [LogicID] <= 999999)

Page 414JohnsonGroup

Page 415: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: pCLookups pc Lookups

Table of PrintCafe Printellect lookup options. After initial load new

values will be added as they are encountered and will then be available for

operation mapping by the Est3 Standards Editor.

Not used in EFI Logic SQL.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique key

Owner varchar (50)

LkupType varchar (50) Type code to group codes

LkupCode varchar (50) Code from Printellect

pcValues varchar (50)

pCCodes varchar (10)

StdsCodes int Est3 standard code

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 999999)

StdsCodes ([StdsCodes] >= 0 and [StdsCodes] <= 999999)

Page 415JohnsonGroup

Page 416: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: pcOpMap pcOpMap

Estimating 3 standards file to map PrintCafe Printellect Lookup codes to

Standards Operation. Each printcafe Lookup value should appear only

once. Multiple lookup codes may be mapped to the same operation.

Not used in EFI Logic SQL.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique key

OpCategory varchar (6) Category of Printcafe code

OpCode varchar (10) Code from Printcafe

OperID varchar (8) Est3 operation ID

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 999999)

Page 416JohnsonGroup

Page 417: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: pcStockMap pcStockMap

Table of printCafe stock attributes to be mapped to MCC numbers.

Not used in EFI Logic SQL

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique key

pCStockGrade varchar (30) Printcafe Grade designation

pCStockCoat varchar (30) Printcafe Coating designation

StockMCC int MCC number corresponding to this combination

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 999999)

StockMCC ([StockMCC] >= 0 and [StockMCC] <= 999999)

Page 417JohnsonGroup

Page 418: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PFProperty PrintFlow Property Map

For use with PrintFlow Scheduling only: EFI Logic Scheduling table to

hold mapping of PrintFlow property names with EFI Logic tables and

columns.

Indexes on Description

PropName Primary key, clustered

TypeColumn

PropName varchar (40) For PrintFlow only: Property name which also exists in PrintFlow to recognize

this data value.

BaseTable varchar (40) Table from which data value is retrieved when passing property information to

PrintFlow.

JoinTable varchar (40) Table which provides basis for join, must be OpenJob or JobFormSpecs.

JoinClause varchar (200) Query clause used to join table named in BaseTable and the table named in

JoinTable.

ColumnName varchar (40) Column from which data value is retrieved.

SelectionClause varchar (250) Allows addition of a selection clause (from Planning Resource Editor) to restrict

the value of a property sent to Printflow.

ConstraintColumn

Field Constraints

Page 418JohnsonGroup

Page 419: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PlannedLabor Planned Labor

The Planned Labor table stores labor planning data tranferred from the

Estimating or other production planning system or entered manually in

JobVista. If the data is from the Estimating system, it is computed from the

estimate tables, based on the LCC and the estimate standards, and written

to this table during the association in JobVista.

The data is used for estimate/planning to actuals comparisons. EFI Logic

Scheduling also uses this data to load a preliminary schedule for a job.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with JobVista. Used to

cross-reference the job to other tables.

Relates to: OpenJob table

LccNumber int The labor cost center number of the operation in the estimate (each component

in an estimate is made up of a number of operations. The scheduling program

combines all operations for the same task type into a single task for the form.)

Relates to: LaborCostCntr table

SubJobNumber int The subjob number, if any, that this part of the estimate is for. Must be entered

manually in JobVista.

Value decimal (12,2) The dollar value of the estimated cost of the operation. Not used by scheduling.

Hours decimal (9,2) The number of hours the operation will take to complete.

Quantity decimal (12,2) The quantity to be produced or processed by the operation.

CompMultiplier smallint For operations loaded from an estimate: if the component is to be repeated, this

is the number of repetitions, or multiples.

SetupFlag tinyint Indicates the type of operation. Used by the scheduling program. Helper

operations are not loaded into the schedule.

0 = Running operation

1 = Setup operation

2 = Helper operation

3 = Waiting for customer

LLRecNum int identity Unique key for this transaction record.

EstComponentN smallint Estimate component number (for reference).

FormorPartN smallint Form number for this planning estimate. When component multiples are

specified, the labor hours are entered in this table by individual form number.

EstimatedSales decimal (12,2) Estimated sales, as calculated in Estimating and available for editing in JobVista.

Page 419JohnsonGroup

Page 420: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PlannedLabor Planned Labor

ConstraintColumn

Field Constraints

CompMultiplier ([CompMultiplier]>=(0) AND [CompMultiplier]<=(999))

EstComponentN ([EstComponentN]>=(0) AND [EstComponentN]<=(9999))

EstimatedSales ([EstimatedSales]>=(0) AND [EstimatedSales]<=(999999999))

FormorPartN ([FormorPartN]>=(0) AND [FormorPartN]<=(9999))

Hours ([Hours]>=(0) AND [Hours]<=(99999))

JobN ([JobN]>=(1) AND [JobN]<=(999999999))

LccNumber ([LccNumber]>=(0) AND [LccNumber]<=(99999))

Quantity ([Quantity]>=(0) AND [Quantity]<=(999999999))

SetupFlag ([SetupFlag]>=(0) AND [SetupFlag]<=(3))

SubJobNumber ([SubJobNumber]>=(0) AND [SubJobNumber]<=(9999))

Value ([Value]>=(0) AND [Value]<=(999999999))

Page 420JohnsonGroup

Page 421: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PlannedMaterial Planned Material

The Planned Material table stores material planning data tranferred from

the Estimating or other production planning system or entered manually

using JobVista. If the data is from the Estimating system, it is computed

from the estimate tables, based on the MCC# and the estimate standards,

and written to this table during the estimate assocation.

The data is used primarily for estimate/plan to actuals comparisons.

Indexes on Description

JobN, LLRecNum Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job, as entered with JobVista. Used to

cross-reference the job to other tables.

Relates to: OpenJob table

MccNumber int The material cost center number of the item that was included on the estimate.

Relates to: MatlCostCntr table

SubJobNumber int The subjob number, if any, for which the estimate was made.

Value decimal (12,2) The estimated dollar value of the material to be used.

Quantity decimal (12,2) The estimated quantity to be used for the job.

VendorN int Vendor number passed from Estimating to be used in a Purchase Order.

Relates to: Vendor table

SchedDept int The number of the scheduling work center in which this item will be used. Note

that this is only for buyout operations, in which the estimator is prompted for the

department number and item description. The scheduling program loads these

items as schedulable tasks for each buyout item. Not intended for paper; use for

color seps, dies, outside finishing, etc.

Relates to: SchTask table

ItemDescr varchar (45) A description of the buyout item that will be scheduled as a task in the Sched

Work Center (SchedDept field). Prompted for in the buyout operation, loaded

into scheduling when the job is loaded.

LLRecNum int identity Unique key for this transaction record.

EstComponentN smallint Estimate component number (for reference).

FormorPartN smallint Form number for this planning estimate

Notes varchar (1,000) Notes that will be passed through to the purchase order. Can be filled in from

the general notes in Estimating 3 operations.

EstimatedSales decimal (12,2) Written by E3, and editable from JV.

Page 421JohnsonGroup

Page 422: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PlannedMaterial Planned Material

ConstraintColumn

Field Constraints

EstComponentN ([EstComponentN]>=(0) AND [EstComponentN]<=(9999))

EstimatedSales ([EstimatedSales]>=(0) AND [EstimatedSales]<=(999999999))

FormorPartN ([FormorPartN]>=(0) AND [FormorPartN]<=(9999))

JobN ([JobN]>=(1) AND [JobN]<=(999999999))

MccNumber ([MccNumber]>=(0) AND [MccNumber]<=(9999999))

Quantity ([Quantity]>=(0) AND [Quantity]<=(999999999))

SchedDept ([SchedDept]>=(0) AND [SchedDept]<=(99999))

SubJobNumber ([SubJobNumber]>=(0) AND [SubJobNumber]<=(9999))

Value ([Value]>=(0) AND [Value]<=(999999999))

VendorN ([VendorN]>=(0) AND [VendorN]<=(999999999))

Page 422JohnsonGroup

Page 423: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PNISendQueue PNI Send Queue

Queue of messages to be sent to the PNI via the EFI Logic Connector.

Used by those programs that cannot directly connect to the PNI. For

example, ERPLA causes VB6 programs to abort.

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity Identity column that is the primary key.

SendMethod varchar (30) The enetwork method to be used in sending the message. Currently the only

valid value is 'command'

Destination varchar (200) The enetwork destination address. enetwork uses the addressing format

"application/node" e.g. "erp/logicdev".

For Manhattan integration, a special name of "manhattanhotfolder" is used to

indicate that the data is to be transferred by being directly placed in a hotfolder,

rather than via enetwork.

DateAdded datetime The date/time this message was added to the queue of messages to send, for

debugging purposes. This column need not be specified, as the default value is

the current date/time.

Description varchar (200) Optional descriptive text that the sending application can include. If specified,

this description is added to the Logic Connector log.

XMLtoSend text Actual XML text string to send. Note that this is a "text" (blob) column. Must

be a complete, correctly formatted XML string.

ReadyToSend bit Flag that indicates whether the message is complete and ready to be sent by the

connector.

Values:

0: message is incomplete

1: message is complete and ready to be sent by the connector.l

ConstraintColumn

Field Constraints

Page 423JohnsonGroup

Page 424: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: POItem P.O. Item

The Purchase Order Item table contains the list of all items ordered for

each purchase order. The PO header is contained in the PurchaseOrder

table. There are five item types, or purchase types: General, Direct

Purchase, Inventory, Text, and Finished Goods. Each type uses its own

sub-set of the fields. These records are created and maintained through the

purchasing application.

Indexes on Description

PurchaseOrderN, POItemN Primary key, clustered

MaterialCCN, DateDue Nonclustered

TypeColumn

PurchaseOrderN int The PO Number, the key to the file.

Relates to: PurchaseOrder table

POItemN int A sequence number identifying each of the items on the PO. Items with a

decimal portion in the number (e.g., item 1.10) are Text type items that describe

the non-text item immediately preceding them. The other item types must have

integer item numbers. This number is automatically assigned; it cannot be

changed.

PurchaseType tinyint Purchase type:

0 = General Expense

1 = Direct Purchase

2 = Inventory

4 = Finished Goods

MaterialCCN int The Material Cost Center Number of the item being ordered.

Relates to: MatlCostCntr table

JobN int The Job for which the item is being ordered. Does not apply to General items or

Text items. It is required for Direct Purchases items. Be sure to enter a job

number for inventory items if you are using the update on issue option.

Relates to: OpenJob table

PricePerUnit decimal (10,4) The unit price of the item.

UnitType tinyint The order units to which the price is applied:

0 = $/unit

1 = $/100 units

2 = $/1000 units

3 = $/cwt (used in sheets or lbs)

4 = $/M sheets (used in sheets)

0 = ea

1 = C

2 = M

3 = Cwt

4 = Msht

QtyOrdered decimal (9,2) The number of units ordered.

Page 424JohnsonGroup

Page 425: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: POItem P.O. Item

FinalReceipt tinyint Indicates if the final receipt has been recorded. 0 = no, still open; 1 = yes, item

closed. This is set to 1 when you receive a purchase order item and the operator

answers yes to the "final receipt" question. It can also be manually set using the

Open/Close items option in the purchasing application.

GLAccountN int The G/L account to which the cost of this item should be posted by post.

Required if the link to Accounting is turned on. Can be entered through the

purchasing application, if not, it must be entered through approve. If the MCC#

for this item has an account number associated with it, that number is used as the

default. If it doesn't, the default for the vendor is used.

Relates to: GLAccounts table

TextInfo varchar (45) The text that is printed on the purchase order.

DateDue datetime The date the item is required by the buyer.

UpdateOnIssue tinyint Determines special processing by issue of Direct

Purchases or Inventory items:

0 = no special processing

1 = Pass cost of direct purchase item through to

Job Costing when the PO is issued; or

Create commitment record for inventory item

in the MaterialPlan table.

0 = No

1 = Yes

JobCostPrefix tinyint For direct purchases and inventory items, indicates the reason the item was

ordered.

Relates to: Prefixes table

DollarAmount decimal (15,2) The total cost of the item.

ItemCanceled tinyint Indicates if the item has been canceled. 0 = no; 1 = yes. . When canceled, the

Final Receipt and Final Invoice flags are set to 1. If you 'uncancel' the item, the

other two flags must be reset by hand.

FinalInvoice tinyint Indicates if the final invoice for this item has been posted to A/P. 0 = no; 1 =

yes. If 1, no more invoices are allowed. This is set in approve and written here

by close/post. It can also be manually set using the Open/Close items option in

the purchasing application.

SubJobNumber int For Direct Purchases and Inventory items; the sub-job for which the item was

ordered.

IssueAuditN int An audit number assigned by issue. The number is in the form RRJJJ, where:

RR is the Revision# of the PO.

JJ is the day of the year (Julian)

If 0, the item has not been issued. This number does not show up on any reports

or screens, except the issue listing and query. Intended for trouble-shooting.

ItemRevised tinyint Indicates if the item has been revised since the last issue. 0 = no; 1 = yes. When

an item is first created, this is set to 1. Issue sets it to zero. If it is revised again,

it is set to 1.

TotalAP decimal (15,2) The total amount posted to A/P for this item. Will be the sum of all A/P

postings.

Page 425JohnsonGroup

Page 426: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: POItem P.O. Item

TotalAPQty decimal (9,2) The total quantity posted to A/P.

NOfInvoices smallint The number of invoices posted to date to A/P.

LastInvoiceN varchar (12) The Invoice Number of the last invoice to date posted to A/P.

MWT int The M weight, for items that use hundred-weights (cwt) as ordering units; taken

from the MCC file (107). The M weight is the weight per thousand sheets, used

to convert sheets into pounds

FGIItemN int Finished goods item number if this is a finished goods item.

Relates to: FGInvMaster table

DepartmentN int The department to which the cost of this item should be posted by post.

Relates to: DeptNames table

D2ndLineOfTxt varchar (45) This is the second line of text that will show on the printed purchase order if it is

defined for this material class.

QtyUsageUnits decimal (9,2) If this material class is ORDERED in one unit but USED in another unit, this is

the quantity ordered in usage units. It is used for availability information.

priceUnitAbbr varchar (5) This is the 2 character abbreviation that shows up on the purchase order. The '/'

character is automatically prepended to it.

ExtraText varchar (5,000) A block of text about this item that will be printed on the purchase order. This

replaces text lines.

UNSPSCommCode varchar (16) The UNSPSCommodity code associated with this item.

Relates to: UNSPSCommodity table

Page 426JohnsonGroup

Page 427: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: POItem P.O. Item

ConstraintColumn

Field Constraints

DepartmentN ([DepartmentN] >= 0 and [DepartmentN] <= 9999999)

DollarAmount ([DollarAmount] >= (-999999999) and [DollarAmount] <= 999999999)

FGIItemN ([FGIItemN] >= 0 and [FGIItemN] <= 9999999)

FinalInvoice ([FinalInvoice] >= 0 and [FinalInvoice] <= 1)

FinalReceipt ([FinalReceipt] >= 0 and [FinalReceipt] <= 1)

GLAccountN ([GLAccountN] >= 0 and [GLAccountN] <= 999999999)

IssueAuditN ([IssueAuditN] >= 0 and [IssueAuditN] <= 99366)

ItemCanceled ([ItemCanceled] >= 0 and [ItemCanceled] <= 1)

ItemRevised ([ItemRevised] >= 0 and [ItemRevised] <= 1)

JobCostPrefix ([JobCostPrefix] >= 0 and [JobCostPrefix] <= 2)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

MaterialCCN ([MaterialCCN] >= 0 and [MaterialCCN] <= 9999999)

MWT ([MWT] >= 0 and [MWT] <= 9999)

NOfInvoices ([NOfInvoices] >= 0 and [NOfInvoices] <= 99)

POItemN ([POItemN] >= 0 and [POItemN] <= 9999)

PricePerUnit ([PricePerUnit] >= 0 and [PricePerUnit] <= 999999)

PurchaseOrderN ([PurchaseOrderN] >= 1 and [PurchaseOrderN] <= 999999999)

PurchaseType ([PurchaseType] >= 0 and [PurchaseType] <= 9)

QtyOrdered ([QTYOrdered] >= 0 and [QTYOrdered] <= 9999999)

QtyUsageUnits ([qtyusageunits] >= 0 and [qtyusageunits] <= 9999999)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

TotalAP ([TotalAP] >= (-999999) and [TotalAP] <= 9999999)

TotalAPQty ([TotalAPQty] >= (-9999999) and [TotalAPQty] <= 9999999)

UnitType ([UnitType] >= 0 and [UnitType] <= 9)

UpdateOnIssue ([UpdateonIssue] >= 0 and [UpdateonIssue] <= 2)

Page 427JohnsonGroup

Page 428: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: POReceipts P.O. Receipts

The PO Receipts table contains the record of receipts for non-inventoried

items (i.e., general items and direct purchases).

Indexes on Description

PurchaseOrderN, LLRecNum Primary key, clustered

TypeColumn

PurchaseOrderN int The PO Number, the key to the file.

Relates to: PurchaseOrder table

POItemN smallint The item number from the original PO (POItem table)

DateReceived datetime The date received.

QuantityRecvd decimal (9,2) The quantity received.

LLRecNum int identity Unique key

ConstraintColumn

Field Constraints

POItemN ([POItemN] >= 0 and [POItemN] <= 9999)

PurchaseOrderN ([PurchaseOrderN] >= 1 and [PurchaseOrderN] <= 999999999)

QuantityRecvd ([quantityrecvd] >= 0 and [quantityrecvd] <= 9999999)

Page 428JohnsonGroup

Page 429: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PostJournalHistory Posting Journal Transactions

Recent transactions posted to Accounting tables by Post-close. Provides

the data for the preposting and posting journal reports.

Indexes on Description

UpdateN, KeyN Primary key, clustered

TypeColumn

KeyN int identity Unique sequential key assigned by SQL Server.

UpdateN varchar (20) A number the post process generated and wrote to ARTransaction,

APTransaction or GLAccountData to allow you to reconstruct the transactions

for the batch. It also is the number used to rerun previous posting journals.

TypeOrAcct int The type of PostJournalHistory record:

-2 for a transaction detail record

-1 for an A/R or A/P batch, the transaction total of

all records posted to ARTransaction or APTransaction.

GL account - transaction total of all records posted to

GLAccountData broken down by GL account.

GroupN tinyint The type of batch that was posted:

1 - A/R

2 - C/R

3 - A/P

4 - C/D

5 - Invoices

6 - Checks

7 - G/J

1 = Accounts Receivable

2 = Cash Receipts

3 = Accounts Payable

4 = Cash Disbursements

7 = General Journal

BatchN int Accounting batch number that was preposted or posted.

PostRunDate datetime The date and time that post was run.

DivN int Accounting division that the batch was posted to.

Relates to: AcctDivisions table

FileN smallint The numeric ID of the table that the record was posted to.

113 - for ARTransaction

117 - for APTransaction

119 - for GLAccountData

PostDate datetime The posting date written to ARTransaction, APTransaction, or GLAccountData.

Page 429JohnsonGroup

Page 430: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PostJournalHistory Posting Journal Transactions

AuditTrail varchar (13) For a detailed record, an audit trail number is generated by the post process for

each transaction. Has the format yyyymmddsssss, where:

yyyy = year numbers

mm = month numbers

dd = day numbers

sssss = sequence number, starts at 00001 each

day.

For summary records, the audit trail number is 9999999999999.

CustVendAcctN int Either the customer number for an AR posting, or the vendor number for an AP

posting, or the account number for a GL posting.

CustVendAcct varchar (40) Either the customer name for an AR posting, or the vendor name for an AP

posting, or the account name for a GL posting

TransAmount decimal (15,2) The transaction amount posted to ARTransaction, APTransaction, or

GLAccountData.

Invoice varchar (14) Customer invoice number posted to ARTransaction or vendor invoice posted to

APTransaction.

JobN int The job number posted to ARTransaction. A positive job number indicates a

final transaction to close the job while a negative job number indicates a partial

billing which did not close the job.

CheckN int Customer's check number for CR posting and user's check number for CD

posting.

PurchaseOrderN int For an A/P batch, the purchase order number posted to APTransaction.

DocRef varchar (14) Document reference number/string specified in an A/R or G/L batch and posted

to ARTransaction or GLAccountData.

InvoiceDate datetime Invoice date posted to APTransaction. Also used as the posting date in

APTransaction if parameter 'A/P Invoice Posting Date' (10905) is set to 1.

PaymentDate datetime For an A/P batch, the payment date posted to APTransaction.

OnHold tinyint For an A/P batch, 1 if the invoice is on hold. Posted to APTransaction.

Discount decimal (15,2) For an A/P batch, the discount. Posted to APTransaction.

D1099Type smallint The 1099 tax type, if one, for an AP posting.

TaxCode int The sales tax code (for an A/R invoice) or VAT tax code (for an A/P invoice)

posted to GLAccountData.

DeptN int Department number charged for the transaction if the GL Account for the

transaction required a department.

DeptName varchar (30) Department name charged for the transaction if the GL Account for the

transaction required a department.

Description varchar (60) Description of transaction. Posted to the GLAccountData table.

Page 430JohnsonGroup

Page 431: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PostJournalHistory Posting Journal Transactions

ConstraintColumn

Field Constraints

Page 431JohnsonGroup

Page 432: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Prefixes Prefixes

This table holds Labor, Material, and DMI prefix information.

Indexes on Description

Prefix Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

POItem JobCostPrefix

TypeColumn

Prefix tinyint The prefix.

The range is 0 to 8 for labor and DMI, and 0-2 for material.

Description varchar (30) The description of the prefix.

AllowforLabor bit Set to 1 if the prefix is valid for labor transactions.

0 = No

1 = Yes

AllowforMatl bit Set to 1 if the prefix is valid for material transactions.

0 = No

1 = Yes

AllowforDMI bit Set to 1 if the prefix is valid for DMI transactions.

0 = No

1 = Yes

NeedsReasoncode bit Set to 1 if use of the prefix requires a reason code to be entered.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

Prefix ([Prefix] >= 0 and [Prefix] <= 8)

Page 432JohnsonGroup

Page 433: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PremiseTypeList Premise Type List

PremiseType

Indexes on Description

PremiseType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts PremiseName

TypeColumn

PremiseType varchar (150) PremiseType

Active numeric Active

ConstraintColumn

Field Constraints

Page 433JohnsonGroup

Page 434: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PriceList Price List

The Price List is an optional file in which customers can list standard items

that will appear on customer invoices. A quick menu function in the

invoice option of acct allows them to call in the price list item, rather than

typing it. Edit with Table maintenance.

Indexes on Description

PriceNumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

WinInvJobDetail PriceList

TypeColumn

PriceNumber int A unique ID or item number for each item on the

list. The operator completing the invoice uses

this number to identify the item.

Description varchar (20) A description of the item. This will be printed

on the invoice. The operator can look up items

using the description.

Unit smallint The pricing unit of the item: 1, 10, 100, 1000. This is not the quantity.

Sales decimal (9,3) The price of the item per unit.

Cost decimal (9,3) The cost of the item per unit. This is a memo

field; it does not appear on the invoice.

ConstraintColumn

Field Constraints

Cost ([Cost] >= 0 and [Cost] <= 999999)

PriceNumber ([PriceNumber] >= 1 and [PriceNumber] <= 999999999)

Sales ([Sales] >= 0 and [Sales] <= 999999)

Unit ([Unit] >= 0 and [Unit] <= 1000)

Page 434JohnsonGroup

Page 435: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PrintCafeProj PrintCafe Projects

Printcafe web site projects table.

This table is used to hold projects originated on the PSInternal web site. It

was originally designed for other web site products, so it currently has

many unused colums that should be deleted.

Indexes on Description

printCafeID Primary key, clustered

TypeColumn

printCafeID int

ProjectID int

RevisionID int

ComponentID int

ProjectName varchar (50) Project name

OrderedDate datetime For Printellect, this is the initial date on which the customer created the job on

the web site.

For PSInternal, this is the date on which the customer submitted an RFQ for the

project.

DueDate datetime The due date for the project (job due date).

CustomerID varchar (16) This is NOT the EFI Logic customer number. This is a key to PCafeCustomer,

which is a mapping from PrintCafe customers to EFI Logic's Customer table.

Currently this is used by Printellect. Printersite Internal uses LogicCustomerN,

which IS the EFI Logic customer number.

Applications must be prepared to deal with either CustomerID or

LogicCustomerN being filled in.

CustCompany varchar (40) For PSInternal this is the actual name of the customer's company.

Status int Status of the project:

99: Draft, still be editted by end user. This is only used by PSInternal

0: RFQ, not yet downloaded to Est 3

1: RFQ that has been downloaed to an Est 3 user. In other words, this is being

worked on.

2: Quoted. An Est 3 estimate has been issued for this.

3: Opened: a job has been issued for this project.

4: Invoiced: (not sure if this means "closed" or not)

7: Declined:

XMLtype varchar (1) List of types (may be incomplete)

T: request for quote (originally was a "targetted" request).

O: direct order. The request should proceed thru w/o a quote being returned to

the customer.

RevisionName varchar (60)

ContactName varchar (40)

CustomerPO varchar (14)

Page 435JohnsonGroup

Page 436: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PrintCafeProj PrintCafe Projects

SupplierQuote varchar (14) For PSInternal, if this project has been quoted this is the Issue Number, a foreign

key into the Estimates table.

Unkown exactly what this is for Printellect. However, from examing data it

appears that at least sometimes it is in fact the Issue number of the estimate.

DateLoaded datetime Date project was created in the EFI Logic system.

For Printellect this may be well after the user created the project on the web site

(the "OrderedDate").

For PSInternal, this is the very earliest starting date, since the web site does not

save data independently of the MIS system.

QuoteReqdDate datetime Date on which customer requires quote to be received.

SalesRepID int ID from Employee table of salesperson who created this project.

LogicCustomerN int The EFI Logic customer number for this project. This is related to the Customer

table.

Note that the PrintCafeProj.CustomerID column is NOT the EFI Logic customer

number. It is related to the PCafeCustomer table, and is mapped to EFI Logic's

customer number.

Applications must be prepared for either the CustomerID or LogicCustomerN

column to be filled in. Currently Printellect fills in CustomerID, PSInternal fills

in LogicCustomerN.

Relates to: Customer table

SourceOfProject int Source of this entry in PrintCafeProj.

0: Printellect

1: Printersite Internal

Most fields are compatible between the two, but some fields may be filled in in

one case and not in the other.

RFQFormID varchar (20) If a project in PrintCafeProj was created by PSInternal, RFQFormID is the key

to PCafeRFQForm of the form filled out by the user to create the project. Each

time the project data is displayed to the end user it will be displayed on this

form.

JobN int Job number received on a PSInternal Order request. This is only present if the

order is actually a reorder.

Relates to: OpenJob table

IssueN int Estimate issue number received in PSInternal Order project request.

ConfigN int Configuration number of estimate in PSInternal order project request.

QtyIndex tinyint Quantity index from PSInternal order project request

Quantity int The actual ordered quantity from the PSInternal order request

Price decimal (9,0) Price from PSInternal order project request

Notes varchar (300) Notes from PSInternal order project request

Page 436JohnsonGroup

Page 437: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PrintCafeProj PrintCafe Projects

RFQSubmittedDate datetime The date and time at which this Printersite Internal project was submitted as a

Request For Quote.

ConstraintColumn

Field Constraints

ComponentID ([ComponentID] >= 0 and [ComponentID] <= 999999)

ConfigN ([ConfigN] >= 0 and [ConfigN] <= 99999)

IssueN ([IssueN] >= 0 and [IssueN] <= 9999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

LogicCustomerN ([LogicCustomerN] >= 0 and [LogicCustomerN] <= 999999999)

Price ([Price] >= 0)

printCafeID ([PrintCafeID] >= 1 and [PrintCafeID] <= 999999999)

ProjectID ([ProjectID] >= 0 and [ProjectID] <= 999999)

QtyIndex ([QtyIndex] >= 0 and [QtyIndex] <= 5)

Quantity ([Quantity] >= 0 and [Quantity] <= 99999999)

RevisionID ([RevisionID] >= 0 and [RevisionID] <= 999999)

SalesRepID ([SalesRepID] >= 0)

SourceOfProject ([SourceOfProject] >= 0 and [SourceOfProject] <= 10)

Status ([Status] >= 0 and [Status] <= 999999)

Page 437JohnsonGroup

Page 438: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ProcessLink Process Link

Estimating 3 Standards: Process Link

Provides the links between Processes and the operations which they

contain.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

MasterOper varchar (8) Operation ID of master operation This is the operation which will appear as the

process in the operation or press list.

OperID varchar (8) Operation ID of operations included in the process.

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 438JohnsonGroup

Page 439: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ProdPlanner Production Planner

The Production Planner File lists the number and name of each of your

production planners (i.e., Customer Service personnel). A production

planner number must be entered when you open a new job.

Indexes on Description

ProdPlanner Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer DfProdPlanner

OpenJob ProdPlanner

TypeColumn

ProdPlanner smallint A unique number for the production planner.

PlannerName varchar (35) The name of the production planner.

Inactive int Flags a production planner as inactive

0 = No

1 = Yes

ConstraintColumn

Field Constraints

Inactive ([Inactive] >= 0 and [Inactive] <= 1)

ProdPlanner ([ProdPlanner] >= 1 and [ProdPlanner] <= 9999)

Page 439JohnsonGroup

Page 440: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ProductCode Product Code

The Product Classification Table, also called the Product Code Table, lists

your company's product codes. Each product code represents a type of job

your company produces. Every job must be assigned one of these product

codes. The Sales Analysis Reports use the codes and the costs charged to

the jobs to determine which types of products are the most profitable. See

the Implementation Manual for a sample list of product codes and

suggestions for numering schemes. You can also control the default

scheduling status of individual product types.

Indexes on Description

ProductCode Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AccountngInput ProductCode

ARBatch ProductCode

ARTransaction ProductCode

Estimates ProductCode

FGInvMaster ProductClass

JobEstHeader ProductCode

JobLog ProductCode

OpenJob ProductCode

QQOrder ProductCode

WinInvDist ProductCode

WinInvJobs ProductCode

TypeColumn

ProductCode int A unique product code number, entered through

jobcmnt.

PrDescription varchar (40) The description of the product code, entered

through jobcmnt.

DefaultSchedStatus tinyint Provides the default Scheduling Status code to Job Vista. This allows some

initial control over the scheduling status when a job is created.

0 = Not ready to schedule

1 = Ready to schedule

2 = Do not schedule

3 = Automatically add to schedule

NMFC varchar (25) The National Motor Freight Code for this type of product. This code lists

characteristics of an item being shipped, and can be used by some carriers to

determine shipping rates.

Currently it is only used when shipping occurs via Manhattan.

ConstraintColumn

Field Constraints

ProductCode ([ProductCode] >= 1 and [ProductCode] <= 9999999)

Page 440JohnsonGroup

Page 441: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ProfitCenter Profit Center

Not yet used in EFI Logic Accounting

The Profit Center table defines the list of Profit Centers. A Profit Center is

composed of the set of accounting departments assigned to the same Profit

Center. The list of Accounting Departments is defined in the Department

Names table. Each accounting department can be assigned to one Profit

Center.

Indexes on Description

ProfitCenterN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

DeptNames ProfitCenterN

TypeColumn

ProfitCenterN int Identifies the Profit Center.

ProfitCenter varchar (40) Name or description of the Profit Center, as it appears on reports from your

system.

ConstraintColumn

Field Constraints

ProfitCenterN ([ProfitCenterN] >= 0 and [ProfitCenterN] <= 999999)

Page 441JohnsonGroup

Page 442: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: PurchaseOrder Purchase Order

The Purchase Order table contains a header record

for each PO. The information in the header applies to

all items ordered for each purchase order. The items

themselves are listed in the POItem table.

Indexes on Description

PurchaseOrderN Primary key, clustered

DateOrdered Nonclustered

ExternalRefID Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

ApprovedItems PurchaseOrderN

POItem PurchaseOrderN

POReceipts PurchaseOrderN

Related Tables

DirectPurchase PurchaseOrderN

MaterialPlan PurchaseOrderN

MaterialTrans PurchaseOrderN

TypeColumn

PurchaseOrderN int The PO Number, the key to the file.

DateOrdered datetime The date of creation, defaults to the current date; can be changed.

VendorNumber int The key to the Vendor table. Identifies the vendor from whom the goods are

being ordered.

Relates to: Vendor table

BillAttention varchar (35) The person at your company to whom the bill from the vendor should be sent.

Addressee varchar (50) First line of the address to which the PO should be sent. Defaults from the

Vendor file, but can be changed.

AddrLine1 varchar (40) Second line of the address to which the PO should be sent. Defaults from the

Vendor file, but can be changed.

AddrLine2 varchar (40) Third line of the address to which the PO should be sent. Defaults from the

Vendor file, but can be changed.

AddrLine3 varchar (40) Fourth line of the address to which the PO should be sent. Defaults from the

Vendor file, but can be changed.

OriginlConfirm tinyint Indicates if this is an original order or a confirmation. 0 = original; 1 =

confirmation.

0 = Original Copy

1 = Confirmation

TypeOfTerms tinyint A flag indicating the three terms for payment to

the vendor:

0 = Normal Vendor Terms (default)

1 = COD

2 = Pre-paid

0 = Normal vendor terms

1 = Cash on Delivery

2 = Pre-paid

Page 442JohnsonGroup

Page 443: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PurchaseOrder Purchase Order

FOBCode tinyint Indicates who pays shipping: 0=vendor; 1=buyer; 2=consignee.

0 = F.O.B.-Vendor

1 = F.O.B.-Buyer

2 = F.O.B.-Consignee

ShipMethodkey int The reference (if any) to one of the shipping methods defined in your shipping

methods table.

Relates to: ShipMethods table

ShipVia varchar (30) Text field to tell the vendor how the goods should be shipped. Can be entered

manually or loaded from Ship Methods table by entering a key into the Ship

method key field.

Requisitioned varchar (35) Indicates who requested the goods.

POIssuedyn tinyint Indicates if the PO has been issued. 0 = no; 1 = yes.

0 = No

1 = Yes

VendorContact varchar (35) The name of the individual at the vendor's to whom the PO is addressed.

PrevPostings tinyint Indicates whether or not an invoice for this PO has been posted to A/P. 0 = no;

1 = yes.

BatchNumber int A number assigned by issue when the PO is issued. Since a PO may be revised

and re-issued, this is the number of the last batch in which the PO was

successfully issued.

RevisionN smallint Indicates how often the PO has been changed. Original revision is number zero.

VendorPhoneN varchar (25) Phone number for the vendor for this PO.

FaxPhoneN varchar (25) Vendor Fax phone number

ShipAddressee varchar (50) First line of separate ship address if there is one. The default for this comes

from the default Purchasing Record in the Location Address table. Parameter

10462 contains the LocationN of the default record. If parameter = 0 the

program will not display any default shipping address.

ShipAddrLine1 varchar (40) Second line of separate ship address if there is one. The default for this comes

from the default Purchasing Record in the Location Address table. Parameter

10462 contains the LocationN of the default record. If parameter = 0 the

program will not display any default shipping address.

ShipAddrLine2 varchar (40) Third line of separate ship address if there is one. The default for this comes

from the default Purchasing Record in the Location Address table.

ShipAddrLine3 varchar (40) Fourth line of separate ship address if there is one. The default for this comes

from the default Purchasing Record in the Location Address table.

ExternalRefID varchar (30) A reference ID can that be left blank, or used however you wish. This field can

be useful if you are importing purchase orders.

City varchar (30) City portion of the address. Defaults to the Vendor City and may be edited by

the user.

StateProv varchar (4) State or Province portion of the address. Defaults to the Vendor StateProv and

may be edited by the user.

Page 443JohnsonGroup

Page 444: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: PurchaseOrder Purchase Order

PostalCode varchar (15) Postal Code portion of the address. Defaults to the Vendor Postal Code and may

be edited by the user.

CountryCode varchar (3) Country Code portion of the address. Defaults to the Vendor Country Code and

may be edited by the user via the drop down box which will list active countries

in the Country Table. If it is populated the Country Name will print on the

Purchase Order

Relates to: Country table

ShipCity varchar (30) City portion of the shipping address. Defaults to the ShipCity in the default

purchasing record of the LocationAddres table and may be edited by the user.

ShipStateProv varchar (4) State/Province portion of the shipping address. Defaults to the ShipStateProv in

the default purchasing record of the LocationAddres table and may be edited by

the user.

ShipPostalCode varchar (15) Postal Code portion of the shipping address. Defaults to the ShipStateProv in

the default purchasing record of the LocationAddres table and may be edited by

the user.

ShipCountryCode varchar (3) Country Code portion of the shipping address. Defaults to the

ShipCountryCode in the default purchasing record of the LocationAddres table

and may be edited by the user.

Relates to: Country table

PhoneExt varchar (6) Phone extension for the Vendor Phone number.

VendorEmail varchar (128) Vendor's email address

ClosedforEdit tinyint Flag which determines whether or not this purchase order can be re-opened for

edit.

ConstraintColumn

Field Constraints

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 99999)

ClosedforEdit ([ClosedforEdit] >= 0 and [ClosedforEdit] <= 1)

FOBCode ([FOBCode] >= 0 and [FOBCode] <= 2)

OriginlConfirm ([OriginlConfirm] >= 0 and [OriginlConfirm] <= 1)

POIssuedyn ([POIssuedyn] >= 0 and [POIssuedyn] <= 1)

PrevPostings ([PrevPostings] >= 0 and [PrevPostings] <= 1)

PurchaseOrderN ([PurchaseOrderN] >= 1 and [PurchaseOrderN] <= 999999999)

RevisionN ([RevisionN] >= 0 and [RevisionN] <= 99)

ShipMethodkey ([ShipMethodkey] >= 0 and [ShipMethodkey] <= 9999999)

TypeOfTerms ([TypeOfTerms] >= 0 and [TypeOfTerms] <= 2)

VendorNumber ([VendorNumber] >= 0 and [VendorNumber] <= 999999999)

Page 444JohnsonGroup

Page 445: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQComments QQ Comments

QuickQuote Standard Comments - can be associated with a product for

automatic inclusion for a product.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Sequential Key field.

CommentCode varchar (8) Code for group of comments. Used to associated comments with a product.

Type varchar (1) Type of this comment

Q = Quote/Invoice Comment -appears on quote reports

P = Production Comment - appears on detail and production reports.

SeqNo int Sequence number for comment

Comment varchar (76) Actual text of comment.

ConstraintColumn

Field Constraints

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

SeqNo ([SeqNo] >= 0 and [SeqNo] <= 9999999)

Page 445JohnsonGroup

Page 446: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQDetailInfo QQ Detail Info

Detail info from associated QuickQuote quote for Job Ticket.

Indexes on Description

JobN, SequenceNum Primary key, clustered

TypeColumn

JobN int Job Number this quote was associated with.

Relates to: QQHeaderInfo table

SequenceNum int Sequence number of detailed line item from quote.

ProductDesc varchar (50) Description of product in detail line item.

SizeDesc varchar (60) Size/type description

RateDesc varchar (30) Rate schedule used for this item.

Unit varchar (10) Unit of this item.

Multiples decimal (9,2) Multiple of this line item.

Quantity decimal (15,2) Quantity of this item.

DueDate datetime Due Date for this line item.

DueTime varchar (5) Due Time for this line item.

ProdComment1 varchar (76) Production item comment 1

ProdComment2 varchar (76) Production item comment 2

ProdComment3 varchar (76) Production item comment 3

ProdComment4 varchar (76) Production item comment 4

ProdComment5 varchar (76) Production item comment 5

QtyMultiple decimal (9,2) This value can be used to set up a multiple of the header quantity for a variable

quantity product line item. It defaults to the value set up in the product itself, but

can be overridden on the line item. It can be used as a page count to set up a

"click charge" when the header quantity is a document count.

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Multiples ([Multiples] >= (-9999999) and [Multiples] <= 9999999)

QtyMultiple ([QtyMultiple]>=(0) AND [QtyMultiple]<=(9999999))

Quantity ([Quantity] >= (-1) and [Quantity] <= 999999999)

SequenceNum ([SequenceNum] >= 0 and [SequenceNum] <= 999999)

Page 446JohnsonGroup

Page 447: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQGroup QQ Group

Allows organization of QuickQuote product/options into groups on the

rate schedule for easier navigation. Maintained in QuickAdmin.

Indexes on Description

GroupID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

QQProducts GroupID

TypeColumn

GroupID int Key field.

SequenceNo int Order that groups will appear on a rate schedule

Description varchar (30) Description of group - will appear in Rate Schedule

ConstraintColumn

Field Constraints

Page 447JohnsonGroup

Page 448: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQHeaderInfo QQ Header Info

Info from associated QuickQuote quote header for Job Ticket.

Indexes on Description

JobN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

QQDetailInfo JobN

TypeColumn

JobN int Job Number this quote was associated with.

Relates to: OpenJob table

IssueNumber int Issue number of quote associated with job.

Relates to: QQOrder table

Description varchar (50) Description of associated quote.

RateSched varchar (30) Main rate schedule used for this quote.

ProdComment1 varchar (76) Production comment 1 associated with the quote header.

ProdComment2 varchar (76) Production header quote comment 2

ProdComment3 varchar (76) Production header quote comment 3

ProdComment4 varchar (76) Production header quote comment 4

ProdComment5 varchar (76) Production header quote comment 5

ConstraintColumn

Field Constraints

IssueNumber ([IssueNumber] >= 0 and [IssueNumber] <= 999999999)

JobN ([JobN] >= 0 and [JobN] <= 999999999)

Page 448JohnsonGroup

Page 449: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQOrdComments QQ Ord Comments

QuickQuote Order Comments - Line item comments for an individual

quote. SeqNo = 0 may contain header comments

Indexes on Description

IssNum, SeqNo Primary key, clustered

TypeColumn

IssNum int Issued Quote Number This is the number used to track the quote. If it is

reopened, edited and saved, it will retain the same Issue Number.

Relates to: QQOrder table

SeqNo int Sequence Number of detail line item for these details or 0 for header comments.

ClientQuoteNm int Client Quote Number When operating in Client mode, this number is used to

track the quote. This number is analogous to the Issued Quote Number which is

used to track the quote when QuickQuote operates in "Server" mode.

ProdComm1 varchar (76) Production Comment 1

ProdComm2 varchar (76) Production Comment 2

ProdComm3 varchar (76) Production Comment 3

ProdComm4 varchar (76) Production Comment 4

ProdComm5 varchar (76) Production Comment 5

QuoteComm1 varchar (76) Quote/Invoice Comment 1

QuoteComm2 varchar (76) Quote/Invoice Comment 2

QuoteComm3 varchar (76) Quote/Invoice Comment 3

QuoteComm4 varchar (76) Quote/Invoice Comment 4

QuoteComm5 varchar (76) Quote/Invoice Comment 5

ItemDueDate datetime Due Date for line item (overrides quote due date)

ItemDueTime varchar (5) Required Time of delivery (if necessary)

ConstraintColumn

Field Constraints

ClientQuoteNm ([ClientQuoteNm] >= 0 and [ClientQuoteNm] <= 99999999)

IssNum ([IssNum] >= 0 and [IssNum] <= 999999999)

SeqNo ([SeqNo] >= 0 and [SeqNo] <= 9999999)

Page 449JohnsonGroup

Page 450: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQOrder QQ Order

QuickQuote Order table - contains main header info for an individual

quote.

Indexes on Description

IssNum Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

QQOrdComments IssNum

QQOrderDet IssNum

Related Tables

QQHeaderInfo IssueNumber

TypeColumn

IssNum int Issued Quote Number This is the number used to track the quote. If it is

reopened, edited and saved, it will retain the same Issue Number.

ClientQuoteNm int Client Quote Number When operating in Client mode, this number is used to

track the quote. This number is analogous to the Issued Quote Number which is

used to track the quote when QuickQuote operates in "Server" mode.

Description varchar (50) Description of Quote

EstDate datetime Date that Quote was created

CustomerName varchar (50) Customer Name - from the customer table unless customer number is 0. May be

edited in QuickQuote

CustomerN int Customer Number - if not 0, then it must be found in the Customer table.

Relates to: Customer table

CustContact varchar (35) Contact Name at customer

AddrLine1 varchar (40) Address fields are taken from the Customer table and can be edited once in the

quote.

AddrLine2 varchar (40) .

City varchar (30) .

StateProv varchar (4) .

PostalCode varchar (15) .

TelephoneN varchar (25) .

FaxTelephoneN varchar (25) .

SalesRepName varchar (35) Sales Rep's Name from Salesperson table

SalesRepN int Sales Rep Number (defaults from Customer table)

Relates to: Salesperson table

Estimator varchar (35) Estimator Name as entered when QuickQuote is installed on the client machine.

EstorN int Estimator Number as entered when QuickQuote is installed on the client.

ModDate datetime Date of last modification of quote.

ModEstorN int Estimator Number of last estimator to modify the quote.

Quantity1 int Quantity to use for this quote.

Quantity2 int Additional quantities estimate for quote

Page 450JohnsonGroup

Page 451: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQOrder QQ Order

Quantity3 int .

Quantity4 int .

Quantity5 int .

EStatus varchar (25) Current status of quote

Working - saved quote - not ready for use

Issued - saved quote - ready for use

Locked - editing of quote in progress

Template - used to create other quotes

Won - quote turned into job

Lost - quote lost

EstimateCode int A field to allow an additional status or informative category to be associated

with a quote. When a quote is marked Lost, this code should reflect the reason

that this quote was Lost and not entered for Production. These codes appear on

the Won/Lost report. The values are under customer control, and are set up in

the EstimateCodes table in Table Maintenance.

Relates to: EstimateCode table

LockedBy varchar (20) Name of estimator currently making edits on this quote.

LockedOn datetime Date when Locked

JobNumber int Job Number with which a Won quote was associated.

Relates to: OpenJob table

RFEDocumentN int Not used in EFI Logic SQL.

Relates to: InternetDocs table

Permanent tinyint If a quote is marked Permanent, it will not be purged regardless of other

characteristics of the quote. This field is maintained using the Quote

Maintenance button when editing QuickQuote standards.

0 = No

1 = Yes

Closed tinyint Indicates whether the purge has closed this estimate, in which case only the

header information remains.

0 = No

1 = Yes

EstDue datetime Expected Due Date of job being quoted.

PriceAdj decimal (9,2) Default Price adjustment (This value defaults from the Customer StdMarkup

and is stored here as a decimal value, ie. .04 = 4%)

PriceAdjType tinyint Type of default price adjustment 0 = %, 1 = Fixed$

RateSched int Rate Schedule currently in use to build quote.

AddrLine3 varchar (40) .

CountryCode varchar (3) Three letter country code.

Relates to: Country table

PhoneExt varchar (6) Telephone extension.

Page 451JohnsonGroup

Page 452: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQOrder QQ Order

Email varchar (128) Email address

Price1 decimal (15,2) Total Price for Quantity 1

Price2 decimal (15,2) Total Price for Quantity 2

Price3 decimal (15,2) Total Price for Quantity 3

Price4 decimal (15,2) Total Price for Quantity 4

Price5 decimal (15,2) Total Price for Quantity 5

Cost1 decimal (15,2) Total Estimated Cost for Quantity 1

Cost2 decimal (15,2) Total Cost for Quantity 2

Cost3 decimal (15,2) Total Cost for Quantity 3

Cost4 decimal (15,2) Total Cost for Quantity 4

Cost5 decimal (15,2) Total Cost for Quantity 5

QtyIndex int Index of Quantity with which a Won quote was associated.

ProductCode int Product Code of this quote from Product table.

Relates to: ProductCode table

CustomerOrderN varchar (30) If entered in a quote, the value in this field will be entered into the Open Job

CustomerOrderN field when the quote is associated with a job.

CustomerPartN varchar (20) If entered in a quote, the value in this field will be entered into the Open Job

CustomerPartN field when the quote is associated with a job.

DueTime datetime The time of day that a quote is due. This value will be put into the Open Job

DueTime field when a quote is associated with a job.

EstimateType tinyint Designates whether the quote is intended for use as a quote only, a plan only or

both. This will determine whether costing data is put into Labor/Material Quote

tables, Planned Labor/Material tables, or both.

0 = Quote and Plan

1 = Quote Only

2 = Plan Only

PrintBuyer int The print buyer chosen for this quote.

Relates to: CustShipAddr table

Page 452JohnsonGroup

Page 453: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQOrder QQ Order

ConstraintColumn

Field Constraints

ClientQuoteNm ([ClientQuoteNm] >= 0 and [ClientQuoteNm] <= 99999999)

Closed ([Closed] >= 0 and [Closed] <= 1)

Cost1 ([Cost1] >= (-999999999) and [Cost1] <= 999999999)

Cost2 ([Cost2] >= (-999999999) and [Cost2] <= 999999999)

Cost3 ([Cost3] >= (-999999999) and [Cost3] <= 999999999)

Cost4 ([Cost4] >= (-999999999) and [Cost4] <= 999999999)

Cost5 ([Cost5] >= (-999999999) and [Cost5] <= 999999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

EstimateCode ([EstimateCode] >= 0 and [EstimateCode] <= 999999)

EstimateType ([EstimateType]>=(0) AND [EstimateType]<=(2))

EstorN ([EstorN] >= 0 and [EstorN] <= 9999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

ModEstorN ([ModEstorN] >= 0 and [ModEstorN] <= 9999)

Permanent ([Permanent] >= 0 and [Permanent] <= 1)

Price1 ([Price1] >= (-999999999) and [Price1] <= 999999999)

Price2 ([Price2] >= (-999999999) and [Price2] <= 999999999)

Price3 ([Price3] >= (-999999999) and [Price3] <= 999999999)

Price4 ([Price4] >= (-999999999) and [Price4] <= 999999999)

Price5 ([Price5] >= (-999999999) and [Price5] <= 999999999)

PriceAdj ([PriceAdj] >= (-9999999) and [PriceAdj] <= 9999999)

PriceAdjType ([PriceAdjType] >= 0 and [PriceAdjType] <= 1)

PrintBuyer ([PrintBuyer]>=(0) AND [PrintBuyer]<=(9999999))

QtyIndex ([QtyIndex] >= 0 and [QtyIndex] <= 5)

Quantity1 ([Quantity1] >= (-1) and [Quantity1] <= 999999999)

Quantity2 ([Quantity2] >= (-1) and [Quantity2] <= 999999999)

Quantity3 ([Quantity3] >= (-1) and [Quantity3] <= 999999999)

Quantity4 ([Quantity4] >= (-1) and [Quantity4] <= 999999999)

Quantity5 ([Quantity5] >= (-1) and [Quantity5] <= 999999999)

RateSched ([RateSched] >= 0 and [RateSched] <= 9999999)

RFEDocumentN ([RFEDocumentN] >= 0 and [RFEDocumentN] <= 9999999)

SalesRepN ([SalesRepN] >= 0 and [SalesRepN] <= 999999)

Page 453JohnsonGroup

Page 454: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQOrderDet QQ Order Detail

QuickQuote Order Detail - Line items for each individual quote which are

the same for all quantities.

Indexes on Description

IssNum, SeqNo Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

QQOrderDetQty SeqNo

TypeColumn

IssNum int Issued Quote Number

This is the number used to track the quote. If it is reopened, edited and saved, it

will retain the same Issue Number.

Relates to: QQOrder table

SeqNo int Sequence Number of Detail Item

ClientQuoteNm int Client Quote Number

When operating in Client mode, this number is used to track the quote. This

number is analogous to the Issued Quote Number which is used to track the

quote when QuickQuote operates in "Server" mode.

LineType varchar (1) Type of line:

P: Product from pricelist

W: Custom product

C: Adjustment line

H: Detailed Header line

N: Non-detailed Header line

S: Subtotal line

M: Component line

ProductID int Product ID if this line item is a Product

Relates to: QQProducts table

ProductDesc varchar (50) Text - Description of Product from product table, User typed text for Headers or

Credit lines, ' Subtotal' for subtotal lines, User typed text for Custom Products.

SizeID int Size ID if standard product

Relates to: QQSize table

Unit varchar (10) Unit from product table or user-typed

Multiples decimal (9,2) Number of times the Fixed or Setup charge will be charged. This number is then

multipled times the quantity field to arrive at the final number of items for this

line item.

PriceAdj decimal (9,4) Price adjustment amount. eg -.05 of % type gives a 5% discount. 100 of Fixed

type gives a $100 surcharge.

PriceAdjType tinyint Adjustment type 0 = % adjustment, 1 = Fixed $ adj

RateID int Rate Schedule that this price was taken from.

Relates to: QQRate table

JobTransfer tinyint Not yet used

Page 454JohnsonGroup

Page 455: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQOrderDet QQ Order Detail

QtyMultiple decimal (9,2) This value can be used to set up a multiple of the header quantity for a variable

quantity product line item. It will default first to any value set up in a preceding

header, next to the value set up in the product itself, but can be overridden on the

line item. It may also be set in a template. It can be used as a page count to set

up a "click charge" when the header quantity is a document count.

FixCharge decimal (9,2) The fixed charge or setup price to be charged for this line item. It is initially set

according the current charge in the rate schedule, but if the user has permission

to override the unit price, the fixed charge can also be overridden.

ComponentN smallint Component number will only be non zero if Component type line items are

included in the quote. If Component line items are included, they will assign

sequential component numbers to subsequent line items.

ConstraintColumn

Field Constraints

ClientQuoteNm ([ClientQuoteNm] >= 0 and [ClientQuoteNm] <= 99999999)

ComponentN ([ComponentN] >= 0 and [ComponentN] <= 9999)

IssNum ([IssNum] >= 0 and [IssNum] <= 999999999)

JobTransfer ([JobTransfer] >= 0 and [JobTransfer] <= 1)

Multiples ([Multiples] >= (-9999999) and [Multiples] <= 9999999)

PriceAdj ([PriceAdj] >= (-9999999) and [PriceAdj] <= 9999999)

PriceAdjType ([PriceAdjType] >= 0 and [PriceAdjType] <= 1)

ProductID ([ProductID] >= 0 and [ProductID] <= 9999999)

QtyMultiple ([QtyMultiple]>=(0) AND [QtyMultiple]<=(9999999))

RateID ([RateID] >= 0 and [RateID] <= 9999999)

SeqNo ([SeqNo] >= 0 and [SeqNo] <= 9999999)

SizeID ([SizeID] >= 0 and [SizeID] <= 9999999)

Page 455JohnsonGroup

Page 456: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQOrderDetQty QQ Order Det Qty

This table hold fields which vary for different quantities of a quote line

item. All fields which are the same across all quantities are in the

QQOrderDet table.

Indexes on Description

IssNum, SeqNo, QtyIndex Primary key, clustered

TypeColumn

IssNum int Issued Quote Number

This is the number used to track the quote. If it is reopened, edited and saved, it

will retain the same Issue Number.

Relates to: QQOrderDet table

SeqNo int Sequence Number of Detail Item for which this record provides the quantity

specific information.

Relates to: QQOrderDet table

QtyIndex int Index of the quantity for which this record provides the quantity specific

information.

ClientQuoteNm int Client Quote Number

When operating in Client mode, this number is used to track the quote. This

number is analogous to the Issued Quote Number which is used to track the

quote when QuickQuote operates in "Server" mode.

Quantity decimal (15,2) Quantity of items for each multiple for this quantity.

UnitPrice decimal (12,4) Unit price per item - usually calculated on the final quantity from the rate

schedule.

LinePrice decimal (15,2) Total Price for entire line item for this quantity.

LineCost decimal (15,2) Cost of line items calculated based on the product costs for this quantity.

ConstraintColumn

Field Constraints

ClientQuoteNm ([ClientQuoteNm] >= 0 and [ClientQuoteNm] <= 99999999)

IssNum ([IssNum] >= 0 and [IssNum] <= 999999999)

LineCost ([LineCost] >= (-999999999) and [LineCost] <= 999999999)

LinePrice ([LinePrice] >= (-999999999) and [LinePrice] <= 999999999)

QtyIndex ([QtyIndex] >= 1 and [QtyIndex] <= 5)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

SeqNo ([SeqNo] >= 0 and [SeqNo] <= 9999999)

UnitPrice ([UnitPrice] >= (-999999) and [UnitPrice] <= 999999)

Page 456JohnsonGroup

Page 457: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQProdLabor QQ Prod Labor

QuickQuote Product Labor - Contains Labor cost information for a

Product/Size combination.

Indexes on Description

ProductID, SizeID, LCC Primary key, clustered

TypeColumn

ProductID int Unique numeric ID to identify products.

Relates to: QQProducts table

SizeID int Size Id for this Product/Size combination

Relates to: QQSize table

LCC int Labor Cost Center number for this Labor record.

Relates to: LaborCostCntr table

SUMin decimal (9,4) Number of Fixed Setup Minutes charged for this Product/Size combination.

MinPerUnit decimal (9,4) Minutes charged per unit (Qty * Multiple)

ConstraintColumn

Field Constraints

LCC ([LCC] >= 0 and [LCC] <= 9999999)

MinPerUnit ([MinPerUnit] >= (-999) and [MinPerUnit] <= 999)

ProductID ([ProductID] >= 0 and [ProductID] <= 9999999)

SizeID ([SizeID] >= 0 and [SizeID] <= 9999999)

SUMin ([SUMin] >= (-999) and [SUMin] <= 999)

Page 457JohnsonGroup

Page 458: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQProdMap QQ Prod Map

Table to associate a PrinterSite Exchange (DSF) standard feature with the

products and options created for it in the QuickQuote standards.

Indexes on Description

ProductID, SizeID Primary key, clustered

TypeColumn

ProductID int Product ID for this product mapped to PrinterSite Exchange feature category.

Relates to: QQProducts table

SizeID int Size ID for this option mapped to PrinterSite Exchange feature.

Relates to: QQSize table

DSFFeatureID int ID passed from PrinterSite Exchange for digital printing features.

LogicStd bit Whether or not this is a standard or custom feature.

ConstraintColumn

Field Constraints

ProductID ([ProductID] >= 0 and [ProductID] <= 9999999)

SizeID ([SizeID] >= 0 and [SizeID] <= 9999999)

Page 458JohnsonGroup

Page 459: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQProdMatl QQ Prod Matl

QuickQuote Product Material - Contains Material Cost info for a

Product/Size combination.

Indexes on Description

ProductID, SizeID, MCC,

FixedVariable

Primary key, clustered

TypeColumn

ProductID int Unique numeric ID to identify products.

Relates to: QQProducts table

SizeID int Size Id for this Material record.

Relates to: QQSize table

MCC int Material Cost Center number for this record.

Relates to: MatlCostCntr table

FixedVariable tinyint If =0 this material will be calculated as a Fixed material and charged once for

this line item.

If =1 it will be multiplied by the quantity and multiple.

Qty decimal (15,2) Qty per unit for this material.

ConstraintColumn

Field Constraints

FixedVariable ([FixedVariable] >= 0 and [FixedVariable] <= 1)

MCC ([MCC] >= 0 and [MCC] <= 9999999)

ProductID ([ProductID] >= 0 and [ProductID] <= 9999999)

Qty ([Qty] >= (-9999999) and [Qty] <= 9999999)

SizeID ([SizeID] >= 0 and [SizeID] <= 9999999)

Page 459JohnsonGroup

Page 460: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQProdPrices QQ Prod Prices

QuickQuote Product Prices. Contains price information for a combination

of Product and Size for an individual Rate Schedule.

Indexes on Description

RateID, ProductID, SizeID Primary key, clustered

TypeColumn

RateID int Numeric ID for the Rate Schedule

Relates to: QQRate table

ProductID int Product ID for this price.

Relates to: QQProducts table

SizeID int Size ID for this price.

Relates to: QQSize table

SetupPrice decimal (9,4) Fixed or Setup Charge for this item.

SetupLimit decimal (12,4) Quantity limit over which no fixed charge will be charged. If 0, no limit.

MinimumLinePr decimal (15,2) If Line Price is < this value, this value will be used as the Price.

Price1 decimal (12,4) Price for any quantity <= Up To 1 value.

Price2 decimal (12,4) .

Price3 decimal (12,4) .

Price4 decimal (12,4) .

Price5 decimal (12,4) .

Price6 decimal (12,4) .

Price7 decimal (12,4) .

Price8 decimal (12,4) .

Price9 decimal (12,4) .

Price10 decimal (12,4) .

Price11 decimal (12,4) .

Price12 decimal (12,4) .

Price13 decimal (12,4) .

Price14 decimal (12,4) .

Price15 decimal (12,4) .

Price16 decimal (12,4) .

Price17 decimal (12,4) .

Price18 decimal (12,4) .

Price19 decimal (12,4) .

Price20 decimal (12,4) .

UpTo1 decimal (15,2) Quantity limit for Price 1.

Page 460JohnsonGroup

Page 461: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQProdPrices QQ Prod Prices

UpTo2 decimal (15,2) See Up To 1.

UpTo3 decimal (15,2) .

UpTo4 decimal (15,2) .

UpTo5 decimal (15,2) .

UpTo6 decimal (15,2) .

UpTo7 decimal (15,2) .

UpTo8 decimal (15,2) .

UpTo9 decimal (15,2) .

UpTo10 decimal (15,2) .

UpTo11 decimal (15,2) .

UpTo12 decimal (15,2) .

UpTo13 decimal (15,2) .

UpTo14 decimal (15,2) .

UpTo15 decimal (15,2) .

UpTo16 decimal (15,2) .

UpTo17 decimal (15,2) .

UpTo18 decimal (15,2) .

UpTo19 decimal (15,2) .

UpTo20 decimal (15,2) .

SalesAcctN int Sales account number for distribution of this product/option combination, unless

overridden at the breakpoint level.

Relates to: GLAccounts table

DeptNo int Department number for Sales Account if it requires a department to be specified.

Relates to: DeptNames table

MaxDiscount int If the product is discountable, this value can put a limit on the size of the

discount.

SalesAcct1 int Sales account number for distribution of this product/option combination at this

breakpoint.

Relates to: GLAccounts table

SalesAcct2 int .

Relates to: GLAccounts table

SalesAcct3 int .

Relates to: GLAccounts table

SalesAcct4 int .

Relates to: GLAccounts table

SalesAcct5 int .

Relates to: GLAccounts table

Page 461JohnsonGroup

Page 462: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQProdPrices QQ Prod Prices

SalesAcct6 int .

Relates to: GLAccounts table

SalesAcct7 int .

Relates to: GLAccounts table

SalesAcct8 int .

Relates to: GLAccounts table

SalesAcct9 int .

Relates to: GLAccounts table

SalesAcct10 int .

Relates to: GLAccounts table

SalesAcct11 int .

Relates to: GLAccounts table

SalesAcct12 int .

Relates to: GLAccounts table

SalesAcct13 int .

Relates to: GLAccounts table

SalesAcct14 int .

Relates to: GLAccounts table

SalesAcct15 int .

Relates to: GLAccounts table

SalesAcct16 int .

Relates to: GLAccounts table

SalesAcct17 int .

Relates to: GLAccounts table

SalesAcct18 int .

Relates to: GLAccounts table

SalesAcct19 int .

Relates to: GLAccounts table

SalesAcct20 int .

Relates to: GLAccounts table

Page 462JohnsonGroup

Page 463: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQProdPrices QQ Prod Prices

ConstraintColumn

Field Constraints

MaxDiscount ([MaxDiscount] >= 0 and [MaxDiscount] <= 100)

MinimumLinePr ([MinimumLinePr] >= 0 and [MinimumLinePr] <= 999999999)

Price1 ([Price1] >= (-999999) and [Price1] <= 999999)

Price10 ([Price10] >= (-999999) and [Price10] <= 999999)

Price11 ([Price11] >= (-999999) and [Price11] <= 999999)

Price12 ([Price12] >= (-999999) and [Price12] <= 999999)

Price13 ([Price13] >= (-999999) and [Price13] <= 999999)

Price14 ([Price14] >= (-999999) and [Price14] <= 999999)

Price15 ([Price15] >= (-999999) and [Price15] <= 999999)

Price16 ([Price16] >= (-999999) and [Price16] <= 999999)

Price17 ([Price17] >= (-999999) and [Price17] <= 999999)

Price18 ([Price18] >= (-999999) and [Price18] <= 999999)

Price19 ([Price19] >= (-999999) and [Price19] <= 999999)

Price2 ([Price2] >= (-999999) and [Price2] <= 999999)

Price20 ([Price20] >= (-999999) and [Price20] <= 999999)

Price3 ([Price3] >= (-999999) and [Price3] <= 999999)

Price4 ([Price4] >= (-999999) and [Price4] <= 999999)

Price5 ([Price5] >= (-999999) and [Price5] <= 999999)

Price6 ([Price6] >= (-999999) and [Price6] <= 999999)

Price7 ([Price7] >= (-999999) and [Price7] <= 999999)

Price8 ([Price8] >= (-999999) and [Price8] <= 999999)

Price9 ([Price9] >= (-999999) and [Price9] <= 999999)

ProductID ([ProductID] >= 0 and [ProductID] <= 9999999)

RateID ([RateID] >= 0 and [RateID] <= 9999999)

SalesAcctN ([SalesAcctN] >= 0 and [SalesAcctN] <= 999999999)

SetupLimit ([SetupLimit] >= 0 and [SetupLimit] <= 9999999)

SetupPrice ([SetupPrice] >= 0 and [SetupPrice] <= 999999)

SizeID ([SizeID] >= 0 and [SizeID] <= 9999999)

UpTo1 ([UpTo1] >= 0 and [UpTo1] <= 999999999)

UpTo10 ([UpTo10] >= 0 and [UpTo10] <= 999999999)

UpTo11 ([UpTo11] >= 0 and [UpTo11] <= 999999999)

UpTo12 ([UpTo12] >= 0 and [UpTo12] <= 999999999)

UpTo13 ([UpTo13] >= 0 and [UpTo13] <= 999999999)

UpTo14 ([UpTo14] >= 0 and [UpTo14] <= 999999999)

UpTo15 ([UpTo15] >= 0 and [UpTo15] <= 999999999)

UpTo16 ([UpTo16] >= 0 and [UpTo16] <= 999999999)

UpTo18 ([UpTo18] >= 0 and [UpTo18] <= 999999999)

UpTo19 ([UpTo19] >= 0 and [UpTo19] <= 999999999)

UpTo2 ([UpTo2] >= 0 and [UpTo2] <= 999999999)

UpTo20 ([UpTo20] >= 0 and [UpTo20] <= 999999999)

UpTo3 ([UpTo3] >= 0 and [UpTo3] <= 999999999)

UpTo4 ([UpTo4] >= 0 and [UpTo4] <= 999999999)

UpTo5 ([UpTo5] >= 0 and [UpTo5] <= 999999999)

UpTo6 ([UpTo6] >= 0 and [UpTo6] <= 999999999)

UpTo7 ([UpTo7] >= 0 and [UpTo7] <= 999999999)

UpTo8 ([UpTo8] >= 0 and [UpTo8] <= 999999999)

UpTo9 ([UpTo9] >= 0 and [UpTo9] <= 999999999)

Page 463JohnsonGroup

Page 464: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQProducts QQ Products

QuickQuote Products file, used in combination with Sizes to make up

items on the rate schedules.

Indexes on Description

ProductID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AlterationDetail ProductID

QQOrderDet ProductID

QQProdLabor ProductID

QQProdMap ProductID

QQProdMatl ProductID

QQProdPrices ProductID

QQTemplateDetail ProductID

TypeColumn

ProductID int Unique numeric ID to identify products.

Product varchar (16) Alpha numeric abbreviation for Product which can be typed in to enter product

in quote.

ProductDesc varchar (50) Description of product.

Discountable tinyint Whether prices for this product can be discounted. (0=No, 1 = Yes)

PricingType tinyint Pricing Type

0 = Discrete pricing - Unit Price if fixed between breakpoints.

1 = Prorated pricing - Unit Price is calculated by ratio between two

breakpoints.

2 = Tiered pricing - Price for each group of items equal to price for breakpoint

group.

AllowOverride tinyint Allow user of QuickQuote to override of Unit Price and fixed charge on a

standard product.

CommentBlock varchar (8) Default comment block used for this product.

Unit varchar (10) Unit description; eg. print, ea, ln ft

QtyMultiple int Allows user to enter short number which gets immediately multiplied on input by

this number. Eg. 1 becomes 1000 if the product had a Qty Multiple of 1000.

Type varchar (1) Variable (V) or Fixed (F). Variable products will have their quantities default to

the header quantities for the quote. Fixed products will need to have a quantity

entered. If a header quantity is changed in QuickQuote, the user will be asked if

all variable products that have the original quantity should have it changed to the

new value.

SequenceNo int Controls order of Product in product lists.

LogicStd bit This is a flag indicating a product set up by the Logic system which cannot be

deleted and not all of its properties can be modified.

IsMedia bit This is a product which can only be associated with a media type option. It is

generally an operation which consumes a media or stock.

PricingUnit int This is the unit to which to apply the pricing. The available options are each

(/e), by 100s (/c), or by 1000s (/m).

Page 464JohnsonGroup

Page 465: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: QQProducts QQ Products

GroupID int This links the product with the product group under which it will appear in a rate

schedule.

Relates to: QQGroup table

ConstraintColumn

Field Constraints

AllowOverride ([AllowOverride] >= 0 and [AllowOverride] <= 1)

Discountable ([Discountable] >= 0 and [Discountable] <= 1)

GroupID ([GroupID] >= 0 and [GroupID] <= 9999999)

PricingType ([PricingType] >= 0 and [PricingType] <= 4)

ProductID ([ProductID] >= 1 and [ProductID] <= 9999999)

QtyMultiple ([QtyMultiple] >= 0 and [QtyMultiple] <= 9999999)

SequenceNo ([SequenceNo] >= 0 and [SequenceNo] <= 9999999)

Page 465JohnsonGroup

Page 466: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQRate QQ Rate

QuickQuote Rate Schedule table. Each rate schedule can define a price for

any combination of Products and Sizes.

Indexes on Description

RateID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

QQProdPrices RateID

Related Tables

AlterationDetail RateID

Customer CustRateSched

QQOrderDet RateID

QQRateTemplate RateID

TypeColumn

RateID int Numeric ID for the Rate Schedule

RateDesc varchar (30) Description of Rate Schedule

AddDefSched tinyint Indicates whether this rate table is supplemented by the default table. If =1 this

table will act as a supplemental or override prices to the Default Rate Schedule.

If =0, only prices from this Rate Schedule will be shown.

AllowOverride tinyint Allow user to override Unit Prices and Fixed Charges from this Rate Schedule.

SequenceNo int Controls order of Rate Schedules in list.

Exclusive tinyint Indicates that selection of this rate table cannot be changed if it is the default

rate schedule for a customer.

LogicStd bit This is a flag indicating a rate schedule set up by the Logic system which cannot

be deleted and not all of its properties can be modified.

UseInQuotes bit Determines whether this rate schedule will appear in the list of available rate

schedules for a quote if the customer has no default rate schedule or their

assigned rate schedule is not exclusive.

ConstraintColumn

Field Constraints

AddDefSched ([AddDefSched] >= 0 and [AddDefSched] <= 1)

AllowOverride ([AllowOverride] >= 0 and [AllowOverride] <= 1)

Exclusive ([Exclusive] >= 0 and [Exclusive] <= 1)

RateID ([RateID] >= 1 and [RateID] <= 9999999)

SequenceNo ([SequenceNo] >= 0 and [SequenceNo] <= 9999999)

Page 466JohnsonGroup

Page 467: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQRateTemplate QQ Rate Template

Indicates which templates will appear in which rate schedules. Maintained

in QuickAdmin.

Indexes on Description

RateID, TemplateID Primary key, clustered

TypeColumn

RateID int ID of rate schedule for template.

Relates to: QQRate table

TemplateID int ID of template to appear in given rate schedule.

Relates to: QQTemplate table

ConstraintColumn

Field Constraints

RateID ([RateID] >= 1 and [RateID] <= 9999999)

TemplateID ([TemplateID] >= 1 and [TemplateID] <= 9999999)

Page 467JohnsonGroup

Page 468: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQSize QQ Size

QuickQuote Sizes - Used in combination with Products to define price list

entries.

Indexes on Description

SizeID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AlterationDetail SizeID

QQOrderDet SizeID

QQProdLabor SizeID

QQProdMap SizeID

QQProdMatl SizeID

QQProdPrices SizeID

QQTemplateDetail SizeID

TypeColumn

SizeID int Numeric ID for this option

SizeDesc varchar (60) Description for this option type.

SequenceNo int Controls order of options in list.

LogicStd bit This is a flag indicating an option set up by the Logic system which cannot be

deleted and not all of its properties can be modified.

IsMedia bit This option is chosen from the Material Cost Center table and remains associated

with that item for look ups. These options can only be associated with a media

type product.

MCCN int The Material Cost Center key associated with this option.

Relates to: MatlCostCntr table

ConstraintColumn

Field Constraints

SequenceNo ([SequenceNo] >= 0 and [SequenceNo] <= 9999999)

SizeID ([SizeID] >= 1 and [SizeID] <= 9999999)

Page 468JohnsonGroup

Page 469: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQStdsVers QQ Stds Version

QuickQuote Standards: Version information for which version of

standards on this server or downloaded to local database.

Indexes on Description

StdsVers Primary key, clustered

TypeColumn

StdsVers decimal (9,2) Version number of the customer standards contained in this database. Currently

this number can only be set to 1, and QuickQuote standards are differentiated by

StdsID and DateLastMod.

StdsID varchar (20) Identifier for the QuickQuote standards contained in this database. Currently

this field will be set to the name of the database by the QuickQuote standards

editor.

QQVersion varchar (10) Version number of the format of the QuickQuote database that is in this

database.

DateLastMod datetime Date of last modification to the standards contained in this database. Used to

indicate when client standards are not up to date.

ConstraintColumn

Field Constraints

StdsVers ([StdsVers] >= (-999999) and [StdsVers] <= 999999)

Page 469JohnsonGroup

Page 470: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQTemplate QQ Template

Indexes on Description

TemplateID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

QQRateTemplate TemplateID

QQTemplateDetail TemplateID

TypeColumn

TemplateID int Key field for template.

Description varchar (50) Text description for template.

SequenceNo int Indicates order in which templates will appear in their groups.

TemplateGroupID int The ID of the Template group in which this template will appear.

Relates to: QQTemplateGroup table

ConstraintColumn

Field Constraints

TemplateID ([TemplateID] >= 1 and [TemplateID] <= 9999999)

Page 470JohnsonGroup

Page 471: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQTemplateDetail QQ Template Detail

Holds the details of the line items that make up a template. Maintained in

QuickAdmin.

Indexes on Description

TemplateID, SequenceNo Primary key, clustered

TypeColumn

TemplateID int ID of the template for this line item.

Relates to: QQTemplate table

SequenceNo int Order of line items in template.

ProductID int ID of product if LineType is a Product type, else will be 0.

Relates to: QQProducts table

SizeID int ID of option (size) for this line item if LineType is Product, else will be 0.

Relates to: QQSize table

LineType char Type of this line item in a template. Legal types for templates are:

P: Product from pricelist

C: Adjustment line

H: Detailed Header line

N: Non-detailed Header line

S: Subtotal line

M: Component line

Quantity decimal (9,2) Default quantity if this line item is not a variable quantity product.

LineDesc varchar (50) Description of line item as it will appear in the quote.

QtyMultiple decimal (9,2) This value can be used to set up a multiple of the header quantity for a variable

quantity product line item. See the QtyMultiple field in QQOrderDet.

ConstraintColumn

Field Constraints

QtyMultiple ([QtyMultiple]>=(0) AND [QtyMultiple]<=(9999999))

Page 471JohnsonGroup

Page 472: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQTemplateGroup QQ Template Group

Groups for organization of templates on the QuickQuote rate schedules.

Maintained in QuickAdmin

Indexes on Description

TemplateGroupID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

QQTemplate TemplateGroupID

TypeColumn

TemplateGroupID int Key field for this template group.

SequenceNo int Order in which template groups will appear on the rate schedule.

Description varchar (30) Text description of template group that will appear on the rate schedule.

ConstraintColumn

Field Constraints

Page 472JohnsonGroup

Page 473: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: QQVersion QQ Version

Provides the current version of the QuickQuote database installed

on this server and in the local working database.

Indexes on Description

DateLastMod Primary key, clustered

TypeColumn

DateLastMod datetime Date when QuickQuote database version last changed

QQVersion varchar (10) Version of the QuickQuote database that is in this database. Used to maintain

compatibility with local databases.

ConstraintColumn

Field Constraints

Page 473JohnsonGroup

Page 474: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Questions Questions

Estimating 3 Standards: Questions table. Contains all the information for

operation standards, how they run, how they are calculated, default values,

whether the user can override defaults, etc.

Indexes on Description

LogicID Primary key, clustered

OperID Nonclustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

OperID varchar (8) Unique ID to identify operation

Queseq int Order of Questions on Edit Operation screen

QuesID int Question IDs for each operation. Consists of 3 parts (CCQQQII) 2 rightmost

digits are instance number, next 3 digits are question number, remaining leftmost

digits (1 or 2) are cost function (CF) number.

AnsNum smallint Answer number when multiple answers are allowed, usually for multiple

quantities.

QWord varchar (50) Wording for this question for this operation (i.e., "the question" or prompt seen

by the user when editing the operation)

QMin int Minimum value for numeric answer (always 0 if a string type answer)

QMax int Maximum value for answer or max length of string

ValType varchar (1) Value Type. Indicates type of question:

S = String

D = Double

L = Long

B = Boolean

C = CostCenter

R = Radio

T = Title

M = Multiple List

O = One List Option

K = Lookup

QValue varchar (120) Default value: may be a string, double numeric, long numeric, or 0/1

ValFn varchar (50) If used in a question associated with a lookup, contains the name of the field,

whose value in the selected record will supply the answer to this question.

NumAns smallint Number of answers allowed for this question (maximum = 5)

Visible tinyint Whether question is visible to user for editing when building an estimate. A

visible question is often referred to as "question" and an invisible question is

referred to as "standard".

Calc tinyint Can be calculated by estimating application. If an answer can be calculated, the

QValue may be blank.

Lookup smallint Lookup ID of lookup used for this question.

Page 474JohnsonGroup

Page 475: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Questions Questions

Matrix tinyint A flag indicating that a matrix is used to supply the pricing for the question if

value = 1.

Reqd tinyint Required Answer. This answer must be entered by the user or explicitly marked

by user to be calculated

LCCNum int Labor Cost Center (for ValType=C and labor questions)

Relates to: LaborCostCntr table

MCCNum int Material Cost Center (for ValType = C and Material questions)

Relates to: MatlCostCntr table

ConstraintColumn

Field Constraints

AnsNum ([AnsNum] >= 0 and [AnsNum] <= 99)

Calc ([Calc] >= 0 and [Calc] <= 1)

LCCNum ([LCCNum] >= 0 and [LCCNum] <= 99999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Lookup ([Lookup] >= 0 and [Lookup] <= 9999)

Matrix ([Matrix] >= 0 and [Matrix] <= 1)

MCCNum ([MCCNum] >= 0 and [MCCNum] <= 9999999)

NumAns ([NumAns] >= 0 and [NumAns] <= 99)

QMax ([QMax] >= (-999999999) and [QMax] <= 1000000000)

QMin ([QMin] >= (-9999999) and [QMin] <= 9999999)

Queseq ([Queseq] >= 0 and [Queseq] <= 99999)

QuesID ([QuesID] >= 0 and [QuesID] <= 9999999)

Reqd ([Reqd] >= 0 and [Reqd] <= 1)

Visible ([Visible] >= 0 and [Visible] <= 1)

Page 475JohnsonGroup

Page 476: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ReasonCodes Reason Codes

Reason codes are used with SFDC to explain why a prefix has been

entered (e.g., why the operator has entered prefix 2 for rework). Entries in

the Prefixes table determine if reason codes are required and for which

prefixes the prompt will appear.

Note that the reason code list is not supplied by EFI Logic; these are the

user company's codes.

Indexes on Description

ReasonCode Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

DMIMaterial ReasonCode

JobLabor ReasonCode

JobMaterial ReasonCode

MaterialTrans ReasonCode

RollTransactions ReasonCode

TypeColumn

ReasonCode int The code to identify each reason. This is what the shop floor worker enters

when prompted. Each reason must have a unique code.

RCDescription varchar (20) The reason explaining why the prefix had to be used. This is displayed for

verification when the operator enters a reason code.

UseForPrefixes bit If this bit field is set to 1, the reason code is allowed when entering a reason for a

labor, material, job status, or roll stock usage prefix.

0 = No

1 = Yes

UseForRollStock bit If this bit field is set to 1, the reason code is allowed when entering a reason for a

roll stock adjustment.

0 = No

1 = Yes

UseForInventory bit If this bit field is set to 1, the reason code is allowed when entering a reason for

an inventory adjustment.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

ReasonCode ([ReasonCode] >= 0 and [ReasonCode] <= 99999)

Page 476JohnsonGroup

Page 477: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RecurringEntry Recurring Entry

The RecurringEntry table contains the list of offsetting accounting entries

to be posted for each transaction in the RecurringTrans table. The

Accounting application uses the list to create a transaction in an

Accounting batch. This table is usually set up during Accounting

implementation. Records are defined and maintained by using the

Accounting application.

Indexes on Description

TransactionN, LineN Primary key, clustered

TypeColumn

TransactionN int Part of the key to the table and the part that relates back to the RecurringTrans

table.

Relates to: RecurringTrans table

LineN int A sequential number to uniquely identify the entries for one recurring

transaction.

AccountN int The G/L Account Number to which the entry will be posted.

Relates to: GLAccounts table

Transactions decimal (15,2) The amount of the entry. This amount is always a positive number. The

corresponding DebitCrdtFlag field determines whether the amount is debited or

credited to the account.

DebitCrdtFlag tinyint This flag is used to indicate whether the amount for this entry will be debited or

credited to the associated account.

0 = debit

1 = credit

Percentage int The percentage column is used to facilitate the distribution of amounts to

accounts. For example, if you want to distribute rent expense to departments

based on square footage used, you can enter a percentage of the amount to be

applied to each account/department. The percentage value is a whole number

and must be divided by 100 to get the actual percentage, e.g. 3333 is 33.33

percent.

DeptN int The department number, if required for the G/L account, to which the entry

applies.

Relates to: DeptNames table

Comment varchar (60) A description of or comment about a line item in a general journal recurring

transaction.

Page 477JohnsonGroup

Page 478: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RecurringEntry Recurring Entry

ConstraintColumn

Field Constraints

AccountN ([AccountN] >= 1 and [AccountN] <= 999999999)

DebitCrdtFlag ([DebitCrdtFlag] >= 0 and [DebitCrdtFlag] <= 1)

DeptN ([DeptN] >= 0 and [DeptN] <= 9999999)

LineN ([LineN] >= 0 and [LineN] <= 99999)

Percentage ([Percentage] >= 0 and [Percentage] <= 10000)

TransactionN ([TransactionN] >= 0 and [TransactionN] <= 999999)

Transactions ([Transactions] >= (-999999999) and [Transactions] <= 999999999)

Page 478JohnsonGroup

Page 479: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RecurringTrans Recurring Trans

The Recurring Trans(action) table stores general information about

transactions that occur repeatedly. Each record in this table has a list of

associated entries in the RecurringEntry table that contain account-specific

information. Together, these records contain all of the information

necessary to create one transaction in Accounting. This table is usually set

up during the Accounting implementation. Records are defined and

maintained by using the Accounting application.

Indexes on Description

TransactionN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

RecurringEntry TransactionN

TypeColumn

TransactionN int The key to the table. Used as part of the automatically generated invoice

number when building a batch of recurring transactions if the invoice wasn't

specified in the A/P recurring transaction definition.

Description varchar (30) A descriptive name or reason for the recurring transaction.

DivisionN int The number of the accounting division for the recurring transaction.

Relates to: AcctDivisions table

TransType tinyint This column indicates whether the transaction is an A/P or a G/J recurring

transaction - 3 for A/P or 7 for G/J.

LastLegalDate datetime The LastLegalDate represents the date after which this transaction cannot be

included in an Accounting batch. For example, if you are defining a recurring

transaction for paying a loan, enter the end date of the loan in this column.

When you create an accounting batch, it won't let you include this entry if its last

legal date is before the posting date of the batch.

TrxSetNumber int The number of the transaction set to which this recurring transaction belongs. A

recurring transaction does not have to belong to a transaction set, but it can

simplify the creation of accounting batches when multiple recurring transactions

are likely to be posted together.

Relates to: TransactionSet table

VendorNumber int The vendor for an A/P recurring transaction.

Relates to: Vendor table

Group3Invoice varchar (12) The invoice for an A/P recurring transaction. If blank, Accounting will create an

internal invoice number automatically when the recurring transaction is included

in a batch.

D1099Type smallint If the vendor for an A/P recurring transaction is a 1099 vendor, this field defines

the 1099 type.

Relates to: D1099TaxTypes table

DocRefOrComment varchar (60) A comment for an A/P recurring transaction or a document reference value for a

G/J recurrring transaction.

Page 479JohnsonGroup

Page 480: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RecurringTrans Recurring Trans

ConstraintColumn

Field Constraints

D1099Type ([D1099Type] >= 0 and [D1099Type] <= 999)

DivisionN ([DivisionN] >= 0 and [DivisionN] <= 9999)

TransactionN ([TransactionN] >= 1 and [TransactionN] <= 999999)

TransType ([TransType] >= 0 and [TransType] <= 7)

TrxSetNumber ([TrxSetNumber] >= 0 and [TrxSetNumber] <= 9999999)

VendorNumber ([VendorNumber] >= 0 and [VendorNumber] <= 999999999)

Page 480JohnsonGroup

Page 481: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RenumberKey Renumber Key

The RenumberKey is a work table that is used when you re-number your

Customer table, Vendor table, Cost Center tables, etc. Using System

Maintenance, you enter the old numbers and the new numbers into the

RenumberKey table. You then use System Maintenance to run the process

that puts the new keys into the Customer, Vendor, or Cost Center table.

Call EFI Logic if you plan to renumber your tables.

Indexes on Description

OldKey Primary key, clustered

TypeColumn

OldKey int Keys from the existing table that should be renumbered. At times these keys

may not yet exist if you are renumbering a previous key to a temporary key.

NewKey int New keys to be assigned to previous entities during the renumber.

ConstraintColumn

Field Constraints

NewKey ([NewKey] >= 0 and [NewKey] <= 999999999)

OldKey ([OldKey] >= 0 and [OldKey] <= 999999999)

Page 481JohnsonGroup

Page 482: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ReportMapper Report Mapper

Currently not used this file will be taken advantage

of in a future release to map GL accounts for

custom reporting or an interface to a third party

report writer.

Indexes on Description

RmapKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

GLAccounts ReportMapper3

TypeColumn

RmapKey int

Description varchar (20)

ConstraintColumn

Field Constraints

RmapKey ([RmapKey] >= 1 and [RmapKey] <= 9999999)

Page 482JohnsonGroup

Page 483: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ResourceType Resource Type

This table defines a resource type for each Scheduling work center. If a

resource type is assigned to a work center, a scheduled task can be

reassigned to a work center of the same resource type. The type is used by

data collection to select related work centers.

Indexes on Description

ResourceTypeKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

SchWorkCenter ResourceTypeKey

TypeColumn

ResourceTypeKey smallint Unique key for ResourceType.

ResourceTypeDesc varchar (30) Description of resource type.

ConstraintColumn

Field Constraints

ResourceTypeKey ([ResourceTypeKey] > 0 and [ResourceTypeKey] < 9999)

Page 483JohnsonGroup

Page 484: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RevisionDetail Revision Detail

Each row of RevisionDetail describes one change made to the job ticket

data. This table is a child of the Revisions table, which provides overall

information on the set of changes.

Indexes on Description

KeyN Nonclustered

JobN, RevisionN, KeyN Primary key, clustered

TypeColumn

KeyN int Unique key.

JobN int Job number. This revision detailed row is for this job.

Relates to: Revisions table

RevisionN int Revision number. This revision detail record is part of this revision of job JobN.

Relates to: Revisions table

TableN varchar (20) The table that was modified.

Operation tinyint The operation that was done to the table:

0: insert a row

1: update an existing row

2: delete a row

3: copy a row

NumberOfKeys tinyint Number of keys for this record.

Either 1 for a header table (type 1), 2 for a detail table (type 2). or 3 for JobInk,

JobLayout, JobComponent, JobSpecInstrs, or JobStockCalc updates.

Key1Value int Value of the first key column of the row that was inserted, deleted, copied, or

changed.

Key2Value int If table has two or more columns that make up the key, this is the value of the

second key column of the row that was inserted, deleted, copied, or changed.

ColumnN varchar (20) Name of the column that was modified. Only meaningful if the operation was

update.

Value varchar (7,500) Value that was assigned to TableN-ColumnN. Only meaningful if the operation

was update.

Key3Value int If table has three or more columns that make up the key, this is the value of the

third key column of the row that was inserted, deleted, copied, or changed.

Key4Value int If table has four or more columns that make up the key, this is the value of the

fourth key column of the row that was inserted, deleted, copied, or changed.

Key5Value int If table has five or more columns that make up the key, this is the value of the

fifth key column of the row that was inserted, deleted, copied, or changed.

CauseOfChange int Indicates whether the change was entered into the Job Ticket by a user, or was

generated by a vbscript. Note that this column was created in Release 22.05, so

all changes prior to that are marked as "entered by user" even if they were

generated by a script.

0: entered by user

1: generated by a vbscript.

Page 484JohnsonGroup

Page 485: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RevisionDetail Revision Detail

ConstraintColumn

Field Constraints

JobN ([JobN] >= 0 and [JobN] <= 999999999)

KeyN ([keyn] >= 0 and [keyn] <= 999999999)

NumberOfKeys ([NumberOfKeys] >= 0 and [NumberOfKeys] < 10)

Operation ([operation] >= 0 and [operation] <= 4)

RevisionN ([RevisionN] >= 0 and [RevisionN] <= 999999)

Page 485JohnsonGroup

Page 486: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Revisions Revisions

List of revision headers for each job in the OpenJob table. Each revision

made by the user in the Job Ticket has a row with header information

logged about the revision: date, time, author, etc.

Indexes on Description

JobN, RevisionN Primary key, clustered

Status Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

RevisionDetail RevisionN

TypeColumn

JobN int Identifies the job in the OpenJob table that was revised.

Relates to: OpenJob table

RevisionN int Unique key.

Date datetime Date on which this revision was made

Time varchar (8) Time at which this revision was made.

Author varchar (21) Author (login name) of the person who created the revision.

Description varchar (200) Description of this revision

Billable varchar (1) This column is no longer in use. It may be removed in a future release.

"Billable revisions" have been replaced by "Alterations".

Prior to Release 22.5: whether or not the change is billable:

Y: yes, the change is billable

N: no, the change is NOT billable

Price decimal (15,2) This column is no longer in use. It may be removed in a future release.

"Billable revisions" have been replaced by "Alterations".

Prior to Release 22.5: Price of each item associated with this revision. Only

valid if this revision is billable.

Quantity decimal (15,2) This column is no longer in use. It may be removed in a future release.

"Billable revisions" have been replaced by "Alterations".

Prior to Release 22.5: Quantity associated with this revision. Only valid if

revision is billable.

Total decimal (15,2) This column is no longer in use. It may be removed in a future release.

"Billable revisions" have been replaced by "Alterations".

Prior to Release 22.5: The total cost of this revision. Only valid if this revision

is billable.

Status int This column is no longer in use. It may be removed in a future release.

"Billable revisions" have been replaced by "Alterations".

Prior to Release 22.5: Status of this revision.

0: revision has not been passed to invoice.

??? Other statuses to be added later as

accounting needs them.

SourceofRevision int Application which was used to create the revision

Page 486JohnsonGroup

Page 487: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Revisions Revisions

0 = JobVista

1 = Job Ticket

2 = Job Import

3 = QuickQuote

4 = Estimating 3

5 = JobVista (imported)

7 = PrinterSite Internal

8 = Digital StoreFront

9 = Direct order - FG

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

Price ([Price] >= (-99999999) and [Price] <= 99999999)

Quantity ([Quantity] >= (-99999999) and [Quantity] <= 99999999)

RevisionN ([RevisionN] >= 0 and [RevisionN] <= 999999)

Status ([Status] >= (-9999999) and [Status] <= 9999999)

Total ([Total] >= (-99999999) and [Total] <= 99999999)

Page 487JohnsonGroup

Page 488: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RollStock Roll Stock

The Roll Stock table contains records of individual rolls of paper. Roll

records are created when a roll is received via the Roll Stock Inventory

application. Records can be edited with the Roll Stock Inventory

application.

Indexes on Description

MCC Nonclustered

PlantRollID Nonclustered

RecordID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

RollTransactions RSRecordID

TypeColumn

RecordID int identity A unique number created when a new record is added to the table.

PlantRollID varchar (18) An alpha-numeric identifier for the roll. This is usually the same as the

manufacturer's ID as scanned from the roll label but may be a company assigned

ID.

The maximum length of this field is 18 characters.

MCC int The material cost center number of the roll stock.

Relates to: MatlCostCntr table

Disposition int The disposition or status of the roll.

0 = Available

1 = Consumed

PurchaseOrder int The purchase order entered when the roll was first received.

Rolls entered as inventory adjustments have a value of 0.

POItem smallint The PO item number of the roll on the original purchase order.

Rolls entered as inventory adjustments have a value of 0.

Vendor int Vendor that supplied the roll.

Relates to: Vendor table

PurchasePrice decimal (15,4) The purchase price copied from the purchase order when the

roll is received. This is the rate at which inventory is valued.

Rolls entered as inventory adjustments are given a purchase price at the time

they are entered.

DateReceived datetime The date the roll was received into the warehouse.

DateReceiptRecorded datetime Date and time on which the receipt of the roll was inserted into the RollStock

table.

MfgrRollID varchar (18) The manufacturer's roll ID on the roll label.

VehicleNumber varchar (10) A number that can be used to identify the vehicle on which the roll was received

at the plant.

WeightReceived decimal (7,0) The weight of the roll when it was received.

LengthReceived decimal (7,0) The length of the roll when it was received.

Page 488JohnsonGroup

Page 489: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RollStock Roll Stock

RollWeight decimal (7,0) The current weight of the roll. This is the WeightReceived less the weight of any

usages and adjustments.

RollLength decimal (7,0) The current length of the roll.

Warehouse smallint A number from 1-99 which identifies the warehouse in which the roll is located.

Location varchar (20) The location of the roll in the warehouse.

PaperCondition smallint An entry from the BadPaperCodes table that can be used to describe the

condition of the paper on the roll.

Relates to: BadPaperCodes table

LastInventoryDate datetime The date and time that the roll was last reconciled in the warehouse. Reconciling

rolls is usually done using a hand-held scanner. The resulting XML file can be

imported by the Roll Stock Inventory application.

InactiveFlag bit Not currently used.

LastChanged datetime The date that the roll record was edited.

ChangedBy varchar (200) The user ID of the person who editted the role.

ConstraintColumn

Field Constraints

MCC ([MCC]>=(1) AND [MCC]<=(9999999))

PaperCondition ([PaperCondition]>=(0) AND [PaperCondition]<=(99))

POItem ([POItem]>=(0))

PurchaseOrder ([PurchaseOrder]>=(0))

PurchasePrice ([PurchasePrice]>=(0) AND [PurchasePrice]<=(999999))

RollLength ([RollLength]>=(0) AND [RollLength]<=(9999999))

RollWeight ([RollWeight]>=(0) AND [RollWeight]<=(99999))

Vendor ([Vendor]>=(0) AND [Vendor]<=(999999999))

Warehouse ([Warehouse]>=(0) AND [Warehouse]<=(99))

Page 489JohnsonGroup

Page 490: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: RollTransactions Roll Transactions

This table contains usage and adjustment transactions for the rolls in the

RollStock table.

Indexes on Description

Job Nonclustered

RSRecordID, RecordID Primary key, clustered

TypeColumn

RSRecordID int The unique number in the RollStock table that identifies the roll that this record

is a transaction for.

Relates to: RollStock table

RecordID int identity A unique number created when a new record is added to the table.

TransactionType int The type of this transaction:

0 = Usage

1 = Adjustment

UndoneFlag bit This flag is 1 if the transaction has been 'undone'.

This is equivalent to deleting the transaction. The record is maintained in the

table as an audit trail.

Employee int For usages, this is the employee who used the roll.

Relates to: Employee table

Shift smallint The employee's shift

Press int The machine on which the roll was used.

Relates to: Equipment table

Job int The job for which the roll was used.

Relates to: OpenJob table

SubJob int The subjob for which the roll was used.

Form int The form for which the roll was used.

ProductionJob int The original combojob that was used, before being distributed to real jobs.

Relates to: OpenJob table

CloseDate datetime Date the job was closed, written to the associated transaction when posted. If the

job is re-opened, subsequent transactions do not have a close date until the job is

closed again.

DateUsed datetime The date the transaction was entered.

WeightUsed decimal (7,0) The weight of the paper used during this transaction.

LengthUsed decimal (7,0) The length of the paper used during this transaction.

GrossImpressions int The number of impressions produced for the usage.

AICCost decimal (9,2) The computed cost of the transaction (quantity x AIC Rate from Material Cost

Center (MatlCostCntr) table or quantity x $/Unit, if $/Unit is not zero). Can be

changed manually through editcost.

Prefix tinyint The prefix for this transaction.

Page 490JohnsonGroup

Page 491: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RollTransactions Roll Transactions

ReasonCode int A code from the ReasonCode table indicating the cause of rework.

Relates to: ReasonCodes table

Quantity int ???

ChangedMCC int The inventory MCC that a roll is changed to if it is cut into sheets

OR

the previous MCC if the roll is transferred to a different MCC.

Relates to: MatlCostCntr table

NewRollID varchar (18) The new roll ID assigned to this part of a slitted roll.

WrapperWeight decimal (7,0) Weight of brown paper wrapper.

StripWaste decimal (7,0) Weight of white waste stripped from roll.

CoreWaste decimal (7,0) The weight of the core.

DamageCode smallint A code from the BadPaperCodes table that indicates the source of some damage

to this roll.

Relates to: BadPaperCodes table

WeightOfDamage decimal (7,0) The weight of the damage reported for this transaction.

MeasuredLength decimal (6,0) Length of paper used as measured by the Paper Monitor.

RollStandID smallint The number of the roll stand on which the roll was mounted.

ActiveRollStartDate datetime The date that the roll started to be used as recorded by Paper Monitor.

ActiveRollStartTime int The time that the roll started to be used as recorded by Paper Monitor.

ActiveRollEndDate datetime The date that the roll use ended as recorded by Paper Monitor.

ActiveRollEndTime int The time that the roll use ended as recorded by Paper Monitor.

Remarks varchar (200) A comment associated with the transaction.

TransSource varchar (20) The program that generated the transaction.

LastChanged datetime The date this transaction was last edited.

ChangedBy varchar (200) The user who last changed the transaction.

SaleAmt decimal (9,2) The amount the roll was sold for.

Page 491JohnsonGroup

Page 492: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: RollTransactions Roll Transactions

ConstraintColumn

Field Constraints

ActiveRollEndTime ([ActiveRollEndTime]>=(0) AND [ActiveRollEndTime]<=(999999))

ActiveRollStartTime ([ActiveRollStartTime]>=(0) AND [ActiveRollStartTime]<=(999999))

AICCost ([AICCost]>=(0) AND [AICCost]<=(999999999))

ChangedMCC ([ChangedMCC]>=(0) AND [ChangedMCC]<=(9999999))

CoreWaste ([CoreWaste]>=(0) AND [CoreWaste]<=(99999))

DamageCode ([DamageCode]>=(0) AND [DamageCode]<=(99))

Employee ([Employee]>=(0))

Form ([Form]>=(0) AND [Form]<=(9999))

GrossImpressions ([GrossImpressions]>=(0) AND [GrossImpressions]<=(999999))

Job ([Job]>=(0) AND [Job]<=(999999999))

LengthUsed ([LengthUsed]>=(-9999999) AND [LengthUsed]<=(9999999))

MeasuredLength ([MeasuredLength]>=(0) AND [MeasuredLength]<=(999999))

Prefix ([Prefix]>=(0) AND [Prefix]<=(2))

Press ([Press]>=(0) AND [Press]<=(999))

ProductionJob ([ProductionJob]>=(0) AND [ProductionJob]<=(999999999))

Quantity ([Quantity]>=(0) AND [Quantity]<=(999999999))

ReasonCode ([ReasonCode]>=(0) AND [ReasonCode]<=(99999))

RollStandID ([RollStandID]>=(0) AND [RollStandID]<=(8))

SaleAmt ([SaleAmt]>=(0) AND [SaleAmt]<=(999999999))

Shift ([Shift]>=(0) AND [Shift]<=(9))

StripWaste ([StripWaste]>=(0) AND [StripWaste]<=(9999))

SubJob ([SubJob]>=(0) AND [SubJob]<=(9999))

TransactionType ([TransactionType]>=(0) AND [TransactionType]<=(99))

WeightOfDamage ([WeightOfDamage]>=(0) AND [WeightOfDamage]<=(99999))

WeightUsed ([WeightUsed]>=(-99999) AND [WeightUsed]<=(99999))

WrapperWeight ([WrapperWeight]>=(0) AND [WrapperWeight]<=(999))

Page 492JohnsonGroup

Page 493: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SalesAreaCode Sales Area Code

This table is for user-defined Sales Areas. Each area is identified by a

unique code, which appears in the customer record. It can be used to

select customers for custom reporting.

Indexes on Description

SalesAreaKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer SalesAreaCode

TypeColumn

SalesAreaKey smallint The code that identifies each sales area.

SalesAreaDesc varchar (24) The name of the sales area.

ConstraintColumn

Field Constraints

SalesAreaKey ([SalesAreaKey] >= 0 and [SalesAreaKey] <= 99)

Page 493JohnsonGroup

Page 494: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Salesperson Salesperson

The Salesperson table lists the names and numbers of the salespeople in

your company. A salesperson must be listed in this table before you can

use his or her number in other contexts in Logic SQL, for example, the

Customer table or Sales Analysis reports.

Indexes on Description

SalespersonN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

AccountngInput SalesmanN

ARBatch Salesperson

ARTransaction SalesmanN

Customer SalespersonN

Estimates SalesRepN

FGIOrderMast SalesmanN

JobEstHeader SalesRepNum

JobLog SalesmanN

OpenJob SalesmanN

QQOrder SalesRepN

WinInvJobs SalesPersonN

TypeColumn

SalespersonN int The salesperson's number.

Salesperson varchar (35) The salesperson's name.

EmployeeN int The employee number (key to Employee table) of this salesperson. This must be

set if the salesperson is to access PrinterSite Internal.

Relates to: Employee table

Inactive int A flag that indicates if a salesperson is inactive or active.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

EmployeeN ([EmployeeN] >= 0 and [EmployeeN] <= 999999)

Inactive ([Inactive] >= 0 and [Inactive] <= 1)

SalespersonN ([SalespersonN] >= 1 and [SalespersonN] <= 999999)

Page 494JohnsonGroup

Page 495: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SalutationTypeList Salutation Type List

SalutationType

Indexes on Description

SalutationType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts Salutation

TypeColumn

SalutationType varchar (150) SalutationType

Active numeric Active

ConstraintColumn

Field Constraints

Page 495JohnsonGroup

Page 496: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchCalendar Schedule Calendar

The Schedule Calendar table contains a list of calendars used by

Scheduling. These calendars are defined in the Scheduling Resource

Editor. Both standard and exception calendars (for overtime, maintenance,

vacation, and holiday) are included in this table.

Indexes on Description

CalendarID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

SchWorkPeriod CalendarID

Related Tables

SchCalenExcep CalendarID

SchWorkCenter CalendarID

TypeColumn

CalendarID int The key to the table.

CalendarDesc varchar (30) The descriptive name for the calendar.

CalendarType tinyint The type of calendar:

0 = Standard Labor

1 = Standard Machine

2 = Labor Exception

3 = Machine Exception

4 = Holiday Exception

RecurType tinyint The type of recurring exception calendar.

0 = Never, i.e. not a recurring calendar

1 = Daily

2 = Weekly

3 = Monthly

4 = Yearly

RecurEvery smallint Frequency of the recurrence. Interpreted based on Recur Type field and for

monthly recurrence also on Recur Position field. For example, if value is 2 and a

daily or weekly recurrence, then repeats every 2 days or weeks. If value is 2 and

a monthly recurrence and Recur Position is 0, then repeats every 2 months on

Recur Day, else if non-zero Recur Position then repeats every 2 months on Recur

Position and Recur Day. If value is 2 and a yearly recurrence, then repeats every

February. If value is 0 and a daily recurrence, then repeats every weekday.

RecurOnSun tinyint Whether a weekly recurrence repeats on Sunday.

0 = No

1 = Yes

RecurOnMon tinyint Whether a weekly recurrence repeats on Monday.

0 = No

1 = Yes

RecurOnTue tinyint Whether a weekly recurrence repeats on Tuesday.

0 = No

1 = Yes

RecurOnWed tinyint Whether a weekly recurrence repeats on Wednesday.

0 = No

1 = Yes

Page 496JohnsonGroup

Page 497: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchCalendar Schedule Calendar

RecurOnThu tinyint Whether a weekly recurrence repeats on Thursday.

0 = No

1 = Yes

RecurOnFri tinyint Whether a weekly recurrence repeats on Friday.

0 = No

1 = Yes

RecurOnSat tinyint Whether a weekly recurrence repeats on Saturday.

0 = No

1 = Yes

RecurDay tinyint For monthly and yearly recurrence types, this is either the actual day of the

month, like 4 for the 4th, or the day of the week that the recurrence happens on.

If a day of the week, then the values

are:

1 = Sunday

2 = Monday

3 = Tuesday

4 = Wednesday

5 = Thursday

6 = Friday

7 = Saturday

RecurPosition tinyint Applies only to some types of monthly and yearly recurrences. Specifies the day

of week position that the recurrence repeats on. Values are:

1 = first

2 = second

3 = third

4 = fourth

5 = last

For example, in a yearly recurrence defined as "The last Thursday of

November", 5 is the Recur Position.

RecurStartDate datetime If a recurring calendar that has been assigned before, then this is the start date

the user specified in the last assignment.

RecurEndDate datetime If a recurring calendar that has been assigned before, then this is the end date the

user specified in the last assignment.

Page 497JohnsonGroup

Page 498: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchCalendar Schedule Calendar

ConstraintColumn

Field Constraints

CalendarID ([CalendarID] >= 0 and [CalendarID] <= 999999)

CalendarType ([CalendarType] >= 0 and [CalendarType] <= 4)

RecurDay ([RecurDay] >= 0 and [RecurDay] <= 31)

RecurEvery ([RecurEvery] >= 0 and [RecurEvery] <= 99)

RecurOnFri ([RecurOnFri] >= 0 and [RecurOnFri] <= 1)

RecurOnMon ([RecurOnMon] >= 0 and [RecurOnMon] <= 1)

RecurOnSat ([RecurOnSat] >= 0 and [RecurOnSat] <= 1)

RecurOnSun ([RecurOnSun] >= 0 and [RecurOnSun] <= 1)

RecurOnThu ([RecurOnThu] >= 0 and [RecurOnThu] <= 1)

RecurOnTue ([RecurOnTue] >= 0 and [RecurOnTue] <= 1)

RecurOnWed ([RecurOnWed] >= 0 and [RecurOnWed] <= 1)

RecurPosition ([RecurPosition] >= 0 and [RecurPosition] <= 5)

RecurType ([RecurType] >= 0 and [RecurType] <= 4)

Page 498JohnsonGroup

Page 499: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchCalenExcep Sched Calendar Exception

The Schedule Calendar Exceptions file contains the list of calendar

exceptions that have been assigned to a work center on a given day. These

assignments are made within the Scheduling Resource Editor and

Scheduling uses these exceptions to override the standard working

calendar for a work center on the given day.

Indexes on Description

WorkCtrID, DateOfExcept Primary key, clustered

TypeColumn

WorkCtrID int The Work Center for this calendar exception assignment.

Relates to: SchWorkCenter table

DateOfExcept datetime The actual date of the exception assignment.

CalendarID int The ID of the exception calendar for this assignment.

Relates to: SchCalendar table

ConstraintColumn

Field Constraints

CalendarID ([CalendarID] >= 0 and [CalendarID] <= 999999)

WorkCtrID ([WorkCtrID] >= 0 and [WorkCtrID] <= 9999)

Page 499JohnsonGroup

Page 500: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchDepartment Schedule Department

The Scheduling Department table contains the list of departments used in

Scheduling. These departments are defined in the SchedulingResource

Editor.

Indexes on Description

DeptID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

SchWorkCenter DeptID

StatusCode SchedDept

TypeColumn

DeptID smallint The key to the table.

DeptName varchar (20) The descriptive name for the department.

ConstraintColumn

Field Constraints

DeptID ([DeptID] >= 1 and [DeptID] <= 999)

Page 500JohnsonGroup

Page 501: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchFormDataFlds Sched Form Data Fields

Table of field names to be used for Job Form data in Work Centers for

Windows Scheduling. Inclusion of these data fields allows employees to

optimize work center schedules by sorting or otherwise using the

information in these fields. The list is assigned/edited in Scheduling

Resource Editor, and the order of fields can be reassigned at the time of

sorting.

Indexes on Description

WorkCtrID, FieldPosition Primary key, clustered

TypeColumn

WorkCtrID int The Work Center for this list of Job Form Data fields.

Relates to: SchWorkCenter table

FieldPosition int Order of Job Form field in Work Center data. Must be contiguous sequential

numbers starting at 1, such as 1, 2, 3 and so on.

FieldName varchar (40) Name of field from the BaseTable to be displayed in Work Center and available

to sort in Scheduling.

BaseTable varchar (40) Indicates the table the form data field comes from.

JoinTable varchar (40) Indicates the table that the data field is joined to, either OpenJob or

JobFormSpecs.

JoinClause varchar (150) The Join Clause used to join the tables to retrieve the field.

ConstraintColumn

Field Constraints

FieldPosition ([FieldPosition] >= 0 and [FieldPosition] <= 999999)

WorkCtrID ([WorkCtrID] >= 0 and [WorkCtrID] <= 9999)

Page 501JohnsonGroup

Page 502: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchJob Scheduled Job

Jobs entered into the Schedule. Jobs not in this table have not yet been

scheduled, or may have had their schedules deleted.

Indexes on Description

JobNumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

SchJobTask JobNumber

SchLink ToJobNumber

TypeColumn

JobNumber int The key field. Identifies the job to which the schedule belongs. Must be the

same as the Job Number in the Open Job table. Job numbers may appear that are

not in the Open Job table for templates or tentative jobs.

Relates to: OpenJob table

JobDescription varchar (30) Job Description as loaded from the Open Job table.

StartDate datetime The day on which the schedule for the job begins.

StartTime smallint Time of day when this job schedule begins.

ShipDate datetime The day on which you hope to ship the job. Defaults to Due Date from Open Job

table when schedule is first loaded. Can be edited.

ShipTime smallint Time of day when job is due to be shipped.

JobStatus tinyint Status of Job in schedule:

0 = Unscheduled

1 = Scheduled

2 = Done

3 = On Hold

4 = Deleted

5 = Tentative Job

6 = Template Schedule

7 = Locked

Quantity int Quantity as loaded from the Open Job table when job was originally loaded.

Priority tinyint If Open Job Priority = 0 then this priority will be set to 1 else it will be set to 10.

Comment1 varchar (65) Comments entered from Scheduling

Comment2 varchar (65) Line 2 of comments from Scheduling

UpdateTx int Transaction number to sequence updates from multiple schedulers.

EarliestSchedDate datetime The earliest date a job schedule should begin. The default value is taken from

the Earliest Start Date on the job from order entry or the Booked Date.

EarliestSchedTime smallint The earliest time of day that the first task of a job should be scheduled. This

value is initialized by the parameter "Def Earliest Start Time for Sched"

JobUpdIssueNumber int Preserves the issue number from the Open Job at the last time the job attributes

were refreshed.

JobUpdQuantity int Preserves the quantity from the Open Job at the last time the job attributes were

refreshed.

Page 502JohnsonGroup

Page 503: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchJob Scheduled Job

JobUpdEarliestStart datetime Preserves the earliest start date from the Open Job at the last time the job

attributes were refreshed.

JobUpdDueDate datetime Preserves the due date from the Open Job at the last time the job attributes were

refreshed.

ConstraintColumn

Field Constraints

EarliestSchedTime ([EarliestSchedTime] >= 0 and [EarliestSchedTime] <= 2400)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

JobStatus ([JobStatus] >= 0 and [JobStatus] <= 9)

Priority ([Priority] >= 0 and [Priority] <= 10)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

ShipTime ([ShipTime] >= 0 and [ShipTime] <= 2400)

StartTime ([StartTime] >= 0 and [StartTime] <= 2400)

UpdateTx ([UpdateTx] >= 0 and [UpdateTx] <= 999999999)

Page 503JohnsonGroup

Page 504: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchJobTask Scheduled Job Task

Tasks for Scheduled jobs.

Indexes on Description

JobTaskID Primary key, clustered

JobNumber, Sequence Nonclustered

UpdateTx Nonclustered

TypeColumn

JobTaskID int The key to the table. Created by schedule. Must be unique. This is the ID used

as the operation code when sending job schedules to PrintFlow.

WorkCtrID int The Work Center in which the task is to be performed.

Relates to: SchWorkCenter table

TaskID int The Task type within the Work Center.

Relates to: SchTask table

JobNumber int The Job for which the task is to be performed.

Relates to: SchJob table

FormN smallint The form number, if one is required. Identifies a portion of a job.

Priority tinyint Currently inherited from the job

Status tinyint Task Status

0=Unscheduled

1=Scheduled

2=Done

3=On Hold

4=Deleted

8=Begun

Quantity decimal (12,2) The quantity to be produced. For any task in a work center which is scheduled

by form, this quantity is initially loaded from the PrntOrderPcs field from the

JobFormSpecs table. Tasks not scheduled by form will begin as 0. The field

can then be edited in the Work Center in Scheduling.

ScheduledHours decimal (9,2) The length of the task in hours. Used to calculate fit and End Time and Date.

StartDate datetime Date task is to be started. Used with Start Time to calculate absolute start time.

StartTime smallint Starting time of task. Format: HHMM with 24 clock

EndDate datetime Ending date of task. Used with End Time to give ending time of task.

EndTime smallint End Time of task. Will be adjusted by loading factor of Labor work centers. i.e.

if there are 16 labor hours available in 8 hours, a 4 hour task will end 2 hours

after it begins.

Format: HHMM with 24 clock

Sequence int Order of task within Job. Usually Work Center order, can be changed in

Scheduling.

UpdateTx int Transaction number for sequencing of updates by multiple schedulers.

DeletedFlag tinyint Not used.

Page 504JohnsonGroup

Page 505: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchJobTask Scheduled Job Task

Comment varchar (65) Task comment from scheduling. When a task is deleted from withing

scheduling/planning, an audit trail is added to the beginning of the comment

detailing whether it was deleted because the job was deleted (DelJob), or the task

was deleted from the job screen (JDelTask) or the work center screen

(WCDelTask), or merged (MrgTask).

SubJobNumber int Initialized to the SubjobNumber from the Labor Quote table. Can be edited in

Scheduling.

SetupTime decimal (9,2) Time required for setup (MR) which is needed for PrintFlow.

DelayTime decimal (9,2) Delay time for milestone tasks or Minimum transit. Defaults to task type's

minimum transit time and can be edited by the user. Passed to PrintFlow as

Delay time.

PF_OpCode varchar (20) For PrintFlow only: reflects PrintFlow's operation code for split or new tasks.

PFParallelCC varchar (20) For PrintFlow use only: Retains value of original paralllel cost center after a task

is scheduled in an actual work center in PrintFlow.

SwitchDate datetime For PrintFlow use only: The date that switchover work is supposed to start for

this task.

SwitchTime smallint For PrintFlow use only: The time that switchover work is supposed to start for

the task.

PassN int Pass number, in case form is used more than once.

EarliestDateTime datetime The earliest start date and time that a task can be scheduled. The form or the job

earliest start date is used if later or if the task date and time is empty.

DueDateTime datetime The due date and time for a task. The form or the job due date is used if earlier

or if the task date and time is empty.

ConstraintColumn

Field Constraints

DelayTime ([DelayTime] >= 0 and [DelayTime] <= 99999)

DeletedFlag ([DeletedFlag] >= 0 and [DeletedFlag] <= 1)

EndTime ([EndTime] >= 0 and [EndTime] <= 2400)

FormN ([formn] >= 0 and [formn] <= 9999)

JobNumber ([JobNumber] >= 0 and [JobNumber] <= 999999999)

JobTaskID ([JobTaskID] >= 1 and [JobTaskID] <= 999999999)

PassN ([PassN] >= 1 and [PassN] <= 100)

Priority ([Priority] >= 0 and [Priority] <= 10)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

ScheduledHours ([ScheduledHours] >= 0 and [ScheduledHours] <= 99999)

Sequence ([Sequence] >= 0 and [Sequence] <= 999999)

SetupTime ([SetupTime] >= 0 and [SetupTime] <= 99999)

StartTime ([StartTime] >= 0 and [StartTime] <= 2400)

Status ([Status] >= 0 and [Status] <= 9)

SubJobNumber ([SubjobNumber] >= 0 and [SubjobNumber] <= 9999)

SwitchTime ([SwitchTime] >= 0 and [SwitchTime] <= 2400)

TaskID ([TaskID] >= 0 and [TaskID] <= 99999)

UpdateTx ([UpdateTx] >= 0 and [UpdateTx] <= 999999999)

WorkCtrID ([WorkCtrID] >= 0 and [WorkCtrID] <= 9999)

Page 505JohnsonGroup

Page 506: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Page 506JohnsonGroup

Page 507: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchLink Scheduled Task Links

Table for EFI Logic Scheduling to hold default task links which are sent to

PrintFlow. These links determine which tasks are required to be

completed before another task begins. The default links are determined by

the form numbers and types and the task order in EFI Logic Scheduling

and passed to PrintFlow. These links are not handled within EFI Logic

Scheduling at this time.

Indexes on Description

FromJobNumber,

FromJobTaskID,

ToJobNumber, ToJobTaskID

Primary key, clustered

TypeColumn

FromJobTaskID int Task ID for the task at the start of the link.

ToJobTaskID int TaskID for the task at the end of the link.

FromFormN int The form number for the task at the start of link.

ToFormN int Form number for the task at the end of the link.

LagTime decimal (9,2) Time sent to PrintFlow as delay between the tasks.

ToJobNumber int Job Number of the job associated with the to task of this link.

Relates to: SchJob table

FromJobNumber int Job Number of the job associated with the from task of this link.

Relates to: SchJob table

UpdateTx int Transaction number to sequence updates from multiple schedulers.

DeletedFlag bit Whether link has been deleted

ConstraintColumn

Field Constraints

FromFormN ([FromFormn] >= 0 and [FromFormn] <= 9999)

FromJobNumber ([FromJobNumber] >= 0 and [FromJobNumber] <= 999999999)

FromJobTaskID ([FromJobTaskID] >= 1 and [FromJobTaskID] <= 999999999)

ToFormN ([ToFormn] >= 0 and [ToFormn] <= 9999)

ToJobNumber ([ToJobNumber] >= 0 and [ToJobNumber] <= 999999999)

ToJobTaskID ([ToJobTaskID] >= 1 and [ToJobTaskID] <= 999999999)

Page 507JohnsonGroup

Page 508: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchTask Sch Task

The Scheduling Task table contains a list of tasks that can be assigned to a

job and scheduled within Scheduling. These tasks are created with the

Scheduling Resource Editor. Each task is contained within a work center

and initially receives estimated labor hours from any LCCs which are

mapped to that task type.

Indexes on Description

TaskID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

JDFTask TaskID

LaborCostCntr TaskID

MaterialQuote SchedDept

PlannedMaterial SchedDept

SchJobTask TaskID

StatusCode SchedTaskID

TypeColumn

TaskID int The key to the table. During Scheduling setup, these values are initialized to be

LCC numbers. They can then be combined, deleted or added to create the tasks

that best fit your production work flow and scheduling requirements.

TaskName varchar (20) The descriptive name of the task.

WorkCtrID int The work center to which the task belongs.

Relates to: SchWorkCenter table

Milestone tinyint Whether the task is a milestone:

0 = not a milestone task

1 = a milestone task

A milestone task is a task that needs to be noted or scheduled within Scheduling

but takes little to no resources within your plant. Typical milestone tasks are

Proof Out, Proof Back, Material Ordered, and Material Received.

MinTransit decimal (9,2) The minimum time this task can take before the next task can begin. In

AutoSchedule, this time overrides the task time if the task time is less than it. For

instance, if the Proof Out task always takes at least 1 day to get returned then it

would have a 24 hour minimum transit time and AutoSchedule would ensure that

the next task is not scheduled until at least 24 hours after the start of the Proof

Out task.

MaxTransit decimal (9,2) The maximum time this task can take before the next task can begin. In

AutoSchedule, this time overrides the task time if the task time is greater than

than the MaxTransit. For instance, if the Folding task can begin 4 hours after the

Press Run task has begun, then the Press Run task would have a 4 hour

maximum transit time and AutoSchedule would try to schedule the Folding task

beginning 4 hours after the start of the Press Run task.

Page 508JohnsonGroup

Page 509: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchTask Sch Task

ConstraintColumn

Field Constraints

MaxTransit ([MaxTransit] >= 0 and [MaxTransit] <= 999)

Milestone ([Milestone] >= 0 and [Milestone] <= 1)

MinTransit ([MinTransit] >= 0 and [MinTransit] <= 999)

TaskID ([TaskID] >= 1 and [TaskID] <= 99999)

WorkCtrID ([WorkCtrID] >= 0 and [WorkCtrID] <= 9999)

Page 509JohnsonGroup

Page 510: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchWorkCenter Sch Work Center

The Scheduling Work Center table contains the list of work centers used

for scheduling jobs. These work centers are defined in the Scheduling

Resource Editor. Each work center is contained within a scheduling

department.

Indexes on Description

WorkCtrID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

SchCalenExcep WorkCtrID

SchFormDataFlds WorkCtrID

Related Tables

JDFDeviceWorkCenter WorkCtrID

JDFWorkCenterDevice WorkCtrID

SchJobTask WorkCtrID

SchTask WorkCtrID

StatusCode SchedWorkCtr

TypeColumn

WorkCtrID int The key to the table.

WorkCtrName varchar (20) The descriptive name of the work center.

DeptID smallint The department to which the work center belongs.

Relates to: SchDepartment table

CalendarID int The standard calendar for the work center which shows the typical working

hours and worker throughput.

Relates to: SchCalendar table

UpdateTx int The transaction number used to inform Scheduling of Resource Editor updates.

WorkCtrType tinyint The type of work center:

0 = Labor

1 = Machine

Labor work centers can accommodate multiple people working on a task at the

same time to get the task done sooner. Machine work centers are constrained by

clock hours and can at best get 24 hours of throughput per day.

Currently if PrintFlow scheduling is used, only Machine work centers are

allowed.

0 = Labor

1 = Machine

2 = Parallel

3 = Delay

AutoSchLimit smallint The maximum number of days forward from a given date that the AutoSchedule

feature in Scheduling will look for available time to schedule the task when

forcing past due dates.

DeletedFlag tinyint Whether the work center is deleted or not:

0 = Not deleted

1 = Deleted

Page 510JohnsonGroup

Page 511: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchWorkCenter Sch Work Center

LoadByFormN tinyint Whether to combine tasks and total hours for each form number when auto

scheduling a job within Scheduling.

0 = No

1 = Yes

EquipmentType smallint Equipment type associated with this work center machine. This field is currently

included to maintain the DeptSchedule table which is used by DMI as the main

equipment list.

0 = not defined

5 = Perfect Binder

10 = Cutter

15 = Ink Jet Press

20 = Folder

25 = Inserter

30 = Collator

35 = Labeler

40 = Sheet Fed Press

50 = Single Web Press

60 = Multi Web Press

70 = Gather/Stitch

75 = Rewinder

80 = Xerox: DocuTech

85 = Slitter

90 = Xerox: 5090

DefaultTaskID int Used for Printflow to assign task type when tasks are moved to different Work

Centers.

ResourceTypeKey smallint Allows the scheduler to associate multiple work centers under a Resource Type.

This makes tasks in any related work centers available to data collection when

users are given a choice of tasks to mark as started or complete for their work

center.

Relates to: ResourceType table

ConstraintColumn

Field Constraints

AutoSchLimit ([AutoSchLimit] >= 0 and [AutoSchLimit] <= 999)

CalendarID ([CalendarID] >= 0 and [CalendarID] <= 999999)

DeletedFlag ([DeletedFlag] >= 0 and [DeletedFlag] <= 1)

DeptID ([DeptID] >= 0 and [DeptID] <= 999)

EquipmentType ([EquipmentType] >= 0 and [EquipmentType] <= 99)

LoadByFormN ([LoadByFormN] >= 0 and [LoadByFormN] <= 1)

ResourceTypeKey ([ResourceTypeKey] >= 0 and [ResourceTypeKey] <= 9999)

UpdateTx ([UpdateTx] >= 0 and [UpdateTx] <= 999999999)

WorkCtrID ([WorkCtrID] >= 1 and [WorkCtrID] <= 9999)

WorkCtrType ([WorkCtrType] >= 0 and [WorkCtrType] <= 3)

Page 511JohnsonGroup

Page 512: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SchWorkPeriod Sch WorkPeriod

The Schedule Work Period table contains the work periods for each

scheduling calendar in the Sch Calendar table. These work periods are

defined in the Scheduling Resource Editor and used by Scheduling to

schedule blocks of time.

Indexes on Description

CalendarID, DayOfWeek,

WorkPeriod, StartTime

Primary key, clustered

TypeColumn

CalendarID int The calendar that this work period is associated with.

Relates to: SchCalendar table

DayOfWeek tinyint The day of the week for this work period:

0 = Sunday

1 = Monday

2 = Tuesday

3 = Wednesday

4 = Thursday

5 = Friday

6 = Saturday

NOTE: Day of Week is not used for work periods within an exception calendar

since the exception calendar assignment defines the actual day.

WorkPeriod tinyint A numeric label for the work period. This could be shift-related.

StartTime smallint The starting time of the work period expressed as military time (24 hour clock in

HHMM format). For example, 0 equals 12am, 1200 equals 12pm, and 1700

equals 5pm. NOTE: 2400 is an illegal value as it is considered the start of a new

day and a work period cannot span days. So the earliest beginning of a day

(midnight) is represented as 0000.

EndTime smallint The ending time of the work period expressed in military time (24 hour clock in

HHMM format). For example, 0 equals 12am, 1200 equals 12pm, and 2359

equals 12:59pm. NOTE: 2400 is an illegal value as it is considered the start of a

new day and a work period cannot span days. So the latest end of a day

(midnight) is represented as 2359.

AvailHours decimal (9,2) The maximum available hours that can be scheduled within this period. The

Resource Editor doesn't let you to specify this for a machine work center as it is

calculated from the End Time minus the Start Time. For a labor work center, this

value can reflect multiple or partial people working in the work center. For

example, a work period that has an 8 hour clock span, say from 7am to 3pm,

with three workers would have 24 available hours. Likewise, the same 8 hour

clock span with one worker's time evenly split between two work centers would

have 4 available hours.

OverTimeHours decimal (9,2) Hours of this work period that should be attributed to overtime.

Page 512JohnsonGroup

Page 513: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SchWorkPeriod Sch WorkPeriod

ConstraintColumn

Field Constraints

AvailHours ([AvailHours] >= 0 and [AvailHours] <= 999)

CalendarID ([CalendarID] >= 0 and [CalendarID] <= 999999)

DayOfWeek ([DayOfWeek] >= 0 and [DayOfWeek] <= 6)

EndTime ([EndTime] >= 0 and [EndTime] <= 2400)

StartTime ([StartTime] >= 0 and [StartTime] <= 2400)

WorkPeriod ([WorkPeriod] >= 0 and [WorkPeriod] <= 9)

Page 513JohnsonGroup

Page 514: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ServiceCharge Service Charge

Customer service charges applied to invoices

Indexes on Description

SvcChgClass Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer SvcChgClass

TypeColumn

SvcChgClass tinyint reference number crossreferenced to same field in customer record

Can be 1 to 9

Col1Percent decimal (5,3) Percentage of total charged for invoices falling in column1 of ageing details

report

Col2Percent decimal (5,3) Percentage of total charged for invoices falling in column 2 of ageing details

report

Col3Percent decimal (5,3) Percentage of total charged for invoices falling in column 3 of ageing details

report

ConstraintColumn

Field Constraints

SvcChgClass ([SvcChgClass] >= 0 and [SvcChgClass] <= 9)

Page 514JohnsonGroup

Page 515: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShiftItems Shift Items

This table holds Data Collection shift information.

The table contains 1 or more entries for each shift that is used at a plant.

When an employee enters a shift number, the time of that entry is looked

up in the section of the table that matches the shift number. The shift table

entry that includes the entry time is the one used to select the day offset.

The shiftdate that is assigned to the employee is the current date modified

by the day offset.

Indexes on Description

Shift, DayOffset Primary key, clustered

TypeColumn

Shift tinyint Shift number. Range is 1 to 9.

Relates to: Shifts table

StartTime int Time that the shift starts.

EndTime int Time that the shift ends.

DayOffset int The number which is added to the current date to determine the shift date.

This value must be -1, 0, or 1.

ConstraintColumn

Field Constraints

DayOffset ([DayOffset]>=(-1) AND [DayOffset]<=(1))

EndTime ([EndTime]>=(0) AND [EndTime]<=(2359))

Shift ([Shift]>(0) AND [Shift]<=(9))

StartTime ([StartTime]>=(0) AND [StartTime]<=(2359))

Page 515JohnsonGroup

Page 516: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Shifts Shifts

This table holds the valid shift numbers. Shift numbers can range from 1 to

9.

Indexes on Description

Shift Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ShiftItems Shift

TypeColumn

Shift tinyint Shift number. Range is 1 to 9.

ConstraintColumn

Field Constraints

Shift ([Shift] > 0 and [Shift] <= 9)

Page 516JohnsonGroup

Page 517: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipExtension Ship Extension

The Ship extension file is used to store alternate addresses and

"third-party" billing addresses for shipments.

Indexes on Description

ShipmentNumber Primary key, clustered

TypeColumn

ShipmentNumber int The shipment number for which this record is an extension.

Relates to: Shipments table

BillToAddressee varchar (50) The alternate "bill-to" company name. This may be printed on bills of lading,

packing labels, and packing lists.

BillToAddrLine1 varchar (40) The first line of street address for the alternate billing address.

BillToAddrLine2 varchar (40) The second line of street address for the alternate billing address.

BilltoCity varchar (30) The city for the alternate billing address.

BillToStateProv varchar (4) The state or province portion of the alternate billing address.

BillToPostalCode varchar (15) The postal code for the alternate billing address.

ShipFromAddressee varchar (50) The company name portion of the alternate ship-from address.

ShipFromAddrLine1 varchar (40) The first line of street address of the alternate ship-from address.

ShipfromCity varchar (30) The city portion of the alternate ship-from address.

ShipFromStateProv varchar (4) The state or province portion of the alternate ship-from address.

ShipFromPostalCode varchar (15) The postal code portion of the alternate ship-from address.

BillToAddrLine3 varchar (40) The third line of street address for the alternate billing address.

BillToCountryCode varchar (3) The country code of the alternate billing address.

Relates to: Country table

BillToTelephoneN varchar (25) The telephone number of the alternate billing address.

BillToPhoneExt varchar (6) The telephone extension of the alternate billing address.

BillToFaxTelephoneN varchar (25) The fax telephone number of the alternate billing address.

BillToEmail varchar (128) The email address of the alternate billing address.

ShipFromAddrLine2 varchar (40) The second line of street address of the alternate ship-from address.

ShipFromAddrLine3 varchar (40) The third line of street address of the alternate ship-from address.

ShipFromCountryCode varchar (3) The country code of the ship from address.

Relates to: Country table

ShipFromTelephoneN varchar (25) The telephone number of the ship from address.

ShipFromPhoneExt varchar (6) The telephone extension of the ship from address.

ShipFromFaxTelephone varchar (25) The fax telephone number of the ship from address.

ShipFromEmail varchar (128) The email address of the ship from address.

Page 517JohnsonGroup

Page 518: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ShipExtension Ship Extension

ConstraintColumn

Field Constraints

ShipmentNumber ([ShipmentNumber] >= 1 and [ShipmentNumber] <= 999999999)

Page 518JohnsonGroup

Page 519: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipmentItems Shipment Items

This file contains information about each item in a shipment, for example,

number of cartons, weight, job number, etc.

Indexes on Description

ShipmentNumber, LineN Primary key, clustered

ARInvoiceN Nonclustered

ChrgARInvN Nonclustered

MainReference,

ShipmentType,

ShipmentNumber

Nonclustered

TypeColumn

ShipmentNumber int The identifier of the shipment. The Shipment number is used as the Packing List

number and as "Shipper's Number" on the Bill of Lading.

Relates to: Shipments table

LineN smallint Line # of item in the shipment definition.

FinalShipyn tinyint Indicates if the shipment is a final shipment.

0 = No

1 = Yes

Quantity int The quantity of goods shipped. For job shipments, this should be in units for

which you want to bill your customer.

ShipAuditN int Indicates the shipping update and revision number of the shipment when it was

last updated. The format is UUUUURR, where UUUUU indicates the Shipping

Update number and RR indicates the revision number of the shipment at the time

of the update.

MinorReference int For job shipments, this field contains the subjob number. For Finished Goods

shipments, this field contains the "order audit #" from FGIOrderDetl. This links

an item on a shipment with a particular item on a Finished Goods order.

ShipmentType smallint Indicates the type of shipment and controls how other programs in the shipping,

costing, and accounting systems will process the information associated with this

shipment item.

0 = Product

1 = Job-related

2 = General shipment

3 = Finished Goods

MainReference int Stores the Job number for job shipments.

Relates to: OpenJob table

ItemDescLine1 varchar (45) The first line of item description.

NbrOfCartons int The number of cartons for this shipment item. Note: this number may be 0 if the

goods are not shipped in cartons.

Weight int The total weight for this shipment item.

FreightClass smallint The freight rate code for this item.

ItemDescLine2 varchar (45) The second line of item description.

Page 519JohnsonGroup

Page 520: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ShipmentItems Shipment Items

SkidNSerialN varchar (20) The skid number of the skid being shipped or the serial number of a particular

item being shipped.

NumberOfSkids decimal (9,2) The number of skids shipped. May be 0 if skids were not used to pack the

shipment.

EstimatedChrg decimal (15,2) The expected shipping charge for this item. When a shipment is updated this

column is used to set the actual charges.

QuantityCarton int Indicates the quantity packed in each carton. Printed on the shipping labels. A

value of 0 will be printed as a blank space to allow you to write the quantity on

the label.

InnerPacking varchar (20) A short description of how the goods are packed within the shipping carton.

Prints on the shipping labels.

ARInvoiceN int The WIKey of the invoice prepared to bill a customer for the goods identified by

this shipment item. A positive, non-zero value indicates that the invoice for the

goods shipped has been posted to the accounting system.

DateCharged datetime The date as of which the job costing system recognizes the costs posted in this

record.

DateClosed datetime The date as of which the costs were closed and posted to sales analysis.

ActualCharge decimal (15,2) The dollar amount to be charged to a job. Note that this may be an approximate

cost you enter in order to invoice your customer before you receive your freight

bill.

TypeOfExpense tinyint Indicates whether the shipping cost is to be billed to the customer or if it is a cost

of the job (the sales price included shipping).

0 = Bill for freight

1 = Cost of the job

JobCostPrefix tinyint Modifies the meaning of the job costs to allow for author's alterations and

rework.

SourceOfJC tinyint Indicates which program was used most recently to edit this record.

0 = SHIPMENT

1 = ACCOUNTING

2 = SHIPUPDT

3 = SHIPEDIT

4 = SHIPIMPORT_MODIFY

TransferFlag tinyint Indicates whether this record has been transferred from one job to another job.

0 = No

1 = Yes

ChrgARInvN int The WIKey of the invoice prepared to bill a customer for the freight charges

associated with this shipment item. A positive, non-zero value indicates that the

invoice for the freight charges has been posted to the accounting system.

Page 520JohnsonGroup

Page 521: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ShipmentItems Shipment Items

SourceChgInvN tinyint Indicates which program was used most recently to edit the Shipping Charges

Invoice number.

Legal Values:

0 - SHIPMENT

1 - INVOICE

2 - CLOSE-POST

3 - SHIPEDIT

4 - SHIPIMPORT_MODIFY

SourceARInvN tinyint Indicates which program was used most recently to edit the Accounts Receivable

Invoice Number field.

Legal Values:

0 - SHIPMENT

1 - INVOICE

2 - CLOSE-POST

3 - SHIPEDIT

4 - SHIPIMPORT_MODIFY

FGItemNum int If this shipment was generated from a Finished Goods shipment, this is the F.G.

inventory item number for this shipment item.

Relates to: FGInvMaster table

ItemDescLine3 varchar (45) Third line of item description.

ItemDescLine4 varchar (45) Fourth line of item description.

TaxCode int Stores a legal taxcode, when applicable, for this item. Note that the taxcode is

usually based on the shipping address and must be edited in the event of an

address change for this shipment

Relates to: TaxCode table

TaxSubtotal decimal (15,2) Calculated value for PrinterSiteFulFillment credit card orders.

JobShipmentN int If shipment item was created based on planned shipment in JobVista, the

combination of MainReference and JobShipmentN identifies the source row in

JobShipments.

Relates to: JobShipments table

FormN int If this item is the shipment of a form rather than an entire job FormN identifies

the form. MainReference and FormN act as foreign key to JobFormSpecs.

Normally entire jobs are shipped and FormN is zero.

CustomerCostCenter varchar (30) Customer cost center or customer department that placed order that resulted in

shipping this item.

Page 521JohnsonGroup

Page 522: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ShipmentItems Shipment Items

ConstraintColumn

Field Constraints

ActualCharge ([ActualCharge] >= (-100000) and [ActualCharge] <= 100000)

ARInvoiceN ([arinvoicen] >= (-999999999) and [arinvoicen] <= 999999999)

ChrgARInvN ([ChrgARInvN] >= (-999999999) and [ChrgARInvN] <= 999999999)

EstimatedChrg ([EstimatedChrg] >= 0 and [EstimatedChrg] <= 100000)

FGItemNum ([FGItemNum] >= 0 and [FGItemNum] <= 9999999)

FinalShipyn ([FinalShipyn] >= 0 and [FinalShipyn] <= 1)

FreightClass ([FreightClass] >= 0 and [FreightClass] <= 999)

JobCostPrefix ([JobCostPrefix] >= 0 and [JobCostPrefix] <= 2)

LineN ([LineN] >= 0 and [LineN] <= 9999)

MainReference ([MainReference] >= 0 and [MainReference] <= 999999999)

MinorReference ([MinorReference] >= 0 and [MinorReference] <= 9999999)

NbrOfCartons ([NbrOfCartons]>=(0) AND [NbrOfCartons]<=(999999999))

NumberOfSkids ([NumberOfSkids] >= 0 and [NumberOfSkids] <= 999)

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

QuantityCarton ([QuantityCarton] >= 0 and [QuantityCarton] <= 999999)

ShipAuditN ([ShipAuditN] >= 0 and [ShipAuditN] <= 9999999)

ShipmentNumber ([ShipmentNumber] >= 1 and [ShipmentNumber] <= 999999999)

ShipmentType ([ShipmentType] >= 0 and [ShipmentType] <= 99)

SourceARInvN ([SourceARInvN]>=(0) AND [SourceARInvN]<=(4))

SourceChgInvN ([SourceChgInvN]>=(0) AND [SourceChgInvN]<=(4))

SourceOfJC ([SourceOfJC] >= 0 and [SourceOfJC] <= 4)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

TaxSubtotal ([TaxSubtotal] >= (-9999999999999) and [TaxSubtotal] <= 9999999999999)

TransferFlag ([TransferFlag] >= 0 and [TransferFlag] <= 1)

TypeOfExpense ([TypeOfExpense] >= 0 and [TypeOfExpense] <= 1)

Weight ([Weight] >= 0 and [Weight] <= 999999)

Page 522JohnsonGroup

Page 523: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Shipments Shipments

This table contains general information about each shipment, for example,

address, shipping method, date, status. It is used by the Shipping system.

Indexes on Description

ShipmentNumber Primary key, clustered

FGOrder Nonclustered

RevisionsDone Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

ShipmentItems ShipmentNumber

Related Tables

JobShipIndex ShipmentN

ShipExtension ShipmentNumber

ShipUpdateList ShipmentNumber

TypeColumn

ShipmentNumber int The identifier of the shipment. The Shipment number is used as the Packing List

number and as "Shipper's Number" on the Bill of Lading.

CarrierN varchar (25) The identifier provided by a common carrier for a shipment. Trucking and

railroad shipments commonly use the term "Bill of Lading". Other methods,

particularly air freight, use a term similar to "Waybill".

ShipDate datetime The date on which the goods were shipped. Note that this should not be the date

on which the Shipment was entered. Shipments whose "Updated Status" is "In

preparation" have a Ship Date of 0. Shipments whose "Updated Status" is

"Cancelled" have a ship date of the date on the shipment was updated.

ShipMethodN int Indicates the method of shipment. This field references a method defined in the

ShippingMethods table. The information in that file controls a variety of

functions provided by the shipping system.

Relates to: ShipMethods table

UseAltAddress tinyint Indicates whether or not this shipment uses an alternate Bill-to or Ship-from

address. "Alternate addresses" are stored in the ShipExtension table.

0 = No

1 = Yes

ShippedTime smallint The time the shipment happened.

ShipmentStatus tinyint Represents the most recent status of the shipment. If the "Revisions done" field

is a 0, the status has not been updated by shipping update. A "Revisions done"

of 1 indicates update has been performed for this shipment. In that case, the

"Updated Status" field and this field should be the same.

0 = In preparation

1 = Shipped

2 = Cancelled

RevisionsDone tinyint Indicates whether changes have been made to this shipment since the last time

this shipment was updated. Only shipments that have RevisionsDone = 0 may be

updated.

0 = Revisions made

1 = Updated by SHIPUPDT

Page 523JohnsonGroup

Page 524: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Shipments Shipments

UpdatedStatus tinyint Indicates the status used the last time the shipment was updated. If the

"Revisions done" field indicates there are no outstanding changes, this is the

current status. Otherwise, update the shipment to update the status of this

shipment with the status indicated in the Shipment status field.

0 = In preparation

1 = Shipped

2 = Cancelled

Addressee varchar (50) The name of the consignee of the shipment.

AddrLine1 varchar (40) The second line of the address to which the goods are to be shipped.

AddrLine2 varchar (40) The third line of the address to which the goods are to be shipped.

City varchar (30) The city to which the goods are to be shipped.

StateProv varchar (4) The state to which the goods are to be shipped.

PostalCode varchar (15) The zip code to which the goods are to be shipped.

Do not enter a hyphen in zip+4.

ShiptoAttn varchar (35) The attention-line portion of the address to which the goods are to be shipped.

TelephoneN varchar (25) The telephone number of the company to which this shipment is to be sent.

ShippingTerms tinyint Indicates the payment terms for the shipment. Note that only shipments that are

Prepaid incur any charges.

0 = Prepaid

1 = Collect

2 = Prepaid-3rd party

3 = C.O.D.

CashPrepaid decimal (15,2) The dollar amount of any pre-payment for a shipment. Appears on a bill of

lading.

FeeForCOD decimal (15,2) The dollar amount of the fee for the common carrier to perform the C.O.D.

delivery. Appears on the bill of lading.

CODamount decimal (15,2) The amount to collect for a C.O.D. delivery. This appears on the Bill of Lading.

This is the amount to be remitted to the shipper.

TermsForFee tinyint Indicates who pays the fee for a COD shipment.

Legal Values:

0 - Prepaid

1 - Collect

DeclaredValue varchar (10) The declared value of the goods in this shipment. Appears on the bill of lading

when necessary.

InvoiceN decimal (15,2) For Finished Goods shipments, the WIKey of the invoice for this shipment.

Not used for job shipments, since those are invoiced on a shipment item basis,

rather than by the whole shipment.

PostedFinlInv tinyint Unused. Do not use, this column may be deleted without warning.

0 = No

Page 524JohnsonGroup

Page 525: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Shipments Shipments

1 = Yes

ApprvdFinlInv tinyint Unused. Do not use, this column may be deleted without warning.

0 = No

1 = Yes

PrevPostings tinyint A flag indicating whether there have been previous A/P postings for this

shipment.

RevisionN smallint Indicates the number of times the shipment has been revised since it was first

entered. This number is incremented when the shipment is updated.

ShipUpdateN int Indicates the shipping update and revision number of the shipment when it was

last updated. The format is UUUUURR, where where UUUUU indicates the

Shipping Update number and RR indicates the revision number of the shipment

at the time of the update.

ShippingVendor int The vendor number of the carrier providing the transportation. Note that this

number may be 0.

Relates to: Vendor table

DivisionN int The division number for which this shipment is being done. This number is used

to look up your standard company name and addresses to print on your packing

lists, packing labels, and bills of lading.

Relates to: LocationAddres table

ReceiptNote1 varchar (10) This field can be used to store the number of the truck or railroad car in which

this shipment was shipped, the time delivered, or the last name of the person who

signed for the delivery.

ReceiptNote2 varchar (10) This field can be used to store the number of the truck trailer in which this

shipment was shipped, the time delivered, or the last name of the person who

signed for the delivery.

DelDateStatus tinyint This field is used to indicate which date is currently being stored in the Delivery

Date field.

Legal Values:

0 = Planned Delivery Date

1 = Actual (Confirmed) Delivery Date

DelCallFirst tinyint This delivery note field is used to indicate whether the person delivering the

shipment should call the recipient prior to the actual delivery. The "Call First"

directive can be printed on the bill of lading, the packing list, and long labels.

Legal values:

0 = Do not call first

1 = Call before delivery

DeliverInside tinyint This delivery note field is used to tell the person delivering the shipment whether

the goods need to be delivered inside. When set to 1, the "deliver inside" note

can be printed on the bill of lading, the packing list, and the long labels.

Legal values:

0 = Inside delivery not necessary

1 = Deliver inside

DelInstruction varchar (250) The delivery instructions are maintained with the shipment program and are

printed on the packing list, bill of lading, and the long labels. Use this field to

give special instructions to the person delivering the shipment.

Page 525JohnsonGroup

Page 526: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Shipments Shipments

DeliveryDate datetime The delivery date field is used to store one of two dates: the planned delivery

date or the actual delivery date. The Delivery Date Status field is used to

indicate which date is currently being stored. This date can be printed on the bill

of lading, the packing list, and the long labels.

FGOrder int If non-zero, this is the Finished Goods order number that generated this

shipment. If zero, this is a regular shipment, not related to Finished Goods

inventory.

Relates to: FGIOrderMast table

SalesAcctN int Sales account number for this shipment. For Finished Goods shipments, this

associates a sales account from file 183 with this shipment.

DoNotInvoice tinyint If this flag is set, the shipment will not be available to be invoiced. Used when a

customer posts a finished goods shipment but decides for some reason not to

invoice the customer.

AddrLine3 varchar (40) Third Address Line.

CountryCode varchar (3) 3 character country code. Relates to the Country table.

Relates to: Country table

PhoneExt varchar (6) Phone extension

FaxTelephoneN varchar (25) Fax Telephone number

Email varchar (128) Email address

CustomerN int If the shipment address was loaded from the Customer or CustShipAddr tables,

this contains the customer number. Otherwise it contains 0.

Relates to: CustShipAddr table

CustomerAddressN int If the shipment address was loaded from the CustShipAddr table, this contains

the AddressNumber of the address, otherwise this is zero.

Relates to: CustShipAddr table

FOMShippingDetailID int Used by the web front end to Finished Goods, Printersite Fulfillment.

Each order received from the website has a list of requested shipments. Each

requested shipment has a shipping detail id, which is stored in this column.

When Shipping actually posts a finished goods shipment for the order, it sends a

transaction to the web site that includes the web order and the web shipping

detail id of the requested shipment that this is fulfilling.

PNREF varchar (35) Used for PrinterSite Fullfillment credit card orders.

WebStatus varchar (20) Used for PrinterSite Fulfillment shipments.

AuthCode varchar (80) Contains the Verisign authorization code (AUTHCODE) for PrinterSite

Fulfillment credit card orders.

DeliveryTime datetime The delivery time field is used to store the planned delivery time

CarrierAcct varchar (25) The account number of the carrier to be billed for the shipment. Most frequently

used where the Shipping terms are Prepaid-3rd party.

Page 526JohnsonGroup

Page 527: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Shipments Shipments

ConstraintColumn

Field Constraints

ApprvdFinlInv ([ApprvdFinlInv] >= 0 and [ApprvdFinlInv] <= 1)

CashPrepaid ([CashPrepaid] >= 0 and [CashPrepaid] <= 100000)

CODamount ([CODamount] >= 0 and [CODamount] <= 100000)

CustomerAddressN ([CustomerAddressN] >= 0 and [CustomerAddressN] < 9999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

DelCallFirst ([DelCallFirst] >= 0 and [DelCallFirst] <= 1)

DelDateStatus ([DelDateStatus] >= 0 and [DelDateStatus] <= 1)

DeliverInside ([DeliverInside] >= 0 and [DeliverInside] <= 1)

DivisionN ([DivisionN] >= 0 and [DivisionN] <= 9999999)

DoNotInvoice ([DoNotInvoice] >= 0 and [DoNotInvoice] <= 1)

FeeForCOD ([FeeForCOD] >= 0 and [FeeForCOD] <= 100000)

FGOrder ([FGOrder] >= 0 and [FGOrder] <= 999999999)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

PostedFinlInv ([PostedFinlInv] >= 0 and [PostedFinlInv] <= 1)

PrevPostings ([PrevPostings] >= 0 and [PrevPostings] <= 1)

RevisionN ([RevisionN] >= 0 and [RevisionN] <= 99)

RevisionsDone ([RevisionsDone] >= 0 and [RevisionsDone] <= 1)

SalesAcctN ([SalesAcctN] >= 0 and [SalesAcctN] <= 999999999)

ShipmentNumber ([ShipmentNumber] >= 1 and [ShipmentNumber] <= 999999999)

ShipmentStatus ([ShipmentStatus] >= 0 and [ShipmentStatus] <= 9)

ShipMethodN ([ShipMethodN] >= 0 and [ShipMethodN] <= 9999999)

ShippedTime ([ShippedTime] >= 0 and [ShippedTime] <= 2400)

ShippingTerms ([ShippingTerms] >= 0 and [ShippingTerms] <= 9)

ShippingVendor ([ShippingVendor] >= 0 and [ShippingVendor] <= 999999999)

ShipUpdateN ([ShipUpdateN] >= 0 and [ShipUpdateN] <= 99999)

TermsForFee ([TermsForFee] >= 0 and [TermsForFee] <= 1)

UpdatedStatus ([UpdatedStatus] >= 0 and [UpdatedStatus] <= 9)

UseAltAddress ([UseAltAddress] >= 0 and [UseAltAddress] <= 1)

Page 527JohnsonGroup

Page 528: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipMethIntegration Ship Method Integration

This table allows ship methods to be associated with applications that are

integrated and registered with Logic SQL, for example, PrinterSite

Exchange and Printer Site Fulfillment. When a ship method is associated

with an integrated application, information about the ship method will be

included in any mass updates and/or individual, real-time updates that are

sent to the integrated application.

Indexes on Description

KeyN, PCafeBrandKey Primary key, clustered

TypeColumn

KeyN int The unique ID of a ship method as defined in the ShipMethods table.

Relates to: ShipMethods table

PCafeBrandKey int The unique id of an integrated application (such as PrinterSite Exchange) as

defined in the PCafeBrand table.

Relates to: PCafeBrand table

ConstraintColumn

Field Constraints

Page 528JohnsonGroup

Page 529: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipMethods Ship Methods

The ShipMethods table contains a list of standard

shipping methods used by your company (e.g., deliver,

Fedex, UPS ground, etc.), each identified by a numeric

key.

You should define shipping methods for "Customer

pickup" and "Our truck" as well as for your common

carriers and delivery services.

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ShipMethIntegration KeyN

Related Tables

CustShipAddr PreferredMethd

FGIOrderMast ShipMethodN

JobShipments ShippingMethod

PurchaseOrder ShipMethodkey

Shipments ShipMethodN

TypeColumn

KeyN int A unique number to identify each shipping method.

Description varchar (30) The name of the carrier or other description of the shipping method (e.g.,

Courier, Deliver). Note that it is possible to have more than one method of

shipment for a vendor. For example, UPS offers a variety of services (e.g.,

UPS-Red, UPS-Ground, etc.).

VendorN int Provides the default vendor number from the Vendor list in the accounting

system for the carrier defined in this record. The vendor number may be 0 if the

shipping method is not a common carrier. For example, if the method is for your

truck or for customer pickup, the vendor # should be 0. You may also decide to

use one Ship Method to handle multiple vendors and assign a different vendor

number to the individual shipment number.

Relates to: Vendor table

RequiresVendor tinyint Indicates whether a shipment using this shipping method must have a legal

vendor number defined in order to be updated. Shipping methods such as

"Customer pickup" or "Our truck" typically do NOT require a legal vendor

number.

0 = No

1 = Yes

ProductionSumN int Controls how shipping charges recorded in the ShipmentItems table are

summarized in the production summary section of the job report.

Relates to: JOBREPSummaryN table

BillingSumN int Controls how the charges recorded in the ShipmentItems table

are summarized in the Billing Worksheet of the job report.

Relates to: JOBREPSummaryN table

WIPSummaryN smallint Controls how shipping charges recorded in the ShipmentItems table are

summarized in the Work-in-Process series of reports.

Relates to: WIPSummaryNs table

Page 529JohnsonGroup

Page 530: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: ShipMethods Ship Methods

CostOnShipmnt tinyint Controls how the shipping update will update shipping charges in the job costing

system. The dollars updated come from the Estimated chrg$ column in the

ShipmentItems table.

For prepaid shipments, if CostOnShipment is 0 (post cost) the actual charge is

set to the estimated charge.

0 = Cost when shipped

1 = Post uncosted record

2 = No costing posted

CarrierName varchar (30) The name of the carrier represented by this shipping method. This is the name to

be printed on the bill of lading.

RequiresCharge tinyint Indicates whether shipping update requires shipments using this shipping method

to have a non-zero value in the EstimatedChrg column of each shipment item

record.

0 = No

1 = Yes

RequiresWeight tinyint Indicates whether shipments using this shipping method must have a non-zero

value in the "Weight" field of each ShipmentItem row in order to be updated.

0 = No

1 = Yes

DefaultShipped tinyint Indicates whether shipments using this shipping method should have a default

status of "Shipped." If not, the default status will be "In Preparation."

0 = No

1 = Yes

Service varchar (30) A type of service offered from the carrier represented by this shipping method.

This is the name to be printed on the bill of lading.

ConstraintColumn

Field Constraints

BillingSumN ([BillingSumN] >= 0 and [BillingSumN] <= 9999)

CostOnShipmnt ([CostOnShipmnt] >= 0 and [CostOnShipmnt] <= 2)

DefaultShipped ([DefaultShipped] >= 0 and [DefaultShipped] <= 1)

KeyN ([KeyN] >= 1 and [KeyN] <= 9999999)

ProductionSumN ([ProductionSumN] >= 0 and [ProductionSumN] <= 9999)

RequiresCharge ([RequiresCharge] >= 0 and [RequiresCharge] <= 1)

RequiresVendor ([RequiresVendor] >= 0 and [RequiresVendor] <= 1)

RequiresWeight ([RequiresWeight] >= 0 and [RequiresWeight] <= 1)

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

WIPSummaryN ([WIPSummaryN] >= 0 and [WIPSummaryN] <= 999)

Page 530JohnsonGroup

Page 531: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipUpdateHdr Ship Update Hdr

Each row in ShipUpdateHdr identifies a list of shipments to be updated in

ShipUpdateList. The lists are temporarily retained for at least 7 days.

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

ShipUpdateList KeyN

TypeColumn

KeyN int Unique key for table.

DateListAdded datetime Date the list header row was inserted. Used when determining whether the list

should be deleted.

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 999999)

Page 531JohnsonGroup

Page 532: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: ShipUpdateList ShipUpdate List

Temporarily holds the list of shipments to be updated by the ship update

process.

Indexes on Description

KeyN, ShipmentNumber Primary key, clustered

TypeColumn

KeyN int Key in ShipUpdateHdr of update list that this row belongs to.

Relates to: ShipUpdateHdr table

ShipmentNumber int Number of shipment in the Shipments table that will be updated.

Relates to: Shipments table

RevisionN tinyint Shipment revision number.

Note: it does not appear that this column is necessary.

TransSeq smallint Updates are performed in order of the TransSeq number. The user may specify a

variety of orders for performing the updates, such as shipment number, shipment

date, or shipment method.

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 999999)

ShipmentNumber ([ShipmentNumber] >= 1 and [ShipmentNumber] <= 999999999)

Page 532JohnsonGroup

Page 533: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SICCodes SIC Codes

The SIC Code file contains those Standard Industrial

Classification codes which you choose to enter.

These SIC codes can then be used to categorize your

customers by assigning an appropriate SIC code to

each of them.

Indexes on Description

SICNumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Customer SICCode

TypeColumn

SICNumber int The Standard Industrial Code number (SIC).

Description varchar (40) A literal description of the SIC.

ConstraintColumn

Field Constraints

SICNumber ([SICNumber]>=(0) AND [SICNumber]<=(999999))

Page 533JohnsonGroup

Page 534: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Slowdowns Slowdowns

Estimating 3 Standards: Machine Slowdown table

Contains information for Stock Slowdowns for individual operations.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

OperID varchar (8) Operation ID - Identifier used by program to find the slowdown table used for

this operation. The identifier is provided to the program through the operation

standards.

StkType int Stock Type - must match one of the legal stock types used by Estimating 3, as

listed in StockTypes table

BWMin decimal (9,2) Minimum Basis Weight - indicates the lower end (inclusive) of the basis weight

range for which this slowdown is to be used

BWMax decimal (9,2) Maximum Basis Weight - indicates the upper end (inclusive) of basis weight

range for which this slowdown is to be used.

ClpMin decimal (9,5) Minimum caliper (minimum bulk) - Indicates the lower end (inclusive) of the

caliper range for which this slowdown is used).

Note: If minimum and maximum calipers are 0 (zero), the caliper range will be

ignored, only basis weight range will be used.

ClpMax decimal (9,5) Maximum caliper (maximum bulk) - indicates the upper end (inclusive) of the

caliper range for which this slowdown is used.

Note: If minimum and maximum calipers are 0 (zero), the caliper range will be

ignored, only basis weight range will be used.

HiBulk tinyint Determines whether to apply this slowdown relative to High Bulk stock.

0 = regular bulk only

1 = high bulk only

2 = either regular or high bulk stock

Coated tinyint Determines how to apply this slowdown relative to coated stock.

0 = uncoated only

1 = coated 1 side only

2 = coated 2 sides only

3 = coated 1 side or 2 sides

4 = either uncoated or coated (coating is irrelevant)

SloDn decimal (9,2) Slow Down % The percent slowdown to be used if the stock used falls within the

criteria specified in this record.

Page 534JohnsonGroup

Page 535: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Slowdowns Slowdowns

ConstraintColumn

Field Constraints

BWMax ([BWMax] >= 0 and [BWMax] <= 9999)

BWMin ([BWMin] >= 0 and [BWMin] <= 999)

ClpMax ([ClpMax] >= 0 and [ClpMax] <= 999)

ClpMin ([ClpMin] >= 0 and [ClpMin] <= 999)

Coated ([Coated] >= 0 and [Coated] <= 4)

HiBulk ([HiBulk] >= 0 and [HiBulk] <= 2)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

SloDn ([SloDn] >= 0 and [SloDn] <= 99999)

StkType ([StkType] >= 0 and [StkType] <= 99)

Page 535JohnsonGroup

Page 536: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SpecInstruct Special Instructions

Special Instructions provided by the user for each estimate, component or

configuration in Estimating 3.

Indexes on Description

IssNum, CompNum,

LineNum

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component Number or 0 for estimate header instructions.

EstNum decimal (15,2) Estimate Number

LineNum int Line number of text - used to order lines for this set of instructions.

Instructions varchar (5,000) Special Instructions Line - actual text of special instructions.

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

LineNum ([LineNum] >= 0 and [LineNum] <= 9999)

Page 536JohnsonGroup

Page 537: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Speeds Speeds

Est 3 Standards: Speed Table

Contains Speed information for all machines.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

OperID varchar (12) Operation ID this speed table is used for (Default value is actual operation ID,

but could be any alpha-numeric string to uniquely identify this speed table)

BrkPt decimal (12,2) Quantity Breakpoint This must match the calculation, i.e., if the calculation is

in length the breakpoints must be in length, or if calculated in sheets, the

breakpoints must be in sheets, etc.

BkPtType smallint Break point type:

1 = run quantity (normal setting for machines)

2 = runsheet width (used for DPS or scanner)

3 = runsheet length (scanner)

4 = area (scanner)

5 = run length

6 = run area

Speed decimal (9,2) Speed This must match the calculation, i.e., if calculation is in length, then

speed must be in length, eg. feet/minute

SpdType smallint Flag to indicate how speed is calculated: Value greater or equal 0 (>=0) =

prorate speed between breakpoints value smaller than 0 (<0) = select speed in

discreet intervals; -1 = select down (speed at previous breakpoint), -2 = select

up (speed at next breakpoint))

Data1 decimal (9,2) Additional data 1 for speed table

Flag1 int Flag for data 1 in speed table

Data2 decimal (9,2) Additional data 2 for speed table

Flag2 int Flag for data 2 in speed table

Data3 decimal (9,2) Additional data 3 for speed table (for scanner, output colors up per film)

Flag3 int Flag for data 3 in speed table

Data4 decimal (9,2) Additional data 4 for speed table (for scanner, film cost)

Flag4 int Flag for data 4 in speed table

Page 537JohnsonGroup

Page 538: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Speeds Speeds

ConstraintColumn

Field Constraints

BkPtType ([BkPtType] >= (-999) and [BkPtType] <= 999)

BrkPt ([BrkPt] >= 0 and [BrkPt] <= 999999999)

Data1 ([Data1] >= 0 and [Data1] <= 9999999)

Data2 ([Data2] >= 0 and [Data2] <= 9999999)

Data3 ([Data3] >= 0 and [Data3] <= 9999999)

Data4 ([Data4] >= 0 and [Data4] <= 9999999)

Flag1 ([Flag1] >= 0 and [Flag1] <= 999999)

Flag2 ([Flag2] >= 0 and [Flag2] <= 999999)

Flag3 ([Flag3] >= 0 and [Flag3] <= 999999)

Flag4 ([Flag4] >= 0 and [Flag4] <= 999999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

SpdType ([SpdType] >= (-999) and [SpdType] <= 999)

Speed ([Speed] >= 0 and [Speed] <= 999999999)

Page 538JohnsonGroup

Page 539: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SpoilAddlTab Spoil Addl Tab

This table lists additional tables added to a component beyond the standard

spoilage and any spoilage associated with specific operations.

Indexes on Description

IssNum, CompNum, SpoilID Primary key, clustered

TypeColumn

IssNum int The issue number for this record.

Relates to: Estimates table

CompNum int The component for this record.

EstNum decimal (15,2) The estimate number for this record.

SpoilID int The spoilage ID of the table added to this component.

ConstraintColumn

Field Constraints

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

SpoilID ([SpoilID]>=(0) AND [SpoilID]<=(99999))

Page 539JohnsonGroup

Page 540: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Spoilage Spoilage

Spoilage overrides provided by the user for stock in an Estimating 3

estimate.

Indexes on Description

IssNum, CompNum, QIndex Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate Number

QIndex tinyint Quantity Index for Spoilage override - If a specific spoilage type has been

overridden for this quantity, it will be entered. If not, the value for that spoilage

type will be -999.

SUspl decimal (9,2) Override Setup Spoilage; sheets

MRspl decimal (9,2) Override Makeready Spoilage; Sheets per MR

Pchgspl decimal (9,2) Override Plate Change Spoilage; Sheets

ADMRspl decimal (9,2) Additional Makeready Spoilage; Sheets

RUNspl decimal (9,2) Override Run Spoilage; %

BNSUspl decimal (9,2) Bindery Setup Spoilage; Sheets

BNDspl decimal (9,2) Override Bindery Spoilage; %

CWspl decimal (9,2) Override Core & Wrap Spoilage; %

ConstraintColumn

Field Constraints

ADMRspl ([ADMRspl] >= (-9999999) and [ADMRspl] <= 9999999)

BNDspl ([BNDspl] >= (-9999999) and [BNDspl] <= 9999999)

BNSUspl ([BNSUspl] >= (-9999999) and [BNSUspl] <= 9999999)

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

CWspl ([CWspl] >= (-9999999) and [CWspl] <= 9999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

MRspl ([MRspl] >= (-9999999) and [MRspl] <= 9999999)

Pchgspl ([Pchgspl] >= (-9999999) and [Pchgspl] <= 9999999)

QIndex ([QIndex] >= 0 and [QIndex] <= 5)

RUNspl ([RUNspl] >= (-9999999) and [RUNspl] <= 9999999)

SUspl ([SUspl] >= (-9999999) and [SUspl] <= 9999999)

Page 540JohnsonGroup

Page 541: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SpoilageTab SpoilageTab

Estimating 3 Standards: Stock Spoilage Table

Contains standards for default spoilages.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

SpoilID int Spoilage ID

Description varchar (50) Spoilage Table description

BrkPt decimal (12,2) Quantity Break Point

SUspl decimal (9,2) Setup Spoilage; sheets

MRspl decimal (9,2) Makeready Spoilage; Sheets per MR

Pchgspl decimal (9,2) Plate Change Spoilage; Sheets

ADMRspl decimal (9,2) Additional Makeready Spoilage; Sheets

RUNspl decimal (9,2) Run Spoilage; %

BNSUspl decimal (9,2) Bindery Setup Spoilage; Sheets

BNDspl decimal (9,2) Bindery Spoilage; %

CWspl decimal (9,2) Core & Wrap Spoilage; %

ConstraintColumn

Field Constraints

ADMRspl ([ADMRspl] >= (-9999999) and [ADMRspl] <= 9999999)

BNDspl ([BNDspl] >= (-9999999) and [BNDspl] <= 9999999)

BNSUspl ([BNSUspl] >= (-9999999) and [BNSUspl] <= 9999999)

BrkPt ([BrkPt] >= 0 and [BrkPt] <= 99999999)

CWspl ([CWspl] >= (-9999999) and [CWspl] <= 9999999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

MRspl ([MRspl] >= (-9999999) and [MRspl] <= 9999999)

Pchgspl ([Pchgspl] >= (-9999999) and [Pchgspl] <= 9999999)

RUNspl ([RUNspl] >= (-9999999) and [RUNspl] <= 9999999)

SpoilID ([SpoilID] >= 0 and [SpoilID] <= 99999)

SUspl ([SUspl] >= (-9999999) and [SUspl] <= 9999999)

Page 541JohnsonGroup

Page 542: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StandardText Standard Text

The Standard Text table contains a list of lines of text that can be

automatically printed on the invoice. This can include a description of

payment terms, seasons greetings, overdue messages, and so on. Use of

this table is optional. Records are created, maintained, and deleted through

Table Maintenance.

Indexes on Description

TextKey Primary key, clustered

TypeColumn

TextKey int A unique number to identify each line of text.

The operator uses this key to identify the line

while in acct.

Description varchar (45) The line of text itself. Note that two lines can

be used to frame a long message. The operator

can look up lines using search strings in the

description.

TextLine1 varchar (45) First line of text

TextLine2 varchar (45) .

TextLine3 varchar (45) .

TextLine4 varchar (45) .

TextLine5 varchar (45) .

TextLine6 varchar (45) .

TextLine7 varchar (45) .

TextLine8 varchar (45) .

ConstraintColumn

Field Constraints

TextKey ([TextKey] >= 1 and [TextKey] <= 999999)

Page 542JohnsonGroup

Page 543: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StatusCode Status Code

The Status Code table contains the list of status codes that can be used in

status transactions to indicate the status of open jobs and their tasks. Status

transactions are entered either through SFDC and are recorded in the

JobStatus1 table. Status Codes are four or five digits long, matching the

Scheduling Task type or with the leading two or three digits usually being

the Scheduling Work Center Number to which the status transaction

applies. See the Scheduling Manual or the Appendix of the SFDC Manual

to see samples and descriptions of status codes. Status Codes are created

using Table Maintenance or Scheduling Resource Editor and maintained

using Table Maintenance.

Indexes on Description

StatusCodeN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

JobStatus1 StatusCode

TypeColumn

StatusCodeN int The status code number, which is the key to the table. For Done Task codes, the

code is often the same as the ID of Scheduling task to which they apply.

SCDescription varchar (20) Indicates what the code means.

DoneInDept tinyint Special flag indicating if this code means that the schedule should be updated.

If done, the task(s) in the schedule that apply to this status are marked done on

reports, and the status of the task(s) are changed to done. For partials, the status

of the task is changed to Unscheduled. If the value is 3 the Department must be

supplied; if 1 the Work Center and if 2 or 5, the Task ID must be supplied in the

respective field.

0 = Not Done

1 = Done WC

2 = Done Task

3 = Done Dept

4 = Done Job

5 = Partial Task

SubjobReqd tinyint Special flag indicating if schedstat or SFDC will prompt for, and the user must

enter, a subjob in the status transaction.

0 = No

1 = Yes

QTYReqd tinyint Special flag indicating if schedstat or SFDC will prompt for, and the user must

enter, a quantity in the status transaction.

0 = No

1 = Yes

FormNReqd tinyint Special flag indicating if schedstat or SFDC will prompt for, and the user must

enter, a Form Number in the status transaction.

0 = No

1 = Yes

Page 543JohnsonGroup

Page 544: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StatusCode Status Code

SigNReqd tinyint Special flag indicating if schedstat or SFDC will prompt for, and the user must

enter, a Signature Number in the status transaction.

0 = No

1 = Yes

MailDoneMsg tinyint Not used in EFI Logic SQL.

pCafeStatus int Used to assign PrinterSite Exchange user statuses to particular Logic status

codes. If a status code assigned a standard status, that standard status will also

be returned to PSE to be displayed to the user when the status code is assigned to

a job.

0 = No standard status

100 = ShipEnd

110 = Cancelled

SchedWorkCtr int The Scheduling Work Center ID which should be marked done by this status

code if the Done in Dept flag is set to 1.

Relates to: SchWorkCenter table

SchedTaskID int The Scheduling Task Type ID which should be marked done by this status code

if the Done in Dept flag is set to 2.

Relates to: SchTask table

SchedDept smallint If the DoneInDept field indicates Done Dept (3), this field must be filled in with

the appropriate Department ID.

Relates to: SchDepartment table

PsiWebStatus int The on/off switch to present this status to the PrinterSite Internal Web

application. By default they all will be presented (set to 1).

0 = No

1 = Yes

PsiWebFriendlyName varchar (20) Permits a substitute name for a job status description other than the one supplied

in the SCDescription field. When user enters the "PsiWebFriendlyName", it will

be sent to PrinterSite Internal web application for display rather than the default

description.

Page 544JohnsonGroup

Page 545: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StatusCode Status Code

ConstraintColumn

Field Constraints

DoneInDept ([DoneInDept] >= 0 and [DoneInDept] <= 5)

FormNReqd ([FormNReqd] >= 0 and [FormNReqd] <= 2)

MailDoneMsg ([MailDoneMsg] >= 0 and [MailDoneMsg] <= 1)

pCafeStatus ([pCafeStatus] >= 0 and [pCafeStatus] <= 999999)

QTYReqd ([QTYReqd] >= 0 and [QTYReqd] <= 1)

SchedDept ([SchedDept] >= 0 and [SchedDept] <= 999)

SchedTaskID ([SchedTaskID] >= 0 and [SchedTaskID] <= 99999)

SchedWorkCtr ([SchedWorkCtr] >= 0 and [SchedWorkCtr] <= 9999)

SigNReqd ([SigNReqd] >= 0 and [SigNReqd] <= 1)

StatusCodeN ([StatusCodeN] >= 1 and [StatusCodeN] <= 99999)

SubjobReqd ([SubjobReqd] >= 0 and [SubjobReqd] <= 2)

Page 545JohnsonGroup

Page 546: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StatusVectors Status Vectors

The Status Vector table lists the status vector tables in the system. Status

vectors contain state information for different applications to coordinate

purges and other updates.

Indexes on Description

SVNumber Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

ApplSVIndexList SVNumber

TypeColumn

SVNumber smallint Number of status vector (the corresponding table name is SVNNN)

SVName varchar (25) Name of status vector

ConstraintColumn

Field Constraints

SVNumber ([SVNumber] >= 101 and [SVNumber] <= 303)

Page 546JohnsonGroup

Page 547: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StockCalc Stock Calculations

Table containing raw calculations for Stock calculations for Estimating 3

estimates. Both Spoilage and non-spoilage records are included.

Indexes on Description

IssNum, ConfigNum,

CompNum, StkNum, CostID

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate number

StkNum int Stock Choice number used as index into Stocks table.

CostID varchar (4) Cost Function name

TypeDesc varchar (50) Stock Type Description (eg. Book - coated, Cover, etc)

PriceMethDesc varchar (14) Price Method Unit Desc (eg. $/ksheets, $/cwt, etc)

RecType smallint Indicates type of stock calculation. 0 = Net Stock, 1 = Spoilage Stock.

Weight1 decimal (15,2) Weight for Quantity 1

Weight2 decimal (15,2) Weight for Quantity 2

Weight3 decimal (15,2) Weight for Quantity 3

Weight4 decimal (15,2) Weight for Quantity 4

Weight5 decimal (15,2) Weight for Quantity 5

WeightUnit varchar (10) Units for Weight fields

Cutoff1 decimal (15,2) Number of Sheets/Cutoffs for Quantity 1

Cutoff2 decimal (15,2) Number of Sheets/Cutoffs for Quantity 2

Cutoff3 decimal (15,2) Number of Sheets/Cutoffs for Quantity 3

Cutoff4 decimal (15,2) Number of Sheets/Cutoffs for Quantity 4

Cutoff5 decimal (15,2) Number of Sheets/Cutoffs for Quantity 5

CutUnit varchar (10) Units for Sheets/Cutoffs

Length1 decimal (15,2) Total Length for Web - Quantity 1 (0 for Sheetfed press)

Length2 decimal (15,2) Total Length for Web - Quantity 2 (0 for Sheetfed press)

Length3 decimal (15,2) Total Length for Web - Quantity 3 (0 for Sheetfed press)

Length4 decimal (15,2) Total Length for Web - Quantity 4 (0 for Sheetfed press)

Length5 decimal (15,2) Total Length for Web - Quantity 5 (0 for Sheetfed press)

LenUnit varchar (10) Units for Length

Page 547JohnsonGroup

Page 548: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StockCalc Stock Calculations

Add1000 int Flag indicates whether to include this calculation in Additional quantity

calculation.

Cost1 decimal (15,2) Cost for Quantity 1

Cost2 decimal (15,2) Cost for Quantity 2

Cost3 decimal (15,2) Cost for Quantity 3

Cost4 decimal (15,2) Cost for Quantity 4

Cost5 decimal (15,2) Cost for Quantity 5

Mkup1 decimal (9,4) Markup for Quantity 1 (eg .1 = 10% markup)

Mkup2 decimal (9,4) Markup for Quantity 2

Mkup3 decimal (9,4) Markup for Quantity 3

Mkup4 decimal (9,4) Markup for Quantity 4

Mkup5 decimal (9,4) Markup for Quantity 5

MultFlag1 tinyint Multiple flag. Indicates whether this calculation should be multiplied by

component multiplier for calculation of entire estimate. If = 0, will only be

included once.

CompCnt int The multiple of this component in this configuration.

ConfigNum int The configuration for this calculation.

Page 548JohnsonGroup

Page 549: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StockCalc Stock Calculations

ConstraintColumn

Field Constraints

Add1000 ([Add1000] >= 0 and [Add1000] <= 1)

CompCnt ([CompCnt]>=(0) AND [CompCnt]<=(999))

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

ConfigNum ([ConfigNum]>=(-1) AND [ConfigNum]<=(99999))

Cost1 ([Cost1] >= (-999999999) and [Cost1] <= 999999999)

Cost2 ([Cost2] >= (-999999999) and [Cost2] <= 999999999)

Cost3 ([Cost3] >= (-999999999) and [Cost3] <= 999999999)

Cost4 ([Cost4] >= (-999999999) and [Cost4] <= 999999999)

Cost5 ([Cost5] >= (-999999999) and [Cost5] <= 999999999)

Cutoff1 ([Cutoff1] >= (-9999999) and [Cutoff1] <= 999999999)

Cutoff2 ([Cutoff2] >= (-9999999) and [Cutoff2] <= 999999999)

Cutoff3 ([Cutoff3] >= (-9999999) and [Cutoff3] <= 999999999)

Cutoff4 ([Cutoff4] >= (-9999999) and [Cutoff4] <= 999999999)

Cutoff5 ([Cutoff5] >= (-9999999) and [Cutoff5] <= 999999999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Length1 ([Length1] >= (-9999999) and [Length1] <= 999999999)

Length2 ([Length2] >= (-9999999) and [Length2] <= 999999999)

Length3 ([Length3] >= (-9999999) and [Length3] <= 999999999)

Length4 ([Length4] >= (-9999999) and [Length4] <= 999999999)

Length5 ([Length5] >= (-9999999) and [Length5] <= 999999999)

Mkup1 ([Mkup1] >= (-999) and [Mkup1] <= 999)

Mkup2 ([Mkup2] >= (-999) and [Mkup2] <= 999)

Mkup3 ([Mkup3] >= (-999) and [Mkup3] <= 999)

Mkup4 ([Mkup4] >= (-999) and [Mkup4] <= 999)

Mkup5 ([Mkup5] >= (-999) and [Mkup5] <= 999)

MultFlag1 ([MultFlag1] >= 0 and [MultFlag1] <= 1)

RecType ([RecType] >= 0 and [RecType] <= 99)

StkNum ([StkNum] >= 0 and [StkNum] <= 99999)

Weight1 ([Weight1] >= (-99999) and [Weight1] <= 99999999)

Weight2 ([Weight2] >= (-99999) and [Weight2] <= 99999999)

Weight3 ([Weight3] >= (-99999) and [Weight3] <= 99999999)

Weight4 ([Weight4] >= (-99999) and [Weight4] <= 99999999)

Weight5 ([Weight5] >= (-99999) and [Weight5] <= 99999999)

Page 549JohnsonGroup

Page 550: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StockOptions StockOptions

Provides the link to which stock is actually used by an Estimating 3

component or each web/bin of the component. Also contains all the

component information which may be different for each web/bin.

Indexes on Description

IssNum, CompNum,

WebNum

Primary key, clustered

TypeColumn

IssNum int Issued Estimate number. This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate number

WebNum int Web or Bin number for this stock

StkNum int Stock Choice number - Index into Stocks table

Run1 decimal (9,3) Run dimensions for this web/component

Run2 decimal (9,3) .

Finish1 decimal (10,4) Finish dimensions for this web/component

Finish2 decimal (10,4) .

Flat1 decimal (10,4) Flat dimensions for this web/component

Flat2 decimal (10,4) .

PageCount int total number of pages for this bin/web (DPS/Web comp)

Ganged smallint Is this component Ganged? 1=Yes, 0=No

Bleed tinyint Type of bleed for this component

LayoutDoc varchar (255) Path of Layout Document from originating estimator's client machine.

BleedDepth decimal (6,4) The depth necessary for bleeds. It is only used if the Bleed field is set to Yes

(1).

HeadBarDepth decimal (6,4) The depth for the head color registration bar. This value is only used if the

UseHeadBar field is set to Yes (1).

SideBarDepth decimal (6,4) The depth for the side color registration bar. This value is only used if the

UseSideBar field is set to Yes (1).

UseHeadBar bit Indicates whether to use the HeadBarDepth for this component or web/bin.

UseSideBar bit Indicates whether to use the SideBarDepth for this component or web/bin.

MarginDepth decimal (6,4) Depth of the edge margin for wide format layouts.

GridPrecision decimal (6,4) The precision interval to use when placing images on the grid.

PageMultiple int For DPS, the number of leaves from this bin for each piece output. It may have

a multiple page layout on the leaf. For other press types, it will always be 1.

Page 550JohnsonGroup

Page 551: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StockOptions StockOptions

RunOutOfOrder int The number of run sheets taken from the order sheet for this web/bin/substrate.

PagesInLayout int Number of pages (must be even) in the imposition. For all except DPS, this will

be the same as PageCount.

ConstraintColumn

Field Constraints

Bleed ([Bleed] >= 0 and [Bleed] <= 2)

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

Finish1 ([Finish1] >= 0 and [Finish1] <= 99999)

Finish2 ([Finish2] >= 0 and [Finish2] <= 99999)

Flat1 ([Flat1] >= 0 and [Flat1] <= 99999)

Flat2 ([Flat2] >= 0 and [Flat2] <= 99999)

Ganged ([Ganged] >= 0 and [Ganged] <= 999)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

PageCount ([PageCount] >= 0 and [PageCount] <= 10000)

PageMultiple ([PageMultiple]>=(0) AND [PageMultiple]<=(9999))

PagesInLayout ([PagesInLayout]>=(0) AND [PagesInLayout]<=(9999))

Run1 ([Run1] >= 0 and [Run1] <= 99999)

Run2 ([Run2] >= 0 and [Run2] <= 99999)

RunOutOfOrder ([RunOutOfOrder]>=(0) AND [RunOutOfOrder]<=(999))

StkNum ([StkNum] >= 0 and [StkNum] <= 99999)

WebNum ([WebNum] >= 0 and [WebNum] <= 9999)

Page 551JohnsonGroup

Page 552: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Stocks Stocks

Stocks listed in each component of an Estimating 3 estimate. Whether they

are actually used in the component is controlled by Stock Options file.

Indexes on Description

IssNum, CompNum, StkNum Primary key, clustered

TypeColumn

IssNum int Issued Estimate number This is the number used to track the particular version

of an estimate. If an estimate is Opened for Edit and reissued, it will receive a

new Issue Number. These are assigned sequentially.

Relates to: Estimates table

CompNum int Component number

EstNum decimal (15,2) Estimate number

StkNum int Stock Choice sequence number

StockType smallint Stock Type from Stock Type table (eg. Book - uncoated, Cover, etc)

Relates to: StockTypes table

MCCN int MCC number if from EFI Logic MatlCostCntr table.

Relates to: MatlCostCntr table

MCCDescription varchar (60) Description of Paper from Material Cost Center table (MatlCostCntr or entered

or edited by estimator.

Width decimal (9,3) Width of stock

Length decimal (9,3) Length of stock sheet (0 For Webs)

BWTorGSM decimal (9,2) Basis Weight or GSM of stock

MWT int M Weight

Caliper decimal (10,5) Caliper ( Thickness) (Calculated by Estimating 3 if 0 and Basis Weight is not)

Coated tinyint Description of stock's coating.

HiBulk tinyint Whether or not this stock is High Bulk.

0 = No

1 = Yes

Color varchar (15) Color of stock, entered by estimator if desired

VendorN int Vendor Number for stock to be used for creating a purchase order. Defaults to

Primary Vendor from Material Cost Center table (MatlCostCntr)

Relates to: Vendor table

Q1Price decimal (15,4) Price from MCC table or override price - Qty1

Q2Price decimal (15,4) Price or override price- Qty2

Q3Price decimal (15,4) Price or override price- Qty3

Q4Price decimal (15,4) Price or override price- Qty4

Q5Price decimal (15,4) Price or override price- Qty5

Page 552JohnsonGroup

Page 553: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Stocks Stocks

Mkup1 decimal (9,4) Internal Markup for quantity 1 (eg. .10 = 10%)

Mkup2 decimal (9,4) Markup for quantity 2

Mkup3 decimal (9,4) Markup for quantity 3

Mkup4 decimal (9,4) Markup for quantity 4

Mkup5 decimal (9,4) Markup for quantity 5

PriceFunc tinyint Price Function used in price calculation conversion (0=multiply,1=divide,2=

weight, 3=area, 4=length?)

PriceFact decimal (15,3) Price Factor used when calculating price from quantity used. Taken from related

Material Class table when an MCC number is selected.

PriceLit varchar (10) Price Literal, units used for calculation (eg. lbs cwt, ksheets, etc)

ShtsPerCart int Sheets Per Carton if using Even Cartons

ConstraintColumn

Field Constraints

BWTorGSM ([BWTorGSM] >= 0 and [BWTorGSM] <= 99999)

Caliper ([Caliper] >= 0 and [Caliper] <= 99999)

Coated ([Coated] >= 0 and [Coated] <= 2)

CompNum ([CompNum] >= 0 and [CompNum] <= 99999)

EstNum ([EstNum] >= 0 and [EstNum] <= 99999999)

HiBulk ([HiBulk] >= 0 and [HiBulk] <= 1)

IssNum ([IssNum] >= 1 and [IssNum] <= 999999999)

Length ([Length] >= 0 and [Length] <= 99999)

MCCN ([MCCN] >= 0 and [MCCN] <= 9999999)

Mkup1 ([Mkup1] >= (-999) and [Mkup1] <= 999)

Mkup2 ([Mkup2] >= (-999) and [Mkup2] <= 999)

Mkup3 ([Mkup3] >= (-999) and [Mkup3] <= 999)

Mkup4 ([Mkup4] >= (-999) and [Mkup4] <= 999)

Mkup5 ([Mkup5] >= (-999) and [Mkup5] <= 999)

MWT ([MWT] >= 0 and [MWT] <= 9999)

PriceFact ([PriceFact] >= (-9999999) and [PriceFact] <= 9999999)

PriceFunc ([PriceFunc] >= 0 and [PriceFunc] <= 99)

Q1Price ([Q1Price] >= 0 and [Q1Price] <= 999999)

Q2Price ([Q2Price] >= 0 and [Q2Price] <= 999999)

Q3Price ([Q3Price] >= 0 and [Q3Price] <= 999999)

Q4Price ([Q4Price] >= 0 and [Q4Price] <= 999999)

Q5Price ([Q5Price] >= 0 and [Q5Price] <= 999999)

ShtsPerCart ([ShtsPerCart] >= 0 and [ShtsPerCart] <= 999999)

StkNum ([StkNum] >= 0 and [StkNum] <= 99999)

StockType ([StockType]>=(0) AND [StockType]<=(999))

VendorN ([VendorN] >= 0 and [VendorN] <= 999999999)

Width ([Width] >= 0 and [Width] <= 99999)

Page 553JohnsonGroup

Page 554: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StockTypes Stock Types

This table identifies different stock types for Estimating 3 and contains the

parameters need to estimate them accurately.

Indexes on Description

StockType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

CompStockType StockType

MatlCostCntr StockType

Stocks StockType

TypeColumn

StockType smallint Stock Type ID Code. Used in Material Cost Center table (MatlCostCntr) to

identify stock type for MCC Codes. Used by Estimating 3 to estimate different

types of stocks. Stock Type 0 is reserved for an unassigned stock type and

should not be changed.

Description varchar (50) Stock Type Description (eg. Cover, Book uncoated)

TextMapID varchar (8) Text string used to identify this type of stock for the Job Ticket.

DefaultMCC int Default MCC used in Estimating if no MCC is chosen for this stock of this type.

Relates to: MatlCostCntr table

BasSize decimal (9,2) Basis Size of stock This is the area of the stock or substrate to be used when

calculating the weight and thickness of the stock. For example, coated book has

a basis size of 25" x 38" (or 950 square inches). If your company uses the metric

system, all stock types have a basis size of 1.

BasWgtFact decimal (9,2) Factor used by Estimating 3 for calculating stock. This allows a multiple of the

basis size to be used in the calculation. For U.S. customers, the number of sheets

(usually 500) in a ream of the paper’s standard size. For example, a ream of the

PIA standard for coated book has 500 sheets and you would use a factor of 500.

In most cases, you can find the basis weight factor in your paper guide. If your

company uses the metric system, all stock types have a basis weight factor of 1.

If you are specifying a relatively heavy substrate, eg plywood, you might also

use a factor of 1.

BasWght1 decimal (9,2) Table of Basis Weights to be used with Bulks to calculate the Caliper of this

type of stock by Estimating 3.

BasWght2 decimal (9,2) .

BasWght3 decimal (9,2) .

BasWght4 decimal (9,2) .

BasWght5 decimal (9,2) .

Bulk1 decimal (9,5) Bulk value to be used with Basis weight.

Bulk2 decimal (9,5) .

Bulk3 decimal (9,5) .

Bulk4 decimal (9,5) .

Bulk5 decimal (9,5) .

Page 554JohnsonGroup

Page 555: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: StockTypes Stock Types

CovF decimal (9,3) Coverage Factor - The amount of ink required to cover a certain area of stock.

For example, if you measure paper in inches, the area is usually in square inches.

If the amount of ink is in pounds, the coverage factor is thousands of square

inches covered by one pound of ink. A coverage factor of 440 would therefore

indicate that 1 pound of the ink will cover 440,000 square inches of paper.

ConstraintColumn

Field Constraints

BasSize ([BasSize] >= 0 and [BasSize] <= 999999)

BasWght1 ([BasWght1] >= 0 and [BasWght1] <= 999999)

BasWght2 ([BasWght2] >= 0 and [BasWght2] <= 999999)

BasWght3 ([BasWght3] >= 0 and [BasWght3] <= 999999)

BasWght4 ([BasWght4] >= 0 and [BasWght4] <= 999999)

BasWght5 ([BasWght5] >= 0 and [BasWght5] <= 999999)

BasWgtFact ([BasWgtFact] >= 0 and [BasWgtFact] <= 999999)

Bulk1 ([Bulk1] >= 0 and [Bulk1] <= 99)

Bulk2 ([Bulk2] >= 0 and [Bulk2] <= 99)

Bulk3 ([Bulk3] >= 0 and [Bulk3] <= 99)

Bulk4 ([Bulk4] >= 0 and [Bulk4] <= 99)

Bulk5 ([Bulk5] >= 0 and [Bulk5] <= 99)

CovF ([CovF] >= 0 and [CovF] <= 1000)

DefaultMCC ([DefaultMCC] >= 0 and [DefaultMCC] <= 9999999)

StockType ([StockType]>=(0) AND [StockType]<=(999))

Page 555JohnsonGroup

Page 556: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StreetDirectionList Street Direction List

StreetDirectionList

Indexes on Description

StreetDirection Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts StreetDirection

TypeColumn

StreetDirection varchar (150) Street Direction

Active numeric Active

ConstraintColumn

Field Constraints

Page 556JohnsonGroup

Page 557: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: StreetTrailingList Street Trailing List

Street Trailing List

Indexes on Description

StreetTrailingType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts StreetTrailingType

TypeColumn

StreetTrailingType varchar (150) StreetTrailingType

Active numeric Active

ConstraintColumn

Field Constraints

Page 557JohnsonGroup

Page 558: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SubjobDetail Subjob Detail

Table describes distribution of production forms among multiple subjobs

or products produced by this job.

Indexes on Description

JobN, SubjobNumber,

FormorPartN

Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job.

Relates to: OpenJob table

SubjobNumber int The unique identifier for each subjob associated with the job.

FormorPartN smallint The unique identifier for a form associated with the job that is used to produce

this subjob.

FormQuantity int The produced quantity of this form to be used in this subjob.

FormCostPct decimal (5,2) If not zero, this percent (eg. 12.5 = 12.5%) can be used instead of one calculated

from FormQuantity for cost distribution from the form.

ConstraintColumn

Field Constraints

FormCostPct ([FormCostPct]>=(0) AND [FormCostPct]<=(100))

FormorPartN ([FormOrPartN]>=(0) AND [FormOrPartN]<=(9999))

FormQuantity ([FormQuantity]>=(0) AND [FormQuantity]<=(999999999))

JobN ([JobN]>=(1) AND [JobN]<=(999999999))

SubjobNumber ([SubjobNumber]>=(0) AND [SubjobNumber]<=(9999))

Page 558JohnsonGroup

Page 559: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SubjobList Subjob List

Subjob tracking is an optional function in the EFI Logic system. The

Subjobs Allowed (11300) parameter controls whether subjob tracking is in

effect. You enter subjobs with JobVista. If a job has subjobs, the subjobs

are listed in the SubjobList table. Subjobs are then visible in other parts of

the Logic system, for example, on the shop floor in applications such as

MyDC and WinTrak.

Indexes on Description

JobN, SubjobNumber Primary key, clustered

TypeColumn

JobN int A unique number that identifies the job.

Relates to: OpenJob table

SubjobNumber int A unique identifier for each subjob associated with the job.

SubjobDesc varchar (50) A description of the subjob.

Quantity int The quantity ordered for the subjob.

CustomerPartN varchar (20) The identifier your customer uses for the product which you are producing. For

example, you may produce purchase orders, which are identified as Form

#12343 at your customer.

PagesPerPiece int Number of pages per finished piece.

LengthOfPiece decimal (10,4) The length of the finished piece.

WidthOfPiece decimal (10,4) The width of the finished piece.

ConstraintColumn

Field Constraints

JobN ([JobN] >= 1 and [JobN] <= 999999999)

LengthOfPiece ([LengthOfPiece]>=(0) AND [LengthOfPiece]<=(99999))

PagesPerPiece ([PagesPerPiece]>=(0) AND [PagesPerPiece]<=(99999))

Quantity ([Quantity] >= 0 and [Quantity] <= 999999999)

SubjobNumber ([SubjobNumber] >= 0 and [SubjobNumber] <= 9999)

WidthOfPiece ([WidthOfPiece]>=(0) AND [WidthOfPiece]<=(99999))

Page 559JohnsonGroup

Page 560: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SubPremiseTypeList Sub Premise Type List

SubPremiseType

Indexes on Description

SubPremiseType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Contacts SubPremiseName

TypeColumn

SubPremiseType varchar (150) SubPremiseType

Active numeric Active

ConstraintColumn

Field Constraints

Page 560JohnsonGroup

Page 561: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SupplyList Supply List

This table will aid in purchasing General Expense items. These items may

be looked up from Purchasing. Selected information will be copied from

the Supply list to the item.

Indexes on Description

Supplynumber Primary key, clustered

TypeColumn

Supplynumber int This is the numeric key for the SupplyList table. It is not copied anywhere when

the item is used on a purchase order.

Description varchar (45) This is the description of the item. It will be copied to the first line of the

purchase order.

TextLine2 varchar (45) This can be any additional information about the item. It is suggested that you

use this field for the vendor part number if there is one. This field can be

informational, or it can be printed on the purchase order.

UseLine2 tinyint Indicates whether TextLine2 should be printed on the Purchase Order:

0 = No

1 = Yes

PreferdVendor int The number of the vendor from whom you prefer to purchase this item. This

field is informational only.

Relates to: Vendor table

PurchasePrice decimal (15,4) The price of the item. This will be copied as the default price for the PO.

Units tinyint Indicates how units are priced. Valid values are:

0 = /each

1 = /100 units

2 = /1000 units

GLAcctN int Default General Ledger Account number to which purchases of this item will

normally be posted.

Relates to: GLAccounts table

DepartmentN int Default department number (associated with default GL Account number) to

which purchases of this item will normally be posted. Departments are defined

in the DeptNames table.

Relates to: DeptNames table

Page 561JohnsonGroup

Page 562: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: SupplyList Supply List

ConstraintColumn

Field Constraints

DepartmentN ([DepartmentN] >= 0 and [DepartmentN] <= 9999999)

GLAcctN ([GLAcctN] >= 0 and [GLAcctN] <= 999999999)

PreferdVendor ([PreferdVendor] >= 0 and [PreferdVendor] <= 999999999)

PurchasePrice ([PurchasePrice] >= 0 and [PurchasePrice] <= 999999)

Supplynumber ([Supplynumber] >= 1 and [Supplynumber] <= 9999999)

Units ([Units] >= 0 and [Units] <= 2)

UseLine2 ([UseLine2] >= 0 and [UseLine2] <= 1)

Page 562JohnsonGroup

Page 563: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SupportingSchd Supporting Schedule

This table defines the detail lines that appear on the Supporting Schedules

sections of the Balance Sheet and Income Statement reports generated by

your system. This table also controls into which line on the Balance Sheet

and Income Statement the amounts for each of your Supporting Schedule

items is totaled.

Indexes on Description

SupSchdAcctN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

GLAccounts SupSchdAcctN

TypeColumn

SupSchdAcctN int Key of the table.

Relates to: GLAccounts table

AcctSchdDescr varchar (30) The text to print on the Supporting Schedules to describe the G/L transactions

summed to this Supporting Schedule line.

Financialsline int Identifies the item in the FinancialFormat table which controls where the

transactions for this Supporting Schedule item will be reported and summarized

on the financial reports (Balance Sheet and Income Statement).

Relates to: FinancialFormat table

DebitCredit tinyint Indicates if the normal balance is a Debit or Credit balance.

ConstraintColumn

Field Constraints

DebitCredit ([DebitCredit] >= 0 and [DebitCredit] <= 1)

Financialsline ([Financialsline] >= 0 and [Financialsline] <= 999999)

SupSchdAcctN ([SupSchdAcctN] >= 0 and [SupSchdAcctN] <= 999999999)

Page 563JohnsonGroup

Page 564: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv101 Status Vector 101

This table is used to store information about the current status of Job

Costing.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 564JohnsonGroup

Page 565: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv102 Status Vector 102

This table is used to store information about the current status of

Accounting.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 565JohnsonGroup

Page 566: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv103 Status Vector 103

This table is used to store information about the current status of Inventory

and Webstock Inventory.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 566JohnsonGroup

Page 567: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv104 Status Vector 104

This table is used to store information about the current status of

Purchasing and Shipping.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 567JohnsonGroup

Page 568: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv105 Status Vector 105

This table is used to store information about the current status of

Scheduling.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 568JohnsonGroup

Page 569: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Sv108 Status Vector 108

This table is used to store information about the current status of Finished

Goods Inventory.

Indexes on Description

Cell Primary key, clustered

TypeColumn

Cell int A unique number used to identify the status vector cell.

Value int The current value of a status vector cell.

ConstraintColumn

Field Constraints

Page 569JohnsonGroup

Page 570: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Symbol_ID Currency Symbol ID

Contains Symbol ID's used for various currency that may be referenced by

the CurrencyExcg table. This is only used for printing a multi currency

Invoice (report).

Indexes on Description

KeyN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

CurrencyExchg SymbolID

Customer DefaultSymbolID

TypeColumn

KeyN int Numeric Key to make each record unique. Customer.DefaultSymbolID and

Currencyexchg.SymbolID fields are both related to this key.

Description varchar (40) Description for each Symbol ID

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 99)

Page 570JohnsonGroup

Page 571: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: SysMntLog SysMnt Log

System Maintenance Log - contains records for tracing operations

performed by System Maintenance, LogicSchemaCheck, purges and other

system functions.

Indexes on Description

LogKey Primary key, clustered

TypeColumn

LogKey int identity Unique key for this record.

SQLUserName varchar (100) User name on SQL Server that initiated the entry.

ClientName varchar (100) User name on client machine when entry is made from a client application.

ProgramData varchar (2,000) Entry text data describing the event.

LogDate datetime Date the entry was logged.

LogType varchar (20) Indicates the type or source of the log entry.

ConstraintColumn

Field Constraints

Page 571JohnsonGroup

Page 572: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TableMaintFOrmDefs Table Maint Form Defs

Contains the form definitions for the Table Maintenance application

Indexes on Description

TableName, RecNum Primary key, clustered

TypeColumn

RecNum int Record number of the line.

TableName varchar (40) Name of the table this form definition is for.

Dataline varchar (512) The data the table maintenance program reads to put up the form.

ConstraintColumn

Field Constraints

Page 572JohnsonGroup

Page 573: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TaxCode Tax Code

Contains the header record for a collection of taxes to be used for an

invoice line item.

Indexes on Description

SalesTaxCode Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

TaxMethod SalesTaxCode

Related Tables

APOffsets APTaxCode

AROffsets TaxCode

Customer SalesTaxCode

CustShipAddr TaxCode

GLAccountData TaxCode

JobShipments TaxCode

OpenJob TaxCode

ShipmentItems TaxCode

Vendor Code

WinInvDist TaxCode

TypeColumn

SalesTaxCode int Code for a collection of taxes, may be associated with customer, vendor,

customer ship address or job record.

TaxCodeName varchar (40) Name of tax collection

InactivePurge tinyint Flag to make this tax calculation inactive

0 = No

1 = Yes

LastChanged datetime Date last changed

ChangedBy varchar (128) Logname of person who last changed this tax record

TypeOfTax tinyint Indicates whether this tax is used for Sales or Accounts Payable.

0 = Sales Tax

1 = Accounts Payable Tax

0 = A/R - Sales Tax

1 = A/P - GST Tax

ConstraintColumn

Field Constraints

InactivePurge ([InactivePurge] >= 0 and [InactivePurge] <= 1)

SalesTaxCode ([SalesTaxCode] >= 1 and [SalesTaxCode] <= 9999999)

TypeOfTax ([TypeOfTax] >= 0 and [TypeOfTax] <= 1)

Page 573JohnsonGroup

Page 574: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TaxMethod Tax Method

Contains the details needed to calculate an individual tax item.

Indexes on Description

SalesTaxCode, TaxAccountN Primary key, clustered

TypeColumn

SalesTaxCode int Code for a collection of taxes, may be associated with customer, vendor,

customer ship address or job record.

Relates to: TaxCode table

TaxAccountN int GL Account to post taxes to for this tax.

Relates to: GLAccounts table

TaxPercent decimal (9,3) Percent to be used to calculate this tax

TaxCalctype tinyint Calculation type for this tax:

1=percent of sale total

2=percent of sale and previously calculated taxes.

TaxAuthority int Vendor number for tax authority

Relates to: Vendor table

SequenceNbr smallint Only used if TaxCalcType = 2.

Provides the order that the taxes should be applied and calculated.

ConstraintColumn

Field Constraints

SalesTaxCode ([SalesTaxCode] >= 0 and [SalesTaxCode] <= 9999999)

SequenceNbr ([SequenceNbr] >= 0 and [SequenceNbr] <= 9999)

TaxAccountN ([TaxAccountN] >= 1 and [TaxAccountN] <= 999999999)

TaxAuthority ([TaxAuthority] >= 0 and [TaxAuthority] <= 999999999)

TaxCalctype ([TaxCalctype] >= 0 and [TaxCalctype] <= 2)

TaxPercent ([TaxPercent]>=(0.10) AND [TaxPercent]<=(99))

Page 574JohnsonGroup

Page 575: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TextFile Text File

TextFile is used to store what are essentially text files in the database.

Each text file has a header row in TextFile, and then a series of rows, one

per line, in TextFileData. This is used for data that was formerly stored in

files in the "shared folder" such as the job ticket designs and the estimating

map.

Note that this table is NOT available for storing customer text files. It

should only be used by EFI Logic applications to store data. Other files

may be purged without warning.

Indexes on Description

FileKey Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

TextFileData FileKey

TypeColumn

FileKey int identity Integer identity key column.

TextFileName varchar (100) Name of the "text file", e.g. "PrePress" for a prepress job ticket.

This value is fdfgrid for tablemaint grids.

Type varchar (10) Type of the file. Note that these are fixed codes. This is not arbitrary text.

Values:

Tkt: job ticket design

CompSchema: compiled schema

Estmap: estimating map

TktExp: job ticket exploded form

TktJV: job vista custom form

Accounting: results from an Accounting process (i.e., purge)

Inventory: results from an Inventory process (i.e., purge)

Shipping: results from a Shipping process (i.e., purge)

tablemaint: custom layout for a tablemaint grid.

SubType varchar (10) Subtype of file. This is predefined codes, not arbitrary text.

Values:

Dev: developement version

Prod: production version

DevBackup: backup of development version

ProdBackup: backup of production version

Purge: results of a purge process

GridDef: Grid definition for tablemaint grid

DateLastModified datetime Date on which this "text file" was last modified. Any program that loads a file or

alters any of the rows in TextFileData should update this date.

Description varchar (200) Optional description of the file.

RootTable varchar (20) The design's root table name. For tablemaint, this is the table the grid

information refers to.

DefaultReportKey varchar (15) Foreign key to the report in zlaReportDefinition which is the default report for

this form.

Relates to: zlaReportDefinition table

Page 575JohnsonGroup

Page 576: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: TextFile Text File

FormAccessColumn varchar (20) Name of the column in zlaFormAccess table that controls access to this form.

That column is used to represent this form, so granting SQL permissions on that

column controls whether the user has read or write permission on this form.

ConstraintColumn

Field Constraints

Page 576JohnsonGroup

Page 577: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TextFileData Text File Data

TextFileData is the child table of TextFile. It holds the text lines for each

"text file" stored in the database.

Indexes on Description

Seq Primary key, clustered

TypeColumn

Seq int identity Primary key, identity column. Selecting from TextFileData for a particular

FileKey in order of Seq will return the lines of a "text file" in order.

FileKey int FileKey is the foreign key to the parent TextFile header row which identifies

which "text file" each row belongs to.

Relates to: TextFile table

Line varchar (3,900) Actual line of data

ConstraintColumn

Field Constraints

Page 577JohnsonGroup

Page 578: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Texture Texture

Customer maintained file of textures to be used to describe MatlCostCntr

items. Is passed in the Media Catalog transaction.

Indexes on Description

TextureType Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

MatlCostCntr TextureType

TypeColumn

TextureType int Numeric key value.

TextureName varchar (30) Text description of texture that will be used in JDF tickets.

ConstraintColumn

Field Constraints

TextureType ([TextureType] > 0 and [TextureType] <= 999)

Page 578JohnsonGroup

Page 579: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TransactionSet Transaction Set

Transaction sets are used to group recurring transactions that are likely to

be posted together. All transactions in a given transaction set must be the

same type of transaction (A/P or G/J) and must be for the same division.

The transaction set can be used to create an Accounting batch. It is easier

to indicate which transaction set to use to create the batch than it is to enter

every recurring transaction individually. It is best to group transactions

according to date used. You might have a number of recurring

transactions defined for paying various loans, but if the loan payments

happen on different days of the month, there is no sense in grouping them

into one transaction set.

Indexes on Description

TransSetN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

RecurringTrans TrxSetNumber

TypeColumn

TransSetN int The key to the table and the number assigned to this transaction set. Records in

the Recurring Trans(action) table have a corresponding field to indicate which

Transaction Set, if any, the transaction belongs.

SetDescription varchar (40) A brief description of this transaction set. Can include when this transaction set

is usually used (i.e., "A/P-Div 2 - run on 15th of each month").

TypeOfTrans tinyint The type of recurring transactions (3 for A/P or 7 for G/J) that can belong to this

transaction set. In order for a transaction in the Recurring Trans(action) table to

be included in this transaction set, it must be for the same type as defined here.

TransDivNum int The division number for this transaction set. In order for a transaction in the

Recurring Trans(action) table to be included in this transaction set, it must be for

the same division as defined here.

Relates to: AcctDivisions table

ConstraintColumn

Field Constraints

TransDivNum ([TransDivNum] >= 0 and [TransDivNum] <= 9999)

TransSetN ([TransSetN] >= 0 and [TransSetN] <= 9999999)

TypeOfTrans ([TypeOfTrans] >= 3 and [TypeOfTrans] <= 7)

Page 579JohnsonGroup

Page 580: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: TranslationTabs TranslationTabs

This table is currently only used by purchasing and finished goods. It

allows users to define translations or "maps" from data being imported to

data in their EFI Logic tables. This can be helpful for data coming from

external sources.

Indexes on Description

KeyN, TableKeyN Primary key, clustered

TypeColumn

KeyN int This needs to match the key from the ImportDef table.

Relates to: ImportDef table

TableKeyN int This is a numeric sequence number

TransFileName varchar (20) This is the name of the translation table that would map a specific field. This

table needs to contain KeyN and OutsideValue fields.

FieldName varchar (20) This is the field name being mapped.

ConstraintColumn

Field Constraints

KeyN ([KeyN] >= 0 and [KeyN] <= 999999)

TableKeyN ([TableKeyN] >= 0 and [TableKeyN] <= 999999)

Page 580JohnsonGroup

Page 581: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: UNSPSCommodity UNSPSC Commodity

The UNSPSCommodity table contains those UNSPSC codes which you

choose to enter. These codes can then be used to categorize your MCCs by

assigning an appropriate code to each of them.

Indexes on Description

CommodityCode Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

MatlCostCntr UNSPSCommCode

POItem UNSPSCommCode

TypeColumn

CommodityCode varchar (16) The code assigned to the category (i.e. 45.10.16.02).

CommodityDesc varchar (40) A literal description of the UNSPSC code (i.e., Offset darkroom equipment).

ConstraintColumn

Field Constraints

Page 581JohnsonGroup

Page 582: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: UpdateErrors Update Errors

Contains messages generated during real-time updating.

Indexes on Description

TxDate, TransNo Primary key, clustered

TypeColumn

TransNo bigint identity Transaction number.

TxDate datetime Date of entry into table

TxTime int Time of entry.

TxType char Transaction type.

TxData varchar (300) Transaction data.

ConstraintColumn

Field Constraints

Page 582JohnsonGroup

Page 583: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: UpdateLog Update Log

This table holds update transactions produced by Transaction Editor.

Indexes on Description

TxDate, TransNo Primary key, clustered

TypeColumn

TransNo bigint identity A unique number the identifies the transaction.

TxDate datetime The date the transaction was added to the table.

TxTime int The time (hhmm) the transaction was added to the table.

TxData varchar (300) The text of the update transaction.

ConstraintColumn

Field Constraints

Page 583JohnsonGroup

Page 584: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: UserCredentials User Credentials

For supporting secure mode in MyDC application this table is created.

This table will store passwords for employees.

Indexes on Description

UserID Primary key, clustered

TypeColumn

UserID int identity This is primary key of the table.

EmployeeN int This has foreign key reference to employee table's EmployeeN column.

Relates to: Employee table

Password varchar (500) This stores password in encrypted form for an employee.

ConstraintColumn

Field Constraints

Page 584JohnsonGroup

Page 585: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Vendor Vendor

The Vendor table contains information about each of your company's

vendors, including terms of payment. This information is used by

Purchasing, Inventory (including Webstock Inventory), and Accounting.

Records are created, maintained, and deleted through Table Maintenance;

however, you cannot delete a vendor if there are outstanding invoices for

that vendor in the APtransaction table. Refer to the Implementation

Manual for more detail on the data in this table.

The various Payee address columns are used when the name and address

for vendor payments is different from the vendor address (e.g., when the

vendor has sold it's receivables).

Indexes on Description

VendorN Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

AltVendAddr VendorN

APTransaction VendorN

VendorInvNotes VendorN

VendorNotes VendorN

Related Tables

AccountngInput VendorN

AcctCheckHeader VendorN

APBatch Vendor

Calculations VendorN

CRCDBatch Vendor

DieInventory PurchasedFrom

DirectPurchase VendorNumber

GLAccountData VendorN

JobEstMaterial VendorN

JobEstOutsidePurch VendorN

MaterialQuote VendorN

MaterialTrans VendorN

MatlCostCntr SecondryVendor

MatlSaftyData Vendor

PlannedMaterial VendorN

PurchaseOrder VendorNumber

RecurringTrans VendorNumber

RollStock Vendor

Shipments ShippingVendor

ShipMethods VendorN

Stocks VendorN

SupplyList PreferdVendor

TaxMethod TaxAuthority

WSRollInventory Vendor

TypeColumn

VendorN int A unique number which identifies the vendor. Note that Vendor 99999 is usually

a special vendor number used to record spoiled checks. By recording them in

this way, they are all grouped together on the Check Register.

VendorName varchar (24) The name of the vendor; appears as the top line of the address on statements.

VendorName will be printed as the payee on checks if the vendor's PayeeName

and LongName have not been defined.

Page 585JohnsonGroup

Page 586: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Vendor Vendor

TermsCode smallint The code for the vendor's normal terms of payment. Used by Accounting to

determine pay date for vendor's invoices. Possible values are:

1 = Pay immediately

2 = Pay by the 10th of the next month

3 = Pay by the end of the invoice month

4 = Pay by the 20th of the next month

5 = Pay by the end of the next month

6-365 = The actual number of days, up to 365,

within which the bill must be paid.

See the Implementation Manual for details.

Discount decimal (9,2) Percentage of discount. This value is used by Accounting to compute the

discount percentage you can apply when making payment within the time

specified in the Terms Code field.

AddrLine1 varchar (40) The first line of the vendor's address (street address). Does not print a blank line

if this is blank.

AddrLine2 varchar (40) Second line of vendor's address.

City varchar (30) The city to appear in the address.

StateProv varchar (4) The two-letter abbreviation for the vendor's state or province.

PostalCode varchar (15) The vendor's postal code. Enter the postal code as you want it to appear when

printed.

TelephoneN varchar (25) The vendor's voice telephone number. Include the area code, but not hyphens,

slashes, parentheses, or other punctuation.

Attention varchar (35) Attention

FaxTelephoneN varchar (25) The vendor's fax number, if any. Include the area code, but not hyphens, slashes,

parentheses, or other punctuation.

RequiresPON tinyint Indicates whether or not your PO number must be entered with any invoice

entered through Accounting.

0 = No

1 = Yes

DefaultAccount int The account number of the GL expense account to which payments to this

vendor will normally be posted. Displays in Accounting and Approve, but can

be changed there.

Relates to: GLAccounts table

DefaultDeptN int The department number (associated with the Default Account number) to which

payments to this vendor will normally be posted. This value will be displayed

automatically in the department field, but can be changed there. Departments are

defined in the DeptNames table.

Relates to: DeptNames table

FederalTaxID varchar (11) The vendor's federal tax ID if the vendor is a 1099 vendor. For the 1099 report.

D1099Vendor tinyint Indicates vendor's 1099 status:

0 = NOT a 1099 Vendor

Page 586JohnsonGroup

Page 587: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Vendor Vendor

1 = A 1099 Vendor

2 = 2nd TIN Notice Rec'd

InvDupsAllow tinyint Indicates whether Accounting will allow duplicate invoice numbers:

0 = Yes, w/Warning

1 = No

2 = Yes, w/o Warning

InactivePurge tinyint A setting that controls whether this vendor will be available as a selection in

other parts of the Logic system. If it has been marked Inactive, it will not be

available. Is this vendor currently inactive?

0 = No

1 = Yes

CountryCode varchar (3) The country for the vendor.

Relates to: Country table

LongName varchar (50) If the PayeeName is empty, the LongName is used when printing checks. If the

LongName is empty, the VendorName will be printed on the check.

Email varchar (128) The vendor's email address.

Code int The default tax code for the vendor if you use GST or VAT tax for Accounts

Payable.

Relates to: TaxCode table

PayeeName varchar (50) Name of payee for this vendor.

If this column is non-empty, the payee fields are used for payee information.

If this column is empty, and the LongName is populated, the LongName and the

standard vendor address columns are used for payee information. If the

LongName is empty, the VendorName is used with the standard address columns

PayeeAddrLine1 varchar (40) First line of payee's address. Typically the street address.

If PayeeName is non-empty this is used as part of the address when writing

checks.

PayeeAddrLine2 varchar (40) Second line of payee's address.

If PayeeName is non-empty this is used as part of the address when writing

checks.

PayeeAddrLine3 varchar (40) Third line of payee's address.

If PayeeName is non-empty this is used as part of the address when writing

checks.

PayeeCity varchar (30) Payee city.

PayeeStateProv varchar (4) Payee state or province.

If PayeeName is non-empty this is used as part of the address when writing

checks.

PayeePostalCode varchar (15) Payee postal code.

If PayeeName is non-empty this is used as part of the address when writing

checks.

Page 587JohnsonGroup

Page 588: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: Vendor Vendor

PayeeCountryCode varchar (3) Foreign key to Country table of payee country.

If PayeeName is non-empty this is used as part of the address when writing

checks.

Relates to: Country table

PayeeContact varchar (35) Payee contact.

PayeeTelephoneN varchar (25) Payee telephone number, not including extension.

PayeePhoneExt varchar (6) Payee telephone extension (if any) for PayeeTelephoneN

PayeeFaxTelephoneN varchar (25) Payee fax telephone number.

PayeeEmail varchar (128) Payee email address

AddrLine3 varchar (40) Third line of vendor's address.

PhoneExt varchar (6) Telephone extension for the number in TelephoneN.

OurAccount varchar (20) The account number that this vendor uses to identify our company (i.e., credit

card number).

PrintAcctOnCheck bit Flag to indicate whether the number by which this vendor knows us (stored in

OurAccount column of this table) should be printed on the stub(s) of the checks

we write to them. While you will probably want to print your account number

on checks to the electric company, you might not want to print your credit card

number on checks written to pay your credit card bill.

0 = No

1 = Yes

ConstraintColumn

Field Constraints

Code ([Code] >= 0 and [Code] <= 9999999)

D1099Vendor ([D1099Vendor] >= 0 and [D1099Vendor] <= 2)

DefaultAccount ([DefaultAccount] >= 0 and [DefaultAccount] <= 999999999)

DefaultDeptN ([DefaultDeptN] >= 0 and [DefaultDeptN] <= 9999999)

Discount ([Discount] >= 0 and [Discount] <= 20)

InactivePurge ([InactivePurge] >= 0 and [InactivePurge] <= 1)

InvDupsAllow ([InvDupsAllow] >= 0 and [InvDupsAllow] <= 2)

RequiresPON ([RequiresPON] >= 0 and [RequiresPON] <= 1)

TermsCode ([TermsCode]>=(1) AND [TermsCode]<=(365))

VendorN ([VendorN] >= 1 and [VendorN] <= 999999999)

Page 588JohnsonGroup

Page 589: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: VendorInvNotes Vendor Invoice Notes

Table to store notes relevant to a specific vendor invoice. Allows one

record per invoice.

Indexes on Description

VendorN, InvoiceN Primary key, clustered

TypeColumn

VendorN int The vendor for whom this invoice note was created.

Relates to: Vendor table

InvoiceN varchar (12) The invoice to which this note refers.

NoteDate datetime Date this note was added or edited.

Notes varchar (500) Text entered by user.

ReminderDate datetime If you want to be reminded of the note, this is the day on which you want the

reminder to be e-mailed. If the date is on a weekend, the reminder will be sent

on Friday.

ChangedBy varchar (128) User who last entered or edited this record.

ReminderEmailAddr varchar (128) E-mail address of the person to whom the note should be sent on the reminder

date.

ConstraintColumn

Field Constraints

Page 589JohnsonGroup

Page 590: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: VendorNotes Vendor Notes

Allow entry of notes for each vendor by date.

Indexes on Description

VendorN, SeqNbr Primary key, clustered

TypeColumn

VendorN int The vendor for whom this note was created.

Relates to: Vendor table

NoteDate datetime Most recent date this entry was made or edited.

Notes varchar (1,000) Information about this vendor as entered by the user.

ChangedBy varchar (128) User ID of last user to edit or enter this record.

SeqNbr int Internal field used by EFI Logic software.

ConstraintColumn

Field Constraints

Page 590JohnsonGroup

Page 591: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: Version Version

Estimating 3 Standards: Version information for which version of the

standards have been uploaded to this server or downloaded to this local

standards database.

Indexes on Description

LogicID Primary key, clustered

TypeColumn

LogicID int Unique ID for internal use (used on the server only).

StdsID varchar (20) Name of Standards database

CustVers int Customer version change number. This number changes whenever the standards

are edited and uploaded to the server. If the value is < 0, it indicates the

standards are currently being edited.

Est3Vers varchar (10) Current Estimating version (for compatiblity with application)

DateLastMod datetime Date the standards were last modified

Description varchar (100) Description of changes/characteristics

Server varchar (8) Not used in EFI Logic SQL.

ConstraintColumn

Field Constraints

CustVers ([CustVers] >= (-999999) and [CustVers] <= 999999)

LogicID ([LogicID] >= 0 and [LogicID] <= 9999999)

Page 591JohnsonGroup

Page 592: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WebConfigElements Web Config Elements

Reports and Web forms associated to named Web configuration(s) for

PrinterSite Internal.

Indexes on Description

WebConfigID, ElementType,

ElementKey

Primary key, clustered

TypeColumn

WebConfigID int Which named web config the row belongs to.

Relates to: WebConfiguration table

ElementType varchar (4) Either a report (REPO) or a webform (FORM).

ElementKey varchar (15) The ReportKey relationship or the Web form ID, put in character form.

ConstraintColumn

Field Constraints

WebConfigID ([WebConfigID] >= 1 and [WebConfigID] <= 999999999)

Page 592JohnsonGroup

Page 593: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WebConfiguration Web Configuration

A named list of Reports and WebForms that can be assigned to one or

more users for PrinterSite Internal.

Indexes on Description

WebConfigID Primary key, clustered

WebConfigDesc Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

WebConfigElements WebConfigID

Related Tables

Employee WebConfigID

TypeColumn

WebConfigID int identity Primary Key

WebConfigDesc varchar (40) Name of element.

ConstraintColumn

Field Constraints

WebConfigID ([WebConfigID] >= 1 and [WebConfigID] <= 999999999)

Page 593JohnsonGroup

Page 594: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WebOrderDetail Web Order Detail

Table to map web order lines to job or FG order and integrated apps.

Indexes on Description

BrandKey, WebOrderID,

WebLineN, SeqNo

Primary key, clustered

TypeColumn

BrandKey int Part of the primary key. This identifies the integration (PrinterSite Fulfillment,

Digital Storefront, etc.) that created the order. A unique number used to identify

the individual integration (in the PCafeBrand table).

Relates to: WebOrderMaster table

WebOrderID int Part of the primary key. Identifies a web order as assigned by the integration

when the order was placed.

Relates to: WebOrderMaster table

WebLineN int Part of the primary key. Identifies a web order line item as assigned by the

integration when the order was placed.

LineType tinyint Indentifies whether this item is part of an FG order or a job.

0 = job

1 = FG order

JobN int A unique number used to identify the individual job.

Relates to: OpenJob table

OrderN int A unique number used to identify the individual FG order.

Relates to: FGIOrderMast table

OrderSeqN int A unique number used to identify the individual FG order line item.

SeqNo smallint Part of the primary key. Identifies the sequence within the web order line; for

example, there could be multiple sequences if the same web line is on more than

one FG order as is the case when there are multiple destinations.

ConstraintColumn

Field Constraints

BrandKey ([BrandKey]>=(0))

JobN ([JobN]>=(0) AND [JobN]<=(999999999))

LineType ([LineType]>=(0) AND [LineType]<=(1))

OrderN ([OrderN]>=(0) AND [OrderN]<=(999999999))

OrderSeqN ([OrderSeqN]>=(0) AND [OrderSeqN]<=(9999999))

SeqNo ([SeqNo]>=(0) AND [SeqNo]<=(9999))

WebLineN ([WebLineN]>=(0))

WebOrderID ([WebOrderID]>=(0))

Page 594JohnsonGroup

Page 595: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WebOrderMaster Web Order Master

Table to map web order to integration.

Indexes on Description

BrandKey, WebOrderID Primary key, clustered

Related Tables with Foreign Keys Column

Dependent Tables

WebOrderDetail WebOrderID

TypeColumn

BrandKey int Part of the primary key. This identifies the integration (PrinterSite Fulfillment,

Digital Storefront, etc.) that created the order. A unique number used to identify

the individual integration (in the PCafeBrand table).

Relates to: PCafeBrand table

WebOrderID int Part of the primary key. Identifies a web order as assigned by the integration

when the order was placed.

CustomerN int A unique number used to identify the individual customer.

Relates to: Customer table

OrderDate datetime Date order was placed.

UserName varchar (60) Full name of the user who placed the web order.

UserLogin varchar (100) Additional user identification. Login used to access the integration.

ConstraintColumn

Field Constraints

BrandKey ([BrandKey]>=(0))

CustomerN ([CustomerN]>=(0) AND [CustomerN]<=(999999999))

WebOrderID ([WebOrderID]>=(0))

Page 595JohnsonGroup

Page 596: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinAcctBatch Win Acct Batch

Header table for Accounting batches. Contains the list of all current

batches that are in process.

Indexes on Description

BatchNo Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

APBatch BatchNumber

ARBatch BatchNumber

CRCDBatch BatchNumber

GJBatch BatchNumber

TypeColumn

BatchNo int Batch number assigned by the system for this Accounting batch. This number is

contained in the header record for all transactions in the associated tables for

each accounting group.

AR = ARBatch

AP = APBatch

CD & CR = CRCDBatch

GJ = GJBatch

Invoices = WinInvoice

PostingDate datetime Posting date entered by the user to be applied to all transactions in this batch.

AcctGroup tinyint Accounting group, or type, for this batch of accounting transactions. This Group

number determines the specific batch tables which hold the transactions for this

batch. 1=AR, 2=CR, 3=AP, 4=CD, 6=CD checks 7=GJ

Division int Accounting Division to which this batch will be posted. All transactions in a

batch must be for the same division.

Relates to: AcctDivisions table

CheckSum decimal (15,2) Proof total for all transactions in this batch.

Logname varchar (128) Operator name of the user who first opened this batch

BatchStatus smallint Contains current status of this batch

1 = ENTER Batch is being worked on

2 = MOVE Batch is being moved to AccountngInput

3 = FAILED Batch failed check

4 = RDYPOST Batch passed check; ready to post

5 = POSTOK Batch successfully posted

6 = RDYPRNT For invoices; complete, ready to print

7 = PRINTED Successful print; ready to check/post

8 = INPOST Batch is in process of being posted

9 = FAILED post

10= DELETE Batch was deleted by user

11= CALL LOGIC There is a disparity between the batch status and the status

vector requiring Logic investigation.

TypeOfBatch smallint 0 = Acct Misc, not currently used by Accounting

1 = Finished Goods Invoice (Character Based)

2 = Record Finished Goods (from A/R Memos)

3 = Windows Invoice

4 = Windows Finished Goods Invoice

5 = Windows Accounting Input

6 = Disburse (write checks)

Page 596JohnsonGroup

Page 597: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinAcctBatch Win Acct Batch

DatePostRan datetime Written by close/post after successful completion of post. Batch records will

become invisible to the user after a successful post and will be deleted 7 days

after the date stored here.

PayThruDate datetime Used by Accounts Payable - Checks screen. All transactions in a checks batch

will have the same pay thru date.

NextPmtDate datetime Used by Accounts Payable - Checks screen. All transactions in this batch will

have the same next payment date.

SourceOfBatch int Indicates how batch was created.

0 = Batch was created with Accounting

1 = Batch was created with Accounting Import option

2 = finished goods jobs where batches are automatically created by a stored

procedure at job completion for POD type jobs

AutoPost smallint Flag that tells SQL admin job to autopost this batch. This flag may be set by an

import or manually by user with proper permission levels. Checks and Invoices

batches may not be auto-posted.

ConstraintColumn

Field Constraints

AcctGroup ([AcctGroup] >= 0 and [AcctGroup] <= 10)

BatchNo ([BatchNo] >= 1 and [BatchNo] <= 999999)

BatchStatus ([BatchStatus] >= 0 and [BatchStatus] <= 99)

CheckSum ([CheckSum] >= (-999999999) and [CheckSum] <= 999999999)

Division ([Division] >= 0 and [Division] <= 9999)

TypeOfBatch ([TypeOfBatch] >= 0 and [TypeOfBatch] <= 999)

Page 597JohnsonGroup

Page 598: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinInvDist Win Invoice Distribution

Contains one record per GL account distribution per line item per invoice.

Maintained by Invoicing for all in-process invoices.

Indexes on Description

WIKey, TranNo Primary key, clustered

TypeColumn

WIKey int Key field to identify invoice.

Relates to: WinInvoice table

TranNo int A distribution record ID number unique for all records within an invoice. It

takes the form JJNNN where JJ is the TranNo from the current InvJob record

after dropping the 3 zeros and NNN is the detail sequence number within the

job. Example: [0]2012 is the second job on the Invoice and the 12th

distribution line related to the job.

SalesAcct int General ledger account number to which this distribution is logged.

Relates to: GLAccounts table

Department int Department if any, to be used with this distribution.

Relates to: DeptNames table

SalesAmt decimal (15,2) Amount to be distributed. The sum of the amounts with the same distribution

flag should be the amount on the associated Detail line.

ProductCode int The product code from the OpenJob record.

Relates to: ProductCode table

TaxesFlag smallint A code that matches the associated WinInvTax.taxesFlag records to this

distribution record.

DistFlag smallint An integer that matches the DistIdx on the WinInvJobDetail record to associate

the individual detail records with multiple distribution records.

ErrMsg1 varchar (90) This column can contain the following messages:

No default sales account assigned in the OpenJob record.

Account not found in the GLAccounts table.

Sales account <AccountNumber> is inactive.

You may not post to an inactive account.

Tax liability account not in GLAccounts table.

ErrMsg2 varchar (60) This column can contain the following message:

The distribution for this line item is not complete.

WIJobTran int Job number from the corresponding WinInvJob record (1000, 2000, etc). These

are all identical for every distribution relating to the same job.

TaxCode int Tax code used for this distribution

Relates to: TaxCode table

Page 598JohnsonGroup

Page 599: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinInvDist Win Invoice Distribution

ConstraintColumn

Field Constraints

Department ([Department] >= 0 and [Department] <= 9999999)

DistFlag ([DistFlag] >= 0 and [DistFlag] <= 999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

SalesAcct ([SalesAcct] >= 0 and [SalesAcct] <= 999999999)

SalesAmt ([SalesAmt] >= (-999999999) and [SalesAmt] <= 999999999)

TaxCode ([TaxCode] >= 0 and [TaxCode] <= 9999999)

TaxesFlag ([TaxesFlag] >= 0 and [TaxesFlag] <= 999)

TranNo ([TranNo] >= 0 and [TranNo] <= 999999)

WIJobTran ([WIJobTran] >= 0 and [WIJobTran] <= 999999)

WIKey ([WIKey] >= 1 and [WIKey] <= 999999999)

Page 599JohnsonGroup

Page 600: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinInvJobDetail Win Invoice Job Detail

Contains one record per invoice line item. Maintained by Invoicing while

a batch is in development.

Indexes on Description

WIKey, TranNo Primary key, clustered

TypeColumn

WIKey int Key field to identify invoice.

Relates to: WinInvoice table

TranNo int A unique record ID number for all records within an invoice. It takes the form

JJNNN where JJ is the TranNo from the current InvJob record after replacing

NNN with 3 zeros, and NNN is the detail sequence number within the job.

Example: [0]2012 is the second job on the Invoice and the 12th detail line

within the job.

ItemSource tinyint An integer designating the origin of the detail line.

(1) = the OpenJob record.

(2) = the data was selected from a Shipment item.

(3) = the data was selected from a Billable revision.

(4) = the data was entered by the operator and it contains an amount to be

distributed.

(5) = the data was entered by the operator and is text only.

(6) = the data originated in a finished goods shipment.

Quantity decimal (11,2) Number of items being invoiced on this line.

Description varchar (95) Line item description.

Price decimal (15,4) Price per unit for this line item.

Unit smallint Unit of measure for this line item.

e = each

c = hundred

m = thousand (Default)

Amount decimal (15,2) Quantity times price for this line item, or whatever user entered in Amount

column.

GridKey varchar (12) This contains a revision ID if it originated from a Billable Revision, or a

shipment ID if from a shipment, otherwise the field is blank.

QorF varchar (8) For lines that have been created from the selection of a shipment item:

Q = quantity related record

F = freight related record

It also acts as a key to link this line to the the corresponding column in the

Shipments Grid. It contains a Q or an F followed by the shipment ID or the

billable revision ID.

WIJobTran int Job number from the corresponding WinInvJob record (1000, 2000, etc). These

are all identical for every detail record relating to the same job.

WIJobLineN int Line display sequence number.

Page 600JohnsonGroup

Page 601: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinInvJobDetail Win Invoice Job Detail

DistFlag varchar (1) Distribution Flag.

* = the amount has been distributed and no taxes taxes were created

T = the amount has been distributed and taxes were created.

E = there is an error in the distribution of the amount. The full amount hasn't ben

distributed.

DistCount smallint The number of WinInvDist records plus the number of WinInvTax records

associated with this detail record.

DistIdx int This indicates the line's distribution status.

(-1) = it is a text line, and does not require a distribution.

(0) = this line requires distribution.

(1 to.. ) = the line has been distributed and the number acts as a key to link this

line to the corresponding lines in the Sales Distribution Grid.

DescAlign tinyint Alignment code for print formatting describing how to print this line. Takes the

following values:

0 for left justify

1 for right justify

2 for center

PriceList int ID of PriceList item used for current line item. Use of the PriceList table is

optional.

Relates to: PriceList table

FGItemNumber int On an invoice imported from a finished goods shipment this indicates the item

number being invoiced

Relates to: FGInvMaster table

TaxCode int The tax code for this shipment item provided at time of shipment

MinorReference int For FGI orders only this field holds the MinorReference number from the

shipment Item for this Invoice line item.

This will allow the printed invoice to track back to FGIOrderDtl for printing the

Customer Expense Code for the item.

The ShipmentItems record is linked via the Minor Reference to FGIOrderdetl

OrderAuditN field for Finished Goods orders.

Page 601JohnsonGroup

Page 602: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinInvJobDetail Win Invoice Job Detail

ConstraintColumn

Field Constraints

Amount ([Amount] >= (-999999999) and [Amount] <= 999999999)

DescAlign ([DescAlign] >= 0 and [DescAlign] <= 9)

DistCount ([DistCount] >= 0 and [DistCount] <= 999)

DistIdx ([DistIdx] >= (-1) and [DistIdx] <= 9999)

FGItemNumber ([FGItemNumber] >= 0 and [FGItemNumber] <= 9999999)

ItemSource ([ItemSource] >= 0 and [ItemSource] <= 9)

Price ([Price] >= (-9999999) and [Price] <= 9999999)

PriceList ([PriceList] >= 0 and [PriceList] <= 999999999)

Quantity ([Quantity] >= (-999999999) and [Quantity] <= 999999999)

TranNo ([TranNo] >= 0 and [TranNo] <= 999999)

Unit ([Unit] >= 0 and [Unit] <= 1000)

WIJobLineN ([WIJobLineN] >= 0 and [WIJobLineN] <= 999999)

WIJobTran ([WIJobTran] >= 0 and [WIJobTran] <= 999999)

WIKey ([WIKey] >= 1 and [WIKey] <= 999999999)

Page 602JohnsonGroup

Page 603: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinInvJobs Win Invoice Jobs

Contains one record per job - describing header and summary information

for a job within an invoice. Maintained by Invoicing while a batch is in

development.

Indexes on Description

WIKey, TranNo Primary key, clustered

TypeColumn

WIKey int Key field to identify invoice and all components.

Relates to: WinInvoice table

TranNo int Integer ID unique to each job within any invoice. Starts with 1000 and

increments by 1000 for each successive job. This ties to TranNo on the detail

record to associate detail records with respective job records.

Job int Job number from OpenJob table for this invoice. Adjustment invoices don't have

to be in the OpenJob table; use 999999 instead.

Relates to: OpenJob table

ShipContact varchar (35) Contact portion of the ship-to address.

ShipAddressee varchar (50) Ship-to company name.

ShipAddrLine1 varchar (40) Line 1 of the ship-to address.

ShipAddrLine2 varchar (40) Line 2 of the ship-to address.

ShipCity varchar (30) City portion of the ship-to address.

ShipStateProv varchar (4) State/province portion of the ship-to address.

ShipPostalCode varchar (15) Postal code for the ship-to address.

ShipCountryCode varchar (3) Country portion of the ship-to address.

Relates to: Country table

SubTotal decimal (15,2) Total for product on current job.

TaxTotal decimal (15,2) Total for taxes on current job.

JobTotal decimal (15,2) Sales total on current job (SubTotal + TaxTotal).

PurchaseOrderN varchar (14) Customer original purchase order number.

SalesPersonN int Salesperson ID number.

Relates to: Salesperson table

ProductCode int Product ID number.

Relates to: ProductCode table

JobDetMax int Number of job detail records associated with this job.

DistMax int Distribution sequence number used to assign next distribution record DistFlag

field. Sequences from 0,1,2,3...

TaxMax int Number of tax ID record used to assign next tax TaxFlag field. Sequences from

0,1,2,3...

Page 603JohnsonGroup

Page 604: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinInvJobs Win Invoice Jobs

PartialLabor decimal (15,2) (Partial Billing only) The value of labor cost on this job to be removed from

work-in-process when this invoice is posted. Entered manually during Invoicing.

(Optional)

PartialMatl decimal (15,2) (Partial Billing only) The value of material cost on this job to be removed from

work-in-process when this invoice is posted. Entered manually during Invoicing.

(Optional)

PartialQty decimal (9,2) (Partial Billing only) The quantity of product shipped on this invoice. Entered

manually during Invoicing. (Optional)

DistType tinyint Integer indicating how sales dollars are distributed to the general ledger.

1 = Distributed by line item.

2 = Distributed by Job sub total.

TaxCode int Initial tax code, saved for use as default on distributions for this job.

ShipAddrLine3 varchar (40) Line 3 of the ship-to address.

FGITransQty decimal (9,2) Holds the quantity of a Finished Goods item that will be transferred to Finished

Goods Inventory when a partial or final invoice is used to bill for a Finished

Goods job.

CustomerOrderN varchar (30) The order number that is printed on the invoice. Original value comes from

CustomerOrderN from the OpenJob table when the invoice is created. Can be

changed during edit of the invoice.

ConstraintColumn

Field Constraints

DistMax ([DistMax] >= 0 and [DistMax] <= 9999)

DistType ([DistType] >= 0 and [DistType] <= 2)

FGITransQty ([FGITransQty]>=(0) AND [FGITransQty]<=(9999999))

Job ([Job] >= 0 and [Job] <= 999999999)

JobDetMax ([JobDetMax] >= 0 and [JobDetMax] <= 9999999)

JobTotal ([JobTotal] >= (-999999999) and [JobTotal] <= 999999999)

PartialLabor ([PartialLabor] >= (-999999999) and [PartialLabor] <= 999999999)

PartialMatl ([PartialMatl] >= (-999999999) and [PartialMatl] <= 999999999)

PartialQty ([partialqty] >= (-9999999) and [partialqty] <= 9999999)

ProductCode ([ProductCode] >= 0 and [ProductCode] <= 9999999)

SalesPersonN ([SalesPersonN] >= 0 and [SalesPersonN] <= 9999999)

SubTotal ([SubTotal] >= (-999999999) and [SubTotal] <= 999999999)

TaxMax ([TaxMax] >= 0 and [TaxMax] <= 9999)

TaxTotal ([TaxTotal] >= (-999999999) and [TaxTotal] <= 999999999)

TranNo ([TranNo] >= 0 and [TranNo] <= 999999)

WIKey ([WIKey] >= 1 and [WIKey] <= 999999999)

Page 604JohnsonGroup

Page 605: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinInvoice Win Invoice

Contains one record per invoice - describing header and summary

information. Maintained by Invoicing while a batch is in development.

Data from this and the other WinInv files is loaded into the WinAcctBatch

during posting This file contains records for all open (not fully paid)

invoices.

Indexes on Description

WIKey Primary key, clustered

BatchNumber, WIKey Nonclustered

Related Tables with Foreign Keys Column

Dependent Tables

WinInvDist WIKey

WinInvJobDetail WIKey

WinInvJobs WIKey

WinInvTax WIKey

TypeColumn

WIKey int Key field to identify invoice.

CustomerN int The number of the customer associated with this invoice.

Relates to: Customer table

Division int Division number of company issuing invoice.

Relates to: AcctDivisions table

InvoiceDate datetime The posting and aging date of the invoice.

Type smallint Indicates type of invoice -

9 = Final

10 = Partial

11 = Adjustment

TaxN varchar (20) Tax exempt certification number. Can be printed on invoices to this customer.

TotalDue decimal (15,2) Total of TaxTotal and SubTotal.

TaxTotal decimal (15,2) Total taxes due on invoice.

SubTotal decimal (15,2) Total sales amount of invoice.

InvoiceN int Invoice number assigned by Invoicing. Zero prior to assignment.

Terms smallint Integer indicating the number of days within which payment can be expected

from the customer. Reserved for future use.

BatchNumber int Batch ID to which this invoice is assigned.

AcctTranNo int An internal counter that increments by 1000 for each job on the invoice or each

time the invoice is updated.

BillContact varchar (35) The contact at the customer responsible for paying bills.

BillAddressee varchar (50) Either the customer's name or the first line of the customer's address.

BillAddrLine1 varchar (40) First line of the bill-to address.

BillAddrLine2 varchar (40) Second line of the bill-to address.

BillCity varchar (30) City portion of the bill-to address.

BillStateProv varchar (4) State/province portion of the bill-to address.

Page 605JohnsonGroup

Page 606: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WinInvoice Win Invoice

BillPostalCode varchar (15) Postal code portion of the bill-to address.

BillCountryCode varchar (3) Country portion of the bill-to address.

Relates to: Country table

Status smallint Invoice progress indicator.

0 = Incomplete

1 = Ready

2 = Printed

3 = Reprint

4 = Being posted

5 = Posted

AuditTrail varchar (13) Filled in by close-post at time of posting with corresponding audit trail number.

MultijobFlag tinyint Flag indicating whether invoice is for one job or many.

0 = one job on invoice.

1 = more than one job on invoice.

TaxCode int Not used

BillAddrLine3 varchar (40) Third line of the bill-to address.

ConstraintColumn

Field Constraints

AcctTranNo ([AcctTranNo] >= 0 and [AcctTranNo] <= 666666)

BatchNumber ([BatchNumber] >= 0 and [BatchNumber] <= 9999999)

CustomerN ([CustomerN] >= 0 and [CustomerN] <= 999999999)

Division ([Division] >= 0 and [Division] <= 9999)

InvoiceN ([InvoiceN] >= 0 and [InvoiceN] <= 999999999)

MultijobFlag ([MultijobFlag] >= 0 and [MultijobFlag] <= 1)

Status ([Status] >= 0 and [Status] <= 999)

SubTotal ([SubTotal] >= (-999999999) and [SubTotal] <= 999999999)

TaxCode ([taxcode] >= 0 and [taxcode] <= 9999999)

TaxTotal ([TaxTotal] >= (-999999999) and [TaxTotal] <= 999999999)

Terms ([Terms] >= 0 and [Terms] <= 999)

TotalDue ([TotalDue] >= (-999999999) and [TotalDue] <= 999999999)

Type ([Type] >= 0 and [Type] <= 999)

WIKey ([WIKey] >= 1 and [WIKey] <= 999999999)

Page 606JohnsonGroup

Page 607: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WinInvTax Win Invoice Tax

Windows Invoicing tax file maintained for all in-process invoices.

Contains all tax records for each line item distribution on an invoice.

Indexes on Description

WIKey, TranNo Primary key, clustered

TypeColumn

WIKey int Key field to identify invoice.

Relates to: WinInvoice table

TranNo int A distribution record ID number unique for all records within an invoice. It

takes the form JJNNN where JJ is the TranNo from the current InvJob record

after dropping the 3 zeros and NNN is the detail sequence number within the

job. Example: [0]2012 is the second job on the Invoice and the 12th

distribution line related to the job.

TaxAcct int General ledger account number to which this tax distribution is logged.

Relates to: GLAccounts table

PercentV decimal (9,3) Tax percent of total distribution.

CalcType smallint Type of tax calculation 1= percent of sales total only, 2=percent of sales and

previous taxes

TaxAmt decimal (15,2) Tax amount on current line item distribution.

TaxesFlag smallint A code that matches an associated WinInvDist record to this tax record. These

are identical for every tax record on a specific distribution.

DistFlag smallint An integer that matches the DistIdx on the WinInvTax record to associate the

individual distribution record with multiple tax records. These are identical for

every tax record on a specific invoice line item.

WIJobTran int The job number from the corresponding WinInvJob record (1000, 2000, etc).

These are all identical for every tax relating to the same job.

ConstraintColumn

Field Constraints

CalcType ([CalcType] >= 0 and [CalcType] <= 999)

DistFlag ([DistFlag] >= 0 and [DistFlag] <= 999)

PercentV ([PercentV] >= (-99) and [PercentV] <= 99)

TaxAcct ([TaxAcct] >= 0 and [TaxAcct] <= 999999999)

TaxAmt ([TaxAmt] >= (-999999999) and [TaxAmt] <= 999999999)

TaxesFlag ([TaxesFlag] >= 0 and [TaxesFlag] <= 999)

TranNo ([TranNo] >= 0 and [TranNo] <= 999999)

WIJobTran ([WIJobTran] >= 0 and [WIJobTran] <= 999999)

WIKey ([WIKey] >= 1 and [WIKey] <= 999999999)

Page 607JohnsonGroup

Page 608: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WIPSummaryNs WIP Summary Numbers

The Work-in-Process Summary table lists the categories into which the

work-in-process costs are summarized. You assign each labor and

material cost center a work-in-process summary number. The

Work-in-Process Report uses these summary numbers to categorize the

costs. See the Implementation Manual for details.

Indexes on Description

WIPSummaryN Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

Equipment WIPSummaryN

LaborCostCntr WIPSummaryN

MatlCostCntr WIPSummaryN

ShipMethods WIPSummaryN

TypeColumn

WIPSummaryN smallint A unique number to identify the work-in-process summary category.

WIPDescription varchar (20) The description of the work-in-process summary category. The description will

print on the reports.

ShortDescript varchar (6) A short description.

ConstraintColumn

Field Constraints

WIPSummaryN ([WIPSummaryN] >= 1 and [WIPSummaryN] <= 999)

Page 608JohnsonGroup

Page 609: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WSRollExceptions Roll Exceptions

Contains information about rolls for which an error was encountered while

posting a usage in WSRollInventory. This information can be used to

manually enter the usage with corrected information.

Indexes on Description

RecordID Primary key, clustered

TypeColumn

RecordID int identity A sequential record number.

DateTimeEntered datetime The date and time that the exception was added to the table.

PlantRollID varchar (18) The ID of the roll.

MCC int The roll's material code.

Run int The run that the roll was used on.

Job int The job that the roll was used on.

SubJobNumber int The subjob that the roll was used on.

PressFormID int The form that the roll was used on.

Prefix tinyint The prefix assigned to the usage.

Press int The machine that the roll was used on.

RollStandID tinyint The rollstand on which the roll was mounted.

Employee int The employee number of the roll tender.

Shift tinyint The roll tender's shift.

DateUsed datetime The shiftdate assigned to this usage.

ActiveRollStartDate datetime The date that the roll started to be consumed.

ActiveRollStartTime int The time that the roll started to be consumed.

ActiveRollEndDate datetime The date on which the roll usage ended.

ActiveRollEndTime int The time at which the roll usage ended.

RollWeight decimal (7,0) The starting weight of the roll.

WeightUsed decimal (7,0) The weight of the paper used.

WeightLeft decimal (7,0) The weight of the paper remaining on the roll.

LengthUsed decimal (7,0) The length of paper used.

WrapperWeight decimal (7,0) The weight of the brown paper wrapper.

StripWaste decimal (7,0) The weight of white paper stripped from the roll.

CoreWaste decimal (7,0) The weight of the core.

WeightOfDamage decimal (7,0) Weight of any damaged paper.

DamageCode smallint A code that indicates the type of damage to the roll, if any.

RejectCode smallint A code that indicates why a roll was rejected.

Page 609JohnsonGroup

Page 610: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WSRollExceptions Roll Exceptions

Disposition varchar (20) The disposition of the roll; BUTT, FINISHED, REJECTED.

Remarks varchar (100) Any remarks added by the roll tender.

FailureMsg varchar (100) The error message indicatiing why the usage could not be posted to

WSRollInventory.

ConstraintColumn

Field Constraints

Page 610JohnsonGroup

Page 611: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: WSRollInventory Roll Inventory

THIS TABLE IS OBSOLETE AS OF RELEASE 24.

In release 24, the Roll Stock Inventory system replaces the Web Stock

Inventory system. The WSRollInventory is converted to two tables,

RollStock and RollTransactions. Once the conversion takes place this table

is no longer used.

Indexes on Description

RecordID Primary key, clustered

TypeColumn

RecordID int identity Field to provide a unique key.

MCC int Material Cost Center of roll. Identifies type of paper.

Relates to: MatlCostCntr table

PurchaseOrder int The Purchase Order entered when the roll was first received.

Rolls entered as inventory adjustments have a value of 0.

POItem smallint The PO Item number of the roll on the original Purchase Order.

Rolls entered as inventory adjustments have a value of 0.

Vendor int Vendor copied from the Purchase Order when the roll is first received. Rolls

entered as inventory adjustments have a vendor entered by the user to indicated

inventory adjustments.

Relates to: Vendor table

DateReceived datetime The date the roll is received into the warehouse. For a butt roll record, this date

is copied from the Date Used field in the original roll record.

PurchasePrice decimal (15,4) The purchase price copied from the Purchase Order when the

roll is received. This is the rate at which inventory is valued.

Rolls entered as inventory adjustments have a purchase price

entered at the time they are entered.

PlantRollID varchar (18)

MfgrRollID varchar (18)

VehicleNumber varchar (10)

RollWeight decimal (7,0)

RollLength decimal (7,0)

Warehouse smallint

Location varchar (8)

PaperCondition smallint

Relates to: BadPaperCodes table

LastInventoryDate datetime

Job int The job on which this roll was used.

Relates to: OpenJob table

SubJobNumber int

Page 611JohnsonGroup

Page 612: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WSRollInventory Roll Inventory

ProductionJob int

Relates to: OpenJob table

DateUsed datetime

WeightUsed decimal (7,0)

LengthUsed decimal (7,0)

ButtRollFlag tinyint A flag that indicates that this is a butt roll.

0 = full roll

1 = butt roll

Employee int Employee who recorded usage of this roll.

Relates to: Employee table

Shift tinyint Shift on which this roll was used.

Press int Machine on which this roll was used.

Relates to: Equipment table

GrossImpressions int

AICCost decimal (9,2)

Prefix tinyint A code indicating that the job was re-worked.

CloseDate datetime

PressFormID smallint Form for which this roll was used.

WrapperWeight decimal (7,0) Weight of brown paper wrapper.

StripWaste decimal (7,0) Weight of white waste stripped from roll.

CoreWaste decimal (7,0)

DamageCode smallint

Relates to: BadPaperCodes table

WeightOfDamage decimal (7,0)

RollStandID tinyint The number of the rollstand on which this roll was mounted.

ActiveRollStartDate datetime The date that the roll started to be used as recorded by PaperMonitor.

ActiveRollStartTime int The time that the roll started to be used as recorded by PaperMonitor.

ActiveRollEndDate datetime The date that the roll use ended as recorded by PaperMonitor.

ActiveRollEndTime int The time that the roll use ended as recorded by PaperMonitor.

Remarks varchar (100) Comments entered by roll tender.

Disposition varchar (20) Disposition of the roll

Values are:

FINISHED

REJECTED

BUTT

PARTIAL

UNUSED

TransSource varchar (20)

Page 612JohnsonGroup

Page 613: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: WSRollInventory Roll Inventory

LastChanged datetime

ChangedBy varchar (200)

MeasuredLength decimal (6,0) Length of paper used as measured by the PaperMonitor.

DateReceiptRecorded datetime Date and time on which the receipt of the roll was inserted into the

WSRollInventory table.

ConstraintColumn

Field Constraints

ActiveRollEndTime ([ActiveRollEndTime] >= 0 and [ActiveRollEndTime] <= 999999)

ActiveRollStartTime ([ActiveRollStartTime] >= 0 and [ActiveRollStartTime] <= 999999)

AICCost ([AICCost] >= 0 and [AICCost] <= 999999999)

ButtRollFlag ([ButtRollFlag] >= 0 and [ButtRollFlag] <= 1)

CoreWaste ([CoreWaste] >= 0 and [CoreWaste] <= 99999)

DamageCode ([DamageCode] >= 0 and [DamageCode] <= 99)

Employee ([Employee] >= 0)

GrossImpressions ([GrossImpressions] >= 0 and [GrossImpressions] <= 999999)

Job ([Job] >= 0 and [Job] <= 999999999)

LengthUsed ([Lengthused] >= 0 and [Lengthused] <= 9999999)

MCC ([MCC] >= 1 and [MCC] <= 9999999)

MeasuredLength ([MeasuredLength] >= 0 and [MeasuredLength] <= 999999)

PaperCondition ([PaperCondition] >= 0 and [PaperCondition] <= 99)

POItem ([POItem] >= 0)

Prefix ([Prefix] >= 0 and [Prefix] <= 2)

Press ([Press] >= 0)

PressFormID ([PressFormID] >= 0 and [PressFormID] <= 9999)

ProductionJob ([ProductionJob] >= 0 and [ProductionJob] <= 999999999)

PurchaseOrder ([PurchaseOrder] >= 0)

PurchasePrice ([PurchasePrice] >= 0 and [PurchasePrice] <= 999999)

RollLength ([RollLength] >= 0 and [RollLength] <= 9999999)

RollStandID ([RollStandID] >= 0 and [RollStandID] <= 9)

RollWeight ([RollWeight] >= 0 and [RollWeight] <= 99999)

Shift ([Shift] >= 0 and [Shift] <= 9)

StripWaste ([StripWaste] >= 0 and [StripWaste] <= 9999)

SubJobNumber ([SubJobNumber] >= 0 and [SubJobNumber] <= 9999)

Vendor ([Vendor] >= 0 and [Vendor] <= 999999999)

Warehouse ([Warehouse] >= 0 and [Warehouse] <= 99)

WeightOfDamage ([WeightOfDamage] >= 0 and [WeightOfDamage] <= 99999)

WeightUsed ([WeightUsed] >= 0 and [WeightUsed] <= 99999)

WrapperWeight ([WrapperWeight] >= 0 and [WrapperWeight] <= 999)

Page 613JohnsonGroup

Page 614: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaCustRepAccess zla Cust Rep Access

Internal use only.

zlaCustRepAccess is used to determine access to custom reports set up

with custom permissions. The columns are named ReportPerm1,

ReportPerm2,... ReportPerm250. There is therefore a limit of 250 custom

permissions allowed.

The permissions can be set up and assigned to custom reports as those

reports are set up in Report Monitor. See also zlaCustRepAccessInfo

Indexes on Description

TypeColumn

ReportPerm1 bit

ReportPerm2 bit

ReportPerm3 bit

ReportPerm4 bit

ReportPerm5 bit

ReportPerm6 bit

ReportPerm7 bit

ReportPerm8 bit

ReportPerm9 bit

ReportPerm10 bit

ReportPerm11 bit

ReportPerm12 bit

ReportPerm13 bit

ReportPerm14 bit

ReportPerm15 bit

ReportPerm16 bit

ReportPerm17 bit

ReportPerm18 bit

ReportPerm19 bit

ReportPerm20 bit

ReportPerm21 bit

ReportPerm22 bit

ReportPerm23 bit

ReportPerm24 bit

ReportPerm25 bit

Page 614JohnsonGroup

Page 615: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm26 bit

ReportPerm27 bit

ReportPerm28 bit

ReportPerm29 bit

ReportPerm30 bit

ReportPerm31 bit

ReportPerm32 bit

ReportPerm33 bit

ReportPerm34 bit

ReportPerm35 bit

ReportPerm36 bit

ReportPerm37 bit

ReportPerm38 bit

ReportPerm39 bit

ReportPerm40 bit

ReportPerm41 bit

ReportPerm42 bit

ReportPerm43 bit

ReportPerm44 bit

ReportPerm45 bit

ReportPerm46 bit

ReportPerm47 bit

ReportPerm48 bit

ReportPerm49 bit

ReportPerm50 bit

ReportPerm51 bit

ReportPerm52 bit

ReportPerm53 bit

ReportPerm54 bit

ReportPerm55 bit

ReportPerm56 bit

ReportPerm57 bit

ReportPerm58 bit

ReportPerm59 bit

ReportPerm60 bit

Page 615JohnsonGroup

Page 616: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm61 bit

ReportPerm62 bit

ReportPerm63 bit

ReportPerm64 bit

ReportPerm65 bit

ReportPerm66 bit

ReportPerm67 bit

ReportPerm68 bit

ReportPerm69 bit

ReportPerm70 bit

ReportPerm71 bit

ReportPerm72 bit

ReportPerm73 bit

ReportPerm74 bit

ReportPerm75 bit

ReportPerm76 bit

ReportPerm77 bit

ReportPerm78 bit

ReportPerm79 bit

ReportPerm80 bit

ReportPerm81 bit

ReportPerm82 bit

ReportPerm83 bit

ReportPerm84 bit

ReportPerm85 bit

ReportPerm86 bit

ReportPerm87 bit

ReportPerm88 bit

ReportPerm89 bit

ReportPerm90 bit

ReportPerm91 bit

ReportPerm92 bit

ReportPerm93 bit

ReportPerm94 bit

ReportPerm95 bit

Page 616JohnsonGroup

Page 617: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm96 bit

ReportPerm97 bit

ReportPerm98 bit

ReportPerm99 bit

ReportPerm100 bit

ReportPerm101 bit

ReportPerm102 bit

ReportPerm103 bit

ReportPerm104 bit

ReportPerm105 bit

ReportPerm106 bit

ReportPerm107 bit

ReportPerm108 bit

ReportPerm109 bit

ReportPerm110 bit

ReportPerm111 bit

ReportPerm112 bit

ReportPerm113 bit

ReportPerm114 bit

ReportPerm115 bit

ReportPerm116 bit

ReportPerm117 bit

ReportPerm118 bit

ReportPerm119 bit

ReportPerm120 bit

ReportPerm121 bit

ReportPerm122 bit

ReportPerm123 bit

ReportPerm124 bit

ReportPerm125 bit

ReportPerm126 bit

ReportPerm127 bit

ReportPerm128 bit

ReportPerm129 bit

ReportPerm130 bit

Page 617JohnsonGroup

Page 618: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm131 bit

ReportPerm132 bit

ReportPerm133 bit

ReportPerm134 bit

ReportPerm135 bit

ReportPerm136 bit

ReportPerm137 bit

ReportPerm138 bit

ReportPerm139 bit

ReportPerm140 bit

ReportPerm141 bit

ReportPerm142 bit

ReportPerm143 bit

ReportPerm144 bit

ReportPerm145 bit

ReportPerm146 bit

ReportPerm147 bit

ReportPerm148 bit

ReportPerm149 bit

ReportPerm150 bit

ReportPerm151 bit

ReportPerm152 bit

ReportPerm153 bit

ReportPerm154 bit

ReportPerm155 bit

ReportPerm156 bit

ReportPerm157 bit

ReportPerm158 bit

ReportPerm159 bit

ReportPerm160 bit

ReportPerm161 bit

ReportPerm162 bit

ReportPerm163 bit

ReportPerm164 bit

ReportPerm165 bit

Page 618JohnsonGroup

Page 619: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm166 bit

ReportPerm167 bit

ReportPerm168 bit

ReportPerm169 bit

ReportPerm170 bit

ReportPerm171 bit

ReportPerm172 bit

ReportPerm173 bit

ReportPerm174 bit

ReportPerm175 bit

ReportPerm176 bit

ReportPerm177 bit

ReportPerm178 bit

ReportPerm179 bit

ReportPerm180 bit

ReportPerm181 bit

ReportPerm182 bit

ReportPerm183 bit

ReportPerm184 bit

ReportPerm185 bit

ReportPerm186 bit

ReportPerm187 bit

ReportPerm188 bit

ReportPerm189 bit

ReportPerm190 bit

ReportPerm191 bit

ReportPerm192 bit

ReportPerm193 bit

ReportPerm194 bit

ReportPerm195 bit

ReportPerm196 bit

ReportPerm197 bit

ReportPerm198 bit

ReportPerm199 bit

ReportPerm200 bit

Page 619JohnsonGroup

Page 620: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm201 bit

ReportPerm202 bit

ReportPerm203 bit

ReportPerm204 bit

ReportPerm205 bit

ReportPerm206 bit

ReportPerm207 bit

ReportPerm208 bit

ReportPerm209 bit

ReportPerm210 bit

ReportPerm211 bit

ReportPerm212 bit

ReportPerm213 bit

ReportPerm214 bit

ReportPerm215 bit

ReportPerm216 bit

ReportPerm217 bit

ReportPerm218 bit

ReportPerm219 bit

ReportPerm220 bit

ReportPerm221 bit

ReportPerm222 bit

ReportPerm223 bit

ReportPerm224 bit

ReportPerm225 bit

ReportPerm226 bit

ReportPerm227 bit

ReportPerm228 bit

ReportPerm229 bit

ReportPerm230 bit

ReportPerm231 bit

ReportPerm232 bit

ReportPerm233 bit

ReportPerm234 bit

ReportPerm235 bit

Page 620JohnsonGroup

Page 621: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaCustRepAccess zla Cust Rep Access

ReportPerm236 bit

ReportPerm237 bit

ReportPerm238 bit

ReportPerm239 bit

ReportPerm240 bit

ReportPerm241 bit

ReportPerm242 bit

ReportPerm243 bit

ReportPerm244 bit

ReportPerm245 bit

ReportPerm246 bit

ReportPerm247 bit

ReportPerm248 bit

ReportPerm249 bit

ReportPerm250 bit

ConstraintColumn

Field Constraints

Page 621JohnsonGroup

Page 622: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaCustRepAccessInfo zla Cust Rep Access Info

Provides a user description for custom permissions assigned to user roles

for custom reports.

Indexes on Description

PermCol Primary key, clustered

TypeColumn

PermCol varchar (15) The column in zlaCustRepAccess associated with this description.

PermDesc varchar (45) Description of the custom report permission.

ConstraintColumn

Field Constraints

Page 622JohnsonGroup

Page 623: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaEnv Database Definition

This table contains the basic info concerning the database and its

installation. For internal use only.

Indexes on Description

ID Primary key, clustered

TypeColumn

ID varchar (60) This ID field will be used as the main Company ID name on most reports,

primarily Accounting reports.

DateCreated datetime The date the database was originally created.

DateUpgraded datetime The last date that a Database Upgrade was performed by System Maintenance.

RelVersion decimal (16,2) The Release version of software with which this database is associated.

ModVersion int The modification number of the last modification applied to this database. This

number controls one aspect of the updates performed during a database update.

Description varchar (150) Description of the use of the database. This is most important when there are

multiple database in use for testing to identify the use and ownership of a

particular database.

FileRoot varchar (200) The path used for Admin Jobs (purges, Acct balance test, etc.) to save their Log

files detailing what actions the job performed.

DBVersion int Version of database change to which this database has been updated.

RenumTable varchar (20) If there are currently records in the RenumberKey table to be used to renumber a

table from System Maintenance, this field will reflect the table to which they

apply.

BuildVersion smallint The number of the current software build to which this database has been

updated.

UniqueID varchar (50) This should either be an empty string, or a unique identifier across all EFI Logic

SQL systems. It is only necessary to be unique when multiple EFI Logic SQL

systems are tied together. For example, when multiple systems all register with

the same PNI.

Licenses varchar (200) Used for EFI Logic license validation

LicenseInfo varchar (100) Text version of licensing information for display.

UpdateFail bit Last database update failed.

ConstraintColumn

Field Constraints

Page 623JohnsonGroup

Page 624: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaFormAccess zla Form Access

Internal use only.

zlaFormAccess is used to determine access to job ticket forms (including

job vista custom tabs). The columns are named Form1, Form2, Form3 ...

Form250.

Each jobticket form has a row in table TextFile. Column

TextFile.FormAccessColumn lists the name of the zlaFormAccess column

that controls permissions for that form. If a SQL user has SELECT

permission on a zlaFormAccess column, he has read on the equivalent

form. If the user has UPDATE permission, he has read and write on the

form.

Indexes on Description

TypeColumn

Form1 bit

Form2 bit

Form3 bit

Form4 bit

Form5 bit

Form6 bit

Form7 bit

Form8 bit

Form9 bit

Form10 bit

Form11 bit

Form12 bit

Form13 bit

Form14 bit

Form15 bit

Form16 bit

Form17 bit

Form18 bit

Form19 bit

Form20 bit

Form21 bit

Form22 bit

Form23 bit

Page 624JohnsonGroup

Page 625: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form24 bit

Form25 bit

Form26 bit

Form27 bit

Form28 bit

Form29 bit

Form30 bit

Form31 bit

Form32 bit

Form33 bit

Form34 bit

Form35 bit

Form36 bit

Form37 bit

Form38 bit

Form39 bit

Form40 bit

Form41 bit

Form42 bit

Form43 bit

Form44 bit

Form45 bit

Form46 bit

Form47 bit

Form48 bit

Form49 bit

Form50 bit

Form51 bit

Form52 bit

Form53 bit

Form54 bit

Form55 bit

Form56 bit

Form57 bit

Form58 bit

Page 625JohnsonGroup

Page 626: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form59 bit

Form60 bit

Form61 bit

Form62 bit

Form63 bit

Form64 bit

Form65 bit

Form66 bit

Form67 bit

Form68 bit

Form69 bit

Form70 bit

Form71 bit

Form72 bit

Form73 bit

Form74 bit

Form75 bit

Form76 bit

Form77 bit

Form78 bit

Form79 bit

Form80 bit

Form81 bit

Form82 bit

Form83 bit

Form84 bit

Form85 bit

Form86 bit

Form87 bit

Form88 bit

Form89 bit

Form90 bit

Form91 bit

Form92 bit

Form93 bit

Page 626JohnsonGroup

Page 627: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form94 bit

Form95 bit

Form96 bit

Form97 bit

Form98 bit

Form99 bit

Form100 bit

Form101 bit

Form102 bit

Form103 bit

Form104 bit

Form105 bit

Form106 bit

Form107 bit

Form108 bit

Form109 bit

Form110 bit

Form111 bit

Form112 bit

Form113 bit

Form114 bit

Form115 bit

Form116 bit

Form117 bit

Form118 bit

Form119 bit

Form120 bit

Form121 bit

Form122 bit

Form123 bit

Form124 bit

Form125 bit

Form126 bit

Form127 bit

Form128 bit

Page 627JohnsonGroup

Page 628: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form129 bit

Form130 bit

Form131 bit

Form132 bit

Form133 bit

Form134 bit

Form135 bit

Form136 bit

Form137 bit

Form138 bit

Form139 bit

Form140 bit

Form141 bit

Form142 bit

Form143 bit

Form144 bit

Form145 bit

Form146 bit

Form147 bit

Form148 bit

Form149 bit

Form150 bit

Form151 bit

Form152 bit

Form153 bit

Form154 bit

Form155 bit

Form156 bit

Form157 bit

Form158 bit

Form159 bit

Form160 bit

Form161 bit

Form162 bit

Form163 bit

Page 628JohnsonGroup

Page 629: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form164 bit

Form165 bit

Form166 bit

Form167 bit

Form168 bit

Form169 bit

Form170 bit

Form171 bit

Form172 bit

Form173 bit

Form174 bit

Form175 bit

Form176 bit

Form177 bit

Form178 bit

Form179 bit

Form180 bit

Form181 bit

Form182 bit

Form183 bit

Form184 bit

Form185 bit

Form186 bit

Form187 bit

Form188 bit

Form189 bit

Form190 bit

Form191 bit

Form192 bit

Form193 bit

Form194 bit

Form195 bit

Form196 bit

Form197 bit

Form198 bit

Page 629JohnsonGroup

Page 630: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form199 bit

Form200 bit

Form201 bit

Form202 bit

Form203 bit

Form204 bit

Form205 bit

Form206 bit

Form207 bit

Form208 bit

Form209 bit

Form210 bit

Form211 bit

Form212 bit

Form213 bit

Form214 bit

Form215 bit

Form216 bit

Form217 bit

Form218 bit

Form219 bit

Form220 bit

Form221 bit

Form222 bit

Form223 bit

Form224 bit

Form225 bit

Form226 bit

Form227 bit

Form228 bit

Form229 bit

Form230 bit

Form231 bit

Form232 bit

Form233 bit

Page 630JohnsonGroup

Page 631: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaFormAccess zla Form Access

Form234 bit

Form235 bit

Form236 bit

Form237 bit

Form238 bit

Form239 bit

Form240 bit

Form241 bit

Form242 bit

Form243 bit

Form244 bit

Form245 bit

Form246 bit

Form247 bit

Form248 bit

Form249 bit

Form250 bit

ConstraintColumn

Field Constraints

Page 631JohnsonGroup

Page 632: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaProgAccess Program Access Definition

This table is used to determine role and user access to all functions in the

EFI Logic database. Column names are used as permission to be given.

For internal use only.

Indexes on Description

TypeColumn

AC3 bit

RunList bit

TxEditor bit

WinMsr bit

Dlw bit

E3StdEdit bit

Est3 bit

EstRecalc bit

Open bit

RunOrder bit

VistaView bit

JJView bit

JobTkt bit

TktDesign bit

WinPurch bit

Invent bit

Invoicing bit

Passport bit

printCafe bit

QuickQuote bit

PLEditor bit

Schedule bit

SchedView bit

SchResEdit bit

Shipment bit

ShipView bit

FGOrder bit

WinAcct bit

Winfdf bit

Page 632JohnsonGroup

Page 633: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

RepMonitor bit

DCollect bit

JobCostRep bit

acct_G1 bit

acct_G2 bit

acct_G3 bit

acct_G4 bit

acct_G5 bit

acct_G6 bit

acct_G7 bit

acct_G8 bit

custInquir bit

vendInquir bit

acctinit bit

acctpurge bit

acctstat bit

adj_acct bit

adj_cust bit

adj_vend bit

adjust bit

agerepc bit

agerepv bit

approve bit

audrepa bit

audrepca bit

audrepcc bit

audrepco bit

audrepva bit

audrepvd bit

audrepvo bit

badpaper bit

balsheet bit

bldbat bit

boerepap bit

boerepar bit

Page 633JohnsonGroup

Page 634: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

boerepcd bit

boerepcr bit

boerepgj bit

budgetmnt bit

cashrec bit

chkmrk bit

chkrec bit

chkrep bit

close_list bit

credit bit

cshflo bit

custinfo bit

custmnt bit

datechg bit

diemnt bit

disbpro bit

divnames bit

dptnames bit

dptsc bit

editrcv bit

emplist bit

equip bit

exprep bit

fgpost bit

fgpurge bit

finfrmt bit

fixasset bit

form_1099 bit

form_1099f bit

form_1099s bit

fylist bit

glmnt bit

glrep bit

glreptb bit

inavarep bit

Page 634JohnsonGroup

Page 635: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

incstmtb bit

incstmtc bit

incstmtp bit

inrep bit

invprg bit

invrct bit

invrec bit

invrep bit

invver bit

irec_form bit

issue bit

jjeditrev bit

jnlrepap bit

jnlrepar bit

jnlrepcd bit

jnlrepcr bit

jnlrepgj bit

jobsum bit

jv_combo bit

jv_reopen bit

lclist bit

locadd bit

maillist bit

mclist bit

mclslist bit

msds bit

mtcrep bit

oc bit

oldnew bit

Order bit

parm bit

pcnames bit

poprice bit

porappr bit

porstat bit

Page 635JohnsonGroup

Page 636: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

post bit

post_jrnl bit

postdate bit

pplist bit

prepostjnl bit

price bit

prlist bit

rcodes bit

receive bit

revrep bit

rtlist bit

sales_ac bit

salestax bit

shipbol bit

shipedit bit

shipimport bit

shiplabl bit

shipplan bit

shipstarep bit

shipjobrep bit

shiplogrep bit

shippack bit

shipprg bit

shiptomnt bit

shipupdt bit

sic bit

smethod bit

smlist bit

statcode bit

stdtext bit

stktyplist bit

strepco bit

strepv bit

supply bit

supsched bit

Page 636JohnsonGroup

Page 637: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

svector bit

taxmethod bit

trsetmnt bit

vendmnt bit

voc bit

wfdf_106 bit

wfdf_108 bit

wfdf_110 bit

wfdf_111 bit

wfdf_112 bit

wfdf_1154 bit

wfdf_116 bit

wfdf_118 bit

wfdf_122 bit

wfdf_132 bit

wfdf_138 bit

wfdf_141 bit

wfdf_142 bit

wfdf_144 bit

wfdf_153 bit

wfdf_157 bit

wfdf_160 bit

wfdf_161 bit

wfdf_162 bit

wfdf_164 bit

wfdf_165 bit

wfdf_170 bit

wfdf_181 bit

wfdf_185 bit

wfdf_186 bit

wfdf_187 bit

wfdf_188 bit

wfdf_189 bit

wfdf_196 bit

wfdf_2117 bit

Page 637JohnsonGroup

Page 638: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

wfdf_2170 bit

wfdf_2173 bit

wfdf_2174 bit

wfdf_2175 bit

wfdf_2177 bit

wfdf_2179 bit

customfiles bit

wininvoice bit

wipsum bit

yrsmnt bit

zero bit

ord_cancel bit

jobrep bit

SysMnt bit

comborep bit

pororcv bit

porrtis bit

porjrnl bit

porjobc bit

wiprep bit

wfdf_2166 bit

webstk bit

papermonit bit

wfdf_900 bit

wfdf_901 bit

Est3Util bit

acctInquir bit

ListAllBat bit

wfdf_226 bit

schEdtJFrm bit

pcModQuote bit

psInternal bit

Page 638JohnsonGroup

Page 639: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess Program Access Definition

ConstraintColumn

Field Constraints

Page 639JohnsonGroup

Page 640: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaProgAccess2 Program Access Definition 2

This table is used to determine role and user access to all functions in the

EFI Logic database. Column names are used as permission to be given.

For internal use only.

Indexes on Description

TypeColumn

fginv bit

fgedtorder bit

fgordrep bit

fginit bit

fgasb bit

fgaimport bit

fgoimport bit

fgacrep bit

fgtempl bit

fgavrep bit

fganal bit

fgbkord bit

fgdist bit

fgivarep bit

fgcost bit

fgdistrep bit

fgwkord bit

fgorstat bit

fgasbrep bit

acctImport bit

inactcust bit

aptax bit

InvNotes bit

CustNotes bit

cnotes bit

wfdf_107 bit

pocustom bit

wfdf_226 bit

SysMnt bit

Page 640JohnsonGroup

Page 641: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess2 Program Access Definition 2

costdate bit

renumber bit

prepostbat bit

taxcode bit

editcost bit

wfdf_902 bit

commission bit

wfdf_custm bit

catchange bit

wfdf_903 bit

disbsum bit

disbsumnon bit

fgwebwork bit

EdtCustRep bit

DCManager bit

fylist bit

wfdf_176 bit

pocostvar bit

country bit

estcode bit

logos bit

parentcomp bit

prefix bit

svccharge bit

shifts bit

wfdf_166 bit

wfdf_3161 bit

fomcredits bit

wfdf_904 bit

wfdf_1101 bit

wfdf_1102 bit

wfdf_1106 bit

jdfdevice bit

jdftask bit

jdfwrkctr bit

Page 641JohnsonGroup

Page 642: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess2 Program Access Definition 2

texture bit

AAJournal bit

autopost bit

partialbil bit

Planning bit

PlanResEd bit

AltApprove bit

wfdf_2149 bit

wfdf_1109 bit

wfdf_1113 bit

jdfdvwkctr bit

jdfopcode bit

wfdf_2111 bit

wfdf_2168 bit

unsps bit

wfdf_2112 bit

wfdf_2114 bit

astatement bit

duerep bit

etarep bit

labrep bit

payrep bit

perep bit

prdrep bit

smrep bit

valrep bit

schedrep bit

planrep bit

CanClosePO bit

PSIntAdmin bit

rs_edit bit

rs_recv bit

rs_usage bit

rs_recon bit

reprcheck bit

Page 642JohnsonGroup

Page 643: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess2 Program Access Definition 2

edtPrdHold bit

rs_reports bit

voidchkrep bit

reconcile bit

wfdf_2190 bit

contacts bit

fgirec bit

fgirecform bit

popurge bit

rs_purge bit

webordsum bit

wfdf_3170 bit

connector bit

vendornote bit

veninvnote bit

vnotes bit

budgetrpt bit

AccountRep bit

Est3Rep bit

FGRep bit

InventRep bit

MaintRep bit

PurchRep bit

QQRep bit

ShipRep bit

SysMntRep bit

InvoiceRep bit

JobTickRep bit

fgordsrc bit

currexchg bit

fgordtyp bit

fgpromotn bit

resrctype bit

symbolid bit

Page 643JohnsonGroup

Page 644: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

(Cont'd)Table: zlaProgAccess2 Program Access Definition 2

ConstraintColumn

Field Constraints

Page 644JohnsonGroup

Page 645: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportDefinition Report Definition

This table holds the details of Logic and custom reports. For internal use

only.

Indexes on Description

ReportKey Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

TextFile DefaultReportKey

zlaReportListContent ReportKey

TypeColumn

ReportKey varchar (15) Unique alpha key identifying a particular report defintion. Custom report entries

will begin with "Custom".

Name varchar (50) Descriptive name for report

InputCategory varchar (15) Defines the input group that provides the input form for the report.

AppLocationKey varchar (50) Identifies the application with which this report is installed.

Path varchar (256) Relative path to report file for Logic reports and full path to custom reports.

AppType tinyint Currently the only legal values are:

0 = Crystal report

1 = Other

InputKey varchar (15) Identifies the input form used for this report

PermissionKey varchar (15) Permission required for a user to be able to run the report.

IsCustom bit Whether report is a Logic report or custom report.

InternalOnly bit Flag to indicate that this report is only available for internal use.

TableAssociation varchar (20) Used by Table Maintenance to associate custom reports with custom tables. In

this case it has the "file number" of the table.

Also used to indicate the "root table" of the report by custom applications based

on the Job Ticket. This is the table that the report is built around. For example,

job reports are built around the "OpenJob" table.

ReportImageKey int Key to zlaReportImage for reports that are stored in the database.

Suppress bit Flag indicating that this Logic report should be suppressed from the report list.

CustomData bit Flag indicating that the report uses custom data and should not be directed to the

current Logic database.

ConstraintColumn

Field Constraints

AppType ([AppType] >= 0 and [AppType] <= 1)

Page 645JohnsonGroup

Page 646: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportImage Report Image

This table holds the report files for system level custom reports.

Indexes on Description

ReportImageKey Primary key, clustered

TypeColumn

ReportImageKey int Key field used in zlaReportDefinition to identify image record.

SourceFileName varchar (256) Path to file last used to update report file.

LastChanged datetime Date and time file was last updated.

ChangedBy varchar (128) User name of person last updating this file

ReportFile image Field containing file for report.

ConstraintColumn

Field Constraints

Page 646JohnsonGroup

Page 647: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportList Report List

Identifies the report lists used by the system. For internal use only.

Indexes on Description

ListID Primary key, clustered

Related Tables with Foreign Keys Column

Related Tables

zlaReportListContent ListID

TypeColumn

ListID varchar (15) Alpha key to identify list.

Name varchar (25) Descriptive name for list (used in Report Monitor)

Abbreviation varchar (8) Short name for list (used in Report Monitor)

PermissionGroup varchar (10) Permission required to access this report list.

ValidateList bit Whether each report on list is validated individually.

MonitorList bit Whether this list will appear in Report Monitor for those users with permission

to access it.

MenuName varchar (15) Name of menu group for those applications which have an extended menu (used

by Report Monitor)

MenuSelect varchar (400) A SQL query to determine contents of an application menu for an application

that is table driven.

InternalOnly bit Report lists that are only accessible internally in an application.

IsCustom bit This is a custom report list.

ConstraintColumn

Field Constraints

Page 647JohnsonGroup

Page 648: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportListContent Report List Content

Identifies the reports that appear on a report list. For internal use only.

Indexes on Description

ListID, ReportKey Primary key, clustered

TypeColumn

ListID varchar (15) ID of the list for this entry.

Relates to: zlaReportList table

ReportKey varchar (15) Report Key field for this entry

Relates to: zlaReportDefinition table

IsCustom bit Whether this is a custom entry on the list.

ConstraintColumn

Field Constraints

Page 648JohnsonGroup

Page 649: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportQueue Report Queue

File contains definition of user created system queues. For internal use

only.

Indexes on Description

QueueID Primary key, clustered

TypeColumn

QueueID int NumericID for this queue.

QueueName varchar (50) Descriptive name for this queue

DateCreated datetime Date that this queue was created.

CreatedBy varchar (50) User login name that created the queue.

DateLastModified datetime The last date on which this queue was modified.

LastModifiedBy varchar (50) User login name of last user to modifiy this report queue.

ConstraintColumn

Field Constraints

Page 649JohnsonGroup

Page 650: Logic Table Docs

Logic SQL Table Documentation

Johnson Group

1/24/2011 9:03:54AM

Table: zlaReportQueueList Report Queue List

List of reports to be run in queue. For internal use only.

Indexes on Description

QueueID, ReportKey,

Sequence

Primary key, clustered

TypeColumn

QueueID int ID of queue for this entry.

ReportKey varchar (15) Key of report for this queue.

Sequence int Provides order of reports to be run in this queue.

Description varchar (50) Description of this report entry.

InputData varchar (8,000) The string of saved settings data to run this report.

ConstraintColumn

Field Constraints

Page 650JohnsonGroup