Answer the question
In order to leave comments, you need to log in
Is the order recalculated when the save() method is called?
I want to manually assign the total cost of the order (sometimes it may differ from the sum of the items in the order), I use API D7.
I give as an example a code fragment where the cost of the order is assigned:
$orderBx = Sale\Order::loadByAccountNumber(1000);
$myFullPrice = 15000; // для примера
$orderBx->setFieldNoDemand('PRICE', $myFullPrice);
$result = $orderBx->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question