View | Details | Raw Unified | Return to bug 18002
Collapse All | Expand All

(-)a/C4/Budgets.pm (+7 lines)
Lines 146-151 sub GetPeriodsCount { Link Here
146
}
146
}
147
147
148
# -------------------------------------------------------------------
148
# -------------------------------------------------------------------
149
150
sub GetHighestBudgetPeriod{
151
    my $dbh = C4::Context->dbh;
152
    warn my $data = $dbh->selectrow_array("SELECT MAX(budget_period_id) FROM aqbudgetperiods");
153
    return $data;
154
}
155
# -------------------------------------------------------------------
149
sub CheckBudgetParent {
156
sub CheckBudgetParent {
150
    my ( $new_parent, $budget ) = @_;
157
    my ( $new_parent, $budget ) = @_;
151
    my $new_parent_id = $new_parent->{'budget_id'};
158
    my $new_parent_id = $new_parent->{'budget_id'};
(-)a/acqui/acqui-home.pl (-9 / +24 lines)
Lines 66-80 my $totspent_active = 0; Link Here
66
my $totordered_active   = 0;
66
my $totordered_active   = 0;
67
my $totavail_active     = 0;
67
my $totavail_active     = 0;
68
68
69
my $budgets = GetBudgetPeriod(1);
70
if ($budgets > 0){
71
    my $stepfund = 2;
72
    $template->param( stepfund => $stepfund );
73
} else  {
74
    my $stepfund = 1;
75
    $template->param( stepfund => $stepfund );
76
}
77
78
my @budget_loop;
69
my @budget_loop;
79
foreach my $budget ( @{$budget_arr} ) {
70
foreach my $budget ( @{$budget_arr} ) {
80
    next unless (CanUserUseBudget($loggedinuser, $budget, $userflags));
71
    next unless (CanUserUseBudget($loggedinuser, $budget, $userflags));
Lines 131-141 $template->param( Link Here
131
    suggestions_count   => $suggestions_count,
122
    suggestions_count   => $suggestions_count,
132
);
123
);
133
124
125
126
127
128
129
130
my $aqstep;
134
my $cur = Koha::Acquisition::Currencies->get_active;
131
my $cur = Koha::Acquisition::Currencies->get_active;
132
135
if ( $cur ) {
133
if ( $cur ) {
136
    $template->param(
134
    $template->param(
137
        currency => $cur->currency,
135
        currency => $cur->currency,
138
    );
136
    );
139
}
137
}
140
138
139
my $budget = GetPeriodsCount();
140
my $budgetid = C4::Budgets->GetHighestBudgetPeriod();
141
if (!@budget_loop){
142
if (!$cur) {
143
    $aqstep = 1;
144
    $template->param( step => $aqstep );
145
} elsif ($budget && $budgetid == 1){
146
    $aqstep = 3;
147
    $template->param( step => $aqstep );
148
} elsif ($budgetid > 1) {
149
    print $query->redirect("/cgi-bin/koha/admin/aqbudgetperiods.pl");
150
    exit;
151
} else  {
152
    $aqstep = 2;
153
    $template->param( step => $aqstep );
154
}
155
}
141
output_html_with_http_headers $query, $cookie, $template->output;
156
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/admin/aqbudgets.pl (-2 / +2 lines)
Lines 76-83 my $budget_permission = $input->param('budget_permission'); Link Here
76
my $budget_users_ids          = $input->param('budget_users_ids');
76
my $budget_users_ids          = $input->param('budget_users_ids');
77
my $filter_budgetbranch       = $input->param('filter_budgetbranch') // '';
77
my $filter_budgetbranch       = $input->param('filter_budgetbranch') // '';
78
my $filter_budgetname         = $input->param('filter_budgetname');
78
my $filter_budgetname         = $input->param('filter_budgetname');
79
80
81
# ' ------- get periods stuff ------------------'
79
# ' ------- get periods stuff ------------------'
82
# IF PERIODID IS DEFINED,  GET THE PERIOD - ELSE JUST GET THE ACTIVE PERIOD BY DEFAULT
80
# IF PERIODID IS DEFINED,  GET THE PERIOD - ELSE JUST GET THE ACTIVE PERIOD BY DEFAULT
83
my $period;
81
my $period;
Lines 226-231 if ($op eq 'add_form') { Link Here
226
        my $fundcreation = $input->param('fundcreation');
224
        my $fundcreation = $input->param('fundcreation');
227
225
228
        if ($fundcreation eq "onboarding"){
226
        if ($fundcreation eq "onboarding"){
227
            my $step  = $input->param('step');
228
            $template->param('step' => $step);
229
            print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
229
            print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
230
            exit;
230
            exit;
231
        }
231
        }
(-)a/admin/currency.pl (+9 lines)
Lines 89-94 if ( $op eq 'add_form' ) { Link Here
89
    }
89
    }
90
    $searchfield = q||;
90
    $searchfield = q||;
91
    $op          = 'list';
91
    $op          = 'list';
92
93
    my $aqcurrency = $input->param('aqcurrency');
94
    if ($aqcurrency == 1) {
95
        my $step = $input->param( 'step' );
96
        $template->param( step => $step );
97
        print $input->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
98
        exit;
99
    }
100
92
} elsif ( $op eq 'delete_confirm' ) {
101
} elsif ( $op eq 'delete_confirm' ) {
93
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
102
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
94
103
(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (+6 lines)
Lines 2977-2979 fieldset.rows + fieldset.action { Link Here
2977
.yui-u .rows li p label.widelabel {
2977
.yui-u .rows li p label.widelabel {
2978
    width: auto;
2978
    width: auto;
2979
}
2979
}
2980
2981
div#aqhelp{
2982
    background-color:#EDF4F6;
2983
    padding:20px;
2984
    width:50%;
2985
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc (-4 / +16 lines)
Lines 1-14 Link Here
1
<style type="text/css">
2
  #onboardingModal{
3
     z-index:1;
4
     background-color:#E6F0F2;
5
     position:fixed;
6
     left:auto;
7
     top:auto;
8
     right:auto;
9
     bottom:auto;
10
}
11
</style>
12
1
[% IF ( currency ) %]
13
[% IF ( currency ) %]
2
    [% IF ( not hide ) %]
14
    [% IF ( not hide ) %]
3
        <p><b>Currency = [% currency %]</b></p>
15
        <p><b>Currency = [% currency %]</b></p>
4
    [% END %]
16
    [% END %]
5
[% ELSE %]
17
[% ELSE %]
18
   <div class="dialog alert">
19
        <h3>No active currency is defined</h3>
6
        [% IF CAN_user_parameters_parameters_remaining_permissions %]
20
        [% IF CAN_user_parameters_parameters_remaining_permissions %]
7
            <h1> You have no currencies defined in your database</h1>
21
            <p><a href="/cgi-bin/koha/admin/currency.pl">Please specify an active currency.</a></p>
8
            <a href="/cgi-bin/koha/admin/currency.pl?op=add_form" target="_target" data-toggle="tooltip"  title="Enter an appropriate currency and set it to active">Enter a currency</a>
9
        [% ELSE %]
22
        [% ELSE %]
10
            <p>Your administrator must specify an active currency.</p>
23
            <p>Your administrator must specify an active currency.</p>
11
        [% END %]
24
        [% END %]
12
        <br>
25
   </div>
13
        <p><b>Now you can follow the below steps to set up acquisitions.</b></p><br>
14
[% END %]
26
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude.inc (-62 lines)
Lines 1-62 Link Here
1
<style type="text/css">
2
 #onboardingModal{
3
     z-index:1;
4
     background-color:#5bad3f;
5
     padding:20px;
6
     width:80%;
7
     height:60%;
8
     position:fixed;
9
     left:auto;
10
     top:auto;
11
     right:auto;
12
     bottom:auto;
13
     border-radius:25px;
14
}
15
</style>
16
    <div id="onboardingModal">
17
    [% IF  displayonboardscreen == "acquisitions" %]
18
        <h2> Create a budget</h2>
19
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
20
            <fieldset class="rows">
21
                <input type="hidden" name="op" value="add_validate" />
22
                <input type="hidden" name="step" value="2"/>
23
                <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
24
                <ol>
25
                    <li>
26
                        <label class="required" for="from">Start date: </label>
27
                        <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
28
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
29
                    </li>
30
31
                    <li>
32
                        <label class="required" for="to">End date: </label>
33
                        <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
34
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
35
                    </li>
36
37
                    <li>
38
                        <label class="required" for="budget_period_description">Description: </label>
39
                        <input type="text" id="budget_period_description" name="budget_period_description" size="48" maxlength="80" value="[% budget_period_description %]" />
40
                    </li>
41
42
                    <li>
43
                        <label for="budget_period_total">Total amount: </label>
44
                        <input type="text" id="budget_period_total" name="budget_period_total" size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
45
                    </li>
46
47
                    <li>
48
                        <label for="budget_period_active">Make budget active: </label>
49
                        [% IF ( budget_period_active ) %]<input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1"/> [% END %]
50
                    </li>
51
                </ol>
52
            </fieldset>
53
            <fieldset class="action">
54
                <a href = "/cgi-bin/koha/acqui/acqui-home.pl">
55
                <input type="submit" class="action" value="Submit" />
56
                </a>
57
            </fieldset>
58
        </form>
59
    </div>
60
    [% ELSIF displayonboardscreen == "label" %]
61
        <h2>testing</h2>
62
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude1.inc (+64 lines)
Line 0 Link Here
1
<style type="text/css">
2
    #onboardingModal{
3
        z-index:1;
4
        background-color:#EDF4F6;
5
        padding:20px;
6
        width:83.7%;
7
        height:100%;
8
        position:fixed;
9
        left:auto;
10
        top:auto;
11
        right:auto;
12
        bottom:auto;
13
}
14
</style>
15
16
<div id="onboardingModal">
17
        <h2> Acquisition onboarding wizard</h2>
18
        <h3> This onboarding wizard will take you through the process of setting up Acquistions </h3>
19
        <p>Start by completing this form to create a currency which you will be used to create your first budget and fund.<br>
20
        A fund is the accounting value you use to create orders</p>
21
         <form action="/cgi-bin/koha/admin/currency.pl" name="Aform" method="post" class="validated">
22
           <input type="hidden" name="op" value="add_validate" />
23
           <input type="hidden" name="step" value="2"/>
24
           <input type="hidden" name="aqcurrency" value=1 />
25
           <fieldset class="rows">
26
              <legend>
27
                      New currency
28
              </legend>
29
              <ol>
30
                 <li>
31
                      [% IF currency %]
32
                          <span class="label">Currency: </span>
33
                          <input type="hidden" name="is_a_modif" value="1" />
34
                          <input type="hidden" name="currency_code" id="currency" value="[% currency.currency %]" />[% currency.currency %]
35
                      [% ELSE %]
36
                          <label for="currency_code" class="required">Currency: </label>
37
                          <input type="text" name="currency_code" id="currency_code" size="50" maxlength="50" required="required" class="required" /> <span class="required">Required</span>
38
                      [% END %]
39
                </li>
40
                <li>
41
                      <label for="rate" class="required">Rate: </label>
42
                      <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate %]" required="required" class="required" /> <span class="required">Required</span>
43
                </li>
44
                <li>
45
                      <label for="symbol" class="required">Symbol: </label>
46
                      <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol %]" required="required" class="required" /> <span class="required">Required</span>
