Lines 148-154
elsif ( $op && $op eq 'del_adj' ) {
Link Here
|
148 |
my $adjustment_id = $input->param('adjustment_id'); |
148 |
my $adjustment_id = $input->param('adjustment_id'); |
149 |
my $del_adj = Koha::Acquisition::Invoice::Adjustments->find( $adjustment_id ); |
149 |
my $del_adj = Koha::Acquisition::Invoice::Adjustments->find( $adjustment_id ); |
150 |
if ($del_adj) { |
150 |
if ($del_adj) { |
151 |
if (C4::Context->preference("AcqLog")) { |
151 |
if (C4::Context->preference("AcquisitionLog")) { |
152 |
my $infos = { |
152 |
my $infos = { |
153 |
invoiceid => $del_adj->invoiceid, |
153 |
invoiceid => $del_adj->invoiceid, |
154 |
budget_id => $del_adj->budget_id, |
154 |
budget_id => $del_adj->budget_id, |
Lines 194-200
elsif ( $op && $op eq 'mod_adj' ) {
Link Here
|
194 |
my $new_adj = Koha::Acquisition::Invoice::Adjustment->new($adj); |
194 |
my $new_adj = Koha::Acquisition::Invoice::Adjustment->new($adj); |
195 |
$new_adj->store(); |
195 |
$new_adj->store(); |
196 |
# Log this addition |
196 |
# Log this addition |
197 |
if (C4::Context->preference("AcqLog")) { |
197 |
if (C4::Context->preference("AcquisitionLog")) { |
198 |
logaction( |
198 |
logaction( |
199 |
'ACQUISITIONS', |
199 |
'ACQUISITIONS', |
200 |
'CREATE_INVOICE_ADJUSTMENT', |
200 |
'CREATE_INVOICE_ADJUSTMENT', |
Lines 207-213
elsif ( $op && $op eq 'mod_adj' ) {
Link Here
|
207 |
my $old_adj = Koha::Acquisition::Invoice::Adjustments->find( $adjustment_id[$i] ); |
207 |
my $old_adj = Koha::Acquisition::Invoice::Adjustments->find( $adjustment_id[$i] ); |
208 |
unless ( $old_adj->adjustment == $adjustment[$i] && $old_adj->reason eq $reason[$i] && $old_adj->budget_id == $budget_id[$i] && $old_adj->encumber_open == $e_open{$adjustment_id[$i]} && $old_adj->note eq $note[$i] ){ |
208 |
unless ( $old_adj->adjustment == $adjustment[$i] && $old_adj->reason eq $reason[$i] && $old_adj->budget_id == $budget_id[$i] && $old_adj->encumber_open == $e_open{$adjustment_id[$i]} && $old_adj->note eq $note[$i] ){ |
209 |
# Log this modification |
209 |
# Log this modification |
210 |
if (C4::Context->preference("AcqLog")) { |
210 |
if (C4::Context->preference("AcquisitionLog")) { |
211 |
my $infos = { |
211 |
my $infos = { |
212 |
adjustment => $adjustment[$i], |
212 |
adjustment => $adjustment[$i], |
213 |
reason => $reason[$i], |
213 |
reason => $reason[$i], |