Интеграция с СОРМ 3 Яхонт компании НОРСИ-ТРАНС

Ключ
Эта строка удалена.
Это слово было удалено. Это слово было добавлено.
Эта строка добавлена.

Изменения (9)

просмотр истории страницы
'"1";"' ||
coalesce(case
when fo.operator_name = 'APELSIN' then '1'
when fo.operator_name = 'CITY_PAY' then '2'
when fo.operator_name = 'Comepay' then '3'
when fo.operator_name = 'Elexnet' then '4'
when fo.operator_name = 'ElexnetOld' then '5'
when fo.operator_name = 'EXPRESS_VOLGA' then '6'
when fo.operator_name = 'ForwardMobile' then '7'
when fo.operator_name = 'Gorod' then '8'
when fo.operator_name = 'JCC' then '9'
when fo.operator_name = 'Kassa24' then '10'
when fo.operator_name = 'KAZKOMBANK' then '11'
when fo.operator_name = 'Krasplat' then '12'
when fo.operator_name = 'MINBANK' then '13'
when fo.operator_name = 'MKB_OSMP' then '14'
when fo.operator_name = 'Mobilnik' then '15'
when fo.operator_name = 'NCC' then '16'
when fo.operator_name = 'OSMP_Amigo' then '17'
when fo.operator_name = 'OSMP_CHECK' then '18'
when fo.operator_name = 'OSMP_DELTAPAY' then '19'
when fo.operator_name = 'OSMP_EXPRESS_OPLATA' then '20'
when fo.operator_name = 'OSMP_INTERPAY' then '21'
when fo.operator_name = 'OSMP_MOROZOV' then '22'
when fo.operator_name = 'OSMP_QIWI' then '23'
when fo.operator_name = 'OSMP-QIWI' then '24'
when fo.operator_name = 'OSMP_SBRF' then '25'
when fo.operator_name = 'OSMP_SIPAY' then '26'
when fo.operator_name = 'PAYANYWAY' then '27'
when fo.operator_name = 'PAYCOM_UZ' then '28'
when fo.operator_name = 'Payfon_phone' then '29'
when fo.operator_name = 'PAYKEEPER' then '30'
when fo.operator_name = 'PAYMASTER' then '31'
when fo.operator_name = 'PaymasterAutopay' then '32'
when fo.operator_name = 'PAYNET_UZ' then '33'
when fo.operator_name = 'PayPal' then '34'
when fo.operator_name = 'PayPro' then '35'
when fo.operator_name = 'QIWI_OSMP' then '36'
when fo.operator_name = 'QIWI(REST)' then '37'
when fo.operator_name = 'Qiwiwallet' then '38'
when fo.operator_name = 'QuickPay' then '39'
when fo.operator_name = 'RAPIDA' then '40'
when fo.operator_name = 'Robokassa' then '41'
when fo.operator_name = 'RPS' then '42'
when fo.operator_name = 'SBERBANK_ACQ' then '43'
when fo.operator_name = 'SBRF' then '44'
when fo.operator_name = 'SBRF_BS' then '45'
when fo.operator_name = 'SBRF_KIBERPLAT' then '46'
when fo.operator_name = 'SFOUR' then '47'
when fo.operator_name = 'Simfoniya' then '48'
when fo.operator_name = 'TelePay' then '49'
when fo.operator_name = 'TINKOFF' then '50'
when fo.operator_name = 'UBRIR' then '51'
when fo.operator_name = 'UCS_ACQ' then '52'
when fo.operator_name = 'Unikassa' then '53'
when fo.operator_name = 'Uniteller' then '54'
when fo.operator_name = 'UnitellerAutopay' then '55'
when fo.operator_name = 'VISA-MASTERCARD' then '56'
when fo.operator_name = 'VISA-webcreds' then '57'
when fo.operator_name = 'WebRobokassa' then '58'
when fo.operator_name = 'XPLAT' then '59'
when fo.operator_name = 'YAPK' then '60'
when (fo.operator_name = '' or fo.operator_name is null) then '61'
when fo.operator_name = 'CITY_PAY' then '2'
when fo.operator_name = 'Comepay' then '3'
when fo.operator_name = 'Elexnet' then '4'
when fo.operator_name = 'ElexnetOld' then '5'
when fo.operator_name = 'EXPRESS_VOLGA' then '6'
when fo.operator_name = 'ForwardMobile' then '7'
when fo.operator_name = 'Gorod' then '8'
when fo.operator_name = 'JCC' then '9'
when fo.operator_name = 'Kassa24' then '10'
when fo.operator_name = 'KAZKOMBANK' then '11'
when fo.operator_name = 'Krasplat' then '12'
when fo.operator_name = 'MINBANK' then '13'
when fo.operator_name = 'MKB_OSMP' then '14'
when fo.operator_name = 'Mobilnik' then '15'
when fo.operator_name = 'MONEY_YANDEX' then '16'
when fo.operator_name = 'NCC' then '17'
when fo.operator_name = 'OSMP_Amigo' then '18'
when fo.operator_name = 'OSMP_CHECK' then '19'
when fo.operator_name = 'OSMP_DELTAPAY' then '20'
when fo.operator_name = 'OSMP_EXPRESS_OPLATA' then '21'
when fo.operator_name = 'OSMP_INTERPAY' then '22'
when fo.operator_name = 'OSMP_MOROZOV' then '23'
when fo.operator_name = 'OSMP_QIWI' then '24'
when fo.operator_name = 'OSMP-QIWI' then '25'
when fo.operator_name = 'OSMP_SBRF' then '26'
when fo.operator_name = 'OSMP_SIPAY' then '27'
when fo.operator_name = 'PAYANYWAY' then '28'
when fo.operator_name = 'PAYCOM_UZ' then '29'
when fo.operator_name = 'Payfon_phone' then '30'
when fo.operator_name = 'PAYKEEPER' then '31'
when fo.operator_name = 'PAYMASTER' then '32'
when fo.operator_name = 'PaymasterAutopay' then '33'
when fo.operator_name = 'PAYNET_UZ' then '34'
when fo.operator_name = 'PayPal' then '35'
when fo.operator_name = 'PayPro' then '36'
when fo.operator_name = 'QIWI_OSMP' then '37'
when fo.operator_name = 'QIWI(REST)' then '38'
when fo.operator_name = 'Qiwiwallet' then '39'
when fo.operator_name = 'QuickPay' then '40'
when fo.operator_name = 'RAPIDA' then '41'
when fo.operator_name = 'Robokassa' then '42'
when fo.operator_name = 'RPS' then '43'
when fo.operator_name = 'SBERBANK_ACQ' then '44'
when fo.operator_name = 'SBRF' then '45'
when fo.operator_name = 'SBRF_BS' then '46'
when fo.operator_name = 'SBRF_KIBERPLAT' then '47'
when fo.operator_name = 'SFOUR' then '48'
when fo.operator_name = 'Simfoniya' then '49'
when fo.operator_name = 'TelePay' then '50'
when fo.operator_name = 'TINKOFF' then '51'
when fo.operator_name = 'UBRIR' then '52'
when fo.operator_name = 'UCS_ACQ' then '53'
when fo.operator_name = 'Unikassa' then '54'
when fo.operator_name = 'Uniteller' then '55'
when fo.operator_name = 'UnitellerAutopay' then '56'
when fo.operator_name = 'VISA-MASTERCARD' then '57'
when fo.operator_name = 'webcreds' then '58'
when fo.operator_name = 'WebRobokassa' then '59'
when fo.operator_name = 'XPLAT' then '60'
when fo.operator_name = 'YAPK' then '61'
when fo.operator_name is null then '62'
else '612'

end,'-')
|| '";"' ||
coalesce(case
when fo.operator_name = 'APELSIN' then '1'
when fo.operator_name = 'CITY_PAY' then '2'
when fo.operator_name = 'Comepay' then '3'
when fo.operator_name = 'Elexnet' then '4'
when fo.operator_name = 'ElexnetOld' then '5'
when fo.operator_name = 'EXPRESS_VOLGA' then '6'
when fo.operator_name = 'ForwardMobile' then '7'
when fo.operator_name = 'Gorod' then '8'
when fo.operator_name = 'JCC' then '9'
when fo.operator_name = 'Kassa24' then '10'
when fo.operator_name = 'KAZKOMBANK' then '11'
when fo.operator_name = 'Krasplat' then '12'
when fo.operator_name = 'MINBANK' then '13'
when fo.operator_name = 'MKB_OSMP' then '14'
when fo.operator_name = 'Mobilnik' then '15'
when fo.operator_name = 'NCC' then '16'
when fo.operator_name = 'OSMP_Amigo' then '17'
when fo.operator_name = 'OSMP_CHECK' then '18'
when fo.operator_name = 'OSMP_DELTAPAY' then '19'
when fo.operator_name = 'OSMP_EXPRESS_OPLATA' then '20'
when fo.operator_name = 'OSMP_INTERPAY' then '21'
when fo.operator_name = 'OSMP_MOROZOV' then '22'
when fo.operator_name = 'OSMP_QIWI' then '23'
when fo.operator_name = 'OSMP-QIWI' then '24'
when fo.operator_name = 'OSMP_SBRF' then '25'
when fo.operator_name = 'OSMP_SIPAY' then '26'
when fo.operator_name = 'PAYANYWAY' then '27'
when fo.operator_name = 'PAYCOM_UZ' then '28'
when fo.operator_name = 'Payfon_phone' then '29'
when fo.operator_name = 'PAYKEEPER' then '30'
when fo.operator_name = 'PAYMASTER' then '31'
when fo.operator_name = 'PaymasterAutopay' then '32'
when fo.operator_name = 'PAYNET_UZ' then '33'
when fo.operator_name = 'PayPal' then '34'
when fo.operator_name = 'PayPro' then '35'
when fo.operator_name = 'QIWI_OSMP' then '36'
when fo.operator_name = 'QIWI(REST)' then '37'
when fo.operator_name = 'Qiwiwallet' then '38'
when fo.operator_name = 'QuickPay' then '39'
when fo.operator_name = 'RAPIDA' then '40'
when fo.operator_name = 'Robokassa' then '41'
when fo.operator_name = 'RPS' then '42'
when fo.operator_name = 'SBERBANK_ACQ' then '43'
when fo.operator_name = 'SBRF' then '44'
when fo.operator_name = 'SBRF_BS' then '45'
when fo.operator_name = 'SBRF_KIBERPLAT' then '46'
when fo.operator_name = 'SFOUR' then '47'
when fo.operator_name = 'Simfoniya' then '48'
when fo.operator_name = 'TelePay' then '49'
when fo.operator_name = 'TINKOFF' then '50'
when fo.operator_name = 'UBRIR' then '51'
when fo.operator_name = 'UCS_ACQ' then '52'
when fo.operator_name = 'Unikassa' then '53'
when fo.operator_name = 'Uniteller' then '54'
when fo.operator_name = 'UnitellerAutopay' then '55'
when fo.operator_name = 'VISA-MASTERCARD' then '56'
when fo.operator_name = 'VISA-webcreds' then '57'
when fo.operator_name = 'WebRobokassa' then '58'
when fo.operator_name = 'XPLAT' then '59'
when fo.operator_name = 'YAPK' then '60'
when (fo.operator_name = '' or fo.operator_name is null) then '61'
when fo.operator_name = 'CITY_PAY' then '2'
when fo.operator_name = 'Comepay' then '3'
when fo.operator_name = 'Elexnet' then '4'
when fo.operator_name = 'ElexnetOld' then '5'
when fo.operator_name = 'EXPRESS_VOLGA' then '6'
when fo.operator_name = 'ForwardMobile' then '7'
when fo.operator_name = 'Gorod' then '8'
when fo.operator_name = 'JCC' then '9'
when fo.operator_name = 'Kassa24' then '10'
when fo.operator_name = 'KAZKOMBANK' then '11'
when fo.operator_name = 'Krasplat' then '12'
when fo.operator_name = 'MINBANK' then '13'
when fo.operator_name = 'MKB_OSMP' then '14'
when fo.operator_name = 'Mobilnik' then '15'
when fo.operator_name = 'MONEY_YANDEX' then '16'
when fo.operator_name = 'NCC' then '17'
when fo.operator_name = 'OSMP_Amigo' then '18'
when fo.operator_name = 'OSMP_CHECK' then '19'
when fo.operator_name = 'OSMP_DELTAPAY' then '20'
when fo.operator_name = 'OSMP_EXPRESS_OPLATA' then '21'
when fo.operator_name = 'OSMP_INTERPAY' then '22'
when fo.operator_name = 'OSMP_MOROZOV' then '23'
when fo.operator_name = 'OSMP_QIWI' then '24'
when fo.operator_name = 'OSMP-QIWI' then '25'
when fo.operator_name = 'OSMP_SBRF' then '26'
when fo.operator_name = 'OSMP_SIPAY' then '27'
when fo.operator_name = 'PAYANYWAY' then '28'
when fo.operator_name = 'PAYCOM_UZ' then '29'
when fo.operator_name = 'Payfon_phone' then '30'
when fo.operator_name = 'PAYKEEPER' then '31'
when fo.operator_name = 'PAYMASTER' then '32'
when fo.operator_name = 'PaymasterAutopay' then '33'
when fo.operator_name = 'PAYNET_UZ' then '34'
when fo.operator_name = 'PayPal' then '35'
when fo.operator_name = 'PayPro' then '36'
when fo.operator_name = 'QIWI_OSMP' then '37'
when fo.operator_name = 'QIWI(REST)' then '38'
when fo.operator_name = 'Qiwiwallet' then '39'
when fo.operator_name = 'QuickPay' then '40'
when fo.operator_name = 'RAPIDA' then '41'
when fo.operator_name = 'Robokassa' then '42'
when fo.operator_name = 'RPS' then '43'
when fo.operator_name = 'SBERBANK_ACQ' then '44'
when fo.operator_name = 'SBRF' then '45'
when fo.operator_name = 'SBRF_BS' then '46'
when fo.operator_name = 'SBRF_KIBERPLAT' then '47'
when fo.operator_name = 'SFOUR' then '48'
when fo.operator_name = 'Simfoniya' then '49'
when fo.operator_name = 'TelePay' then '50'
when fo.operator_name = 'TINKOFF' then '51'
when fo.operator_name = 'UBRIR' then '52'
when fo.operator_name = 'UCS_ACQ' then '53'
when fo.operator_name = 'Unikassa' then '54'
when fo.operator_name = 'Uniteller' then '55'
when fo.operator_name = 'UnitellerAutopay' then '56'
when fo.operator_name = 'VISA-MASTERCARD' then '57'
when fo.operator_name = 'webcreds' then '58'
when fo.operator_name = 'WebRobokassa' then '59'
when fo.operator_name = 'XPLAT' then '60'
when fo.operator_name = 'YAPK' then '61'
when fo.operator_name is null then '62'
else '612'
end,'-')
|| '";"' ||
a.contract_number || '";"' ||