|
@@ -1477,11 +1477,11 @@ namespace SiteCore.Handler
|
|
|
CeErpTradeCell entity = null;
|
|
CeErpTradeCell entity = null;
|
|
|
if (eid != "") entity = CeErpTradeCell.GetByCtid(eid);
|
|
if (eid != "") entity = CeErpTradeCell.GetByCtid(eid);
|
|
|
CeErpTrade father = CeErpTrade.Get(entity.tid);
|
|
CeErpTrade father = CeErpTrade.Get(entity.tid);
|
|
|
- if (father.receiver_state.Contains("台湾") && string.IsNullOrEmpty(father.receiver_zip))
|
|
|
|
|
|
|
+ /*if (father.receiver_state.Contains("台湾") && string.IsNullOrEmpty(father.receiver_zip))
|
|
|
{
|
|
{
|
|
|
returnErrorMsg("台湾客户需填写身份证号!");
|
|
returnErrorMsg("台湾客户需填写身份证号!");
|
|
|
return;
|
|
return;
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
if (commonHelper.isFarAddress(father.receiver_state) && father.delivery_paymant == 0)
|
|
if (commonHelper.isFarAddress(father.receiver_state) && father.delivery_paymant == 0)
|
|
|
{
|
|
{
|
|
|
returnErrorMsg("偏远地区需要填写物流费!");
|
|
returnErrorMsg("偏远地区需要填写物流费!");
|
|
@@ -5355,7 +5355,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, dcomcode, outSid);
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, dcomcode, outSid);
|
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
|
- if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126)
|
|
|
|
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126 || entity.SupplierId == 96)
|
|
|
{
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
}
|
|
@@ -6378,7 +6378,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, cpCode, curUseWayBillCode);
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, cpCode, curUseWayBillCode);
|
|
|
- if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126)
|
|
|
|
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126 || entity.SupplierId == 96)
|
|
|
{
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
}
|
|
@@ -6418,7 +6418,7 @@ namespace SiteCore.Handler
|
|
|
exinfo.Create();
|
|
exinfo.Create();
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
|
- if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126)
|
|
|
|
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126 || entity.SupplierId == 96)
|
|
|
{
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
}
|
|
@@ -6529,7 +6529,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(ceErpTradeCell.ctid);
|
|
commonHelper.UpdateRelationOrder(ceErpTradeCell.ctid);
|
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
|
commonHelper.insertToBuchaForDelivery(ceErpTrade.tid, ceErpTrade.posCode, cpCode, curUseWayBillCode);
|
|
commonHelper.insertToBuchaForDelivery(ceErpTrade.tid, ceErpTrade.posCode, cpCode, curUseWayBillCode);
|
|
|
- if (ceErpTradeCell.SupplierId == 64 || ceErpTradeCell.SupplierId == 80 || entity.SupplierId == 126)
|
|
|
|
|
|
|
+ if (ceErpTradeCell.SupplierId == 64 || ceErpTradeCell.SupplierId == 80 || entity.SupplierId == 126 || entity.SupplierId == 96)
|
|
|
{
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
}
|
|
@@ -6637,7 +6637,7 @@ namespace SiteCore.Handler
|
|
|
exinfo.print_time = DateTime.Now;
|
|
exinfo.print_time = DateTime.Now;
|
|
|
exinfo.printUser = CurrentUser.UserName;
|
|
exinfo.printUser = CurrentUser.UserName;
|
|
|
exinfo.Create();
|
|
exinfo.Create();
|
|
|
- if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126)
|
|
|
|
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80 || entity.SupplierId == 126 || entity.SupplierId == 96)
|
|
|
{
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
}
|
|
@@ -11223,11 +11223,11 @@ namespace SiteCore.Handler
|
|
|
{
|
|
{
|
|
|
CeErpTrade ceErpTrade = CeErpTrade.Get(entity.tid);
|
|
CeErpTrade ceErpTrade = CeErpTrade.Get(entity.tid);
|
|
|
CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(entity.ctid);
|
|
CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(entity.ctid);
|
|
|
- if (!string.IsNullOrEmpty(ceErpTrade.receiver_state) && ceErpTrade.receiver_state.Contains("台湾") && string.IsNullOrEmpty(ceErpTrade.receiver_zip))
|
|
|
|
|
|
|
+ /*if (!string.IsNullOrEmpty(ceErpTrade.receiver_state) && ceErpTrade.receiver_state.Contains("台湾") && string.IsNullOrEmpty(ceErpTrade.receiver_zip))
|
|
|
{
|
|
{
|
|
|
returnErrorMsg("台湾客户需填写身份证!");
|
|
returnErrorMsg("台湾客户需填写身份证!");
|
|
|
return;
|
|
return;
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
if (commonHelper.isFarAddress(ceErpTrade.receiver_state) && ceErpTrade.delivery_paymant == 0 && entity.IsSF != 2)
|
|
if (commonHelper.isFarAddress(ceErpTrade.receiver_state) && ceErpTrade.delivery_paymant == 0 && entity.IsSF != 2)
|
|
|
{
|
|
{
|
|
|
returnErrorMsg("偏远地区需要填写物流费!");
|
|
returnErrorMsg("偏远地区需要填写物流费!");
|
|
@@ -15201,7 +15201,7 @@ namespace SiteCore.Handler
|
|
|
ce = new CeErpTradeCellExtend();
|
|
ce = new CeErpTradeCellExtend();
|
|
|
ce.ctid = ctid;
|
|
ce.ctid = ctid;
|
|
|
}
|
|
}
|
|
|
- ce.negotiate = negotiate;
|
|
|
|
|
|
|
+ ce.negotiate = negotiate + "-" + CurrentUser.UserName;
|
|
|
if (ce.ID > 0)
|
|
if (ce.ID > 0)
|
|
|
{
|
|
{
|
|
|
ce.Update();
|
|
ce.Update();
|
|
@@ -15210,7 +15210,7 @@ namespace SiteCore.Handler
|
|
|
{
|
|
{
|
|
|
ce.Create();
|
|
ce.Create();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ LogHelper.addLog(ce.ctid, CurrentUser.UserID, "协商内容:" + negotiate, 0, 1);
|
|
|
returnSuccessMsg("保存成功");
|
|
returnSuccessMsg("保存成功");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|