File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/catalog/lib/document/action/reserve/reservestoreproductaction.php
Back
<?php namespace Bitrix\Catalog\Document\Action\Reserve; use Bitrix\Catalog\Document\Action; use Bitrix\Main\Result; /** * Reserve product. */ class ReserveStoreProductAction implements Action { use BaseReserveStoreProductAction; /** * @inheritDoc */ public function canExecute(): Result { return new Result(); } /** * @inheritDoc */ protected function getNewProductQuantity(): float { return $this->getProductTotalQuantity() - $this->amount; } /** * @inheritDoc */ protected function getNewProductReservedQuantity(): float { return $this->getProductTotalReservedQuantity() + $this->amount; } /** * @inheritDoc */ protected function getNewStoreReservedQuantity(): float { return $this->getStoreReservedQuantity() + $this->amount; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings