aa
This commit is contained in:
@@ -478,12 +478,12 @@ function showOrdini()
|
||||
// $str = Schema::getColumnListing('Orderdetails');
|
||||
|
||||
$orders = Orderdetail::orderBy('DataOra', 'desc')
|
||||
->take(20)
|
||||
->take(100)
|
||||
->get();
|
||||
|
||||
// Show the fields of the orders
|
||||
foreach ($orders as $order) {
|
||||
// $product = Product::where('sku', $order->CodArticoloGM)->first();
|
||||
$product = Product::where('sku', $order->CodArticoloGM)->first();
|
||||
|
||||
$str .= getvalstr("", $order->Codice) . " ";
|
||||
$str .= getvalstr("", $order->DataOra);
|
||||
@@ -496,7 +496,7 @@ function showOrdini()
|
||||
if ($order->Descrizione)
|
||||
$str .= getvalstr("Descr", $order->Descrizione);
|
||||
|
||||
//$str .= $product;
|
||||
$str .= getarraystr($product) . "<br>";
|
||||
// $str .= $product;
|
||||
$str .= '<br>';
|
||||
}
|
||||
|
||||
@@ -2176,11 +2176,13 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
|
||||
$clienteinGM = null;
|
||||
|
||||
$codClienteGM = '';
|
||||
|
||||
if ($CodClienteInternet > 0) {
|
||||
$clienteinGM = getClienteByIdCodClienteInternet($CodClienteInternet);
|
||||
if ($clienteinGM) {
|
||||
// $codClienteGM = $clienteinGM
|
||||
$productLogger->addLog('', 'clienteinGM: ' . json_encode($clienteinGM));
|
||||
$cliente = $clienteinGM;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2253,8 +2255,6 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
|
||||
$productLogger->addLog('', 'Cerco il customer_id: ' . $CodClienteInternet);
|
||||
|
||||
$creatoNuovoCliente = false;
|
||||
|
||||
// if ($CodClienteInternet > 0) {
|
||||
// $customer = Customer::find($CodClienteInternet);
|
||||
// } else {
|
||||
@@ -2283,7 +2283,6 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
|
||||
if ($cliente === null) {
|
||||
$cliente = new Clientegm();
|
||||
$creatoNuovoCliente = true;
|
||||
}
|
||||
|
||||
$cliente->CodClienteInternet = $CodClienteInternet;
|
||||
@@ -2294,6 +2293,7 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
$cliente->Provincia = $provincia;
|
||||
$cliente->Telefono = $telefono;
|
||||
$cliente->Email = $email;
|
||||
$cliente->CodClienteGM = $codClienteGM;
|
||||
if ($nazione == 'IT') {
|
||||
$cliente->IdNazione = 227; // ITALIA
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user