diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 304e780e..c47977a5 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -1998,7 +1998,7 @@ function getOrderByIdInternet($idInternet) { try { - $ordergm = AppOrder::where('IdInternet', $idInternet)->first(); + $ordergm = Orderdetail::where('IdInternet', $idInternet)->first(); return $ordergm; } catch (\Exception $e) {