Lines 3062-3069
CREATE TABLE `aqorders` ( -- information related to the basket line items
Link Here
|
3062 |
`listprice` decimal(28,6) default NULL, -- the vendor price for this line item |
3062 |
`listprice` decimal(28,6) default NULL, -- the vendor price for this line item |
3063 |
`datereceived` date default NULL, -- the date this order was received |
3063 |
`datereceived` date default NULL, -- the date this order was received |
3064 |
invoiceid int(11) default NULL, -- id of invoice |
3064 |
invoiceid int(11) default NULL, -- id of invoice |
3065 |
`freight` decimal(28,6) default NULL, -- shipping costs (not used) |
3065 |
`freight` decimal(28,6) DEFAULT NULL, -- shipping costs (not used) |
3066 |
`unitprice` decimal(28,6) default NULL, -- the actual cost entered when receiving this line item |
3066 |
`unitprice` decimal(28,6) DEFAULT NULL, -- the actual cost entered when receiving this line item |
|
|
3067 |
`unitprice_tax_excluded` decimal(28,6) default NULL, -- the unit price excluding tax (on receiving) |
3068 |
`unitprice_tax_included` decimal(28,6) default NULL, -- the unit price including tax (on receiving) |
3067 |
`quantityreceived` smallint(6) NOT NULL default 0, -- the quantity that have been received so far |
3069 |
`quantityreceived` smallint(6) NOT NULL default 0, -- the quantity that have been received so far |
3068 |
`datecancellationprinted` date default NULL, -- the date the line item was deleted |
3070 |
`datecancellationprinted` date default NULL, -- the date the line item was deleted |
3069 |
`cancellationreason` text default NULL, -- reason of cancellation |
3071 |
`cancellationreason` text default NULL, -- reason of cancellation |
Lines 3072-3081
CREATE TABLE `aqorders` ( -- information related to the basket line items
Link Here
|
3072 |
`purchaseordernumber` mediumtext, -- not used? always NULL |
3074 |
`purchaseordernumber` mediumtext, -- not used? always NULL |
3073 |
`basketno` int(11) default NULL, -- links this order line to a specific basket (aqbasket.basketno) |
3075 |
`basketno` int(11) default NULL, -- links this order line to a specific basket (aqbasket.basketno) |
3074 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this order line was last modified |
3076 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this order line was last modified |
3075 |
`rrp` decimal(13,2) default NULL, -- the replacement cost for this line item |
3077 |
`rrp` decimal(13,2) DEFAULT NULL, -- the replacement cost for this line item |
3076 |
`ecost` decimal(13,2) default NULL, -- the estimated cost for this line item |
3078 |
`rrp_tax_excluded` decimal(28,6) default NULL, -- the replacement cost excluding tax |
3077 |
`gstrate` decimal(6,4) default NULL, -- the tax rate for this line item |
3079 |
`rrp_tax_included` decimal(28,6) default NULL, -- the replacement cost including tax |
3078 |
`discount` float(6,4) default NULL, -- the discount for this line item |
3080 |
`ecost` decimal(13,2) DEFAULT NULL, -- the replacement cost for this line item |
|
|
3081 |
`ecost_tax_excluded` decimal(28,6) default NULL, -- the estimated cost excluding tax |
3082 |
`ecost_tax_included` decimal(28,6) default NULL, -- the estimated cost including tax |
3083 |
`tax_rate` decimal(6,4) DEFAULT NULL, -- the tax rate for this line item (%) |
3084 |
`tax_value` decimal(28,6) default NULL, -- the tax value for this line item |
3085 |
`discount` float(6,4) default NULL, -- the discount for this line item (%) |
3079 |
`budget_id` int(11) NOT NULL, -- the fund this order goes against (aqbudgets.budget_id) |
3086 |
`budget_id` int(11) NOT NULL, -- the fund this order goes against (aqbudgets.budget_id) |
3080 |
`budgetgroup_id` int(11) NOT NULL, -- not used? always zero |
3087 |
`budgetgroup_id` int(11) NOT NULL, -- not used? always zero |
3081 |
`budgetdate` date default NULL, -- not used? always NULL |
3088 |
`budgetdate` date default NULL, -- not used? always NULL |
3082 |
- |
|
|