欢迎光临兰州百强信息技术有限公司​​,服务热线:0931-4530200   13109493788
13109493788
兰州百强信息技术有限公司
Lanzhou Baiqiang Information Technology Co., Ltd.
专业信息智能化系统解决方案服务商
当前位置:
技术文章
technical service
赢通A5、A6、I7计算列的使用方法
来源: | 作者:pmtbfbde3 | 发布时间: 2254天前 | 11198 次浏览 | 分享到:


布局设置中:if(isnull(db_data2(~"select sum(a.value_amt) from t_vip_money a,t_vip_info b where a.money_type=5 and a.vip_no =b.vip_No and b.vip_dispno=? group by a.vip_no~",vip_dispno)),0,dec(db_data2(~"select sum(a.value_amt) from t_vip_money a,t_vip_info b where a.money_type=5 and a.vip_no =b.vip_No and b.vip_dispno=? group by a.vip_no~",vip_dispno)))

标签中增加如果有会员特价就显示会员特价,如果没有就显示会员价,如果会员价也没有就显示为空的:
 if( sv_price>0,string(sv_price),if(  vip_price>0,string( vip_price),""))

预付款结余金额:db_data2('select sum(total_amt-use_amt) from t_cust_prepay_flow where cust_No=? group by cust_No',describe('cdw_cust_No$$.text'))

前台套打中添加会员累计消费金额:db_data2(~"select a.collect_amt from t_vip_collect a,t_vip_info b where a.vip_No=b.vip_no and b.vip_dispno=?~",vip_dispno)

批发销售单中添加已生效未生效、部分付款、全部付款、未付款信息:
已生效未生效:
if (db_data2(~"select app_sign from t_pf_out_master where sheet_no=?~",sheet_No)=~"1~",~"已生效~",~"未生效~")
部分付款、全部付款、未付款信息:
if (db_data2(~"select app_sign from t_pf_out_master where sheet_no=?~",sheet_No)=~"1~",case( db_data2(~"select case when sheet_amt-order_amt-paid_amt-free_amt=sheet_amt then 0 when sheet_amt-order_amt-paid_amt-free_amt>0 then 1 else 2 end from t_cust_accout_flow where  sheet_No=?~",sheet_No)  when ~"0~" then ~"没有付款~" when ~"1~" then ~"部分付款~" else ~"全部付款~") ,~"~")