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

(-)a/acqui/neworderempty.pl (-1 / +5 lines)
Lines 122-127 our ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user( Link Here
122
);
122
);
123
123
124
our $marcflavour = C4::Context->preference('marcflavour');
124
our $marcflavour = C4::Context->preference('marcflavour');
125
my $defaultvalues= C4::Context->preference('AcqNewOrderEmptyDefaults')||'';
125
126
126
if(!$basketno) {
127
if(!$basketno) {
127
    my $order = GetOrder($ordernumber);
128
    my $order = GetOrder($ordernumber);
Lines 261-267 foreach my $r (@{$budgets}) { Link Here
261
        b_id  => $r->{budget_id},
262
        b_id  => $r->{budget_id},
262
        b_txt => $r->{budget_name},
263
        b_txt => $r->{budget_name},
263
        b_active => $r->{budget_period_active},
264
        b_active => $r->{budget_period_active},
264
        b_sel => ( $r->{budget_id} == $budget_id ) ? 1 : 0,
265
        b_sel => ( $r->{budget_id} == $budget_id || (!$budget_id && $defaultvalues=~/fund=$r->{budget_code}/i )) ? 1 : 0,
265
    };
266
    };
266
}
267
}
267
268
Lines 320-325 if (C4::Context->preference('AcqCreateItem') eq 'ordering' && !$ordernumber) { Link Here
320
# Get the item types list, but only if item_level_itype is YES. Otherwise, it will be in the item, no need to display it in the biblio
321
# Get the item types list, but only if item_level_itype is YES. Otherwise, it will be in the item, no need to display it in the biblio
321
my @itemtypes;
322
my @itemtypes;
322
@itemtypes = C4::ItemType->all unless C4::Context->preference('item-level_itypes');
323
@itemtypes = C4::ItemType->all unless C4::Context->preference('item-level_itypes');
324
foreach(@itemtypes) {
325
    $_->{selected}=1 if !$biblionumber && $defaultvalues=~/itemtype=$_->{itemtype}/i;
326
}
323
327
324
# Find the items.barcode subfield for barcode validations
328
# Find the items.barcode subfield for barcode validations
325
my (undef, $barcode_subfield) = GetMarcFromKohaField('items.barcode', '');
329
my (undef, $barcode_subfield) = GetMarcFromKohaField('items.barcode', '');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-1 / +3 lines)
Lines 35-40 Acquisitions: Link Here
35
            - Default tax rates are
35
            - Default tax rates are
36
            - pref: gist
36
            - pref: gist
37
            - (enter in numeric form, 0.12 for 12%. First is the default. If you want more than 1 value, please separate with |)
37
            - (enter in numeric form, 0.12 for 12%. First is the default. If you want more than 1 value, please separate with |)
38
        -
39
            - pref: AcqNewOrderEmptyDefaults
40
            - " (Optionally define default values for item type and/or fund by entering an item code or fund code prefixed by itemtype= or fund=. Example: fund=FND,itemtype=BKS. The defaults you specify here will be used on the neworderempty form.)"
38
41
39
    Printing:
42
    Printing:
40
        -
43
        -
41
- 

Return to bug 9088