From 49a19c9d44870633d029f8cd0b369a27a6c155ea Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 20 Dec 2007 09:25:43 +0000 Subject: [PATCH] - Fix report stock when the report stock keys were updated - Add a missing stock number - Fix a report where distinct was missing --- admin/reports.inc.php | 2 +- db/db.code.version.txt | 2 +- db/db.update.86.sql | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 db/db.update.86.sql diff --git a/admin/reports.inc.php b/admin/reports.inc.php index 6b9f6f0..664df57 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -172,7 +172,7 @@ LRP 180 99765 5967 4 1 3/4 x 1/2 80 */ ); */ - $report_stock['5164'] = array('name' => 'Avery 5164/5264/8164, G&T 99763 (4"x3 1/3")', + $report_stock['5164'] = array('name' => 'Avery 5164/5264/5964/8164, G&T 99763 (4"x3 1/3")', 'page_width' => 8.5, 'page_height' => 11, 'label_width' => 4, diff --git a/db/db.code.version.txt b/db/db.code.version.txt index a862eb8..8cf5c1a 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -85 +86 diff --git a/db/db.update.86.sql b/db/db.update.86.sql new file mode 100644 index 0000000..72c2352 --- /dev/null +++ b/db/db.update.86.sql @@ -0,0 +1,8 @@ +SELECT @id:=id FROM reports WHERE system_report_id='19'; +INSERT INTO `reports_items` ( `id` , `reports_id` , `type` , `ord` , `field` , `value` , `x` , `y` , `w` , `h` , `lines` , `face` , `align`) VALUES + ( NULL , @id, 'distinct', '0', 'pn', '', '0', '0', '0', '0', '0', '', ''); + +UPDATE reports_items SET value='fullpage' WHERE field='stock' AND value='letter'; +UPDATE reports_items SET value='5164' WHERE field='stock' AND value='5964'; +UPDATE reports_items SET value='5161' WHERE field='stock' AND value='5961'; +