Update hesabixCore/src/Controller/SellController.php

This commit is contained in:
Hesabix 2025-08-23 23:06:07 +03:30
parent 5334b1fddb
commit 5159b0fcda

View file

@ -895,6 +895,7 @@ class SellController extends AbstractController
'taxPercent' => method_exists($doc, 'getTaxPercent') ? $doc->getTaxPercent() : null, 'taxPercent' => method_exists($doc, 'getTaxPercent') ? $doc->getTaxPercent() : null,
'discountPercent' => $doc->getDiscountPercent(), 'discountPercent' => $doc->getDiscountPercent(),
'discountType' => $doc->getDiscountType(), 'discountType' => $doc->getDiscountType(),
'amount' => $doc->getAmount(),
'money' => [ 'money' => [
'shortName' => method_exists($doc, 'getMoney') && $doc->getMoney() && method_exists($doc->getMoney(), 'getShortName') ? $doc->getMoney()->getShortName() : null, 'shortName' => method_exists($doc, 'getMoney') && $doc->getMoney() && method_exists($doc->getMoney(), 'getShortName') ? $doc->getMoney()->getShortName() : null,
], ],