47
                </li>
48
                <li>
49
                      <label for="isocode">ISO code: </label>
50
                      <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode %]" />
51
                </li>
52
                <li>
53
                      <label for="active">Active: </label>
54
                      <input type="checkbox" id="active" name="active" value="1" checked="checked" />
55
                      <span id="hint" class="hint"></span>
56
                </li>
57
              </ol>
58
           </fieldset>
59
           <fieldset class="action">
60
                   <input type="submit" value="Submit" />
61
           </fieldset>
62
         </form>
63
</div>
64
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude2.inc (-57 / +60 lines)
Lines 1-63 Link Here
1
<style type="text/css">
1
<style type="text/css">
2
  #onboardingModal{
2
 #onboardingModal{
3
      z-index:1;
3
     z-index:1;
4
      background-color:#5bad3f;
4
     background-color:#EDF4F6;
5
      padding:20px;
5
     padding:20px;
6
      width:80%;
6
     width:83.7%;
7
      height:60%;
7
     height:100%;
8
      position:fixed;
8
     position:fixed;
9
      left:auto;
9
     left:auto;
10
      top:auto;
10
     top:auto;
11
      right:auto;
11
     right:auto;
12
      bottom:auto;
12
     bottom:auto;
13
      border-radius:25px;
13
}
14
   }
