商品有效期预警添加生产日期列(V6系列、Z7系列、V9商业、V10系列)

2019-03-04 22:26:44

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

string(RelativeDate(date(getdata('select convert(char(10),valid_date,120) from ic_v_fifo_in where voucher_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')

 如下图:

佛山收银机