fix invoice tracking

pull/1/head
A1Gard 2 years ago
parent 1e67096dbc
commit 7be34ab523

@ -139,7 +139,9 @@ class GatewayRedirectController
if ($request->has('transport_id')){ if ($request->has('transport_id')){
$t = Transport::whereId($request->transport_id)->first(); $t = Transport::whereId($request->transport_id)->first();
$invoice->total_price += $t->price; $invoice->total_price += $t->price;
$invoice->transport_price = $t->price;
} }
$invoice->save();
// dd($invoice); // dd($invoice);
// $invoice->update(['total_price' =>, 'hash' => ]); // $invoice->update(['total_price' =>, 'hash' => ]);
\Session::remove('card'); \Session::remove('card');

Loading…
Cancel
Save