大写单个金额:
pub_f_num_to_cn(金额表单式,4)
1分 2角 3元 4十元 5百 6千 7万
例如:做面包、生日蛋糕的都可以这样在标签上打印下面这些日期
保质期天数:
real(db_data1('select valid_day from t_item_info where item_subno=?',item_subno))
生产日期(就是今天):
string(today(),'yyyy-mm-dd')
有效期到:
string(RelativeDate(today(),real(db_data1('select valid_day from t_item_info where item_subno=?',item_subno))),'yyyy-mm-dd')
单据、报表显示商品库存:
db_data2('select stock_qty from t_branch_stock where item_no=? and branch_no=? ',item_no,'0001')
五、其它高级计算列示例(只是一部分,更多函数可以参见软件计算列中有说明或者咨询客服):
批发单中取客户手机号码:
db_data2('select b.cust_tel from t_pf_out_master a, t_cust_info b where a.cust_No=b.cust_no and a.sheet_No=?',sheet_No)
批发销售单中取客户名称:
db_data2(~"select cust_name from t_cust_info where cust_no=?~",describe(~"cdw_cust_No$$.text~"))
品牌名称:
db_data2('select a.brand_name from t_item_brand a,t_item_info b where a.item_brand=b.item_brand and b.item_no=?',item_No)
单据中添加操作员的名字而非代码:
dbdata2('select user_name from t_sys_user where user_id=?',describe('cdw_user_id$$'))