查询语句如下(SqlServer)
- SELECT (CASE WHEN d.Sort %5 = 0 THEN '按实际核算' ELSE convert(varchar(50),d.MaterialPrice) END) as MaterialPrice,
- (CASE WHEN d.Sort %5 = 0 THEN '按实际核算' ELSE convert(varchar(50),d.ProcessPrice) END) as ProcessPrice
- FROM SL_mk_Schema.CustomerListPriceDetail d
- LEFT JOIN SL_mk_Schema.CustomerListPrice p ON p.CusListPriceId = d.CusListPriceId
- WHERE VersionId = @ID
- ORDER BY p.Sort,d.Sort
复制代码
报表预览如下(Rdl报表Table实现)
现在我想对材料费用、加工费,乘以税率("按实际核算"行不变),怎么做呢? |