' . 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

Produit | Qté | Prix | Total
--- | --- | --- | ---
'; foreach ($orders_items as $item) { $product_data = $Products->getProductData($item['product_id']); $html .= '
' . esc($product_data['name']) . ' | ' . esc($item['qty']) . ' | ' . number_format((float)$item['rate'], 2, '.', ' ') . ' | ' . number_format((float)$item['amount'], 2, '.', ' ') . '
'; } $html .= '

Total: | ' . number_format((float)$order_data['gross_amount'], 2, '.', ' ') . '
'; if (!empty($order_data['service_charge']) && (float)$order_data['service_charge'] > 0) { $html .= '
Frais de service: | ' . number_format((float)$order_data['service_charge'], 2, '.', ' ') . '
'; } if (!empty($order_data['vat_charge']) && (float)$order_data['vat_charge'] > 0) { $html .= '
TVA: | ' . number_format((float)$order_data['vat_charge'], 2, '.', ' ') . '
'; } $html .= '
Réduction: | ' . number_format((float)$order_data['discount'], 2, '.', ' ') . '
Total à payer: | ' . number_format((float)$order_data['net_amount'], 2, '.', ' ') . '
Statut: | ' . $paid_status . '
'; // Vérification et ajout des informations de paiement if (!empty($order_data['order_payment_mode'])) { $html .= '
Mode de paiement: | ' . esc($order_data['order_payment_mode']) . '
'; } if (!empty($order_data['tranche_1'])) { $html .= '
Tranche 1: | ' . number_format((float)$order_data['tranche_1'], 2, '.', ' ') . '
'; } if (!empty($order_data['tranche_2'])) { $html .= '
Tranche 2: | ' . number_format((float)$order_data['tranche_2'], 2, '.', ' ') . '
'; } $html .= '