diff --git a/Models/Bill.php b/Models/Bill.php index fe087bc..a9d3409 100755 --- a/Models/Bill.php +++ b/Models/Bill.php @@ -127,14 +127,6 @@ class Bill implements \JsonSerializable */ public Account $createdBy; - /** - * Files. - * - * @var EditorDoc[] - * @since 1.0.0 - */ - private array $notes = []; - public ?Client $client = null; public ?Supplier $supplier = null; @@ -443,14 +435,6 @@ class Bill implements \JsonSerializable */ public int $reference = 0; - /** - * Attributes. - * - * @var \Modules\Attribute\Models\Attribute[] - * @since 1.0.0 - */ - private array $attributes = []; - /** * Constructor. * @@ -699,32 +683,6 @@ class Bill implements \JsonSerializable $this->grossDiscount->add((int) ($element->taxR->getInt() * $element->totalDiscountP->getInt() / 10000)); } - /** - * 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} */ @@ -758,5 +716,6 @@ class Bill implements \JsonSerializable } use \Modules\Attribute\Models\AttributeHolderTrait; + use \Modules\Editor\Models\EditorDocListTrait; use \Modules\Media\Models\MediaListTrait; }