Commit 823187f5 authored by sugar's avatar sugar

出入库盘点

parent c962fe4c
......@@ -498,7 +498,7 @@ class GoodsController extends AbstractActionController
$orderGoods = $this->entityManager->getRepository(OtherWarehouseOrderGoods::class)->findBy(['goodsId' => $goodsId]);
if($orderGoods == null) {
$this->flashMessenger()->addWarningMessage($this->translator->translate('该入库单不存在!'));
return $this->redirect()->toRoute('erp-stock');
return $this->redirect()->toRoute('goods');
}
if(!empty($orderGoods)) {
foreach ($orderGoods as $key => $value) {
......@@ -527,7 +527,7 @@ class GoodsController extends AbstractActionController
$orderGoods = $this->entityManager->getRepository(ExWarehouseOrderGoods::class)->findBy(['goodsId' => $goodsId]);
if($orderGoods == null) {
$this->flashMessenger()->addWarningMessage($this->translator->translate('该出库单不存在!'));
return $this->redirect()->toRoute('erp-stock');
return $this->redirect()->toRoute('goods');
}
if(!empty($orderGoods)) {
foreach ($orderGoods as $key => $value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment