SELECT order_no , order_date , h.order_header_id , sum(tax_amount) tax, sum(net_amount) net, sum(balance) - (select sum(l.balance)- nvl(paid from pay_lin p whe