商品库存查询----批次库存查询中加生产日期

2019-03-07 19:48:30

设置----------添加新列-------列类型:计算列,列中文名:自己输---------公式表达试:

string(RelativeDate(date(getdata('select convert(char(10),valid_date,120) from ic_t_inout_store_detail where  sheet_no=? and item_no=?', voucher_no ,getdata('select item_no from bi_t_item_info where item_subno=?',item_subno,1,1,1,1),1,1,1)), - real(getdata('select valid_day from bi_t_item_info where item_subno=?',item_subno,1,1,1,1)))
,'yyyy-mm-dd')

 

结果:

 佛山收银机