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(); // обязательно для некоррекционных }