我用的是A5商业板,怎么样打单的时候设置前欠款和总欠款?
- 提问者: 陈显群
- 等级:普通会员
- 时间:2013-09-28 14:18
- 悬赏:0
- 解决时间:2013-10-03 16:42
最佳答案
是批发销售单吗?
上次欠款:
db_data2('SELECT SUM(a.sheet_amt-a.order_amt-a.paid_amt-a.free_amt) FROM dbo.t_cust_accout_flow a,dbo.t_cust_accout_flow b WHERE a.cust_no=b.cust_no AND b.sheet_no=? AND a.oper_date<b.oper_date',max(sheet_no))
本单欠款:
string(dec(db_data2('select sheet_amt-order_amt-paid_amt-free_amt from t_cust_accout_flow where sheet_no=?',sheet_no)),'0.00')
总欠款:系统默认就有!
上次欠款:
db_data2('SELECT SUM(a.sheet_amt-a.order_amt-a.paid_amt-a.free_amt) FROM dbo.t_cust_accout_flow a,dbo.t_cust_accout_flow b WHERE a.cust_no=b.cust_no AND b.sheet_no=? AND a.oper_date<b.oper_date',max(sheet_no))
本单欠款:
string(dec(db_data2('select sheet_amt-order_amt-paid_amt-free_amt from t_cust_accout_flow where sheet_no=?',sheet_no)),'0.00')
总欠款:系统默认就有!
- 回答者:ytkf007
- 等级:问不倒翁
- 时间:2013-09-28 14:29
其它回答 共 2 条
学习楼上
- 回答者:kh359
- 等级:问不倒翁
- 时间:2013-09-28 19:56
学习了
- 回答者:bonchen
- 等级:问不倒翁
- 时间:2013-10-02 10:06
快到期问题