data pubblicazione
This commit is contained in:
@@ -628,6 +628,10 @@ Route::get('/artlibronuovo', function () {
|
||||
'value' => $article->Ristampa
|
||||
],
|
||||
[
|
||||
'key' => 'DataPubblicazione',
|
||||
'value' => $article->DataPubblicazione
|
||||
],
|
||||
[
|
||||
'key' => 'misure',
|
||||
'value' => $article->Misure
|
||||
],
|
||||
@@ -1242,6 +1246,10 @@ Route::get('/artlibroebook', function () {
|
||||
'key' => 'ristampa',
|
||||
'value' => $article->Ristampa
|
||||
],
|
||||
[
|
||||
'key' => 'DataPubblicazione',
|
||||
'value' => $article->DataPubblicazione
|
||||
],
|
||||
[
|
||||
'key' => 'misure',
|
||||
'value' => $article->Misure
|
||||
@@ -2191,6 +2199,8 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
$codifica = true;
|
||||
}
|
||||
if ($codifica) {
|
||||
$productLogger->addLog('', 'ORDINE LIBRO USATO !');
|
||||
|
||||
} else {
|
||||
$orderdetail->CodArticoloGM = intval($prodotto['sku']);
|
||||
$productLogger->addLog('', '$orderdetail->CodArticoloGM= ' . $orderdetail->CodArticoloGM);
|
||||
@@ -2234,6 +2244,7 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
$productLogger->addLog('', 'Cliente:' . json_encode($cliente));
|
||||
|
||||
if ($changedest) {
|
||||
$productLogger->addLog('', 'Change Destinazione:');
|
||||
$clientedest = new Clientegmdest();
|
||||
$clientedest->CodDestInternet = $request->customer_id;
|
||||
$clientedest->Nominativo = $request->shipping['last_name'] . " " . $request->shipping['first_name'];
|
||||
@@ -2245,12 +2256,21 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
$cliente->IdNazione = 227;
|
||||
$clientedest->IdInternet = $request->id;
|
||||
$clientedest->save();
|
||||
$productLogger->addLog('', 'Cliente Dest:' . json_encode($clientedest));
|
||||
|
||||
try {
|
||||
$productLogger->addLog('', 'Cliente Dest:' . json_encode($clientedest));
|
||||
} catch (Exception $e) {
|
||||
//
|
||||
}
|
||||
}
|
||||
$productLogger->addLog('', 'Inserito ordine ! ');
|
||||
try {
|
||||
$productLogger->addLog('', json_encode($request->all()));
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
$productLogger->addLog('', $request->all());
|
||||
$productLogger->addLog('', 'Inserito ordine');
|
||||
|
||||
$productLogger->setLogandSendEmail('Nuovo Ordine !');
|
||||
|
||||
} //end if status
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
@@ -2571,6 +2591,10 @@ Route::get('/artlibroondemand', function () {
|
||||
'key' => 'ristampa',
|
||||
'value' => $article->Ristampa
|
||||
],
|
||||
[
|
||||
'key' => 'DataPubblicazione',
|
||||
'value' => $article->DataPubblicazione
|
||||
],
|
||||
[
|
||||
'key' => 'misure',
|
||||
'value' => $article->Misure
|
||||
@@ -3054,6 +3078,10 @@ Route::get('/artlibrodvd', function () {
|
||||
'key' => 'ristampa',
|
||||
'value' => $article->Ristampa
|
||||
],
|
||||
[
|
||||
'key' => 'DataPubblicazione',
|
||||
'value' => $article->DataPubblicazione
|
||||
],
|
||||
[
|
||||
'key' => 'misure',
|
||||
'value' => $article->Misure
|
||||
@@ -4796,6 +4824,10 @@ Route::get('/prossimauscita', function () {
|
||||
'key' => 'ristampa',
|
||||
'value' => $article->Ristampa
|
||||
],
|
||||
[
|
||||
'key' => 'DataPubblicazione',
|
||||
'value' => $article->DataPubblicazione
|
||||
],
|
||||
|
||||
]
|
||||
];
|
||||
@@ -5944,6 +5976,10 @@ Route::get('/aggiornapreorder/{idarticolo}/{aggiornapreordine}', function ($idar
|
||||
setPreOrder($idarticolo, $aggiornapreordine, true);
|
||||
});
|
||||
|
||||
Route::get('/aggiornadatapubblicazione/{idarticolo}', function ($idarticolo) {
|
||||
setDataPubblicazione($idarticolo, true);
|
||||
});
|
||||
|
||||
Route::get('/paolibri', function () {
|
||||
set_time_limit(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user