15
</style>
14
</style>
15
    <div id="onboardingModal">
16
    [% IF  displayonboardscreen == "acquisitions" %]
17
        <h2> Acquisition onboarding wizard</h2>
18
        <p> Create a budget which is the highest level value in acquisitions accountancy. <br>
19
        After creating this budget you will be prompted to create a fund which is what you will use to set up orders.
20
        </p>
21
        <b>If you have previously created a budget (which was subsequently deleted) then you will be redirected to the Budget Administration page after creating a budget using this form. On the Budget Administration page click Actions->Add fund to create a fund</b>
22
        <h3> Create a budget</h3>
23
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
24
            <fieldset class="rows">
25
                <input type="hidden" name="op" value="add_validate" />
26
                <input type="hidden" name="step" value="3"/>
27
                <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
28
                <ol>
29
                    <li>
30
                        <label class="required" for="from">Start date: </label>
31
                        <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
32
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
33
                    </li>
16
34
17
<div id="onboardingModal">
35
                    <li>
18
    <form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
36
                        <label class="required" for="to">End date: </label>
19
        <fieldset class="rows">
37
                        <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
20
            <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund
38
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
21
                [% IF ( budget_period_description ) %]
39
                    </li>
22
                    [% budget_name %] for Budget '[% budget_period_description %]'
