From 0d6cc3dbccb8a9efed1d449a2cc167a7418ca4be Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 12 May 2006 08:36:05 +0000 Subject: [PATCH] adding the starting period even when adding a subscription : it fixes bug 1059 : Subscriptions must be entered in as Vol X No. 1 or issue calculation is incorrect - doc updated on the wiki - JOSHUA / KADOS / OWEN / KYLE: be carefull your templates have to be modified --- bull/subscription-add.pl | 9 ++++++--- .../default/en/bull/subscription-add.tmpl | 18 ++++++++++-------- .../default/en/bull/subscription-detail.tmpl | 15 +++++++++------ 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/bull/subscription-add.pl b/bull/subscription-add.pl index 719762479b..92b8e55237 100755 --- a/bull/subscription-add.pl +++ b/bull/subscription-add.pl @@ -149,25 +149,28 @@ if ($op eq 'addsubscription') { my $whenmorethan1 = $query->param('whenmorethan1'); my $setto1 = $query->param('setto1'); my $lastvalue1 = $query->param('lastvalue1'); + my $innerloop1 = $query->param('innerloop1'); my $add2 = $query->param('add2'); my $every2 = $query->param('every2'); my $whenmorethan2 = $query->param('whenmorethan2'); my $setto2 = $query->param('setto2'); my $lastvalue2 = $query->param('lastvalue2'); + my $innerloop2 = $query->param('innerloop2'); my $add3 = $query->param('add3'); my $every3 = $query->param('every3'); my $whenmorethan3 = $query->param('whenmorethan3'); my $setto3 = $query->param('setto3'); my $lastvalue3 = $query->param('lastvalue3'); + my $innerloop3 = $query->param('innerloop3'); my $numberingmethod = $query->param('numberingmethod'); my $status = 1; my $biblionumber = $query->param('biblionumber'); my $notes = $query->param('notes'); my $subscriptionid = newsubscription($auser,$aqbooksellerid,$cost,$aqbudgetid,$biblionumber, $startdate,$periodicity,$dow,$numberlength,$weeklength,$monthlength, - $add1,$every1,$whenmorethan1,$setto1,$lastvalue1, - $add2,$every2,$whenmorethan2,$setto2,$lastvalue2, - $add3,$every3,$whenmorethan3,$setto3,$lastvalue3, + $add1,$every1,$whenmorethan1,$setto1,$lastvalue1,$innerloop1, + $add2,$every2,$whenmorethan2,$setto2,$lastvalue2,$innerloop2, + $add3,$every3,$whenmorethan3,$setto3,$lastvalue3,$innerloop3, $numberingmethod, $status, $notes ); print $query->redirect("/cgi-bin/koha/bull/subscription-detail.pl?subscriptionid=$subscriptionid"); diff --git a/koha-tmpl/intranet-tmpl/default/en/bull/subscription-add.tmpl b/koha-tmpl/intranet-tmpl/default/en/bull/subscription-add.tmpl index 2a0be64c18..47079eb77e 100644 --- a/koha-tmpl/intranet-tmpl/default/en/bull/subscription-add.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/bull/subscription-add.tmpl @@ -161,20 +161,22 @@ "> "> + + + The loop is for instance + + Starting period + + "> + "> + "> + When more than "> "> "> - - - The loop is for instance - "> - "> - "> - - Set back to "> diff --git a/koha-tmpl/intranet-tmpl/default/en/bull/subscription-detail.tmpl b/koha-tmpl/intranet-tmpl/default/en/bull/subscription-detail.tmpl index a7b4f35525..2c31b6957c 100644 --- a/koha-tmpl/intranet-tmpl/default/en/bull/subscription-detail.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/bull/subscription-detail.tmpl @@ -117,14 +117,17 @@ + + Starting period + + + + When more than -
- (is ) -
- (is ) -
- (is ) + + + Set back to