|
@@ -10,12 +10,29 @@ import common.data.Rows;
|
|
|
*/
|
|
*/
|
|
|
public class OrderFeeCalculatePlan1 extends DataFunction {
|
|
public class OrderFeeCalculatePlan1 extends DataFunction {
|
|
|
|
|
|
|
|
- @Param(paramname = "fee", remarks = "单位费用")
|
|
|
|
|
- Double fee;
|
|
|
|
|
|
|
+ @Param(paramname = "siteid", remarks = "站点ID")
|
|
|
|
|
+ String siteid;
|
|
|
|
|
+ @Param(paramname = "unitfee", remarks = "单位费用(具体一个方案生成的一个单位费用)")
|
|
|
|
|
+ Double unitfee;
|
|
|
|
|
+ @Param(paramname = "ordertype", remarks = "订单类型(可多个,具体在哪些订单类型中适用)")
|
|
|
|
|
+ String ordertype;
|
|
|
|
|
+ @Param(paramname = "iscombination", remarks = "是否订单内组合计算(若组合计算则在订单中自动汇总同方案商品一起计算)")
|
|
|
|
|
+ boolean iscombination;
|
|
|
|
|
+ @Param(paramname = "isaccumulation", remarks = "是否累加计算(若累加计算则订单内满足时则生成费用)")
|
|
|
|
|
+ boolean isaccumulation;
|
|
|
|
|
+ @Param(paramname = "apportiontype", remarks = "分摊方式(订货数量/订货金额,在组合计算方式下,在订单中同费用方案商品明细行中按比例分摊)")
|
|
|
|
|
+ String apportiontype;
|
|
|
|
|
+ @Param(paramname = "itemfield", remarks = "商品字段(订货数量、订货重量、订货金额)")
|
|
|
|
|
+ String itemfield;
|
|
|
|
|
+ @Param(paramname = "condition", remarks = "商品字段(数值,大于等于某个值时产生费用)")
|
|
|
|
|
+ String condition;
|
|
|
|
|
+ @Param(paramname = "ispay", remarks = "是否独立扣款(独立扣款则在生成订单收支凭证时费用,若生成独立的支出凭证则需再选择支出分类)")
|
|
|
|
|
+ boolean ispay;
|
|
|
|
|
+ @Param(paramname = "isreturn", remarks = "是否可退款")
|
|
|
|
|
+ boolean isreturn;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int action() throws YosException {
|
|
public int action() throws YosException {
|
|
|
- System.err.println("fee:" + fee);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return super.action();
|
|
return super.action();
|