现有的操作员的那列不要删,要把其宽度弄为0
前台套打中取总样数:db_data2('select count(distinct(item_no)) from view_pos_sale_detail where sheet_no=?',sheet_No)
折扣计算列:如8.8折
if(real_price/org_price<1,string(real_price/org_price*10)+"折","")
批发销售单中打印多种支付方式:
db_data3('select a.total_amt from t_cust_accout_master a,t_cust_accout_detail b where a.sheet_no =b.sheet_No and b.voucher_no=? and a.pay_way=?',sheet_no,'01')
操作流程:1. 做批发销售单,在单据中点快速结算,使用现金结算部分货款。2. 也是快速结算,使用其他支付方式结算完剩余货款。
打印格式中,添加上面给的计算列,‘01’代表的的支付方式现金,其他的支付方式按具体的输入,支付方式的查看点在“基本档案”下面的“支付方式”中看。
台账中取货商名称:db_data2(~"select b.sup_name from t_cg_in_master a,t_sup_info b where a.sup_no=b.sup_No and a.sheet_no=?~", voucher_no)
台账中取客户名称:db_data2('select b.cust_name from t_pf_out_master a,t_cust_info b where a.cust_no=b.cust_No and a.sheet_no=?',voucher_no)
取税额函数:db_data3('select inside_tax_amt from view_pos_sale_detail where sheet_no=? and item_no=?',sheet_no,item_no)
批发销售单中取会员的积分:
报表打印中: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~",describe(~"cdw_vip_dispno$$.text~"))),~"0~",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~",describe(~"cdw_vip_dispno$$.text~")))