[sales common] [fix] calculate outstanding amount only for docstatus=0 on client side