From 4850c399d63767a878b636eb269f34afcb9d04c5 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 18 Apr 2025 15:53:37 +0200 Subject: [PATCH] Added Contract CSV Export --- Layout/default/Contract/Export.csv.php | 10 ++++++++++ Layout/default/Contract/Index.php | 1 + application/Contract/ContractController.php | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 Layout/default/Contract/Export.csv.php 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 @@ + +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 + +id?>;owner->customer_number?>;"owner->getCompanyOrName()?>";"owner->street?>";"owner->zip?>";"owner->city?>";"owner->country->isocode?>";billingaddress->customer_number?>;"billingaddress->getCompanyOrName()?>";"billingaddress->street?>";"billingaddress->zip?>";"billingaddress->city?>";"billingaddress->country->isocode?>";"sla->name?>";"product->productgroup->name?>";"product->name?>";"matchcode)?>";amount?>;price?>;price * $contract->amount?>;price_setup?>;billing_period, "billing_period")?>;billing_delay?>;order_date) ? date("Y-m-d", $contract->order_date) : ""?>;finish_date) ? date("Y-m-d", $contract->finish_date) : ""?>;cancel_date) ? date("Y-m-d", $contract->cancel_date) : ""?>;create)?>;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 @@
?resetFilter=1">Filter zurücksetzen +