Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Automatically translated by Lango

Tlačítko Odeslání dokumentů umožnuje generování e-mailu, který v příloze má dokument, který se vygeneroval ze šablony (která byla taktéž zadefinována na Definici tiskových výstupů).

Po stisknutí tlačítka systém provede následující kroky:

  • Otevře zafiltrovaný přehled tiskových výstupů (zafiltrovaný seznam tiskových výstupů z tabulky Definice tiskových výstupů, které):

    • uživatel má přiděleno oprávnění (viz Nastavení Business) a

    • mají nastaveno ID tabulky=4026397

    • splňují filtry nastaveny v Definici tiskových výstupů vůči datům z dané leasingové smlouvy a předmětu:

      • Pole ze smlouvy:

        • Pokud se funkce spouští ze smlouvy, jede přímo přes číslo smlouvy

        • Pokud se funkce spouští z předmětu, nejprve z předmětu zjistí číslo smlouvy a pak jede na smlouvu

        • Jsou to pole:

          • Customer No. – stejné jako v smlouvě anebo prázdní

          • Financing Product Type Filter – musí mít Financing Product Type ze smlouvy anebo prázdní

          • Financing Product Filter - musí mít Financing Product Type ze smlouvy anebo prázdní

          • Detailed Contract Status Filter - musí mít Detailed Contract Status ze smlouvy anebo prázdní

          • Language Code – musí mít Language Code (4047130) se smlouvy anebo prázdní

      • Pole z předmětu:

        • Pokud se funkce spouští z předmětu, jede přímo přes číslo předmětu

        • Pokud se funkce spouští ze smlouvy, nejprve ze smlouvy zjistí číslo prvního předmětu a pak jede na předmět

        • Jsou to pole:

          • Object Category – All anebo jako na předmětu+1

          • Group – stejné jako na předmětu anebo prázdní

          • Used Financed Object – All anebo stejné jako na předmětu (pozor a předmětu je to příznak)

      • Pole z pojištění, resp. další pole nefiltruje.

Uživatel pak označí tiskový výstup, který chce vytisknout (Vybrat=A) a pokud chce, aby se mu otevřel i vygenerovaný e-mail v poštovním klientovi systému, tak na daném dokumentu nastaví i Zadání parametrů=A a potvrdí tlačítko Ok. Systém pak provede kontrolu, jestli jsou zadefinovány potřebné nastavění v Definici tiskových výstupů (popis viz PD Business Nastavení):

  • Kód vlastního rozvržení sestavy

  • Kód rozvržení textu e-mailu

  • Předmět e-mailu

  • Název přílohy e-mailu

  • Odeslat na

Pokud jsou všechny nastavení zadány, systém provede kontroly:

  • Pokud na daném dokumentu je v Printout Definition zapnutý příznak Check Colour=Y, OC provede kontrolu jestli na předmětu dané smlouvy je pole Colour Code (20025) neprázdné:

    • Pokud je prázdne, zobrazí chybovou hlášku a nedovolí pokračovat dál:

      image-20240612-104540.pngImage Removed
    • Pokud je neprázdné pokračuje dál.

  • Pokud na daném dokumentu je v Printout Definition zapnutý příznak Check Interior Colour=Y, OC provede kontrolu jestli na předmětu dané smlouvy je pole Interior Colour (247) neprázdné:

    •  Pokud je prázdné, zobrazí chybovou hlášku a nedovolí pokračovat dál:

      image-20240612-104605.pngImage Removed
    • Pokud je neprázdné pokračuje dál.

  • Systém otevře standardní dialogové okno na zadání dalších parametrů:

Pokud kontroly nebyly provedeny anebo byly v pořádku, otevře e-mail v příloze s dokumentem:

...

Uživatel pak může e-mail odeslat (tlačítko Poslat email) případně upravit textaci atdButton Send Documents allows you to generate an e-mail that contains a document that was generated from a template (which was also defined in the Printout Definition) as an attachment.

When the button is pressed, the system performs the following steps:

  • Opens a filtered list of printouts (a filtered list of printouts from the Printout Definition table, which):

    • The user has been assigned permissions (see Nastavení Business) and

    • table ID is set=4026397

    • meet the filters set in the Printout Definition against the data from the given leasing contract and object:

      • Fields from Contract:

        • If the function is launched from a contract, it goes directly through the contract number

        • If the function is run from a subject, it first detects the contract number from the subject and then goes to the contract

        • These are the fields:

          • Customer No. – same as in the contract or empty

          • Financing Product Type Filter – must have the Financing Product Type from the contract or empty

          • Financing Product Filter - must have Financing Product Type from the contract or empty

          • Detailed Contract Status Filter - must have Detailed Contract Status from the contract or empty

          • Language Code – must have a Language Code (4047130) with a contract or empty

      • Fields from the subject:

        • If the function is run from an object, it goes directly through the object number

        • If the function is run from a contract, it first detects the number of the first object from the contract and then goes to the object

        • These are the fields:

          • Object Category – All or as on Item+1

          • Group – same as on the object or empty

          • Used Financed Object – All or the same as on the object (note that the object is a flag)

      • It does not filter fields from insurance or other fields.

The user then selects the printout he wants to print (Select=A) and if he wants the generated e-mail to open in the system's mail client, he also sets Parameter Input=A on the document and confirms the Ok button. The system then checks whether the necessary settings are defined in the Printout Definition (see PD Business Settings for description):

  • Custom Report Layout Code

  • Email Body Layout Code

  • E-mail Subject

  • E-mail Attachment Name

  • Send To

If all settings are entered, the system will perform checks:

  • If the Check Colour=Y flag is enabled in the Printout Definition on a given document, the OC will check if the Colour Code (20025) field on the subject of the contract is empty:

    • If it is empty, it displays an error message and does not allow you to continue:

      image-20240612-104540.pngImage Added
    • If it is not empty, it continues.

  • If the Check Interior Colour=Y flag is enabled in the Printout Definition on the given document, the OC will check if the Interior Colour field (247) is not empty on the subject of the contract:

    •  If it is empty, it will display an error message and will not allow you to continue:

      image-20240612-104605.pngImage Added
    • If it is not empty, it continues.

  • The system will open a standard dialog window to specify additional parameters:

If the checks were not carried out or were in order, he opens the e-mail attachment with the document:

...

The user can then send the e-mail (Send email button), or edit the text, etc.