]> git.koha-community.org Git - koha.git/commit
Bug 14946: Remove C4::Dates from acqui/* files
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 10 Nov 2015 17:42:44 +0000 (17:42 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Nov 2015 02:42:55 +0000 (23:42 -0300)
commit94029916cc8a1ac81e5c344aff32bcb656e94094
tree5c26926a19dac0a45041352ba42f7f6482cb67db
parentbbc4eb46632c034c44627baf8a9de878505a6c0d
Bug 14946: Remove C4::Dates from acqui/* files

This patch replaces all use of C4::Dates with Koha::DateUtils, which is
the best practice to follow.

It also fixes a bug on the invoice search, the shipment date (from and
to) were not passed correctly from one page to the other.

Test plan:
1/ Search for orders using the different filters
2/ Create an invoice, try with setting and leaving empty the date
fields.
Default should be an undefined value (not today)
3/ Search for invoices and use the 4 different filters.
Close and reopen invoices.
The filters should be kept from one page to the other (not that it does
not work with shipment date before this patch).
4/ Receive an order, on creating the invoice, the default date should be
today.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
acqui/histsearch.pl
acqui/invoice.pl
acqui/invoices.pl
acqui/parcel.pl
acqui/parcels.pl
acqui/transferorder.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt