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

批量修改采购,出库默认为大单位:
update t_item_unit set is_cg=1,is_pf=1 where unit_type='1'
update t_item_unit set is_cg=0,is_pf=0 where unit_type='0'

i7餐饮的账单支付列表中添加赠送金额:
赠送金额:dec(db_data2(~"select isnull(sum(org_price),0)  from view_cypos_fullbill_detail where  give_yes =1 and bill_No=?~",bill_No))

结算单中取单据的业务类型:
db_data2('SELECT a.sheet_name FROM dbo.t_sys_module_no a,t_cust_accout_flow b where a.module_code=b.trans_no and b.sheet_No=?',voucher_no)

批发销售单中取收支账户名称:
db_data2('select a.visa_name from t_visa_info a,t_cust_accout_master b,(select max(sheet_No) sheet_No from t_cust_accout_detail where voucher_no=?) c where a.visa_no=b.visa_no and b.sheet_No=c.sheet_no ',sheet_No)

批发销售单中增加预付冲销显示:
if(dec(db_data2(~"select convert(varchar(100),cast (prepay_amt as numeric(18,2))) from t_cust_accout_detail where voucher_no=?~",sheet_No))>0,'预付金额:'+db_data2(~"select convert(varchar(100),cast (prepay_amt as numeric(18,2))) from t_cust_accout_detail where voucher_no=?~",sheet_No),'')

营业员名称:
db_data2('select b.emp_name from view_pos_sale_detail a,t_emp_info b where a.sale_man=b.emp_no and a.sheet_no=?',sheet_no)