aa
This commit is contained in:
@@ -18,6 +18,7 @@ use Illuminate\Support\Facades\DB;
|
|||||||
use App\Orderdetail;
|
use App\Orderdetail;
|
||||||
use App\Services\ProductLogger;
|
use App\Services\ProductLogger;
|
||||||
use App\Order as AppOrder;
|
use App\Order as AppOrder;
|
||||||
|
use App\OrderWeb as AppOrderWeb;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
@@ -630,7 +631,22 @@ function showDettOrdini()
|
|||||||
$str = "Ordini Woocommerce:" . PHP_EOL . '<br>';
|
$str = "Ordini Woocommerce:" . PHP_EOL . '<br>';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$orders = Order::all();
|
$orders = AppOrder::all();
|
||||||
|
|
||||||
|
// Show the fields of the orders
|
||||||
|
foreach ($orders as $order) {
|
||||||
|
$str .= "Ordine: ";
|
||||||
|
$str .= getvalstr("Id", $order->id);
|
||||||
|
//$str .= getvalstr("DataOra", $order->DataOra);
|
||||||
|
//$str .= getvalstr("Totale", $order->Totale);
|
||||||
|
$str .= getvalstr("IdInternet", $order->IdInternet, true) . " ";
|
||||||
|
$str .= getvalstr("", $order->CodClienteInternet, true);
|
||||||
|
$str .= '<br>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$str .= "Ordini T_WEB_TestateOrdini:" . PHP_EOL . '<br>';
|
||||||
|
|
||||||
|
$orders = AppOrderWeb::all();
|
||||||
|
|
||||||
// Show the fields of the orders
|
// Show the fields of the orders
|
||||||
foreach ($orders as $order) {
|
foreach ($orders as $order) {
|
||||||
|
|||||||
15
app/OrderWeb.php
Normal file
15
app/OrderWeb.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class OrderWeb extends Model
|
||||||
|
{
|
||||||
|
//protected $connection = 'mysql_test';
|
||||||
|
protected $connection = 'sqlsrv_test';
|
||||||
|
protected $table = 'T_WEB_TestateOrdini';
|
||||||
|
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user