|
@@ -192,6 +192,10 @@ func CreateSaleRecord(ctx context.Context) {
|
|
|
g.Log().Errorf(ctx, "%s 未找到 %s 部门对应关系 ", order_code, saleDep)
|
|
|
continue
|
|
|
}
|
|
|
+ var money = pay_money
|
|
|
+ if is_backstage_order == 0 {
|
|
|
+ money = order_money
|
|
|
+ }
|
|
|
m := map[string]interface{}{
|
|
|
"state": 2,
|
|
|
"ordercode": order_code,
|
|
@@ -199,8 +203,8 @@ func CreateSaleRecord(ctx context.Context) {
|
|
|
"saler_name": salesperson,
|
|
|
"saler_dept": dept.Name,
|
|
|
"saler_dept_id": dept.Id,
|
|
|
- "change_value": pay_money,
|
|
|
- "money": pay_money,
|
|
|
+ "change_value": money,
|
|
|
+ "money": money,
|
|
|
"group_uuid": uuidStr,
|
|
|
"operator": "系统自动",
|
|
|
"change_reason": reason,
|