Bugzilla – Attachment 10790 Details for
Bug 6716
Database Documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6716: Document the aqorders table
Bug-6716-Document-the-aqorders-table.patch (text/plain), 5.04 KB, created by
Nicole C. Engard
on 2012-07-12 13:43:15 UTC
(
hide
)
Description:
Bug 6716: Document the aqorders table
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2012-07-12 13:43:15 UTC
Size:
5.04 KB
patch
obsolete
>From fd9183bdaad6a9b6469a39bd68cfa799bbd2dc8d Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Wed, 11 Jul 2012 23:05:31 -0400 >Subject: [PATCH] Bug 6716: Document the aqorders table > >This table has a lot of fields that I never see any values in. >All have been noted in the documentation and I welcome any >additional info about how these fields might be used. >--- > installer/data/mysql/kohastructure.sql | 68 ++++++++++++++++---------------- > 1 files changed, 34 insertions(+), 34 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 3b9827a..6a8d056 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2734,42 +2734,42 @@ CREATE TABLE `aqorderdelivery` ( > -- > > DROP TABLE IF EXISTS `aqorders`; >-CREATE TABLE `aqorders` ( >- `ordernumber` int(11) NOT NULL auto_increment, >- `biblionumber` int(11) default NULL, >- `entrydate` date default NULL, >- `quantity` smallint(6) default NULL, >- `currency` varchar(3) default NULL, >- `listprice` decimal(28,6) default NULL, >- `totalamount` decimal(28,6) default NULL, >- `datereceived` date default NULL, >- `booksellerinvoicenumber` mediumtext, >- `freight` decimal(28,6) default NULL, >- `unitprice` decimal(28,6) default NULL, >- `quantityreceived` smallint(6) NOT NULL default 0, >- `cancelledby` varchar(10) default NULL, >- `datecancellationprinted` date default NULL, >- `notes` mediumtext, >- `supplierreference` mediumtext, >- `purchaseordernumber` mediumtext, >- `subscription` tinyint(1) default NULL, >- `serialid` varchar(30) default NULL, >- `basketno` int(11) default NULL, >- `biblioitemnumber` int(11) default NULL, >- `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, >- `rrp` decimal(13,2) default NULL, >- `ecost` decimal(13,2) default NULL, >- `gst` decimal(13,2) default NULL, >- `budget_id` int(11) NOT NULL, >- `budgetgroup_id` int(11) NOT NULL, >- `budgetdate` date default NULL, >- `sort1` varchar(80) default NULL, >- `sort2` varchar(80) default NULL, >+CREATE TABLE `aqorders` ( --information related to the basket line items >+ `ordernumber` int(11) NOT NULL auto_increment, -- primary key and unique identifier assigned by Koha to each line >+ `biblionumber` int(11) default NULL, -- links the order to the biblio being ordered (biblio.biblionumber) >+ `entrydate` date default NULL, -- the date the bib was added to the basket >+ `quantity` smallint(6) default NULL, -- the quantity ordered >+ `currency` varchar(3) default NULL, -- the currency used for the purchase >+ `listprice` decimal(28,6) default NULL, -- the vendor price for this line item >+ `totalamount` decimal(28,6) default NULL, -- not used? always NULL >+ `datereceived` date default NULL, -- the date this order was received >+ `booksellerinvoicenumber` mediumtext, -- the invoice number this line item was received on >+ `freight` decimal(28,6) default NULL, -- shipping costs (not used) >+ `unitprice` decimal(28,6) default NULL, -- the actual cost entered when receiving this line item >+ `quantityreceived` smallint(6) NOT NULL default 0, -- the quantity that have been received so far >+ `cancelledby` varchar(10) default NULL, -- not used? always NULL >+ `datecancellationprinted` date default NULL, -- the date the line item was deleted >+ `notes` mediumtext, -- notes related to this order line >+ `supplierreference` mediumtext, -- not used? always NULL >+ `purchaseordernumber` mediumtext, -- not used? always NULL >+ `subscription` tinyint(1) default NULL, -- not used? always NULL >+ `serialid` varchar(30) default NULL, -- not used? always NULL >+ `basketno` int(11) default NULL, -- links this order line to a specific basket (aqbasket.basketno) >+ `biblioitemnumber` int(11) default NULL, -- links this order line the biblioitems table (biblioitems.biblioitemnumber) >+ `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this order line was last modified >+ `rrp` decimal(13,2) default NULL, -- the replacement cost for this line item >+ `ecost` decimal(13,2) default NULL, -- the estimated cost for this line item >+ `gst` decimal(13,2) default NULL, -- the tax rate for this line item >+ `budget_id` int(11) NOT NULL, -- the fund this order goes against (aqbudgets.budget_id) >+ `budgetgroup_id` int(11) NOT NULL, -- not used? always zero >+ `budgetdate` date default NULL, -- not used? always NULL >+ `sort1` varchar(80) default NULL, -- statistical field >+ `sort2` varchar(80) default NULL, -- second statistical field > `sort1_authcat` varchar(10) default NULL, > `sort2_authcat` varchar(10) default NULL, >- `uncertainprice` tinyint(1), >- `claims_count` int(11) default 0, >- `claimed_date` date default NULL, >+ `uncertainprice` tinyint(1), -- was this price uncertain (1 for yes, 0 for no) >+ `claims_count` int(11) default 0, -- count of claim letters generated >+ `claimed_date` date default NULL, -- last date a claim was generated > PRIMARY KEY (`ordernumber`), > KEY `basketno` (`basketno`), > KEY `biblionumber` (`biblionumber`), >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6716
:
4987
|
4988
|
4989
|
4992
|
5003
|
5004
|
5005
|
5006
|
5007
|
5008
|
5009
|
5011
|
5012
|
5013
|
5014
|
5139
|
5140
|
5141
|
5142
|
5174
|
5175
|
5176
|
5177
|
5178
|
5179
|
5186
|
5187
|
5188
|
5190
|
5192
|
5193
|
5355
|
5356
|
5663
|
5664
|
5665
|
5666
|
5668
|
5669
|
5686
|
5687
|
5706
|
5829
|
6004
|
6015
|
6591
|
6592
|
6593
|
6594
|
6595
|
6596
|
6597
|
6598
|
6599
|
10788
|
10789
|
10790
|
10791
|
10792
|
10793
|
10794
|
10795
|
10822
|
10823
|
10824
|
10832
|
10833
|
10942
|
10970
|
10975
|
11011
|
11013
|
11014
|
11016
|
11018
|
11019
|
11020
|
11021
|
11022
|
11023
|
11084
|
11729
|
11823
|
11987
|
12024
|
12561
|
26777