Examples by Table: Difference between revisions

From KeystoneIntranet
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
*'''GL Accounts''' (ACCT)
*'''GL Accounts''' (ACCT)
*'''COMP:''' Company
*'''USGE:''' Useage
*'''SANL:''' Customer Class
===Taxes===
*'''TAXC:''' Tax (Similar to Keystone Tax Auth)
*'''TAXJ:''' Tax Structure
*'''TAXL:''' Tax Locality (not 1 to 1 with Keystone)
===Salespeople and Drivers===
*'''EMPL:''' Employee - Sales and Drivers


*'''ARTB:''' Aging
AR may or may not come from Command system.  This needs to be researched.






===Conctacts===
*'''CCON:''' Contact Connection
*'''CCON:''' Contact Connection
*'''COMP:''' Company
*'''CPRD:''' Customer Prices
*'''CTCT:''' Contact
*'''CTCT:''' Contact
===Customer===
===Customer===
*'''CUST:''' Customer
*'''CUST:''' Customer
Line 25: Line 36:
</pre>
</pre>


*'''EMPL:''' Employee - Sales and Drivers
*'''ICAT:''' Item (Product)  
*'''ICAT:''' Item (Product)  
*'''ICST:''' Component Structure
*'''ICST:''' Component Structure
*'''ILOC:''' Product by Location (Similar to Plant)
*'''ILOC:''' Product by Location (Similar to Plant)
*'''IMST:''' Products
*'''IMST:''' Products
*'''IPRC:''' Prices - by Level (Group)
*'''LOCN:''' Locations (Similar to Plant)
*'''LOCN:''' Locations (Similar to Plant)
*'''PLNT:''' Plant
*'''PLNT:''' Plant
Line 36: Line 45:
*'''PRJP:''' Project Prices
*'''PRJP:''' Project Prices
*'''PROJ:''' Project
*'''PROJ:''' Project
*'''SANL:''' Customer Class
 
<pre>
<pre>
with sac (clsno,descr) as
with sac (clsno,descr) as
Line 63: Line 72:
from sac
from sac
</pre>
</pre>
*'''TAXC:''' Tax (Similar to Keystone Tax Auth)
*'''TAXJ:''' Tax Structure
*'''TAXL:''' Tax Locality (not 1 to 1 with Keystone)
*'''TRMS:''' Terms
*'''TRMS:''' Terms
*'''TRUC:''' Trucks
*'''TRUC:''' Trucks
*'''UOMS:''' Unit of Meausure
*'''UOMS:''' Unit of Meausure
*'''USGE:''' Useage
===Prices===
*'''CPRD:''' Customer Prices
*'''IPRC:''' Prices - by Level (Group)
 
===A/R Invoice===
AR may or may not come from Command system.  This needs to be researched.
*Invoice Numbers may be numeric or Alpha.  When Alpha - Invoice Number=0,  JobPoLoc = Alpha Inovice Number.
*Create Preview outputs - DataScopeX is good for this.
*Establish a Hard Cutoff Date
 
*ARTB
:*Curr_Bal_amt key field

Revision as of 18:28, 19 February 2024

  • GL Accounts (ACCT)
  • COMP: Company
  • USGE: Useage
  • SANL: Customer Class


Taxes

  • TAXC: Tax (Similar to Keystone Tax Auth)
  • TAXJ: Tax Structure
  • TAXL: Tax Locality (not 1 to 1 with Keystone)


Salespeople and Drivers

  • EMPL: Employee - Sales and Drivers



Conctacts

  • CCON: Contact Connection
  • CTCT: Contact

Customer

  • CUST: Customer

State needs to be mapped... <pre) CASE REPLACE(UPPER(TRIM(ADDR_STATE)),' ',)

  WHEN 'NEBRASK' THEN 'NE'
  WHEN 'NEWYORK' THEN 'NY'
  WHEN 'NEWJERSEY' THEN 'NJ'
  ...
  WHEN 'PENNSYLVAN' THEN 'PA'
  WHEN 'SOUTHCARO' THEN 'SC'
  WHEN 'TENNESSEE' THEN 'TN'
ELSE SUBSTR(UPPER(TRIM(ADDR_STATE)),1,2) END STATE,
  • ICAT: Item (Product)
  • ICST: Component Structure
  • ILOC: Product by Location (Similar to Plant)
  • IMST: Products
  • LOCN: Locations (Similar to Plant)
  • PLNT: Plant
  • PRCC: Price Group
  • PRJP: Project Prices
  • PROJ: Project
with sac (clsno,descr) as
	(
	select 
	case ltrim(rtrim(sales_anl_code)) 
	when 'NSF' THEN 'NS'
	when 'CNA' THEN 'CN'
	when 'C27' THEN '27'
	when 'C29' THEN '29'
	when 'C34' THEN '34'
	when 'C53' THEN '53'
	else ltrim(rtrim(sales_anl_code))  end
	"class_no",
	ltrim(rtrim(descr)) description
	from sanl
	)
select  
concat('
INSERT INTO artcucls
( CLASS_NO, DESCRIPTION, IMPORTED_FLAG, LAST_CHANGE_DATETIME, LAST_CHANGE_USER, ACTIVE_FLAG )  VALUES 
( ''',clsno,''',''',left(descr,35),''', ''Y'', CAST(''TODAY'' AS TIMESTAMP), ''HIT'', ''Y''    );
'),
ltrim(rtrim(clsno)) "class_no",
ltrim(rtrim(descr)) description,  * 
from sac
  • TRMS: Terms
  • TRUC: Trucks
  • UOMS: Unit of Meausure

Prices

  • CPRD: Customer Prices
  • IPRC: Prices - by Level (Group)

A/R Invoice

AR may or may not come from Command system. This needs to be researched.

  • Invoice Numbers may be numeric or Alpha. When Alpha - Invoice Number=0, JobPoLoc = Alpha Inovice Number.
  • Create Preview outputs - DataScopeX is good for this.
  • Establish a Hard Cutoff Date
  • ARTB
  • Curr_Bal_amt key field