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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-1 / +1 lines)
Lines 194-200 Link Here
194
                                                                </li>
194
                                                                </li>
195
                                                                <li class="price">
195
                                                                <li class="price">
196
                                                                    <label for="price_record_[% biblio.import_record_id | html %]">Price: </label>
196
                                                                    <label for="price_record_[% biblio.import_record_id | html %]">Price: </label>
197
                                                                    <input id="price_record_[% biblio.import_record_id | html %]" class="decimal" type="text" value="[% biblio.price | $Price on_editing => 1 %]" name="price_[% biblio.import_record_id | html %]" />
197
                                                                    <input id="price_record_[% biblio.import_record_id | html %]" class="decimal" type="text" value="[% biblio.price | $Price on_editing => 1 %]" name="price_[% biblio.import_record_id | html %]" onchange="syncReplacementPrice('price_record_[% biblio.import_record_id | html %]', 'replacementprice_record_[% biblio.import_record_id | html %]')" />
198
                                                                </li>
198
                                                                </li>
199
                                                                <li class="replacementprice">
199
                                                                <li class="replacementprice">
200
                                                                    <label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label>
200
                                                                    <label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/js/acq.js (-2 / +7 lines)
Lines 179-184 function messenger(X,Y,etc){ // FIXME: unused? Link Here
179
//  NEXT BLOCK IS USED BY NEWORDERBEMPTY
179
//  NEXT BLOCK IS USED BY NEWORDERBEMPTY
180
180
181
function updateCosts(){
181
function updateCosts(){
182
    console.log("updateCosts");
182
    var quantity = new Number($("#quantity").val());
183
    var quantity = new Number($("#quantity").val());
183
    var discount = new Number($("#discount").val());
184
    var discount = new Number($("#discount").val());
184
    var listprice   =  new Number($("#listprice").val());
185
    var listprice   =  new Number($("#listprice").val());
Lines 202-209 function updateCosts(){ Link Here
202
    return true;
203
    return true;
203
}
204
}
204
205
205
// Calculates total amount in a suggestion
206
function syncReplacementPrice(sourceId, targetId) {
207
    console.log("updatePRice");
208
    var priceValue = $("#" + sourceId).val();
209
    $("#" + targetId).val(priceValue);
210
}
206
211
212
// Calculates total amount in a suggestion
207
function calcNewsuggTotal(){
213
function calcNewsuggTotal(){
208
    //collect values
214
    //collect values
209
    var quantity = Number(document.getElementById('quantity').value);
215
    var quantity = Number(document.getElementById('quantity').value);
210
- 

Return to bug 30598