diff --git a/Models/Item.php b/Models/Item.php index 452ca3c..2ce8e71 100755 --- a/Models/Item.php +++ b/Models/Item.php @@ -235,32 +235,6 @@ class Item implements \JsonSerializable $this->status = $status; } - /** - * Add note to item - * - * @param EditorDoc $note Note - * - * @return void - * - * @since 1.0.0 - */ - public function addNote(EditorDoc $note) : void - { - $this->notes[] = $note; - } - - /** - * Get notes - * - * @return EditorDoc[] - * - * @since 1.0.0 - */ - public function getNotes() : array - { - return $this->notes; - } - /** * {@inheritdoc} */ diff --git a/Theme/Backend/item-profile.tpl.php b/Theme/Backend/item-profile.tpl.php index 50bf9cd..87018e0 100755 --- a/Theme/Backend/item-profile.tpl.php +++ b/Theme/Backend/item-profile.tpl.php @@ -23,9 +23,9 @@ use phpOMS\Uri\UriFactory; /** @var \Modules\ItemManagement\Models\Item $item */ $item = $this->data['item']; -$attribute = $item->getAttributes(); +$attribute = $item->attributes; -$notes = $item->getNotes(); +$notes = $item->notes; $files = $item->files; $itemImage = $this->getData('itemImage') ?? new NullMedia(); @@ -573,7 +573,7 @@ echo $this->data['nav']->render();
render( - $item->getAttributes(), + $item->attributes, $this->data['attributeTypes'] ?? [], $this->data['units'] ?? [], '{/api}item/attribute' diff --git a/Theme/Backend/sales-item-profile.tpl.php b/Theme/Backend/sales-item-profile.tpl.php index 0f74800..356851a 100755 --- a/Theme/Backend/sales-item-profile.tpl.php +++ b/Theme/Backend/sales-item-profile.tpl.php @@ -21,9 +21,9 @@ use phpOMS\Uri\UriFactory; $item = $this->data['item']; $itemL11n = $item->getL11ns(); -$Attribute = $item->getAttributes(); +$Attribute = $item->attributes; -$notes = $item->getNotes(); +$notes = $item->notes; $files = $item->files; $newestInvoices = $this->data['newestInvoices'] ?? [];