О системах планирования ресурсов предприятия Scala, iScala
“ You can use MSRS channel to design documents with rich formatting in case of modern versions of iScala (starting from iScala 2.3 SR2 and SQL server 2008). And what if you have Scala 5.1, for example? Can anything be done for this version more or less gracefully? :)
  • Главная
    • О проекте
      • Разъяснение о проекте и его участниках
      • Заявление / Memorandum
    • Новости проекта
    • Список опубликованных материалов основного раздела
    • Информация, перенесённая из старых форумов
    • Подписаться на новостную рассылку
  • Наши услуги
  • Статьи
    • Статьи
    • Избранное
    • Мысли вслух
  • Процедуры
  • Доходчиво о сложном
    • Обучение
    • Как сделать?
    • iScala «для чайников»
    • Оч.умелые ручки
  • Структура таблиц
    • Scala 5.1 SR13
    • iScala 2.2 HF 2.3318
    • Tables structure changes history from iScala 2.2 SR2 to iScala 3.0 FSP4
    • Epicor iScala 2.3 — 2.03.3363
    • Epicor iScala 2.3 SR1
    • Epicor iScala 2.3 SR2
    • Epicor iScala 2.3 SR3
    • Epicor iScala 3.00 FSP 2 — 3.00.02254
    • Epicor iScala 3.0 FSP4 — 3.0.4267
    • Изменение структуры таблиц iScala 3.1 по сравнению с iScala 3.0 FSP4 / Table structure changes between iScala 3.0 FSP4 and iScala 3.1
    • Epicor iScala 3.1 — 3.1.0511
    • Epicor iScala 3.2 — 3.2.0317
    • Epicor iScala 3.3 — 3.3.0419
    • Epicor iScala 3.4 — 3.4.0399
    • Epicor iScala 3.5 — 3.5.0.0429
    • Изменение полей в таблицах БД iScala 3.4 по сравнению с iScala 3.2 / Difference between DB structure of iScala 3.4 and iScala 3.2
    • Изменение полей в таблицах БД iScala 3.5 по сравнению с iScala 2.2 / Difference between DB structure of iScala 3.5 and iScala 2.2
  • Материалы по модулям iScala
    • Главная Книга
    • Основные Средства
    • Книга Закупок
    • Книга Продаж
    • Заказы на Закупку
      • Требования
    • Заказы на Продажу
    • Управление Запасами
    • Установка, Администрирование
      • Настройка определений документов MSRS
    • Заработная плата
    • Структура базы данных
    • Отчётность SSRS
    • Отчётность AFR
    • Примеры отчётов
    • Примеры отчётов AFR
    • Интеграция с другими системами
    • Epicor Service Connect
  • English
  • Контакты
  • Поиск
Главная  »»»  For English speaking people  »»»  MSRS channel — what to use instead in case of very old version of Scala/iScala?

MSRS channel — what to use instead in case of very old version of Scala/iScala?

04.10.2017 Автор Алексей Васильев

Russian government approved new layout of fiscal invoice. You can use MSRS channel to design documents with rich formatting in case of modern versions of iScala (starting from iScala 2.3 SR2 and SQL server 2008). And what if you have Scala 5.1, for example? Last week I talked to a client who needs to change the invoice form for this version. I looked at how it was done and shed a few tears. It was deigned to use MS Word and macros formatting the original text document in a beautiful table view when printing invoices. I remembered the anecdote of the early 90’s about the new Russian, who comes to the park with his son, sees the artist who paints oil painting, and exclaims: «Look, son, how people without a polaroid are tortured». However, the task itself interested me. Even at the very beginning of my work with Scala, I considered the possibility of designing DDF documents in HTML format but the impracticability of the mission was that the HEAD section in the document is repeated when printing, if you have a sales order, for example, with many lines. Then I was not familiar with XSLT transformations. And now familiar because of Epicor Service Connect 🙂

Since I was intersted, I «took from the shelf» a virtual machine with Scala 5.1, «shook off the dust from it» and began to experiment. And I did it 🙂

This I will share with you.

I configure the DDF file (with OEM-866 encoding as you probably remember):

DDF file with XML tagsAfter that, set up a special printer. Using the .bat file, it copies the header and the printed file to a new file with the .xml extension and calls Internet Explorer, passing the resulting file.
set up a special printer
In fact, in the resulting file contains only data, no formatting:
Document printed before formattingStrangely enough, this is exactly what we need. After all, bringing this into the required form is a matter of technique. To do this, we need XSLT transformation that I wrote about above:

XSLT transformation to invoiceWe add a link to the transformation into the source file and now when the invoice is printed from Scala, the browser opens and the form of the invoice appears in it:

Data of the document transformed into invoice formIs this method suitable, for example, for iScala 2.2? Yes. The only question is to create the correct .bat file 🙂

Рубрика: For English speaking people Метки: DDF, invoice, MSRS, Scala 5.1, xml, XSLT
VK Telegram Про канал в WhatsApp

Copyright © 2025 О системах планирования ресурсов предприятия Scala, iScala.

Gammapolis WordPress Theme by ERP & Business Consulting

Прокрутка вверх