2namespace Bitrix\Sale\Exchange\OneC;
6use Bitrix\Main\Config\Option;
7use Bitrix\Sale\Delivery\Services\EmptyDeliveryService;
8use Bitrix\Sale\Exchange;
9use Bitrix\Sale\PaySystem\Manager;
20 if(self::$currentSettings ===
null)
23 self::$currentSettings[
'import'][
'SITE_ID'] = Option::get(
"sale",
"1C_SITE_NEW_ORDERS");
127 if(!is_array(self::$currentSettings))
129 self::$currentSettings =
array();
132 return self::$currentSettings;
143 $entityTypeName = $this->
resolveName($entityTypeId);
144 return isset($this->settings[
'importableFor'][$entityTypeName]) && $this->settings[
'importableFor'][$entityTypeName] ===
'Y';
155 return $this->
getValueFor($entityTypeId,
'paySystem');
166 return $this->
getValueFor($entityTypeId,
'paySystemDefault');
177 return $this->
getValueFor($entityTypeId,
'shipmentService');
188 return $this->
getValueFor($entityTypeId,
'shipmentServiceDefault');
199 return $this->
getValueFor($entityTypeId,
'finalStatusId');
210 return $this->
getValueFor($entityTypeId,
'finalStatusOnDelivery');
221 $entityTypeName = $this->
resolveName($entityTypeId);
222 return ($this->settings[
'changeStatusFor'][$entityTypeName] ==
'Y' ? $this->settings[
'changeStatusFor'][$entityTypeName]:
'');
233 $entityTypeName = $this->
resolveName($entityTypeId);
234 return ($this->settings[
'canCreateOrder'][$entityTypeName] ==
'Y' ? $this->settings[
'canCreateOrder'][$entityTypeName]:
'');
242 return $this->settings[
'import'][
'SITE_ID'] !==
"" ? $this->settings[
'import'][
'SITE_ID']:
Main\Application::getInstance()->getContext()->getSite();
250 return $this->settings[
'import'][
'CURRENCY'];
261 $entityTypeName = $this->
resolveName($entityTypeId);
262 return is_array($this->settings[
'collisionResolve'][$entityTypeName]) ? $this->settings[
'collisionResolve'][$entityTypeName]:
array();
270 return new static(static::loadCurrentSettings());
static getEmptyDeliveryServiceId()
const OrderFinalStatusName
const ShipmentIsShippedName
const INVOICE_SHIPMENT_NAME
const INVOICE_PAYMENT_CASH_LESS_NAME
const PAYMENT_CASH_LESS_NAME
const INVOICE_PAYMENT_CASH_NAME
const INVOICE_PAYMENT_CARD_TRANSACTION_NAME
const USER_PROFILE_CONTACT_COMPANY_NAME
const PAYMENT_CARD_TRANSACTION_NAME
changeStatusFor($entityTypeId)
shipmentServiceFor($entityTypeId)
paySystemIdFor($entityTypeId)
shipmentServiceDefaultFor($entityTypeId)
getCollisionResolve($entityTypeId)
canCreateOrder($entityTypeId)
isImportableFor($entityTypeId)
static loadCurrentSettings()
finalStatusOnDeliveryFor($entityTypeId)
paySystemIdDefaultFor($entityTypeId)
finalStatusIdFor($entityTypeId)
getValueFor($entityTypeId, $name, $default='')
resolveName($entityTypeId)
static GetLangCurrency($siteId)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)