23
                [% END %]
24
            </legend>
25
            <input type="hidden" name="op" value="add_validate" />
26
            <input type="hidden" name="checked" value="0" />
27
            <input type="hidden" name="fundcreation" value="onboarding" />
28
            <ol>
29
                [% budget_parent_id = 0 %]
30
                <li>
31
                     <span class="label">Fund parent: </span>
32
                     [% budget_parent_name %]
33
                     [% budget_parent_id %] - [% budget_parent_name %]
34
                     <input type="hidden" name="budget_parent_id" value= NULL />
35
                </li>
36
                <li>
37
                    <label class="required"  for="budget_code">Fund code: </label>
38
                    <input type="text" name="budget_code" id="budget_code" value="[% budget_code %]" size="30" />
39
                </li>
40
40
41
                <li>
41
                    <li>
42
                    <label class="required" for="budget_name">Fund name: </label>
42
                        <label class="required" for="budget_period_description">Description: </label>
43
                    <input type="text" name="budget_name" id="budget_name" value="[% budget_name %]" size="60" />
43
                        <input type="text" id="budget_period_description" name="budget_period_description" size="48" maxlength="80" value="[% budget_period_description %]" />
44
                </li>
44
                    </li>
45
45
46
                <li>
46
                    <li>
47
                    <label style="white-space: nowrap;" for="budget_amount" class="required">Amount: </label>
47
                        <label for="budget_period_total">Total amount: </label>
48
                    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
48
                        <input type="text" id="budget_period_total" name="budget_period_total" size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
49
                </li>
49
                    </li>
50
50
51
                <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="0" />
51
                    <li>
52
52
                        <label for="budget_period_active">Make budget active: </label>
53
                [% IF ( budget_id ) %]
53
                        <input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />
54
                    <input type="hidden" name="budget_id" value="[% budget_id %]" />
54
                    </li>
55
                [% END %]
55
                </ol>
