Serials planning: Update subscription edit to properly deal with date changes. (...
authorRyan Higgins <rch@liblime.com>
Mon, 4 Aug 2008 01:37:51 +0000 (20:37 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 4 Aug 2008 13:04:49 +0000 (08:04 -0500)
commit8393fb0a3ad801e00580fb17949f706720fa5d27
tree3f7950c0ebeb0a3816b45741221c6e5cd4658cc1
parentdb87e7d738a4f1f73eeafe963129289c41b56f98
Serials planning: Update subscription edit to properly deal with date changes. ( patch 3 / 3 )

Previously subscription-add.pl allowed modification of 'firstacquidate', which changed
the subscription definition, but did not affect prediction.  This patch adds two fuctions
to Serials.pm to get/set the current expected issue date (note that all date calculations
in prediction patterns are based on the current expected date, and there's only one serial
issue per subscription in the 'expected' status at any time).  Subscription editing
now allows you to edit the next expected date, but not the first acqui date (unless you
haven't received any issues yet), thus allowing for adjustments in the prediction pattern.
This patch also updates fixes some discrepancies in irregularities / prediction display.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Serials.pm
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl
serials/subscription-add.pl