Commit deb1422b by 王昆

gsb

parent 84af4828
...@@ -21,10 +21,18 @@ class DeliverSchemeService extends ServiceBase { ...@@ -21,10 +21,18 @@ class DeliverSchemeService extends ServiceBase {
scheme = {}; scheme = {};
} }
scheme.name = this.trim(params.name); scheme.name = this.trim(params.name);
scheme.common_tax_ladder = JSON.stringify(params.common_tax_ladder || ""); if (params.common_tax_ladder) {
scheme.common_other_ladder = JSON.stringify(params.common_other_ladder || ""); scheme.common_tax_ladder = JSON.stringify(params.common_tax_ladder || "");
scheme.special_tax_ladder = JSON.stringify(params.special_tax_ladder || ""); }
scheme.special_other_ladder = JSON.stringify(params.special_other_ladder || ""); if (params.common_other_ladder) {
scheme.common_other_ladder = JSON.stringify(params.common_other_ladder || "");
}
if (params.special_tax_ladder) {
scheme.special_tax_ladder = JSON.stringify(params.special_tax_ladder || "");
}
if(params.special_other_ladder) {
scheme.special_other_ladder = JSON.stringify(params.special_other_ladder || "");
}
scheme.cost_rate = system.y2f(params.cost_rate || 0); scheme.cost_rate = system.y2f(params.cost_rate || 0);
scheme.tax_rate = system.y2f(params.tax_rate || 0); scheme.tax_rate = system.y2f(params.tax_rate || 0);
scheme.add_value_up_type = this.trim(params.add_value_up_type); scheme.add_value_up_type = this.trim(params.add_value_up_type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment