Y
Y
Yuriy2019-12-04 12:51:16
1C-Bitrix
Yuriy, 2019-12-04 12:51:16

Bitrix how to write the SUM_PAID field in the order table?

I do this
$order->setField('SUM_PAID', 100);
or so
$order->setField('SUM_PAID', DoubleVal(100));
i get like this((

[Bitrix\Main\ArgumentOutOfRangeException] 
The value of an argument 'name=SUM_PAID' is outside the allowable range of values (100)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy, 2019-12-04
@yous

I will answer myself, I found the $this->setFieldNoDemand method in the file \bitrix\modules\sale\lib\sale.php
checked it works
$order->setFieldNoDemand('SUM_PAID', 100);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question