Show
Ignore:
Timestamp:
04/23/08 20:38:57 (3 months ago)
Author:
erickson
Message:

Merged revisions 9437,9440-9442 via svnmerge from
svn://svn.open-ils.org/ILS/trunk

........

r9437 | erickson | 2008-04-22 22:50:31 -0400 (Tue, 22 Apr 2008) | 1 line


fixed what appears to be some copy paste errors. no longer requiring kwargs to be non-null on User create

........

r9440 | miker | 2008-04-23 08:23:10 -0400 (Wed, 23 Apr 2008) | 1 line


adding helper views for overdue, running and pending reports

........

r9441 | erickson | 2008-04-23 11:13:45 -0400 (Wed, 23 Apr 2008) | 4 lines



Removing dead code and their makefile counterparts

........

r9442 | miker | 2008-04-23 13:17:15 -0400 (Wed, 23 Apr 2008) | 1 line


adding translation for description

........

Location:
branches/acq-experiment
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/acq-experiment

    • Property svnmerge-integrated changed from /trunk:1-9435 to /trunk:1-9442
  • branches/acq-experiment/Open-ILS/src/sql/Pg/reporter-schema.sql

    r8016 r9443  
    214214        AND due_date < now(); 
    215215 
     216CREATE OR REPLACE VIEW reporter.overdue_reports AS 
     217 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     218   FROM reporter.schedule s 
     219   JOIN reporter.report r ON r.id = s.report 
     220   JOIN actor.usr u ON s.runner = u.id 
     221   JOIN actor.card c ON c.id = u.card 
     222  WHERE s.start_time IS NULL AND s.run_time < now(); 
     223 
     224CREATE OR REPLACE VIEW reporter.pending_reports AS 
     225 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     226   FROM reporter.schedule s 
     227   JOIN reporter.report r ON r.id = s.report 
     228   JOIN actor.usr u ON s.runner = u.id 
     229   JOIN actor.card c ON c.id = u.card 
     230  WHERE s.start_time IS NULL; 
     231 
     232CREATE OR REPLACE VIEW reporter.currently_running AS 
     233 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     234   FROM reporter.schedule s 
     235   JOIN reporter.report r ON r.id = s.report 
     236   JOIN actor.usr u ON s.runner = u.id 
     237   JOIN actor.card c ON c.id = u.card 
     238  WHERE s.start_time IS NOT NULL AND s.complete_time IS NULL; 
     239 
    216240COMMIT; 
    217241