diff --git a/Models/Invoice.php b/Models/Invoice.php index 9832329..f645cf2 100644 --- a/Models/Invoice.php +++ b/Models/Invoice.php @@ -27,7 +27,13 @@ use phpOMS\Localization\Money; */ class Invoice implements \JsonSerializable { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; /** * Number ID. @@ -147,6 +153,11 @@ class Invoice implements \JsonSerializable */ private int $reference = 0; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->insurance = new Money(); @@ -157,6 +168,13 @@ class Invoice implements \JsonSerializable $this->createdAt = new \DateTime(); } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -192,6 +210,13 @@ class Invoice implements \JsonSerializable $this->status = $status; } + /** + * Get created at date time + * + * @return \DateTime + * + * @since 1.0.0 + */ public function getCreatedAt() : \DateTime { return $this->createdAt; @@ -207,6 +232,13 @@ class Invoice implements \JsonSerializable return $this->send; } + /** + * Get created by + * + * @return int|\phpOMS\Account\Account + * + * @since 1.0.0 + */ public function getCreatedBy() : int { return $this->createdBy; diff --git a/Models/InvoiceElement.php b/Models/InvoiceElement.php index f17d989..08b1700 100644 --- a/Models/InvoiceElement.php +++ b/Models/InvoiceElement.php @@ -26,7 +26,13 @@ use phpOMS\Localization\Money; */ class InvoiceElement implements \JsonSerializable { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; private $order = 0; @@ -70,11 +76,23 @@ class InvoiceElement implements \JsonSerializable private $invoice = 0; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 52f62c7..f789625 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'Billing' => 'Billing', ]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 03ece12..e7c2a50 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,4 +1,4 @@ - [ 'Address' => 'Address', 'Addresses' => 'Addresses', diff --git a/Theme/Backend/invoice-archive.tpl.php b/Theme/Backend/invoice-archive.tpl.php index 145a0f5..52f46d5 100644 --- a/Theme/Backend/invoice-archive.tpl.php +++ b/Theme/Backend/invoice-archive.tpl.php @@ -1,4 +1,4 @@ -app, $this->request, $this->response); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); diff --git a/Theme/Backend/invoice-single.tpl.php b/Theme/Backend/invoice-single.tpl.php index 145a0f5..52f46d5 100644 --- a/Theme/Backend/invoice-single.tpl.php +++ b/Theme/Backend/invoice-single.tpl.php @@ -1,4 +1,4 @@ -app, $this->request, $this->response); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');