|
@@ -121,12 +121,12 @@ class PurchaseOrderController extends BaseController
|
|
|
ProductClass::valid($ghsItemInfo, $this->mainId);
|
|
ProductClass::valid($ghsItemInfo, $this->mainId);
|
|
|
//获取供货商信息
|
|
//获取供货商信息
|
|
|
$ghsId = $post['ghsId'];
|
|
$ghsId = $post['ghsId'];
|
|
|
-// if (getenv('YII_ENV') == 'production') {
|
|
|
|
|
-// if ($this->shopId == 763) {
|
|
|
|
|
-// $ghsId = 832;
|
|
|
|
|
-// $post['ghsId'] = 832;
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
|
|
+ if ($this->shopId == 763) {
|
|
|
|
|
+ $ghsId = 832;
|
|
|
|
|
+ $post['ghsId'] = 832;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (empty($ghsId)) {
|
|
if (empty($ghsId)) {
|
|
|
util::fail("请选择供货商");
|
|
util::fail("请选择供货商");
|
|
|
}
|
|
}
|