|
@@ -14,9 +14,13 @@ Class OracleBasCustomerService
|
|
|
public function getWareHouse($customerIDs = null)
|
|
public function getWareHouse($customerIDs = null)
|
|
|
{
|
|
{
|
|
|
if(!$customerIDs){
|
|
if(!$customerIDs){
|
|
|
- return OracleBasCustomer::query()->where('Customer_Type','WH')->get();
|
|
|
|
|
|
|
+ return OracleBasCustomer::query()->selectRaw('Customer_Type,CustomerId,Descr_C')->where('Customer_Type','WH')->get();
|
|
|
}
|
|
}
|
|
|
- return OracleBasCustomer::query()->where('Customer_Type','WH')->get();
|
|
|
|
|
|
|
+ return OracleBasCustomer::query()
|
|
|
|
|
+ ->selectRaw('Customer_Type,CustomerId,Descr_C')
|
|
|
|
|
+ ->where('Customer_Type','WH')
|
|
|
|
|
+ ->whereIn('CustomerId',$customerIDs)
|
|
|
|
|
+ ->get();
|
|
|
}
|
|
}
|
|
|
public function getCustomers($codes)
|
|
public function getCustomers($codes)
|
|
|
{
|
|
{
|