Versions Compared

Key

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

V systéme je doplněna úloha The Highway Ticket Import task (CZEN: Import dálničních známek). Úlohu je možné spustiť z role centraof vignettes) has been added to the system. The task can be run from the role of the center: OneCore - Financování Financing (All Products), Actions/Reports.

Funkcia po spustení vykoná nasledovné kroky:

Zobrazí dialogové okno (dialogbox) v kterém uživatel vybere importní soubor: “Otevřít soubor - možnosti “vybrat…” nebo “storno””

...

Displays a dialog box in which the user selects the import file: "Open File - Options "Select..." or "cancel""

...

  • Once selected, the system imports the xls file into the API Highway Ticket Detail Line (4026684) následovnětable as follows:

    • zafiltruje tabulku

      Z importního souboru vezme Takes from the import file Licence Plate No (Registrační číslo vozidla)

    • Registrační číslo vozidla v importe musí být ve formáte ako je v OC

    • Systém bude vyhledávat Registrační číslo v OC, ak najde shodu bude pokračovat na další kroky

      Licence Plate No.)

      • The vehicle registration number in the import must be in the format as je v OC

      • The system will search for the Registration Number in the OC, if it finds a match it will proceed to the next steps

        • filters the API Licence Plate History (4026584) na dané table to the given Licence Plate No.

        • z nalezených záznamů vybere poslední podle Date

          ak systém nenajde shodu registračního čísla importovaného soubru a OC, vytvoří zápis do Logu importu s

          selects the last one from the found records according to Date

          • If the system does not find a match between the registration number of the imported file and the OC, it creates an entry in the Import Log with Result=Licence Plate No. Missing

          • pokračuje na další RZ v continues to the next SS in importnom xls

        • ak najde záznam, vezme z něho Číslo předmětu (If it finds a record, it takes the Financed Object No.)k danému číslu předmětu najde smlouvu v

        • for the given object number can be found in the API Financing Contract Header (4026397)

      • Zkontroluje Check Contract Status smlouvy

        • pokud If Status<>Signed anebo and/or Active:

          • dále danou smlouvu nezpracuje

          • vytvoří zápis do Logu importu s does not process the contract further

          • creates an entry in the Import Log with Result=Contract Status

          • ide na další RZ v xls

          • pokud IDE to the next SS in XLS

          • if Status=Signed anebo and/or Active, pokračuje dále

        Pokud na dané smlouvě najde
          • it continues

      • If it finds Change Copy Exists=Y on the contract:

        • dále danou smlouvu nezpracuje

        • vytvoří zápis do Logu importu s does not process the contract further

        • creates an entry in the Import Log with Result=Change Copy

        • ide na další RZ v xls

        Pokud k dané smlouvě najde v
        • IDE to the next SS in XLS

      • If you find a given contract in Calc. Variant Status=Active:

        • dále danou Variantu smlouvy nezpracuje, ale do smlouvy zapíše záznam, Varianta smlouvy se znehodnotí.

      K danému číslu smlouvy najde v tabulce Služby smlouvy (Contract Services) službu:

      • pokud je na spravovaném řádku z xls zadaný Service Code, dohledá službu následovně
        • further does not process the Contract Variant, but enters a record into the contract, the Contract Variant is devalued.

    • For a given contract number, the following services are found in the Contract Services table:

      • If Service Code is specified on the managed line from XLS, it finds the service as follows:

        • Contract No.=stejnésame

        • Status=Preparation|Active

        • Service Code=z importního souboru

        • ak takovou službu najde, pokračuje na detail služby (popis níže)

        • ak takovou službu nenajde, záznam nezpracuje a vytvoří zápis do Logu importu s

          from import file

          • If it finds such a service, it continues to the service detail (description below)

          • If it does not find such a service, it will not process the record and will create an entry in the Import Log with Result=Error Service Code

      • pokud na zpracovaném řádku z xls Není zadaný Service Code, dohledá službuIf Service Code is not specified on the processed line from xls, it searches for the service:

        • Contract No.=stejnésame

        • Service Kind=Highway Ticket

        • Status=Preparation|Active

          • ak najde právě jeden záznam (=jednu službu), pokračuje na detail služby (popis níže)

          • ak najde víc záznamů, záznam nezpracuje a vytvoří zápis do Logu importu s If it finds exactly one record (= one service), it continues to the service detail (description below)

          • If it finds more records, it does not process the record and creates an entry in the Import Log with Result=Error Service Code

        • Výhrady SOL :

          • pokud v importním soubore není Kód služby, není možné zaručit správné “napárovaní” dálniční známky na službu. Existenci právě jedné služby neznamená, že dálniční známka podle služby je stejná jako importovaný záznam.

    K danému číslu služby najde v tabulce
        • Reservations:

          • if there is no Service Code in the import file, it is not possible to guarantee the correct "pairing" of the vignette to the service. The existence of exactly one service does not mean that the vignette by service is the same as the imported record.

  • For a given service number, it finds rows in the API Highway Ticket Detail Line (4026684) řádky a vytvoří nový řádektable and creates a new row:

    • Service Contract Type (1)=Contract

    • Service No (5)=stejnésame

    • Line No (10)=inkrementincrement+10000

    • Contract No (15)=převezme ze službytakes over from service

    • Financed Object No (20)=převezme ze službyinherits from the service

    • VIN (30)=převezme ze službytakes over from service

    • Highway Ticket No.=převezme z importního souborutakes from import file

    • Highway Ticket Submit Day (45)=převezme z importního souborutakes from import file

    • Highway Ticket Type (50)=převezme ze službyinherits from service

    • Valid From (55)= převezme z importního souboru ve formáte datetakes from the import file in date format

    • Valid To (60)=převezme z importního souboru ve formáte date

    • K danému číslu smlouvy doplní zápis do Logu importu dálničních známek s výsledkem Success (CZ: Úspěch)

