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");