2namespace Bitrix\Sale\Helpers\Order\Builder;
4use Bitrix\Crm\Order\Shipment;
31 'ID' => $shipmentData[
'ORDER_ID'],
32 'SITE_ID' => $shipmentData[
'SITE_ID'],
33 'SHIPMENT' =>
array($shipmentData)
48 $collection =
$order->getShipmentCollection();
50 if((
int)$shipmentData[
'ID'] > 0)
52 return $collection->getItemById($shipmentData[
'ID']);
56 foreach($collection as $shipment)
58 if($shipment->getId() <= 0)
78 'ID' => $paymentData[
'ORDER_ID'],
79 'PAYMENT' =>
array($paymentData)
94 $collection =
$order->getPaymentCollection();
96 $paymentId = (int)($paymentData[
'ID'] ?? 0);
99 return $collection->getItemById($paymentId);
getUpdatedPayment(OrderBuilder $builder, array $paymentData)
getUpdatedShipment(OrderBuilder $builder, array $shipmentData)
createOrder(OrderBuilder $builder, array $fields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)