您好,请您先 登陆 或者 注册

上期欠款问题

上一单的欠款:
db_data2(~"select a.sheet_amt- a.order_amt- a.paid_amt- a.free_amt From t_cust_accout_flow a, (select top 1 sheet_no From t_pf_out_master where sheet_no in( select top 2 sheet_no From t_pf_out_master where cust_no=? order by sheet_no desc) order by sheet_no ) b where a.sheet_no =b.sheet_no~",db_data2(~"select cust_no from t_pf_out_master where sheet_no=?~",max(sheet_no)))
上次欠款:
db_data2('SELECT SUM((a.sheet_amt-a.order_amt-a.paid_amt-a.free_amt)*a.pay_type) FROM dbo.t_cust_accout_flow a,dbo.t_pf_out_master b WHERE a.cust_no=b.cust_no AND b.sheet_no=? AND a.oper_date<b.oper_date',max(sheet_no))
以上两条语句在批发打印能正常显示,我把这个打印格式转入批发退货单不会显示了,这两条语句要重写?求语句

提问者: qqonqqqq
等级:普通会员
时间:2014-11-27 11:00
悬赏:0
解决时间:2014-12-07 11:00
回答 共 5 条
这个要联系技术部改动一下计算列
回答者:李祥
等级:问不倒翁
时间:2014-11-27 20:36
上单欠款:
db_data2(~"select a.sheet_amt- a.order_amt- a.paid_amt- a.free_amt From t_cust_accout_flow a, (select top 1 sheet_no From t_pf_out_master where sheet_no in( select top 2 sheet_no From t_pf_out_master where cust_no=? order by sheet_no desc) order by sheet_no ) b where a.sheet_no =b.sheet_no~",db_data2(~"select cust_no from t_pf_return_master where sheet_no=?~",max(sheet_no)))


上次欠款:
db_data2(~"SELECT SUM((a.sheet_amt-a.order_amt-a.paid_amt-a.free_amt)*a.pay_type)
FROM dbo.t_cust_accout_flow a,dbo.t_pf_return_master b
WHERE a.cust_no=b.cust_no AND a.oper_date<b.oper_date AND b.sheet_no=?~",max(sheet_no))
回答者:赢通技术3
等级:皇冠会员
时间:2014-11-28 15:44
学习
回答者:kh359
等级:问不倒翁
时间:2014-11-28 17:29
学习二楼
回答者:zhaoshuai888
等级:问不倒翁
时间:2014-11-29 20:57
学习
回答者:幸福猫
等级:金牌会员
时间:2014-12-01 14:41
快到期问题
总积分排行
ytkf00720058 4704
kh35927124 3414
赢通技术43602 3117
bonchen13219 2797
赢通技术37615 2590
JCLH11087 1917
浅逝1873 1873
李祥19958 1542
xiaobird3309 1254
daoptt3310 1237