Hi Ricky,
check this
SELECT T0.[CardName] PartyName, T1.[Dscription] as Item_description, T0.[NumAtCard] as Customer_Ref_No, T1.[ShipDate] as Del_Date_line_level, T0.[DocNum] as SO_No, T0.[DocDate] as SO_Date, T1.[Quantity], T1.[Price],T1.[Quantity]*T1.[Price] as Line_total_without_tax, T1.[DelivrdQty], T1.[DelivrdQty]*T1.[Price] as Delivered_amount_line_total_without_tax, T1.[OpenQty]*T1.[Price] as pending_qty_line_total_amount_without_tax FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry where T0.[CardName] = [%0] and T0.[DocDate] between [%1] and [%2]
Thanks
Mohammad Imran