http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10366

Srdjan Jankovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Srdjan Jankovic <[email protected]> ---
@invoices should be checked only if AcqWarnOnDuplicateInvoice is set, otherwise
it is an unnecessary db read.
Can you please amend to something like
my $duplicate_invoices;
if ( C4::Context->preference('AcqWarnOnDuplicateInvoice') ) {
    if ( GetInvoices(...) ) {
        $duplicate_invoices = 1;
    }
}
if ($duplicate_invoices) {
    ...
} else {
    $op = 'confirm';
}

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to