From 7899daf4214ed363018830625521f480490037d7 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 30 May 2020 01:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BD=D0=BE=D0=B2=D0=B0=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=20=D0=BA=20json-=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtolOnline/Entities/Document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AtolOnline/Entities/Document.php b/src/AtolOnline/Entities/Document.php index 0c48b6e..f3eaaae 100644 --- a/src/AtolOnline/Entities/Document.php +++ b/src/AtolOnline/Entities/Document.php @@ -405,7 +405,7 @@ class Document extends Entity $json['company'] = $this->getCompany()->jsonSerialize(); // обязательно } if ($this->getPayments()) { - $json['payments'] = $this->getPayments()->jsonSerialize(); // обязательно + $json['payments'] = $this->payments->jsonSerialize(); // обязательно } if ($this->getCashier()) { $json['cashier'] = $this->getCashier(); @@ -417,7 +417,7 @@ class Document extends Entity $json['client'] = $this->getClient()->jsonSerialize(); // обязательно для некоррекционных } if ($this->getItems()) { - $json['items'] = $this->getItems()->jsonSerialize(); // обязательно для некоррекционных + $json['items'] = $this->items->jsonSerialize(); // обязательно для некоррекционных } $json['total'] = $this->calcTotal(); // обязательно для некоррекционных }