Skip to content

Commit

Permalink
sommario fix per prodotto prenotati ma non più nell'ordine
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed May 4, 2024
1 parent 051d766 commit 97fb339
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/app/BookedProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ private function fixQuantity($attribute, $rectify)
$content = 0;
}

return $this->product->getPrice($rectify) * $content;
if ($this->product) {
return $this->product->getPrice($rectify) * $content;
}
else {
\Log::error('Prodotto non trovato: ' . $this->product_id . ' - ' . $this->booking->order_id);
return 0;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions code/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
*/

'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
Expand Down

0 comments on commit 97fb339

Please sign in to comment.