aa
This commit is contained in:
@@ -208,10 +208,13 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
if err2 == nil {
|
if err2 == nil {
|
||||||
if storeDetail.FreightDeductionPackObj != nil {
|
if storeDetail.FreightDeductionPackObj != nil {
|
||||||
freightParams := &jdapi.UpdateStoreFreightParam{
|
freightParams := &jdapi.UpdateStoreFreightParam{
|
||||||
StationNo: store.VendorStoreID,
|
StationNo: store.VendorStoreID,
|
||||||
UserPin: userName,
|
UserPin: userName,
|
||||||
OpenDistanceFreight: false,
|
OpenDistanceFreight: true,
|
||||||
StartCharge: int64(storeDetail.FreightDeductionPackObj.StartPrice),
|
StartCharge: int64(storeDetail.FreightDeductionPackObj.StartPrice),
|
||||||
|
DistanceFreightThreshold: 1000,
|
||||||
|
DistanceUnit: 1000,
|
||||||
|
DistanceFreight: 200,
|
||||||
}
|
}
|
||||||
if len(storeDetail.FreightDeductionPackObj.FreightDeductionList) > 0 {
|
if len(storeDetail.FreightDeductionPackObj.FreightDeductionList) > 0 {
|
||||||
globals.SugarLogger.Debug("FreightDeductionPackObj", utils.Format4Output(storeDetail.FreightDeductionPackObj, false))
|
globals.SugarLogger.Debug("FreightDeductionPackObj", utils.Format4Output(storeDetail.FreightDeductionPackObj, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user