science-ation/db/db.update.86.sql
dave 49a19c9d44 - Fix report stock when the report stock keys were updated
- Add a missing stock number
- Fix a report where distinct was missing
2007-12-20 09:25:43 +00:00

9 lines
518 B
SQL

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';