|
@@ -355,6 +355,9 @@ class InterOrder extends \app\admin\BaseController{
|
|
|
$companyName =Db::name("supplier_info")->where('code', "=", $param['companyNo'])->value("name","");
|
|
|
$taxinfo = Db::name("order_rate")->where(["id"=>$param["tax"],"status"=>1])->value("rate",0);
|
|
|
$cat = [];
|
|
|
+ if($qrd_order['status']!=0) return error_show(1004,"销售单已对账,无法修改");
|
|
|
+ if($cgd_order['status']!=0) return error_show(1004,"采购单已对账,无法修改");
|
|
|
+
|
|
|
$this->cat($param['cat'],$cat);
|
|
|
if(empty($cat)) return error_show(1004,'分类信息为找到');
|
|
|
$inter=[
|
|
@@ -412,14 +415,8 @@ class InterOrder extends \app\admin\BaseController{
|
|
|
'catInfo' => json_encode($cat,JSON_UNESCAPED_UNICODE),//分类明细',
|
|
|
'fundCode' => $cat[2]['fund_code']??"",//NOT NULL,
|
|
|
'tax' => $taxinfo,//税点',
|
|
|
-// 'goodPrice' => round( $param['goodPrice']*(1-$param['cgd_tax']),2),//成本合计/单价',
|
|
|
-// 'goodNum' => $param['goodNum'],//下单数量',
|
|
|
-// 'totalPrice' => round( $param['goodNum']*$param['goodPrice']*(1-$param['cgd_tax']),2),//采购总货款',
|
|
|
'supplierNo' => $param['supplierNo'],//供应商编号',
|
|
|
'supplierName' => $supplierName,//供应商名称',
|
|
|
-// 'wpay_fee' =>round( $param['goodNum']*$param['goodPrice']*(1-$param['cgd_tax']),2),//采购总货款',
|
|
|
-// 'winv_fee' =>round( $param['goodNum']*$param['goodPrice']*(1-$param['cgd_tax']),2),//采购总货款',
|
|
|
-// 'sendNum' => $param['goodNum'],//已发货数量',
|
|
|
'updatetime' => date("Y-m-d H:i:s"),
|
|
|
];
|
|
|
|