diff --git a/Layout/default/Contract/Export.csv.php b/Layout/default/Contract/Export.csv.php new file mode 100644 index 000000000..d81224f0c --- /dev/null +++ b/Layout/default/Contract/Export.csv.php @@ -0,0 +1,10 @@ + +="\u{FEFF}"?>Contract ID;Vertragsinhaber Kundennummer;Vertragsinhaber Name;Vertragsinhaber Straße;Vertragsinhaber PLZ;Vertragsinhaber Ort;Vertragsinhaber Land;Rechnungsempfänger Kundennummer;Rechnungsempfänger Name;Rechnungsempfänger Straße;Rechnungsempfänger PLZ;Rechnungsempfänger Ort;Rechnungsempfänger Land;SLA;Produktgruppe;Produktname;Matchcode;Menge;Einzelpreis;Gesamtpreis;Preis Setup;Rechungsperiode;Verrechnungsstart Verzögerung;Bestelldatum;Fertigstellungsdatum;Kündigungsdatum;Erstellt;Zuletzt bearbeitet + +=$contract->id?>;=$contract->owner->customer_number?>;"=$contract->owner->getCompanyOrName()?>";"=$contract->owner->street?>";"=$contract->owner->zip?>";"=$contract->owner->city?>";"=$contract->owner->country->isocode?>";=$contract->billingaddress->customer_number?>;"=$contract->billingaddress->getCompanyOrName()?>";"=$contract->billingaddress->street?>";"=$contract->billingaddress->zip?>";"=$contract->billingaddress->city?>";"=$contract->billingaddress->country->isocode?>";"=$contract->sla->name?>";"=$contract->product->productgroup->name?>";"=$contract->product->name?>";"=str_replace(["\r","\n",'"'],[" ", " ", '""'],$contract->matchcode)?>";=$contract->amount?>;=$contract->price?>;=$contract->price * $contract->amount?>;=$contract->price_setup?>;=__($contract->billing_period, "billing_period")?>;=$contract->billing_delay?>;=($contract->order_date) ? date("Y-m-d", $contract->order_date) : ""?>;=($contract->finish_date) ? date("Y-m-d", $contract->finish_date) : ""?>;=($contract->cancel_date) ? date("Y-m-d", $contract->cancel_date) : ""?>;=date("Y-m-d", $contract->create)?>;=date("Y-m-d", $contract->edit)?> + + \ No newline at end of file diff --git a/Layout/default/Contract/Index.php b/Layout/default/Contract/Index.php index 9d3f2a194..ad9eea754 100644 --- a/Layout/default/Contract/Index.php +++ b/Layout/default/Contract/Index.php @@ -89,6 +89,7 @@