我的数据格式是这样的。
{
"bill_source": "ISV",
"bill_date": "2024-03-02",
"customer_id": "1518003654899018752",
"remark": "德康堂 效期-来自营销云-XJTHRK00004899670",
"custom_field": {
"custom_field__1__28jianb2nq7c6u": "德康堂 效期"
},
"material_entity": [
{
"material_id": "1332553783003063296",
"stock_id": "1277526505122993152",
"qty": 1,
"tax_price": 86,
"discount2": "0.38",
"unit_id": "1269832546082910208",
"batch_no": "20220701D",
"comment": "德康堂 效期",
"kf_date": "2022-07-12",
"valid_date": "2024-07-11",
"kf_period": "730",
"kf_type": "1"
}
]
}
我的规则是下面的:先将税费:tax_price与折扣率:discount2的值相乘,然后取整保留2位小数点,然后赋值给tax_price,最后删除折扣率