diff --git a/Models/Client.php b/Models/Client.php index 3ff45dc..090b35d 100644 --- a/Models/Client.php +++ b/Models/Client.php @@ -27,7 +27,7 @@ use Modules\Profile\Models\Profile; */ class Client { - private int $id = 0; + protected int $id = 0; private string $number = ''; diff --git a/Models/NullClient.php b/Models/NullClient.php new file mode 100644 index 0000000..f07a319 --- /dev/null +++ b/Models/NullClient.php @@ -0,0 +1,39 @@ +id = $id; + parent::__construct(); + } +} diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php new file mode 100644 index 0000000..288d3df --- /dev/null +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -0,0 +1,16 @@ + [ +]]; diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php new file mode 100644 index 0000000..23f2a19 --- /dev/null +++ b/Theme/Backend/Lang/de.lang.php @@ -0,0 +1,67 @@ + [ + 'Accounting' => 'Buchhaltung', + 'Address' => 'Addresse', + 'Addresses' => 'Addressen', + 'AreaManager' => 'Area Manager', + 'Articlegroup' => 'Artikelgruppe', + 'Bonus' => 'Bonus', + 'Business' => 'Business', + 'City' => 'Stadt', + 'Client' => 'Kunde', + 'Clients' => 'Kunden', + 'Contact' => 'Kontakt', + 'Country' => 'Land', + 'Creditcard' => 'Kreditkarte', + 'Date' => 'Datum', + 'Default' => 'Standard', + 'Delivery' => 'Lieferung', + 'Discount' => 'Rabatt', + 'DiscountP' => 'Rabatt %', + 'Email' => 'Email', + 'Fax' => 'Fax', + 'Files' => 'Dateien', + 'Freightage' => 'Frachtkosten', + 'Group' => 'Gruppe', + 'ID' => 'ID', + 'Info' => 'Info', + 'Invoice' => 'Rechnung', + 'IsDefault' => 'Ist Standard?', + 'Log' => 'Log', + 'Logs' => 'Logs', + 'Master' => 'Master', + 'Name' => 'Name', + 'Name1' => 'Name1', + 'Name2' => 'Name2', + 'Name3' => 'Name3', + 'Office' => 'Büro', + 'Payment' => 'Zahlung', + 'PaymentTerm' => 'Zahlungsziel', + 'Phone' => 'Telefon', + 'Price' => 'Preis', + 'Prices' => 'Preise', + 'Private' => 'Privat', + 'Productgroup' => 'Produktgruppe', + 'Purchase' => 'Einkauf', + 'Quantity' => 'Anzahl', + 'Sales' => 'Umsatz', + 'Segment' => 'Segment', + 'Subtype' => 'Untergruppe', + 'Support' => 'Support', + 'Type' => 'Typ', + 'Wire' => 'Wire', + 'Zip' => 'Postleitzahl', +]]; diff --git a/Theme/Backend/clients-list.tpl.php b/Theme/Backend/clients-list.tpl.php index 5dbdf6b..3f49e69 100644 --- a/Theme/Backend/clients-list.tpl.php +++ b/Theme/Backend/clients-list.tpl.php @@ -1,4 +1,5 @@ l11nManager, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - +/** @var \phpOMS\Views\View $this */ $clients = $this->getData('client'); echo $this->getData('nav')->render(); ?> - - -
-
+
+
getHtml('Clients'); ?>
- - - $value) : ++$count; - $url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/client/profile?{?}&id=' . $value->getId()); ?> + $url = UriFactory::build('{/prefix}sales/client/profile?{?}&id=' . $value->getId()); ?>
getHtml('Clients'); ?>
getHtml('ID', '0', '0'); ?> @@ -75,12 +34,9 @@ echo $this->getData('nav')->render(); ?> getHtml('Zip') ?> getHtml('Address') ?> getHtml('Country') ?> -
printHtml($value->getNumber()); ?> printHtml($value->getProfile()->getAccount()->getName1()); ?> @@ -92,9 +48,9 @@ echo $this->getData('nav')->render(); ?> -
getHtml('Empty', '0', '0'); ?> - +
getHtml('Empty', '0', '0'); ?> +
-
+