fix: sales order not assigned to territory orders (#37905)
filtered sales order are not assigned to 'territory_orders' which results in 0 order amount and 0 billing amount in the output
(cherry picked from commit 45b4bfc94783bb0180c0a57a2f3a5bb7086008a3)
Co-authored-by: jabir-elat <44110258+jabir-elat@users.noreply.github.com>