Finish mzl_dev
This commit is contained in:
@@ -24,7 +24,7 @@ class PurchaseOrdersLogic
|
|||||||
public function getPiList()
|
public function getPiList()
|
||||||
{
|
{
|
||||||
return (new StockOrders())->where('pi_no', '!=', '')
|
return (new StockOrders())->where('pi_no', '!=', '')
|
||||||
->select('pi_no')
|
->select('pi_no', 'salesperson_snapshot')
|
||||||
->distinct()
|
->distinct()
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
@@ -35,6 +35,7 @@ class PurchaseOrdersLogic
|
|||||||
public function getOrderNoListByPiNo($piNo)
|
public function getOrderNoListByPiNo($piNo)
|
||||||
{
|
{
|
||||||
return (new StockOrders())->where('pi_no', $piNo)
|
return (new StockOrders())->where('pi_no', $piNo)
|
||||||
|
->where('approval_status', 2)
|
||||||
->select('order_no', 'biz_date', 'salesperson_snapshot', 'id as stock_orders_id', 'salesperson_id')
|
->select('order_no', 'biz_date', 'salesperson_snapshot', 'id as stock_orders_id', 'salesperson_id')
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user