|
|
@@ -274,6 +274,13 @@ class PurchaseOrderController extends BaseController
|
|
|
$debtStatus = $inType == 1 ? PurchaseOrderClass::DEBT_YES : PurchaseOrderClass::DEBT_UNKNOWN;
|
|
|
$post['debt'] = $debtStatus;
|
|
|
$order = PurchaseOrderClass::addOrder($post);
|
|
|
+
|
|
|
+ //如果是附近供货商,则采购单标记为外采单
|
|
|
+ if (isset($ghsInfo['location']) && $ghsInfo['location'] == 1) {
|
|
|
+ $order->location = 1;
|
|
|
+ $order->save();
|
|
|
+ }
|
|
|
+
|
|
|
$transaction->commit();
|
|
|
util::success($order);
|
|
|
} catch (\Exception $e) {
|