A5商业批发,要在批发销售单和退货单体现上次欠款,要怎么做?想做计算列也做不出来,我也知道用 总欠款减本单金额,请教一下,这能怎样解决
A5商业批发,要在批发销售单和退货单体现上次欠款,要怎么做
- 提问者: hao5025
- 等级:普通会员
- 时间:2012-12-06 00:57
- 悬赏:0
- 解决时间:2012-12-11 16:21
最佳答案
参考这里:http://www.yt-pos.com/ask/question.php?id=1476
- 回答者:李祥
- 等级:问不倒翁
- 时间:2012-12-08 15:20
- 提问者对最佳回答的评论:
- 谢谢,在客户欠款金额(本单结算之前)
dec(db_data2(~"select sum(sheet_amt-order_amt-paid_amt-free_amt) from t_cust_accout_flow where cust_no=? group by cust_no~",cust_no))+ total_amt
最后一个+号,我认为应该是减号才对
对最佳答案的评论 共 1 条
批发销售单:
上次欠款:
dec(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)))
本单欠款:
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)*a.pay_type) FROM dbo.t_cust_accout_flow a,dbo.t_pf_return_master b WHERE a.cust_no=b.cust_no AND b.sheet_no=? AND a.oper_date<b.oper_date',max(sheet_no))
上次欠款:
dec(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)))
本单欠款:
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)*a.pay_type) FROM dbo.t_cust_accout_flow a,dbo.t_pf_return_master b WHERE a.cust_no=b.cust_no AND b.sheet_no=? AND a.oper_date<b.oper_date',max(sheet_no))
- 评论者:ytkf007
其它回答 共 6 条
单据浏览上次单据欠款不可以吗?
- 回答者:wangze2005
- 等级:问不倒翁
- 时间:2012-12-06 09:00
这个功能在其他版本上有 跟厂家说一下就应该就能加上了
- 回答者:JCLH
- 等级:问不倒翁
- 时间:2012-12-06 09:14
学习下,具体的也没有做过
- 回答者:kh359
- 等级:问不倒翁
- 时间:2012-12-06 12:02
嗯,具体不知道啊
- 回答者:zhangyuxin
- 等级:银牌会员
- 时间:2012-12-07 19:37
学习一下
- 回答者:zhaoshuai888
- 等级:问不倒翁
- 时间:2012-12-07 22:50
看上面
- 回答者:赢通技术
- 等级:金牌会员
- 时间:2012-12-10 09:58
快到期问题