id |
integer |
Yes |
Yes |
nextval('purchase_history_id_seq'::regclass) |
Unique identifier |
po_number |
character varying(10) |
No |
No |
|
Purchase Order number |
vendor_no |
character varying(20) |
No |
No |
|
Vendor code - links to vendors.vendor_no |
vendor_name |
character varying(60) |
No |
No |
|
Vendor name |
vendor_po |
character varying(20) |
No |
No |
|
Vendor Order number |
date |
date |
No |
No |
|
Purchase Order date |
status |
character varying(1) |
No |
No |
|
Purchase Order status - Always 'C' - Closed |
required_date |
date |
No |
No |
|
Required date on Purchase Order |
received_date |
date |
No |
No |
|
Last received date on Purchase Order |
buyer_name |
character varying(60) |
No |
No |
|
Buyer name on Purchase Order |
discount |
numeric(5,2) |
No |
No |
0 |
Doscount % on the Purchase Order |
terms_code |
character varying(10) |
No |
No |
|
Terms code for Purchase Orderwhich was used to populate the Vendor Invoice - links to payment_terms.terms_code |
terms_description |
character varying(60) |
No |
No |
|
Payment Terms description which was used to populate the Vendor Invoice |
terms_days_before_due |
smallint |
No |
No |
|
Number of days before the payment is due calculated from transaction date which was used to populate the Vendor Invoice |
terms_days_allowed |
smallint |
No |
No |
|
Number of days allowed for discount which was used to populate the Vendor Invoice |
terms_discount_rate |
numeric(5,2) |
No |
No |
0 |
Early payment discount percentage rate which was used to populate the Vendor Invoice |
ship_id |
character varying(20) |
Yes |
No |
|
Not used |
currency |
character varying(3) |
No |
No |
|
Vendor currency; blank = base currency - links to currencies.code |
currency_rate_method |
character varying(1) |
No |
No |
|
Currency rate conversion method used; / = direct * = indirect |
currency_rate |
numeric(13,7) |
No |
No |
0 |
Currency rate used |
fob |
character varying(20) |
No |
No |
|
FOB - Free on board location |
freight_balance |
numeric(15,2) |
No |
No |
0 |
Freight balance |
ship_via_code |
character varying(10) |
No |
No |
|
Ship Via code - links to shipping_methods.code |
ref_no |
character varying(20) |
No |
No |
|
Reference number as set by user |
serialized_items |
boolean |
No |
No |
|
Purchase Order has serialized items |
subtotal |
numeric(15,2) |
No |
No |
0 |
Subtotal before taxes, freight and discount |
total_discount |
numeric(15,2) |
No |
No |
0 |
Total discount amount |
freight |
numeric(15,2) |
No |
No |
0 |
Vendor Freight amount |
sales_tax |
numeric(15,2) |
No |
No |
0 |
Total sales tax amount on received amount |
gross_profit |
numeric(15,2) |
No |
No |
0 |
Gross Profit on items received |
total_current_cost |
numeric(15,2) |
No |
No |
0 |
Total current cost of items on the Purchase Order |
total_average_cost |
numeric(15,2) |
No |
No |
0 |
Total average cost of items on the Purchase Order |
total |
numeric(15,2) |
No |
No |
0 |
PO total |
invoice |
character varying(10) |
No |
No |
|
Not used |
print_date |
date |
No |
No |
|
Date Purchase Order was Issued and Print dialog presented |
print_init |
character varying(3) |
No |
No |
|
User initials that Issued the Purchase Order and had the oppurtunity to Print |
_dbversion |
integer |
No |
No |
|
Program version that last modified this record |
_created |
timestamp without time zone |
No |
No |
|
UTC Date and time record was created |
_created_by |
character varying(3) |
No |
No |
|
User initials that created this record |
_modified |
timestamp without time zone |
No |
No |
|
UTC Date and time this record was last modified |
_modified_by |
character varying(3) |
No |
No |
|
User initials that last modified this record |
whse |
character varying(6) |
No |
No |
|
Purcahse Order warehouse - links to inventory_warehouses.whse |
ship_customer |
character varying(20) |
No |
No |
|
Customer selected for drop ship - links to customers.cust_no |
customer_ship_type |
character varying(1) |
No |
No |
|
Not used |
customer_ship_id |
character varying(20) |
No |
No |
|
Customer ShipToID selected for drop ship - links to addresses.ship_id with cust_no |
location |
character varying(24) |
No |
No |
|
General Ledger Location segment of the warehouse for companies using Location accounting |
division |
character varying(3) |
No |
No |
|
Division code for Purchase Order as per divisions in the company; 000 = non divisionalized company - links to gl_divisions.code |
phase_id |
character varying(20) |
No |
No |
|
Phase ID of the Purchase Order when Closed - links to phases.phase_id |
user_type |
character varying(40) |
No |
No |
|
Not used |
job_no |
character varying(10) |
No |
No |
|
Job cost number - links to jobs.job_no |
job_acct_no |
character varying(10) |
No |
No |
|
Job cost account number - links to jobs.account |
weight |
numeric(15,2) |
No |
No |
0 |
Total weight on Purchase Order |
sales_tax_rate |
numeric(7,4)[] |
Yes |
No |
'{0,0,0,0}'::numeric[] |
Sales tax rates 1 - 4 used on Purchase Order |
sales_tax_applicable |
numeric(15,2)[] |
Yes |
No |
'{0,0,0,0}'::numeric[] |
Sales tax applicable flags 1 - 4 used on Purchase Order |
sales_tax_total |
numeric(15,2)[] |
Yes |
No |
'{0,0,0,0}'::numeric[] |
Sales tax totals 1 - 4 on Purchase Order |
udf_data |
hstore |
No |
No |
''::hstore |
User defined data for this record |