Pozn.: pokud uživatel v logu najde smlouvy, kde import nepřeběhl (stav smlouvy, změnová kopie, aktívní varianta, neexistujcí služba, atd) ručně zkontroluje dané smlouvy, odstraní důvod chyby případně ručně zadá řádky k detailu služby.

    • takes from the import file in date format

    • An entry in the Highway Ticket Import Log with the result Success (EN: Success) will be added to the given contract number

Note: if the user finds contracts in the log where the import did not run (contract status, change copy, active variant, non-existent service, etc.), he manually checks the contracts, removes the reason for the error or manually enters lines to the service detail.

Sample import file:

View file
nameVzor_import Dalnic_znamok.xlsx

...

Highway Ticket Import Log

...

Do Logu se budou zapisovat úspěchy/neúspěchy při Importe dálničních známek, s filtrem na neúspěch.

Log bude zařaďovat záznamy od nejnovějších po nejstarší.

V lište Logu bude tlačítko Vymazat, kterým uživatel bude mít možnost vymazat označené záznamy.

...

Successes/failures in the Import of vignettes will be recorded in the Log, with a filter for failure.

The log will list records from newest to oldest.

There will be a Delete button in the Log bar, which will allow the user to delete the selected records.

The log will contain fields – all fields are non-editable in the overview, it is not even possible to delete a row:

  • Entry No (CZ: Číslo položkyEN: Entry No.)

    • od 1 s inkrementem from 1 with an increment of +1 (systém bude číslovat od 1 a po jedinečnéthe system will number from 1 to unique)

  • Licence Plate No.

    • z importuFrom Import

  • Contract No: (CZ: Číslo smlouvy)

    číslo smlouvy, ku kterým je přirazené registrační číslo jako poslední záznam v tabulce Historie registračních čísel

    Contract No.)

    • the contract number to which the registration number is assigned as the last record in the Registration Number History table

  • Service No (CZ: Číslo služby)

    • číslo služby z dané leasingové smlouvy

  • Service Code (CZ: Kód služby)

    • z importu

  • Result (CZ: Výsledek zpracovaníEN: Service No.)

    • Service No. from the leasing contract

  • Service Code

    • From Import

  • Result (EN: Result of processing)

    • Lic. Plate No. Missing

    • Contract Status

    • Error Service Code

    • Change Copy

    • Calculation Variant

    • Service Missing

    • Success - pokud byl řádek založenýif the line was created

  • Import file name (CZ: Název importovaného souboru)

    celý název importovaného souboru např

    • full name of the imported file, e.g. dalnicneznamky042021.xls

  • Import DateTime (CZ: Datum a čas importuImport Date and Time)

  • User ID (CZ: ID uživatele)