|
|
|
@ -260,7 +260,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
//则将原数据的费用信息 覆盖到即将保存的headdata中
|
|
|
|
|
//即:如果有应收应付费用 则不允许修改主单或分单中的费用相关字段
|
|
|
|
|
|
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee_advance_payment_detail", " BSNO='" + headData.BSNO + "' ");
|
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee", " BSNO='" + headData.BSNO + "' ");
|
|
|
|
|
|
|
|
|
|
if (feecount > 0) {
|
|
|
|
|
var oldheadData = MsOpAirnDAL.GetData(" BSNO='" + headData.BSNO + "' ");
|
|
|
|
@ -377,7 +377,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
//如果有 就不进行更改
|
|
|
|
|
|
|
|
|
|
var 主单 = MsOpAirnDAL.GetData(" BLTYPE='国内主单' and HBLNO='" + headData.HBLNO + "' ");
|
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee_advance_payment_detail", " BSNO='" + 主单.BSNO + "' ");
|
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee", " BSNO='" + 主单.BSNO + "' ");
|
|
|
|
|
|
|
|
|
|
if (feecount > 0)
|
|
|
|
|
{
|
|
|
|
|