]> git.koha-community.org Git - koha.git/commit
Bug 7291: Adds new field aqbooksellers.deliverytime
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 13 Feb 2012 09:05:17 +0000 (10:05 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 3 Apr 2012 16:19:46 +0000 (18:19 +0200)
commitd76dbace5e6436ae5244876b52ffcdc4831f91db
tree01e6cf3858b00e01c3135a5523e14509cade0ded
parent53a7fb7ba383e6925198fb1a69bdcabd3b8d858c
Bug 7291: Adds new field aqbooksellers.deliverytime

New field deliverytime in aqbooksellers table. It is an estimated
delivery time for orders (in days).
You can set this delay on the supplier modification page.
It is used in the late orders search.

The order estimated date is the aqbasket.closedate +
aqbooksellers.deliverytime

If you set a delay, the query check if closedate <= today - delay

If you set a "delivery time from" and a "delivery time to", the query check if
$delivery_time_from <= aqbooksellers.deliverytime is not NULL and if
closedate + deliverytime >= $delivery_time_to
if there is not a time_to then $delivery_time_to = the current date.
C4/Acquisition.pm
C4/Bookseller.pm
acqui/basket.pl
acqui/lateorders.pl
acqui/supplier.pl
acqui/updatesupplier.pl
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt