$pvht = self::parseFloat($p['PV RESAH HT']);
$ecotaxe = self::parseFloat($p['ECOTAXE']);
$tht = ($pvht + $ecotaxe) * $i['quantity'];
- $tva = $pvht * $i['quantity'] * 0.01 * self::parseFloat($p['TVA']);
+ $tva = $tht * 0.01 * self::parseFloat($p['TVA']);
$total += $tht;
$cumul_tva += $tva;
$details[] = 'TOTAL HT : ' . self::formatNumber($total) . "\n"
. 'TVA : ' . self::formatNumber($cumul_tva) . "\n"
. 'ECOTAXE : ' . self::formatNumber($cumul_ecotaxe) . "\n"
- . 'TOTAL TTC : ' . self::formatNumber($total + $cumul_ecotaxe + $cumul_tva);
+ . 'TOTAL TTC : ' . self::formatNumber($total + $cumul_tva);
/** @var Client $user */
$user = auth()->guard('client')->user();
$order->total_ht = $total;
$order->save();
+
+
$user->notify(new ResahNotification(ResahNotification::QUOTE_REQUEST_SENT, $order));
User::withoutGlobalScopes()->find(3)->notify(new ResahNotification(ResahNotification::QUOTE_REQUEST, $order));