Uživatel může provést tisk dokumentů z přehledu smluv (pokud označí více smluv, ke každé se vytiskne vybraný dokument) anebo z karty smlouvy – volba Sestavy/Tisk dokumentů.
Obdobně je možné tisknout i z přehledu předmětů (i s onačením více předmětů) anebo z karty předmětu.
Tlačítko Tisk dokumentů umožnuje vygenerování tiskového výstupu ze smlouvy ze šablon dokumentu, které jsou zadefinovány v tabulce Definice tiskových výstupů (Printout definition). Výstup může být ve formátu doc, xls anebo pdf. Po potvrzení 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 PD na Business Nastavění) 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 (boolean))
Pole z pojištění, resp. další pole nefiltruje.
Uživatel pak označí tiskový výstup, který chce vytisknout (Vybrat=A) a pokud chce vybrat i formát, případně jiné parametry, tak na daném dokumentu nastaví i Zadání parametrů=A a potvrdí tlačítko Ok. Pokud bylo nastaveno i Zadání parametrů=A, systém po potvrzení provede kontrolu uživatele, jestli má v Nastavení uživatelů oprávnění. Povolit tisk do XLS/DOC=A:
Pokud uživatel má Povolit tisk do XLS/DOC=N – systém zobrazí chybovou hlášku a nedovolí pokračovat v tisku:
...
Pokud uživatel má Povolit tisk do XLS/DOC=A, systém pokračuje na další krok.
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ázdne:
Pokud je prázdne, zobrazí chybovou hlášku a nedovolí pokračovat dál:
Pokud je neprázdne 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:
Pokud je neprázdné pokračuje dál.
Systém otevře standardní dialogové okno na zadání dalších parametrů:
Ve filtru pole Číslo je číslo leasingové smlouvy, ze které se tisk spouští
Funkce:
...
Odeslat do…
Umožní uživateli vybrat formát výstupu (pozn. šablona daného výstupu musí umožnit tyto výstupné formáty, pokud ne, operace se nemusí dokončit):
...
Tisk
Otevře vygenerovaný tiskový výstup v prohlížeči odkud může uživatel daný výstup vytisknout.
...
Náhled
Otevře vygenerovaný dokument v standardním náhledu v prohlížeči odkud může uživatel daný výstup vytisknout.
Storno
...
The user can print documents from the list of contracts (if he selects multiple contracts, the selected document is printed for each) or from the Contracts tab – option Reports/Print Documents.
Similarly, it is possible to print from the list of courses (even with multiple items) or from the course card.
Button Print Documents allows you to generate a printout from the contract from the document templates that are defined in the Printout definition table. The output can be in doc, xls or pdf format. Once confirmed, 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 PD on Business Settings) 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 blank
Financing Product Type Filter – must have a 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 blank
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 boolean)
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 to select the format or other parameters, he also sets Parameter Input=A on the document and confirms the Ok button. If Parameter input=A has been set, the system will check the user after confirmation to see if he/she has permissions in User Settings. Allow printing to XLS/DOC=A:
If the user has Enable printing to XLS/DOC=N – the system displays an error message and does not allow printing to continue:
...
If the user has Enable printing to XLS/DOC=A, the system proceeds to the next step.
If the Check Colour=Y flag is enabled in the Printout Definition on the 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:
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:
If it is not empty, it continues.
The system will open a standard dialog window to specify additional parameters:
In the filter of the Number field, there is the number of the leasing agreement from which the print is started
Function:
Send to...
Allows the user to select the output format (note: the template of the output must allow these output formats, if not, the operation may not complete):
Press
Opens the generated printout in a browser from where the user can print the output.
Preview
Opens the generated document in a standard browser preview from where the user can print the output.
Cancellation
Reverse an operation