20 if(self::$currentSettings ===
null)
22 self::$currentSettings[
'import'][
'CURRENCY'] = \CSaleLang::GetLangCurrency(Option::get(
"sale",
"1C_SITE_NEW_ORDERS"));
23 self::$currentSettings[
'import'][
'SITE_ID'] = Option::get(
"sale",
"1C_SITE_NEW_ORDERS");
25 self::$currentSettings[
'finalStatusId'][Exchange\EntityType::ORDER_NAME] =
"F";
26 self::$currentSettings[
'finalStatusId'][Exchange\EntityType::INVOICE_NAME] =
"F";
27 self::$currentSettings[
'finalStatusOnDelivery'][Exchange\EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_FINAL_STATUS_ON_DELIVERY",
"");
28 self::$currentSettings[
'finalStatusOnDelivery'][Exchange\EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_FINAL_STATUS_ON_DELIVERY",
"");
30 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_CHANGE_STATUS_FROM_1C",
"Y");
31 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::SHIPMENT_NAME] =
'';
32 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::PAYMENT_CASH_NAME] =
'';
33 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] =
'';
34 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] =
'';
36 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_CHANGE_STATUS_FROM_1C",
"Y");
37 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::INVOICE_SHIPMENT_NAME] =
'';
38 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] =
'';
39 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] =
'';
40 self::$currentSettings[
'changeStatusFor'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] =
'';
43 self::$currentSettings[
'importableFor'][Exchange\EntityType::USER_PROFILE_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDERS",
"Y");
44 self::$currentSettings[
'importableFor'][Exchange\EntityType::PROFILE_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDERS",
"Y");
45 self::$currentSettings[
'importableFor'][Exchange\EntityType::USER_PROFILE_CONTACT_COMPANY_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDERS",
"Y");
46 self::$currentSettings[
'importableFor'][Exchange\EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDERS",
"Y");
47 self::$currentSettings[
'importableFor'][Exchange\EntityType::SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_SHIPMENT",
"Y");
48 self::$currentSettings[
'importableFor'][Exchange\EntityType::PAYMENT_CASH_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");
49 self::$currentSettings[
'importableFor'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");
50 self::$currentSettings[
'importableFor'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");
52 self::$currentSettings[
'importableFor'][Exchange\EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDERS",
"Y");
53 self::$currentSettings[
'importableFor'][Exchange\EntityType::INVOICE_SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_SHIPMENT",
"Y");;
54 self::$currentSettings[
'importableFor'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");;
55 self::$currentSettings[
'importableFor'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");;
56 self::$currentSettings[
'importableFor'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_PAYMENT",
"Y");;
59 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_SALE_ACCOUNT_NUMBER_SHOP_PREFIX",
"");
60 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::SHIPMENT_NAME] =
'';
61 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::PAYMENT_CASH_NAME] =
'';
62 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] =
'';
63 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] =
'';
65 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_SALE_ACCOUNT_NUMBER_SHOP_PREFIX",
"");
66 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::INVOICE_SHIPMENT_NAME] =
'';
67 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] =
'';
68 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] =
'';
69 self::$currentSettings[
'accountNumberPrefix'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] =
'';
72 self::$currentSettings[
'paySystem'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS_B",
"");
73 self::$currentSettings[
'paySystem'][Exchange\EntityType::PAYMENT_CASH_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS",
"");
74 self::$currentSettings[
'paySystem'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS_A",
"");
76 self::$currentSettings[
'paySystem'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS_B",
"");
77 self::$currentSettings[
'paySystem'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS",
"");
78 self::$currentSettings[
'paySystem'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_PS_A",
"");
81 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] = Manager::getInnerPaySystemId();
82 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::PAYMENT_CASH_NAME] = Manager::getInnerPaySystemId();
83 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] = Manager::getInnerPaySystemId();
85 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] = Manager::getInnerPaySystemId();
86 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] = Manager::getInnerPaySystemId();
87 self::$currentSettings[
'paySystemDefault'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] = Manager::getInnerPaySystemId();
90 self::$currentSettings[
'shipmentService'][Exchange\EntityType::SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_SHIPMENT_SERVICE",
"");
93 self::$currentSettings[
'shipmentService'][Exchange\EntityType::INVOICE_SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_DEFAULT_SHIPMENT_SERVICE",
"");
97 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::ORDER_NAME] =
'';
98 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDER_NEW_SHIPMENT",
"");
99 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::PAYMENT_CASH_NAME] =
'';
100 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::PAYMENT_CASH_LESS_NAME] =
'';
101 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::PAYMENT_CARD_TRANSACTION_NAME] =
'';
103 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::INVOICE_NAME] =
'';
104 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::INVOICE_SHIPMENT_NAME] = Option::get(
"sale",
"1C_IMPORT_NEW_ORDER_NEW_SHIPMENT",
"");
105 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::INVOICE_PAYMENT_CASH_NAME] =
'';
106 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::INVOICE_PAYMENT_CASH_LESS_NAME] =
'';
107 self::$currentSettings[
'canCreateOrder'][Exchange\EntityType::INVOICE_PAYMENT_CARD_TRANSACTION_NAME] =
'';
127 if(!is_array(self::$currentSettings))
129 self::$currentSettings = array();