From a4ce5a1768ec3e84454704612531a63c355b48bd Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 25 Apr 2025 12:53:57 +0200 Subject: [PATCH] PreorderBilling: changed price column to german format as string --- .../PreorderBillingInvoiceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/PreorderBillingInvoice/PreorderBillingInvoiceController.php b/application/PreorderBillingInvoice/PreorderBillingInvoiceController.php index 67ffd8d7d..010967c34 100644 --- a/application/PreorderBillingInvoice/PreorderBillingInvoiceController.php +++ b/application/PreorderBillingInvoice/PreorderBillingInvoiceController.php @@ -599,7 +599,7 @@ class PreorderBillingInvoiceController extends mfBaseController { if(count($invoice_detail_data)) { // create CSV file //var_dump($invoice_detail_data);exit; - $csv = "\u{FEFF}Netzbetreiber;Rechungsnummer;Rechnungsdateum;Netzgebiet;OAID;Extref;Bestelldatum;Periode von;Periode bis;Artikelnummer;Produkt;Anzahl;Preis Netto\n"; + $csv = "\u{FEFF}Netzbetreiber;Rechungsnummer;Rechnungsdatum;Netzgebiet;OAID;Extref;Bestelldatum;Periode von;Periode bis;Artikelnummer;Produkt;Anzahl;Preis Netto\n"; foreach ($invoice_detail_data as $detail) { //var_dump($detail); //exit; @@ -616,7 +616,7 @@ class PreorderBillingInvoiceController extends mfBaseController { $csv .= '"'.$detail["article_number"].'";'; $csv .= '"'.$detail["product_name"].'";'; $csv .= round($detail["amount"], 3).';'; - $csv .= round($detail["price"], 2)."\n"; + $csv .= '"'.number_format($detail["price"], 2, ",","").'"'."\n"; } $subfolder = TT_PREORDER_BILLING[$invoice->netowner_id]["subfolder"]."/".$today->format("Y");