销售退货单报表
小于 1 分钟
示例代码
SELECT T0.[DocNum], T0.[CardName], T0.[DocDate], T1.[ItemCode], T1.[Dscription]
, T1.[Quantity], T0.[Comments]
FROM ORDN T0
INNER JOIN RDN1 T1 ON T0.[DocEntry] = T1.[DocEntry]
WHERE (T0.[CardName] = '[%0]'
OR '[%0]' = '')
AND T0.[DocDate] >= [%1]
AND T0.[DocDate] <= [%2]
ORDER BY T0.[DocNum] DESC