mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-15 06:47:08 -04:00
- Implement conditional logic to calculate and sort by the sum of quantities across all locations when `stock_location_id` is invalid. - Adjust query joins and select clauses to handle the new sorting behavior. - Maintain existing sorting logic for other cases to ensure backward compatibility. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>