56
56
            </fieldset>
57
        </fieldset>
57
            <fieldset class="action">
58
        <fieldset class="action">
58
                <a href = "/cgi-bin/koha/acqui/acqui-home.pl">
59
            <input type="submit" value="Submit" />
59
                <input type="submit" class="action" value="Submit" />
60
            <input type="hidden" name="budget_period_id" value="1" />
60
                </a>
61
        </fieldset>
61
            </fieldset>
62
    </form>
62
        </form>
63
</div>
63
    </div>
64
    [% ELSIF displayonboardscreen == "label" %]
65
        <h2>testing</h2>
66
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboardinginclude3.inc (+74 lines)
Line 0 Link Here
1
<style type="text/css">
2
  #onboardingModal{
3
       z-index:1;
4
       background-color:#EDF4F6;
5
       padding:20px;
6
       width:83.7%;
7
       height:100%;
8
       position:fixed;
9
       left:auto;
10
       top:auto;
11
       right:auto;
12
       bottom:auto;
13
}
14
</style>
15
16
<div id="onboardingModal">
17
    <h2> Acquisition onboarding wizard</h2>
18
    <p> Fill out this form to create a fund which will be assigned to the budget you just created. <br>
19
    A fund is an accounting value you will use to set up orders</p>
20
    <br>
21
    <h3> Create a fund</h3>
22
    <form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
23
        <input type="hidden" name="op" value="add_validate" />
24
        <input type="hidden" name="checked" value="0" />
25
        <input type="hidden" name="fundcreation" value="onboarding" />
26
        <input type="hidden" name="step" value="4" />
27
        [% IF ( budget_id ) %]
28
                <input type="hidden" name="budget_id" value="[% budget_id %]" />
29
        [% END %]
30
        [% budget_id %]
31
32
        <fieldset class="rows">
33
           <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund
34
                [% IF ( budget_period_description ) %]
35
                    [% budget_name %] for Budget '[% budget_period_description %]'
36
                [% END %]
37
           </legend>
38
        <ol>
39
                [% budget_parent_id = 0 %]
40
                <li>
41
                     <span class="label">Fund parent: </span>
42
                     [% budget_parent_name %]
43
                     [% budget_parent_id %] - [% budget_parent_name %]
44
                     <input type="hidden" name="budget_parent_id" value= NULL />
45
                </li>
46
                <li>
47
                    <label class="required"  for="budget_code">Fund code: </label>
48
                    <input type="text" name="budget_code" id="budget_code" value="[% budget_code %]" size="30" />
49
                </li>
50
51
                <li>
52
                    <label class="required" for="budget_name">Fund name: </label>
53
                    <input type="text" name="budget_name" id="budget_name" value="[% budget_name %]" size="60" />
54
                </li>
55
56
                <li>
57
                    <label style="white-space: nowrap;" for="budget_amount" class="required">Amount: </label>
58
                    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
59
                </li>
60
61
                <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="0" />
62
63
                [% IF ( budget_id ) %]
64
                    <input type="hidden" name="budget_id" value="[% budget_id %]" />
65
                [% END %]
66
67
        </fieldset>
68
        <fieldset class="action">
69
            <input type="submit" value="Submit" />
70
            <input type="hidden" name="budget_period_id" value="1" />
71
        </fieldset>
72
    </form>
