1
This commit is contained in:
@@ -559,16 +559,10 @@ func countWaybillSettleInfo(db *dao.DaoDB, order *model.GoodsOrder, bill *model.
|
||||
return err
|
||||
}
|
||||
|
||||
//if deductFee != model.NO {
|
||||
// 更新运单实际扣除费用
|
||||
bill.ActualFee = deductFee
|
||||
bill.DesiredFee = deductFee
|
||||
globals.SugarLogger.Debugf("bill ======== %s", utils.Format4Output(bill, false))
|
||||
if _, err = dao.UpdateEntity(db, bill, "ActualFee", "DesiredFee"); err != nil {
|
||||
globals.SugarLogger.Errorf("更新门店配送信息错误:%d,%v", deductFee, err)
|
||||
if err = dao.UpdateWaybillActualFee(db, bill.VendorWaybillID, bill.VendorOrderID, deductFee, deductFee); err != nil {
|
||||
globals.SugarLogger.Debugf("================ err := %v", err)
|
||||
return err
|
||||
}
|
||||
//}
|
||||
|
||||
// 门店发单,支付运单违约金
|
||||
if store != nil && store.CreateDeliveryType == model.YES && deductFee != model.NO {
|
||||
err = partner.CurStoreAcctManager.InsertStoreAcctExpendAndUpdateStoreAcctBalance(jxcontext.AdminCtx, store.ID, int(deductFee), partner.StoreAcctTypeExpendCreateWaybillDeductFee, bill.VendorOrderID, bill.VendorWaybillID, 0)
|
||||
|
||||
Reference in New Issue
Block a user