[Koha-bugs] [Bug 33653] Search for late orders can show received order lines
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 9 10:00:12 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33653
--- Comment #12 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
If I am reading that right:
{
'-or' => [
{ 'basket.is_standing' => 1,
'orderstatus' => [ 'new', 'ordered', 'partial' ] },
{ 'orderstatus' => [ 'ordered', 'partial' ] }
]
}
* It's a standing order with new, ordered or partial
* It's ordered or partial
That should work ok here.
I believe the standing orders could be an issue, but if I understand the code
correctly, they are already showing up in the late orders:
- ( orderstatus => { '!=' => 'cancelled' } ),
+ ( orderstatus => { '-not_in' => ['cancelled', 'complete'] } ),
If the delivery date is calculated from the order date, they will all be "late"
for the 'new' order line and there is no way to tell that it is a standing
order in the results list... probably something for a separate bug.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list