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

(-)a/acqui/addorderiso2709.pl (-1 / +1 lines)
Lines 174-180 if ($op eq ""){ Link Here
174
        my $c_quantity = shift( @quantities ) || GetMarcQuantity($marcrecord, C4::Context->preference('marcflavour') ) || 1;
174
        my $c_quantity = shift( @quantities ) || GetMarcQuantity($marcrecord, C4::Context->preference('marcflavour') ) || 1;
175
        my $c_budget_id = shift( @budgets_id ) || $input->param('all_budget_id') || $budget_id;
175
        my $c_budget_id = shift( @budgets_id ) || $input->param('all_budget_id') || $budget_id;
176
        my $c_discount = shift ( @discount);
176
        my $c_discount = shift ( @discount);
177
        $c_discount = $c_discount / 100 if $c_discount > 100;
177
        $c_discount = $c_discount / 100 if $c_discount > 1;
178
        my $c_sort1 = shift( @sort1 ) || $input->param('all_sort1') || '';
178
        my $c_sort1 = shift( @sort1 ) || $input->param('all_sort1') || '';
179
        my $c_sort2 = shift( @sort2 ) || $input->param('all_sort2') || '';
179
        my $c_sort2 = shift( @sort2 ) || $input->param('all_sort2') || '';
180
180
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js (+3 lines)
Lines 673-678 function calcNewsuggTotal(){ Link Here
673
}
673
}
674
674
675
function getAuthValueDropbox( name, cat, destination, selected ) {
675
function getAuthValueDropbox( name, cat, destination, selected ) {
676
    if ( typeof(selected) == 'undefined' ) {
677
        selected = "";
678
    }
676
    if (cat == null || cat == "") {
679
    if (cat == null || cat == "") {
677
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
680
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
678
        return;
681
        return;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-8 / +9 lines)
Lines 151-158 Link Here
151
                  </ul>
151
                  </ul>
152
152
153
                  <div id="records_to_import">
153
                  <div id="records_to_import">
154
                    <span class="checkall"><a id="checkAll" href="#">Check All</a></span>
154
                    <span class="checkall"><a id="checkAll" href="#">Check all</a></span>
155
                    <span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span>
155
                    <span class="uncheckall"><a id="unCheckAll" href="#">Uncheck all</a></span>
156
                        <input type="hidden" name="op" value="import_records"/>
156
                        <input type="hidden" name="op" value="import_records"/>
157
                        <input type="hidden" name="basketno" value="[% basketno %]" />
157
                        <input type="hidden" name="basketno" value="[% basketno %]" />
158
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
158
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
Lines 170-178 Link Here
170
                              <input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" />
170
                              <input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" />
171
                              <span class="citation">[% biblio.citation %]</span>
171
                              <span class="citation">[% biblio.citation %]</span>
172
                            </label>
172
                            </label>
173
                            ( Show <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% biblio.import_record_id %]" title="Card" rel="gb_page_center[600,500]">Card</a> ; <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
173
                            <span class="links" style="font-weight: normal;">
174
174
                              ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% biblio.import_record_id %]" title="Card" rel="gb_page_center[600,500]">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
175
175
                            </span>
176
                          </legend>
176
                          </legend>
177
                          <ol>
177
                          <ol>
178
                            <li class="status">
178
                            <li class="status">
Lines 201-207 Link Here
201
                            </li>
201
                            </li>
202
                            <li class="discount">
202
                            <li class="discount">
203
                                <label for="discount_record_[% biblio.import_record_id %]">Discount: </label>
203
                                <label for="discount_record_[% biblio.import_record_id %]">Discount: </label>
204
                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" />
204
                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" size="6" /> %
205
                            </li>
205
                            </li>
206
                            <li class="budget">
206
                            <li class="budget">
207
                                <label for="fund_record_[% biblio.import_record_id %]">Fund: </label>
207
                                <label for="fund_record_[% biblio.import_record_id %]">Fund: </label>
Lines 221-231 Link Here
221
                                [% END %]
221
                                [% END %]
222
                            </li>
222
                            </li>
223
                            <li class="sort1">
223
                            <li class="sort1">
224
                                <label for="sort1_record_[% biblio.import_record_id %]">Planning value 1: </label>
224
                                <label for="sort1_record_[% biblio.import_record_id %]">Statistic 1: </label>
225
                                <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
225
                                <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
226
                            </li>
226
                            </li>
227
                            <li class="sort2">
227
                            <li class="sort2">
228
                                <label for="sort2_record_[% biblio.import_record_id %]">Planning value 2: </label>
228
                                <label for="sort2_record_[% biblio.import_record_id %]">Statistic 2: </label>
229
                                <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
229
                                <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
230
                            </li>
230
                            </li>
231
                          </ol>
231
                          </ol>
Lines 271-276 Link Here
271
                        [% END %] <!-- items -->
271
                        [% END %] <!-- items -->
272
                      </div>
272
                      </div>
273
                      <div id="accounting_details">
273
                      <div id="accounting_details">
274
                        <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
274
                        <fieldset class="rows" style="float:none;">
275
                        <fieldset class="rows" style="float:none;">
275
                            <legend>Accounting details</legend>
276
                            <legend>Accounting details</legend>
276
                            <ol>
277
                            <ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-2 / +2 lines)
Lines 49-55 Acquisitions: Link Here
49
            - Set the mapping values for a new order line created from a marcrecord (staged file).
49
            - Set the mapping values for a new order line created from a marcrecord (staged file).
50
            - pref: MarcFieldsToOrder
50
            - pref: MarcFieldsToOrder
51
              type: textarea
51
              type: textarea
52
            - "For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a<rb/>"
52
            - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2"
53
            - "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a"
53
    Printing:
54
    Printing:
54
        -
55
        -
55
            - Use the
56
            - Use the
56
- 

Return to bug 7180