73
74
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-17 / +33 lines)
Lines 22-34 Link Here
22
dt_overwrite_html_sorting_localeCompare();
22
dt_overwrite_html_sorting_localeCompare();
23
23
24
$(document).ready(function() {
24
$(document).ready(function() {
25
25
    $("#aqhelp").hide();
26
    var modal = document.getElementById('acquisitionsModal');
27
    var span = document.getElementsByClassName("close")[0];
28
29
    span.onclick = function() {
30
        modal.style.display = "none";
31
    }
32
26
33
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
27
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
34
        "fnDrawCallback": function ( oSettings ) {
28
        "fnDrawCallback": function ( oSettings ) {
Lines 95-100 $(document).ready(function() { Link Here
95
    });
89
    });
96
    $("#hide_inactive").click();
90
    $("#hide_inactive").click();
97
91
92
    $("#show").click(function(){
93
        $("#aqhelp").show();
94
    });
95
98
});
96
});
99
//]]>
97
//]]>
100
</script>
98
</script>
Lines 113-136 $(document).ready(function() { Link Here
113
    <div class="yui-b">
111
    <div class="yui-b">
114
112
115
[% INCLUDE 'acquisitions-toolbar.inc' %]
113
[% INCLUDE 'acquisitions-toolbar.inc' %]
116
117
<h1>Acquisitions</h1>
118
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
119
    [% UNLESS ( loop_budget ) %]
114
    [% UNLESS ( loop_budget ) %]
120
        [% IF ( CAN_user_acquisition_period_manage ) %]
115
        [% IF ( CAN_user_acquisition_period_manage ) %]
121
            [% displayonboardscreen = "acquisitions" %]
116
            [% displayonboardscreen = "acquisitions" %]
122
            [% IF stepfund == 1 %]
117
            [% IF step == 1 %]
123
                [% INCLUDE onboardinginclude.inc %]
118
                [% INCLUDE onboardinginclude1.inc %]
124
            [% ELSE %]
119
            [% ELSIF step == 2 %]
125
                [% INCLUDE onboardinginclude2.inc %]
120
                [% INCLUDE onboardinginclude2.inc %]
121
            [% ELSIF step == 3 %]
122
                [% INCLUDE onboardinginclude3.inc %]
126
            [% END %]
123
            [% END %]
127
        [% ELSE %]
124
        [% ELSE %]
128
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
125
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
129
        [% END %]
126
        [% END %]
127
    [% ELSE %]
128
        <h1>Acquisitions</h1>
130
    [% END %]
129
    [% END %]
131
    <script type="text/javascript">
132
        var showModal = 2;
133
    </script>
134
<div class="yui-g">
130
<div class="yui-g">
135
<div class="yui-u first">
131
<div class="yui-u first">
136
<div id="acqui_acqui_home_order">
132
<div id="acqui_acqui_home_order">
Lines 260-265 $(document).ready(function() { Link Here
260
    </div>
256
    </div>
261
    [% END %]
257
    [% END %]
262
258
259
    <button type="button" id="show" onclick"unhide(aqhelp)">Show the next steps to set up Acquisitions</button>
260
    <br><br>
261
    <div id="aqhelp">
262
        <h1> Next steps</h1>
263
        <h2> 1. Create your first vendor</h2>
264
        <p> A vendor is the organisation your institution purchases items from i.e. suppliers<br>
265
        You must create a vendor before you can create any orders</p>
266
        <b>Click <a href="/cgi-bin/koha/acqui/supplier.pl?op=enter">here</a> to create a vendor.</b>
267
        <br><br>
268
        <h2> 2. Create your first basket</h2>
269
        <p> A basket is the conceptual container that holds orders. Each basket is assigned to a single vendor so you can perform multiple seperate orders from a single vendor simultaneously. Because of its reliance on vendor the basket must be created after the vendor</p>
270
        <b> To create a basket, click the 'New basket' button on the Vendor Information page which is displayed after you create a vendor</b>
271
        <br><br>
272
        <h2> 3. Create an order</h2>
273
        <p> An order is a assignment of items purchased from a single vendor at a single time</p>
274
        You create an order by clicking "Add to basket" in the Basket page. From here you can choose the item(s) you want to purchase from existing MARC records in your Koha catalogue, subscription, new item record, external source, staged file (bibliographic file in the process of being uploaded), or from popularly held items.
275
        </p>
276
        <br><br>
277
        For further information about creating a vendor, basket and order go to the Koha manual:
278
        <a href="http://translate.koha-community.org/manual/master/en/html/09_acquisitions.html"> Koha manual Acquisitions section</a>
279
    </div>
263
</div>
280
</div>
264
</div>
281
</div>
265
<div class="yui-b">
282
<div class="yui-b">
266
- 

Return to bug 18002