Lines 1158-1164
Link Here
|
1158 |
$("#current-fund").html(FUNC_CUR.format(row.fund.budget.budget_period_description, row.fund.name)); |
1158 |
$("#current-fund").html(FUNC_CUR.format(row.fund.budget.budget_period_description, row.fund.name)); |
1159 |
$("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')') |
1159 |
$("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')') |
1160 |
$("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); |
1160 |
$("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); |
1161 |
$("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received ) |
1161 |
if (effective_create_items == 'cataloguing' && ! row.quantity_received) { |
|
|
1162 |
row.quantity_received = 1; |
1163 |
} |
1164 |
$("#quantity").val( row.quantity_received ) |
1162 |
.prop('readonly', !row.subscription_id && effective_create_items == 'receiving'); |
1165 |
.prop('readonly', !row.subscription_id && effective_create_items == 'receiving'); |
1163 |
[% IF only_one_order %] |
1166 |
[% IF only_one_order %] |
1164 |
$(".modal-save").prop('disabled', $("#quantity").val() == 0); |
1167 |
$(".modal-save").prop('disabled', $("#quantity").val() == 0); |
1165 |
- |
|
|