Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
reservestoreproductaction.php
1
<?php
2
3
namespace
Bitrix\Catalog\Document\Action\Reserve
;
4
5
use
Bitrix\Catalog\Document\Action
;
6
use
Bitrix\Main\Result
;
7
11
class
ReserveStoreProductAction
implements
Action
12
{
13
use
BaseReserveStoreProductAction
;
14
18
public
function
canExecute
():
Result
19
{
20
return
new
Result
();
21
}
22
26
protected
function
getNewProductQuantity
(): float
27
{
28
return
$this->
getProductTotalQuantity
() -
$this->amount
;
29
}
30
34
protected
function
getNewProductReservedQuantity
(): float
35
{
36
return
$this->
getProductTotalReservedQuantity
() +
$this->amount
;
37
}
38
42
protected
function
getNewStoreReservedQuantity
(): float
43
{
44
return
$this->
getStoreReservedQuantity
() +
$this->amount
;
45
}
46
}
Bitrix\Catalog\Document\Action\Reserve\ReserveStoreProductAction
Definition
reservestoreproductaction.php:12
Bitrix\Catalog\Document\Action\Reserve\ReserveStoreProductAction\getNewProductReservedQuantity
getNewProductReservedQuantity()
Definition
reservestoreproductaction.php:34
Bitrix\Catalog\Document\Action\Reserve\ReserveStoreProductAction\getNewProductQuantity
getNewProductQuantity()
Definition
reservestoreproductaction.php:26
Bitrix\Catalog\Document\Action\Reserve\ReserveStoreProductAction\getNewStoreReservedQuantity
getNewStoreReservedQuantity()
Definition
reservestoreproductaction.php:42
Bitrix\Catalog\Document\Action\Reserve\ReserveStoreProductAction\canExecute
canExecute()
Definition
reservestoreproductaction.php:18
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Catalog\Document\Action
Definition
action.php:11
Bitrix\Catalog\Document\Action\Reserve
Definition
basereservestoreproductaction.php:3
Bitrix\Catalog\Document\Action\Reserve\BaseReserveStoreProductAction
trait BaseReserveStoreProductAction
Definition
basereservestoreproductaction.php:21
Bitrix\Catalog\Document\Action\Reserve\$amount
$amount
Definition
basereservestoreproductaction.php:37
Bitrix\Catalog\Document\Action
Bitrix\Catalog\Document\Action\getProductTotalQuantity
getProductTotalQuantity()
Definition
productandstoreinfo.php:201
Bitrix\Catalog\Document\Action\getStoreReservedQuantity
getStoreReservedQuantity()
Definition
productandstoreinfo.php:129
Bitrix\Catalog\Document\Action\getProductTotalReservedQuantity
getProductTotalReservedQuantity()
Definition
productandstoreinfo.php:211
modules
catalog
lib
document
action
reserve
reservestoreproductaction.php
Создано системой
1.10.0