40 $registryUnchanged = $this->loadConductedDocumentElements();
42 if (empty($registryUnchanged))
49 foreach ($registryUnchanged as $item)
51 if (!empty($item[
'STORE_TO']))
53 $batchElement =
new EO_StoreBatchDocumentElement();
54 $batchElement->setAmount($item[
'AMOUNT']);
55 $batchElement->setShipmentItemStoreId($item[
'STORE_TO']);
56 $batchElement->setDocumentElementId($item[
'ID']);
57 $batchElement->setBatchPrice($item[
'PURCHASING_PRICE']);
58 $batchElement->setBatchCurrency($item[
'CURRENCY']);
63 if (!empty($item[
'STORE_FROM']))
65 $batchElement =
new EO_StoreBatchDocumentElement();
66 $batchElement->setAmount(-$item[
'AMOUNT']);
67 $batchElement->setShipmentItemStoreId($item[
'STORE_TO']);
70 $batchElement->setShipmentItemStoreId($item[
'ID']);
74 $batchElement->setDocumentElementId($item[
'ID']);