21 if(self::$currentSettings ===
null)
23 self::$currentSettings[
'export'][
'SITE_ID'] = Option::get(
"sale",
"1C_SALE_SITE_LIST",
"");
24 self::$currentSettings[
'export'][
'CURRENCY'] = Option::get(
"sale",
"1C_REPLACE_CURRENCY",
"");
26 self::$currentSettings[
'payed'][
EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_EXPORT_PAYED_ORDERS",
"");
39 self::$currentSettings[
'allow_delivery'][
EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_EXPORT_ALLOW_DELIVERY_ORDERS",
"");
45 self::$currentSettings[
'allow_delivery'][
EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_EXPORT_ALLOW_DELIVERY_ORDERS",
"");
52 self::$currentSettings[
'accountNumberPrefix'][
EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_SALE_ACCOUNT_NUMBER_SHOP_PREFIX",
"");
58 self::$currentSettings[
'accountNumberPrefix'][
EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_SALE_ACCOUNT_NUMBER_SHOP_PREFIX",
"");
65 self::$currentSettings[
'finalStatus'][
EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_EXPORT_FINAL_ORDERS",
"");
78 self::$currentSettings[
'groupPermission'][
EntityType::ORDER_NAME] = Option::get(
"sale",
"1C_SALE_GROUP_PERMISSIONS");
84 self::$currentSettings[
'groupPermission'][
EntityType::INVOICE_NAME] = Option::get(
"sale",
"1C_SALE_GROUP_PERMISSIONS");
91 if(!is_array(self::$currentSettings))
93 self::$currentSettings = array();
104 return $this->settings[
'export'][
'SITE_ID'] !==
"" ? $this->settings[
'export'][
'SITE_ID']:
'';
112 return $this->settings[
'export'][
'CURRENCY'];
121 return $this->
getValueFor($entityTypeId,
'groupPermission');
130 return $this->
getValueFor($entityTypeId,
'finalStatus');
148 return $this->
getValueFor($entityTypeId,
'allow_delivery');
156 return new static(static::loadCurrentSettings());
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 PAYMENT_CARD_TRANSACTION_NAME
groupPermissionFor($entityTypeId)
allowDeliveryFor($entityTypeId)
finalStatusFor($entityTypeId)
static loadCurrentSettings()
getValueFor($entityTypeId, $name, $default='')