Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Pro tento účel je do systému přidána hromadná úloha For this purpose, a bulk task is added to the system Convert VAT Rate in Contracts before Activation (API Change VAT Group Bef. Act. (78000)
). Tato úloha zabezpečí výměnu DPH účto skupin na smlouvách/kalkulacích ve stavu před aktivací. Tato úprava probíhá bez použití změnových kopií přímo na originálech těchto smluv/kalkulací.Tlačítko Convert Contracts before Activation na spuštění úlohy je přidáno na This task ensures the exchange of VAT posting groups on contracts/calculations in the state before activation. This modification takes place without the use of change copies directly on the originals of these contracts/calculations.
Button Convert Contracts before Activation The job run is added to the page VAT Rate Change Setup (550).
Tato nová úloha vychází z logiky úlohyThis new task builds on the logic of the taskAPI Serv. Changes Bef. Activ. (4026639).
Request Form
Po spuštění úlohy se otevře dialogové okno When the task starts, a dialog box opens Convert VAT Rate in Contracts before Activation pro specifikaci vykonané úlohy resp. smluv:
V sekci “Options” jsou pole:
Typ změny smlouvy (Contract Change Type)
...
To specify the performed task or contracts:
In the section "Options" are the fields:
Contract Change Type
The user selects the contract change type code, which will then be written to the Contract Change History (pole Change Code field)
povinný údaj, viz kontroly po spuštění úlohy
lookup do mandatory, see Checks after the job has started
lookup to
API Contract Change Type (4046856
)/API Contract Change Types (4046856, List)
s filtrem filter-tipped:Object ID wizard (15)=empty (tzn. nedovolíme vybrat změnu která se spouští wizardem)
i.e. we do not allow to select a change that is triggered by the wizard)
Contract Change Reason)
vybere uživatel kód důvodu změny smlouvy, který bude pak zapsán dothe user selects the reason code for the contract change, which will then be written to the Contract Change History (pole Reason Code field)
lookup do to
API Contract Change Reason (4046857)/API Contract Change Reasons (4046857, List)
Poznámka (Comment)
defaultně prázdné
doplní uživatel textovou poznámku, kterou pak úloha zapíše do empty by default
the user adds a text note, which is then written by the task into the Contract Change History (pole Comment field).
V sekci “In the section "Filter: Financing Contract Header” jsou filtry:Uživatelské filtry jsou všechny defaultně prázdné" are the filters:
User filters are all empty by default
Financing Product Type Code
Financing Product No.
Customer No.
No. (číslo smlouvyContract No.)
Migrated Contract
další filtry může přidat uživatel pře tlačítko + (např additional filters can be added by the user via the + button (e.g. Fin. Template No., Status, Detailed Contract Status, atdetc.). Pokud uživatel chce filtrovat na Status, musí zohlednit i pevný filtr na Status.
...
If the user wants to filter to Status, he must also take into account the fixed filter for Status.
The fixed filter is:
Status<Active
Proces úlohy
Po spuštění úlohy tlačítkem “OK” anebo “Schedule” systém vykoná:
Kontrolu, jestli je vyplněn Contract Change Type
...
Job Process
After starting the task with the "OK" or "Schedule" button, the system executes:
Check if the Contract Change Type is filled in
úloha provede konverzi sazeb DPH účto skupin dle nastavení v tabulceIf it is not filled in, it displays an error message and does not continue:
Contract Change Type must be entered. CZ: Typ změny smlouvy musí být zadán.
Pokud jsou vyplněny, pokračuje dál
Vyfiltruje smlouvy dle uživatelských filtrů v sekci Options (pokud jsou prázdné, nefiltruje se na ní) a na pevný filtr Status<Active
EN: Contract change type must be entered.
If they are filled in, it continues
Filters contracts according to user filters in the Options section (if they are empty, it is not filtered) and to the Status<Active fixed filter
The task will convert VAT posting groups rates according to the settings in the table
VAT Rate Change Conversion (551)
v následujících oblastech ale pouze pokud je příslušná účto skupina v cílovémpoli neprázdná.Úloha následně zapíše nové DPH účto skupiny zboží podle dohledané hodnoty v poliin the following areas, but only if the relevant posting group is in the targetfields are not empty.Subsequently, the task writes a new VAT product posting group according to the observed value in the field
To Code (3, Code[20])
z tabulky konverzí do těchto polí tak, že změnu provede jen v těch polích, vekterých najde shodnou hodnotu jaká je v tabulce konverzí v polifrom the conversion table to these fields by making the change only in those fields in thethat matches the value in the conversion table in theFrom Code (2, Code[20], PK.
Úloha pracuje v cyklu a takto prověří všechny nastavené řádkyThe task works in a cycle and in this way it checks all the set rows.
OblastArea | PoleField |
---|---|
Hlavička smlouvyContract Header
|
|
Služby smlouvy Contract Services (všechnyAll)
|
|
Pojistné smlouvyInsurance Contracts
(pouze v only in Status= |
|
Pak pokračuje na přepočet smlouvy dle příznaku smlouvy
pokudThen it proceeds to recalculate the contract according to the contract flag
Vytvoří záznam do historie změn smlouvyif
Complete Calculation (4047060)
=”NO”"NO":přepočet vykoná vzorci, tzn. zavolá funkce pod tlačítkem Payment Calculation
the recalculation executes the formula, i.e. calls the functions under the Payment Calculation button
if
Complete Calculation (4047060)
=”YES”:vykoná přepočet a nasazení splátkového kalendáře smlouvy se spuštěním finanční kalkulačky (tzv. kalkulace nebo rekalkulace - pokud v SPK smlouvy již bylo něco zaúčtováno).
Pokud je úloha spuštěna bez plánovače, zobrazí se uživateli na konci zpracování informační okno s počtem zpracovaných smluv a možností otevřít Contract Change Log.
Zápis do historie změn
"YES":
recalculate and deploy the contract payment calendar with the launch of the financial calculator (so-called calculation or recalculation - if something has already been posted in the GAC of the contract).
If the task is run without a scheduler, the user will see an information window at the end of the processing with the number of processed contracts and the option to open the Contract Change Log.
Write to the history of changes
Creates an entry in the contract change history
API Contract Change History (4046858)
bez vytvoření změnové kopie, ale některé hodnoty do záznamu doplní z without creating a change copy, but some values are added to the record from the request page:Contract Change Proces Process = Change Copy (musí být vyplněno nemůže zůstat prázdnémust be filled in, cannot remain empty)
Change Type Code = Contract Change Type z request formuform
Approved By = ID uživatele, který úlohu spouštíof the user who runs the task
Approval Date = work date systémuSystem Work Date
Change Reason Code = Contract Change Reason z request formuform
Change Valid From = system work date systému
Change Date = Expected Handover Date smlouvy
Comment = Comment z from request formuform
Closed(15)=Y
Vytvoří záznam v Creates an entry in the Contract Change Log s výsledkem with the result Result= “Success”"Success".
Pokračuje na další smlouvuContinues to the next contract.
Zobrazené hlášky
Pokud úloha byla spuštěna ručně tlačítkem “OK”:
v průběhu zpracování smlouvy zobrazí hlášku Working on it…Contract ….
po dokončení zobrazí hlášku “Změna byla vykonaná na X smlouvě (-ách). Na Y smlouvě (-ách) se vyskytla chyba.”
Pokud úloha byla spuštěna přes “Schedule”, tyto hlášky jsou potlačeny.
...
Displayed messages
If the task was started manually by pressing the "OK" button:
Displays a message during contract processing Working on it... Contract ....
When finished, it will display a message "The change has been made to X contract(s). There was an error in the Y contract(s)."
If the task was started via "Schedule", these messages are suppressed.
Starting a task via the job queue, the Schedule... button, the Contract Change Queue and the Contract Change Log are described in PD https://iao.atlassian.net/wiki/x/jADVAQhttps://iao.atlassian.net/wiki/x/nADVAQ https://iao.atlassian.net/wiki/x/wADWAQ.