invoice_number.'.csv"'); ?> Rechnungsnummer;Belegdatum;Kundennummer;Firma;Nachname;Vorname;Produktname;Matchcode;Zeitraum;Anzahl;Preis Netto;Ust%;Preis Brutto positions as $p): $timerange_month_only = $p->getOption('timerange_month_only'); $start_date = new DateTime($p->start_date); $end_date = new DateTime($p->end_date); $amount = (float) number_format($p->amount, 3, ",", "."); $price = number_format($p->price, 2, ",","."); $price_total = number_format($p->price_total, 2, ",","."); $price_gross = number_format($p->price_gross, 2, ",","."); $vatrate = number_format($p->vatrate, 0, ",","."); $credit_custnum = false; $credit = false; $contract = false; if($p->contract_id) { $credit = $p->contract; foreach($credit->linkFrom as $link) { if($link->type == "credit") { $contract = $link->origin; $credit_custnum = $contract->owner->customer_number; break; } } } $timerange = ""; if($timerange_month_only) { $timerange = $start_date->format("m.Y"); } elseif($p->billing_period > 1) { $timerange = $start_date->format("m.Y")?> - format("m.Y"); } else { if($start_date->format("d.m.Y") == $end_date->format("d.m.Y")) { $timerange = $start_date->format("d.m.Y"); } else { $timerange = $start_date->format("d.m.Y")." - ".$end_date->format("d.m.Y"); } } ?> invoice_number?>;invoice_date)?>;customer_number?>;"company)?>";"lastname?>";"firstname?>";"product_name?>";"matchcode)?>";"";amount?>;price_total, 2, ",", "")?>;vatrate, 2, ",", "")?>;price_gross, 2, ",", "")?>