在销售单打印的时候,怎么加上客户预付了多少钱,余额还剩多少
- 提问者: huw420
- 等级:普通会员
- 时间:2012-03-16 09:49
- 悬赏:0
- 解决时间:2012-03-19 08:49
最佳答案
如果在做批发单的时候,直接用预付款结算,已付金额即为:付款情况,客户欠款即为剩下多少钱。
点设置布局定制:添加计算列,内容如下
客户本次用预付款结算的金额:
db_data2(~"select use_amt from t_cust_prepay_use a,t_cust_accout_detail b where a.voucher_no=b.sheet_no and b.voucher_no=?~",sheet_no)
客户用预付款支付的总额:db_data2("select sum(use_amt) from t_cust_prepay_flow where cust_no=? group by cust_no",cust_no)
客户预付款的余额:db_data2("select sum(total_amt-use_amt) from t_cust_prepay_flow where cust_no=? group by cust_no",cust_no)
点设置布局定制:添加计算列,内容如下
客户本次用预付款结算的金额:
db_data2(~"select use_amt from t_cust_prepay_use a,t_cust_accout_detail b where a.voucher_no=b.sheet_no and b.voucher_no=?~",sheet_no)
客户用预付款支付的总额:db_data2("select sum(use_amt) from t_cust_prepay_flow where cust_no=? group by cust_no",cust_no)
客户预付款的余额:db_data2("select sum(total_amt-use_amt) from t_cust_prepay_flow where cust_no=? group by cust_no",cust_no)
- 回答者:ytkf007
- 等级:问不倒翁
- 时间:2012-03-16 10:33
- 提问者对最佳回答的评论:
- 非常感谢
其它回答 共 9 条
批发销售单,可以自定义计算列的
- 回答者:李祥
- 等级:问不倒翁
- 时间:2012-03-16 10:13
可以 添加计算列 就可以了
- 回答者:JCLH
- 等级:问不倒翁
- 时间:2012-03-16 11:11
批发销售单-设置-添加新列 这个只能手动输入前多少剩多少
这个单据本身就有 客户预付 余额 的显示,在打印的时候也能体现出来。位置在批发销售单据右侧倒数第二行
没有办法啊,二楼人家知道库啊,咱只能用了
这个单据本身就有 客户预付 余额 的显示,在打印的时候也能体现出来。位置在批发销售单据右侧倒数第二行
没有办法啊,二楼人家知道库啊,咱只能用了
- 回答者:wangze2005
- 等级:问不倒翁
- 时间:2012-03-16 11:55
顶二楼
- 回答者:kmyykj
- 等级:钻石会员
- 时间:2012-03-16 12:29
顶
- 回答者:赢通技术
- 等级:金牌会员
- 时间:2012-03-16 14:12
看二楼
- 回答者:赢通华中区
- 等级:钻石会员
- 时间:2012-03-16 14:26
好复杂的计算列公式
- 回答者:kh359
- 等级:问不倒翁
- 时间:2012-03-16 15:54
顶二楼
- 回答者:zhaoshuai888
- 等级:问不倒翁
- 时间:2012-03-17 00:13
学习了
- 回答者:小燕子
- 等级:钻石会员
- 时间:2012-03-17 23:36
快到期问题