Description
Katrin Fischer
2015-07-16 09:31:44 UTC
129 AND aqorders.rrp <> 0 130 AND aqorders.ecost <> 0 Appear to be the reason for the orders not showing up. Just had another library reporting this as a bug. This is not an issue for us, as the only items we have with a price of zero are pre-orders which will be published in the next fiscal year. We want them to show in the OPAC to avoid patrons suggesting them, but use a zero price to keep them from affecting the current budget. Just wanted the community to be aware of this aspect when working on this bug. Hi Sandre, what is your suggestion to resolve this? Would it be a problem if those showed up as late orders after the normal period? How are you treating gifts? I think one of the libraries explained that they use 0 for tracking gifts that they expect to receive or have asked for or when they don't know how much an item will cost. I don't think it would be a problem if the 0-priced items showed up on the late list. I don't have a suggestion as I don t quite understand the intended purpose of including 129 AND aqorders.rrp <> 0 130 AND aqorders.ecost <> 0 in the selection, and what the ramifications of removing one or both would be. We do not "track" gifts in the manner you described, as ours are either gifts of physical items or monetary donations (from which items are ordered in the usual way, but from a trust fund account.) A larger problem is that we do so much ordering of pre-publication items, and there is no way to adjust the "lateness" according to the scheduled publication date. For example, right now we have a purchase suggestion for an item that will not be published until April 2017. We want to make the order to get the item (by a popular author) into the OPAC so patrons can see it is on order and place holds, but if I do that now, the item would be "late" in 30 days, even though it will not be published for 6 months. I would also opt for the possibility to claim late orders without price. Created attachment 59921 [details] [review] Bug 14535: Late orders does not show orders with price = 0 This patch removes the filter of unitpricesupplier <> 0 and unitpricelib <> 0 from GetLateOrders as used in lateorders.pl. This allows you to claim late orders without a price entered. Test plan: [1] Run t/db_dependent/Acquisition.t [2] Check if you see an order with no price in lateorders.pl. (If needed, remove prices from a few orders.) Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Still need another change Created attachment 59922 [details] [review] Bug 14535: Update the supplier filter too The combobox on the left side of late orders is filled by sub GetBooksellersWithLateOrders. The same change as in the first patch must be made here to include suppliers with late orders without a price. Test plan: [1] Run t/db_dependent/Bookseller.t. [2] Go to late orders. Use the filter on suppliers. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 59928 [details] [review] Bug 14535: Update the supplier filter too The combobox on the left side of late orders is filled by sub GetBooksellersWithLateOrders. The same change as in the first patch must be made here to include suppliers with late orders without a price. Bonus: Sort the list. Test plan: [1] Run t/db_dependent/Bookseller.t. [2] Go to late orders. Use the filter on suppliers. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Katrin: Could you test this one please? It's on the list, but I don't have much time the next 2 weeks, someone else might be faster. Created attachment 61348 [details] [review] [SIGNED-OFF] Bug 14535: Late orders does not show orders with price = 0 This patch removes the filter of unitpricesupplier <> 0 and unitpricelib <> 0 from GetLateOrders as used in lateorders.pl. This allows you to claim late orders without a price entered. Test plan: [1] Run t/db_dependent/Acquisition.t [2] Check if you see an order with no price in lateorders.pl. (If needed, remove prices from a few orders.) Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Srdjan <srdjan@catalyst.net.nz> Created attachment 61349 [details] [review] [SIGNED-OFF] Bug 14535: Update the supplier filter too The combobox on the left side of late orders is filled by sub GetBooksellersWithLateOrders. The same change as in the first patch must be made here to include suppliers with late orders without a price. Bonus: Sort the list. Test plan: [1] Run t/db_dependent/Bookseller.t. [2] Go to late orders. Use the filter on suppliers. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Srdjan <srdjan@catalyst.net.nz> Thx, Srdjan! (In reply to Katrin Fischer from comment #15) > Thx, Srdjan! Yes. indeed. srdjan++ I wrote that long time ago and I am pretty sure that was a feature. (In reply to Jonathan Druart from comment #17) > I wrote that long time ago and I am pretty sure that was a feature. I passed QA on that long time ago and I am not sure it was :) We got complaints - so it's at least not a feature for everyone :) (In reply to Marcel de Rooy from comment #18) > (In reply to Jonathan Druart from comment #17) > > I wrote that long time ago and I am pretty sure that was a feature. > > I passed QA on that long time ago and I am not sure it was :) You did not write/read the initial specs ;) I have asked BibLibre's guys to dig into their own bug tracker. Created attachment 61370 [details] [review] Bug 14535: Late orders does not show orders with price = 0 This patch removes the filter of unitpricesupplier <> 0 and unitpricelib <> 0 from GetLateOrders as used in lateorders.pl. This allows you to claim late orders without a price entered. Test plan: [1] Run t/db_dependent/Acquisition.t [2] Check if you see an order with no price in lateorders.pl. (If needed, remove prices from a few orders.) Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Srdjan <srdjan@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Created attachment 61371 [details] [review] Bug 14535: Update the supplier filter too The combobox on the left side of late orders is filled by sub GetBooksellersWithLateOrders. The same change as in the first patch must be made here to include suppliers with late orders without a price. Bonus: Sort the list. Test plan: [1] Run t/db_dependent/Bookseller.t. [2] Go to late orders. Use the filter on suppliers. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Srdjan <srdjan@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (In reply to Jonathan Druart from comment #20) > (In reply to Marcel de Rooy from comment #18) > > (In reply to Jonathan Druart from comment #17) > > > I wrote that long time ago and I am pretty sure that was a feature. > > > > I passed QA on that long time ago and I am not sure it was :) > > You did not write/read the initial specs ;) > I have asked BibLibre's guys to dig into their own bug tracker. Gaetan agreed! (In reply to Jonathan Druart from comment #23) > (In reply to Jonathan Druart from comment #20) > > (In reply to Marcel de Rooy from comment #18) > > > (In reply to Jonathan Druart from comment #17) > > > > I wrote that long time ago and I am pretty sure that was a feature. > > > > > > I passed QA on that long time ago and I am not sure it was :) > > > > You did not write/read the initial specs ;) > > I have asked BibLibre's guys to dig into their own bug tracker. > > Gaetan agreed! What if we did not have him :) Thanks Pushed to master for 17.05, thanks Marcel! These patches have been pushed to 16.11.x and will be in 16.11.07. . Pushed to 3.22.x for 3.22.20 Pushed to 16.05.x, for 16.05.12 release |