' . esc($company_info['company_name']) . '

Facture ID: ' . esc($order_data['bill_no']) . '

Nom: ' . esc($order_data['customer_name']) . '

Adresse: ' . esc($order_data['customer_address']) . '

Téléphone: ' . esc($order_data['customer_phone']) . '

Signature du client

Signature du commercial

'; foreach ($orders_items as $item) { $product_data = $Products->getProductData($item['product_id']); $html .= ''; } $html .= '
Produit Qté Prix Total
' . esc($product_data['name']) . ' ' . esc($item['qty']) . ' ' . number_format((float)$item['rate'], 2, '.', ' ') . ' ' . number_format((float)$item['amount'], 2, '.', ' ') . '
'; if (!empty($order_data['service_charge']) && (float)$order_data['service_charge'] > 0) { $html .= ''; } if (!empty($order_data['vat_charge']) && (float)$order_data['vat_charge'] > 0) { $html .= ''; } $html .= ''; // Vérification et ajout des informations de paiement if (!empty($order_data['order_payment_mode'])) { $html .= ''; } if (!empty($order_data['tranche_1'])) { $html .= ''; } if (!empty($order_data['tranche_2'])) { $html .= ''; } $html .= '
Total: ' . number_format((float)$order_data['gross_amount'], 2, '.', ' ') . '
Frais de service: ' . number_format((float)$order_data['service_charge'], 2, '.', ' ') . '
TVA: ' . number_format((float)$order_data['vat_charge'], 2, '.', ' ') . '
Réduction: ' . number_format((float)$order_data['discount'], 2, '.', ' ') . '
Total à payer: ' . number_format((float)$order_data['net_amount'], 2, '.', ' ') . '
Statut: ' . $paid_status . '
Mode de paiement: ' . esc($order_data['order_payment_mode']) . '
Tranche 1: ' . number_format((float)$order_data['tranche_1'], 2, '.', ' ') . '
Tranche 2: ' . number_format((float)$order_data['tranche_2'], 2, '.', ' ') . '