├── .circleci
└── config.yml
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── Dockerfile
├── Examples
├── AttachmentSaveToFile.php
├── AttachmentUpload.php
├── AuthSessionIdUsage.php
├── AuthentizeContact.php
├── BatchOperation.php
├── CreateLabel.php
├── DownloadInvoicePDF.php
├── DryRun.php
├── Error404.php
├── ExampleTemplate.php
├── ExternalID.php
├── FindOverdueInvoices.php
├── GetBankAccountForCompany.php
├── GetRecordWithRelation.php
├── InvoiceCopy.php
├── InvoiceLastChanges.php
├── InvoiceLockUnlock.php
├── LoginLogout.php
├── MovePricelistItemToAnotherCategory.php
├── NajdiDanovyDokladKzalohovemu.php
├── Naskladnění.php
├── NewInvoice.php
├── ObjectChaining.php
├── ObjectsCooperation.php
├── PerformingActions.php
├── Převodka.php
├── ReadAddressColumns.php
├── SendReminders.php
├── SetContactAuth.php
├── TestConnection.php
├── common.php
├── config.php
├── flexipeehp-composer-install.png
├── flexipeehp-debian-test.png
└── sendInvoiceByMail.php
├── LICENSE
├── Makefile
├── README.md
├── Vagrantfile
├── bootstrap-centos.sh
├── bootstrap-debian.sh
├── build.xml
├── composer.json
├── debian
├── README.Debian
├── apigendoc.sh
├── changelog
├── compat
├── composer.json
├── control
├── copyright
├── fixversion.sh
├── flexipeehp-doc.conf
├── flexipeehp-doc.install
├── flexipeehp.install
├── postinst
├── rules
├── source
│ └── format
└── test
│ ├── composer.json
│ ├── config.json
│ └── flexibeeping.php
├── docs
├── 404.html
├── class-FlexiPeeHP.Actions.html
├── class-FlexiPeeHP.Adresar.html
├── class-FlexiPeeHP.Banka.html
├── class-FlexiPeeHP.Cenik.html
├── class-FlexiPeeHP.Changes.html
├── class-FlexiPeeHP.Company.html
├── class-FlexiPeeHP.DodavatelskaSmlouva.html
├── class-FlexiPeeHP.EvidenceList.html
├── class-FlexiPeeHP.FakturaPrijata.html
├── class-FlexiPeeHP.FakturaVydana.html
├── class-FlexiPeeHP.FakturaVydanaPolozka.html
├── class-FlexiPeeHP.Firma.html
├── class-FlexiPeeHP.FlexiBeeRO.html
├── class-FlexiPeeHP.FlexiBeeRW.html
├── class-FlexiPeeHP.Formats.html
├── class-FlexiPeeHP.Hooks.html
├── class-FlexiPeeHP.InterniDoklad.html
├── class-FlexiPeeHP.Kontakt.html
├── class-FlexiPeeHP.Nastaveni.html
├── class-FlexiPeeHP.Pokladna.html
├── class-FlexiPeeHP.PokladniPohyb.html
├── class-FlexiPeeHP.Priloha.html
├── class-FlexiPeeHP.RadaPokladniPohyb.html
├── class-FlexiPeeHP.Relations.html
├── class-FlexiPeeHP.SkladovaKarta.html
├── class-FlexiPeeHP.SkladovyPohyb.html
├── class-FlexiPeeHP.SkladovyPohybPolozka.html
├── class-FlexiPeeHP.SkupinaFirem.html
├── class-FlexiPeeHP.Smlouva.html
├── class-FlexiPeeHP.Status.html
├── class-FlexiPeeHP.Stitek.html
├── class-FlexiPeeHP.Stitky.html
├── class-FlexiPeeHP.Strom.html
├── class-FlexiPeeHP.StromCenik.html
├── class-FlexiPeeHP.Sum.html
├── class-FlexiPeeHP.UcetniObdobi.html
├── class-FlexiPeeHP.VyrobniCislo.html
├── class-FlexiPeeHP.Zavazek.html
├── class-FlexiPeeHP.Zurnal.html
├── elementlist.js
├── index.html
├── namespace-FlexiPeeHP.html
├── resources
│ ├── collapsed.png
│ ├── combined.js
│ ├── footer.png
│ ├── inherit.png
│ ├── resize.png
│ ├── sort.png
│ ├── style.css
│ ├── tree-cleaner.png
│ ├── tree-hasnext.png
│ ├── tree-last.png
│ └── tree-vertical.png
├── source-class-FlexiPeeHP.Actions.html
├── source-class-FlexiPeeHP.Adresar.html
├── source-class-FlexiPeeHP.Banka.html
├── source-class-FlexiPeeHP.Cenik.html
├── source-class-FlexiPeeHP.Changes.html
├── source-class-FlexiPeeHP.Company.html
├── source-class-FlexiPeeHP.DodavatelskaSmlouva.html
├── source-class-FlexiPeeHP.EvidenceList.html
├── source-class-FlexiPeeHP.FakturaPrijata.html
├── source-class-FlexiPeeHP.FakturaVydana.html
├── source-class-FlexiPeeHP.FakturaVydanaPolozka.html
├── source-class-FlexiPeeHP.Firma.html
├── source-class-FlexiPeeHP.FlexiBeeRO.html
├── source-class-FlexiPeeHP.FlexiBeeRW.html
├── source-class-FlexiPeeHP.Formats.html
├── source-class-FlexiPeeHP.Hooks.html
├── source-class-FlexiPeeHP.InterniDoklad.html
├── source-class-FlexiPeeHP.Kontakt.html
├── source-class-FlexiPeeHP.Nastaveni.html
├── source-class-FlexiPeeHP.Pokladna.html
├── source-class-FlexiPeeHP.PokladniPohyb.html
├── source-class-FlexiPeeHP.Priloha.html
├── source-class-FlexiPeeHP.RadaPokladniPohyb.html
├── source-class-FlexiPeeHP.Relations.html
├── source-class-FlexiPeeHP.SkladovaKarta.html
├── source-class-FlexiPeeHP.SkladovyPohyb.html
├── source-class-FlexiPeeHP.SkladovyPohybPolozka.html
├── source-class-FlexiPeeHP.SkupinaFirem.html
├── source-class-FlexiPeeHP.Smlouva.html
├── source-class-FlexiPeeHP.Status.html
├── source-class-FlexiPeeHP.Stitek.html
├── source-class-FlexiPeeHP.Stitky.html
├── source-class-FlexiPeeHP.Strom.html
├── source-class-FlexiPeeHP.StromCenik.html
├── source-class-FlexiPeeHP.Sum.html
├── source-class-FlexiPeeHP.UcetniObdobi.html
├── source-class-FlexiPeeHP.VyrobniCislo.html
├── source-class-FlexiPeeHP.Zavazek.html
└── source-class-FlexiPeeHP.Zurnal.html
├── flexipeehp-html-docs.tar.bz2
├── flexipeehp.spec
├── nbproject
├── configs
│ ├── Examples_Run.properties
│ ├── GenerateListing.properties
│ ├── PHPUnit.properties
│ └── testing.properties
├── project.properties
└── project.xml
├── project_logo.png
├── project_logo.xcf
├── release.sh
├── spoje-net_logo.gif
├── src
├── FlexiPeeHP
│ ├── Actions.php
│ ├── Adresar.php
│ ├── Banka.php
│ ├── Cenik.php
│ ├── Changes.php
│ ├── Company.php
│ ├── DodavatelskaSmlouva.php
│ ├── Evidence.php
│ ├── EvidenceList.php
│ ├── FakturaPrijata.php
│ ├── FakturaVydana.php
│ ├── FakturaVydanaPolozka.php
│ ├── Firma.php
│ ├── FlexiBeeRO.php
│ ├── FlexiBeeRW.php
│ ├── Formats.php
│ ├── Hooks.php
│ ├── InterniDoklad.php
│ ├── Kontakt.php
│ ├── Nastaveni.php
│ ├── Pokladna.php
│ ├── PokladniPohyb.php
│ ├── Priloha.php
│ ├── RadaPokladniPohyb.php
│ ├── Relations.php
│ ├── SkladovaKarta.php
│ ├── SkladovyPohyb.php
│ ├── SkladovyPohybPolozka.php
│ ├── SkupinaFirem.php
│ ├── Smlouva.php
│ ├── Status.php
│ ├── Stitek.php
│ ├── Stitky.php
│ ├── Strom.php
│ ├── StromCenik.php
│ ├── Sum.php
│ ├── UcetniObdobi.php
│ ├── VyrobniCislo.php
│ ├── Zavazek.php
│ └── Zurnal.php
└── demo.php
├── static
├── Actions.json
├── EvidenceFullList.json
├── EvidenceList.json
├── Formats.json
├── Properties.adresar-bankovni-ucet.json
├── Properties.adresar.json
├── Properties.analyza-nakupu.json
├── Properties.analyza-prodeje.json
├── Properties.analyza-zakazky.json
├── Properties.atribut.json
├── Properties.banka-polozka.json
├── Properties.banka.json
├── Properties.bankovni-ucet.json
├── Properties.cenik-obal.json
├── Properties.cenik.json
├── Properties.cenikova-skupina.json
├── Properties.cenikovy-pohyb-nakup.json
├── Properties.cenikovy-pohyb-prodej.json
├── Properties.cenova-uroven.json
├── Properties.certifikacni-autorita.json
├── Properties.cinnost.json
├── Properties.ciselnik-mzdovych-slozek.json
├── Properties.cislo-baliku.json
├── Properties.cleneni-dph.json
├── Properties.cleneni-kontrolni-hlaseni.json
├── Properties.custom-button.json
├── Properties.danova-evidence.json
├── Properties.dashboard-panel.json
├── Properties.dashboard-sharing.json
├── Properties.dite.json
├── Properties.dodavatel.json
├── Properties.dodavatelska-smlouva.json
├── Properties.dodavatelsky-typ-smlouvy.json
├── Properties.eet-komunikace.json
├── Properties.faktura-prijata-polozka.json
├── Properties.faktura-prijata.json
├── Properties.faktura-vydana-polozka.json
├── Properties.faktura-vydana.json
├── Properties.filtr.json
├── Properties.forma-dopravy.json
├── Properties.forma-uhrady-zauctovani.json
├── Properties.forma-uhrady.json
├── Properties.format-elektronickeho-bankovnictvi.json
├── Properties.hlavni-kniha.json
├── Properties.hodnoceni-zakazky.json
├── Properties.individualni-cenik.json
├── Properties.insight.json
├── Properties.interni-doklad-polozka.json
├── Properties.interni-doklad.json
├── Properties.intrastat-dodaci-podminky.json
├── Properties.intrastat-druh-dopravy.json
├── Properties.intrastat-kod-nomenklatury.json
├── Properties.intrastat-kraj-urceni.json
├── Properties.intrastat-kurz.json
├── Properties.intrastat-merna-jednotka.json
├── Properties.intrastat-obchodni-transakce.json
├── Properties.intrastat-zvlastni-pohyb.json
├── Properties.inventura-polozka.json
├── Properties.inventura.json
├── Properties.konst-symbol.json
├── Properties.kontakt.json
├── Properties.kurz-pro-cenotvorbu.json
├── Properties.kurz.json
├── Properties.leasing.json
├── Properties.majetek-udalost.json
├── Properties.majetek.json
├── Properties.mapovani-skladu.json
├── Properties.mena.json
├── Properties.merna-jednotka.json
├── Properties.misto-urceni.json
├── Properties.mzda.json
├── Properties.mzdova-slozka.json
├── Properties.mzdy-bankovni-spojeni.json
├── Properties.nabidka-prijata-polozka.json
├── Properties.nabidka-prijata.json
├── Properties.nabidka-vydana-polozka.json
├── Properties.nabidka-vydana.json
├── Properties.naklad.json
├── Properties.nastaveni.json
├── Properties.nepritomnost.json
├── Properties.objednavka-prijata-polozka.json
├── Properties.objednavka-prijata.json
├── Properties.objednavka-vydana-polozka.json
├── Properties.objednavka-vydana.json
├── Properties.obrat.json
├── Properties.obratova-predvaha.json
├── Properties.odberatel.json
├── Properties.odpisova-skupina.json
├── Properties.osoba-hlavicka.json
├── Properties.osoba.json
├── Properties.parametr.json
├── Properties.penezni-ustav.json
├── Properties.podklady-dph.json
├── Properties.podobne-zbozi.json
├── Properties.pohledavka-polozka.json
├── Properties.pohledavka.json
├── Properties.pohyb-na-uctech.json
├── Properties.pokladna.json
├── Properties.pokladni-pohyb-polozka.json
├── Properties.pokladni-pohyb.json
├── Properties.poplatek.json
├── Properties.poptavka-prijata-polozka.json
├── Properties.poptavka-prijata.json
├── Properties.poptavka-vydana-polozka.json
├── Properties.poptavka-vydana.json
├── Properties.prace-mesic.json
├── Properties.prace.json
├── Properties.pracovni-pomer-hlavicka.json
├── Properties.pracovni-pomer.json
├── Properties.pravo-viditelnosti.json
├── Properties.predpis-zauctovani.json
├── Properties.prehled-zamestnancu.json
├── Properties.preneseni-dph.json
├── Properties.prikaz-k-inkasu-polozka.json
├── Properties.prikaz-k-inkasu.json
├── Properties.prikaz-k-uhrade-polozka.json
├── Properties.prikaz-k-uhrade.json
├── Properties.priloha.json
├── Properties.prislustenstvi.json
├── Properties.prodejka-platba.json
├── Properties.prodejka.json
├── Properties.psc.json
├── Properties.rada-banka.json
├── Properties.rada-faktury-prijate.json
├── Properties.rada-faktury-vydane.json
├── Properties.rada-interniho-dokladu.json
├── Properties.rada-nabidky-prijate.json
├── Properties.rada-nabidky-vydane.json
├── Properties.rada-objednavky-prijate.json
├── Properties.rada-objednavky-vydane.json
├── Properties.rada-pohledavky.json
├── Properties.rada-pokladni-pohyb.json
├── Properties.rada-poptavky-prijate.json
├── Properties.rada-poptavky-vydane.json
├── Properties.rada-skladovy-pohyb.json
├── Properties.rada-zavazku.json
├── Properties.rada.json
├── Properties.rezervace.json
├── Properties.rocni-rada.json
├── Properties.rozvaha-po-uctech.json
├── Properties.sablona-upominky.json
├── Properties.sady-a-komplety.json
├── Properties.saldo-k-datu.json
├── Properties.saldo.json
├── Properties.sazba-dph.json
├── Properties.setting-store.json
├── Properties.sklad.json
├── Properties.skladova-karta.json
├── Properties.skladovy-pohyb-polozka.json
├── Properties.skladovy-pohyb.json
├── Properties.skupina-atributu.json
├── Properties.skupina-firem.json
├── Properties.skupina-osob.json
├── Properties.skupina-stitku.json
├── Properties.skupina-zbozi.json
├── Properties.smena.json
├── Properties.smlouva-polozka.json
├── Properties.smlouva.json
├── Properties.srazka.json
├── Properties.stala-mzdova-slozka.json
├── Properties.stat.json
├── Properties.stav-ceniku.json
├── Properties.stav-skladu-k-datu.json
├── Properties.stav-smlouvy.json
├── Properties.stav-uctu.json
├── Properties.stav-zakazky.json
├── Properties.stitek.json
├── Properties.stredisko.json
├── Properties.strom-cenik.json
├── Properties.strom-koren.json
├── Properties.strom.json
├── Properties.subjekt.json
├── Properties.text.json
├── Properties.typ-aktivity.json
├── Properties.typ-atributu.json
├── Properties.typ-banka.json
├── Properties.typ-faktury-prijate.json
├── Properties.typ-faktury-vydane.json
├── Properties.typ-interniho-dokladu.json
├── Properties.typ-leasingu.json
├── Properties.typ-majetku.json
├── Properties.typ-nabidky-prijate.json
├── Properties.typ-nabidky-vydane.json
├── Properties.typ-nakladu.json
├── Properties.typ-objednavky-prijate.json
├── Properties.typ-objednavky-vydane.json
├── Properties.typ-organizace.json
├── Properties.typ-pohledavky.json
├── Properties.typ-pokladni-pohyb.json
├── Properties.typ-poptavky-prijate.json
├── Properties.typ-poptavky-vydane.json
├── Properties.typ-pracovniho-pomeru.json
├── Properties.typ-prodejky.json
├── Properties.typ-skladovy-pohyb.json
├── Properties.typ-smlouvy.json
├── Properties.typ-stavu-ceniku.json
├── Properties.typ-uzivatelske-vazby.json
├── Properties.typ-vzajemnych-zapoctu.json
├── Properties.typ-zakazky.json
├── Properties.typ-zavazku.json
├── Properties.ucet.json
├── Properties.ucetni-denik.json
├── Properties.ucetni-obdobi.json
├── Properties.ucetni-osnova.json
├── Properties.udalost.json
├── Properties.umisteni-ve-skladu-mistnost.json
├── Properties.umisteni-ve-skladu-police.json
├── Properties.umisteni-ve-skladu-regal.json
├── Properties.umisteni-ve-skladu.json
├── Properties.umisteni.json
├── Properties.uzivatel.json
├── Properties.uzivatelska-vazba.json
├── Properties.uzivatelsky-dotaz-parametr.json
├── Properties.uzivatelsky-dotaz-vlastnost.json
├── Properties.uzivatelsky-dotaz.json
├── Properties.vazba.json
├── Properties.vykaz-hospodareni.json
├── Properties.vyrobni-cislo.json
├── Properties.vzajemny-zapocet.json
├── Properties.xslt.json
├── Properties.zakazka.json
├── Properties.zapujcka.json
├── Properties.zavazek-polozka.json
├── Properties.zavazek.json
├── Properties.zurnal.json
└── Relations.json
├── tools
├── current_version.php
├── find_undocumented_columns.php
├── force_update_all.sh
├── nastaveni-properties.json
├── time_to_update.php
├── update_actions_class.php
├── update_all.sh
├── update_evidencelist_class.php
├── update_formats_class.php
├── update_properties_class.php
└── update_relations_class.php
└── ubuntu-bionic-18.04-cloudimg-console.log
/.circleci/config.yml:
--------------------------------------------------------------------------------
1 | # PHP CircleCI 2.0 configuration file
2 | #
3 | # Check https://circleci.com/docs/2.0/language-php/ for more details
4 | #
5 | version: 2
6 | jobs:
7 | build:
8 | docker:
9 | # Specify the version you desire here
10 | - image: circleci/php:7.1-node-browsers
11 |
12 | # Specify service dependencies here if necessary
13 | # CircleCI maintains a library of pre-built images
14 | # documented at https://circleci.com/docs/2.0/circleci-images/
15 | # Using the RAM variation mitigates I/O contention
16 | # for database intensive operations.
17 | # - image: circleci/mysql:5.7-ram
18 | #
19 | # - image: redis:2.8.19
20 |
21 | steps:
22 | - checkout
23 |
24 | - run: sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
25 | - run: sudo docker-php-ext-install zip
26 |
27 | # Download and cache dependencies
28 | - restore_cache:
29 | keys:
30 | # "composer.lock" can be used if it is committed to the repo
31 | - v1-dependencies-{{ checksum "composer.json" }}
32 | # fallback to using the latest cache if no exact match is found
33 | - v1-dependencies-
34 |
35 | - run: composer install -n --prefer-dist
36 |
37 | - save_cache:
38 | key: v1-dependencies-{{ checksum "composer.json" }}
39 | paths:
40 | - ./vendor
41 | - restore_cache:
42 | keys:
43 | - node-v1-{{ checksum "package.json" }}
44 | - node-v1-
45 | - run: yarn install
46 | - save_cache:
47 | key: node-v1-{{ checksum "package.json" }}
48 | paths:
49 | - node_modules
50 |
51 | # run tests with phpunit or codecept
52 | - run: ./vendor/bin/phpunit
53 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6 |
7 | ## Our Standards
8 |
9 | Examples of behavior that contributes to creating a positive environment include:
10 |
11 | * Using welcoming and inclusive language
12 | * Being respectful of differing viewpoints and experiences
13 | * Gracefully accepting constructive criticism
14 | * Focusing on what is best for the community
15 | * Showing empathy towards other community members
16 |
17 | Examples of unacceptable behavior by participants include:
18 |
19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances
20 | * Trolling, insulting/derogatory comments, and personal or political attacks
21 | * Public or private harassment
22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission
23 | * Other conduct which could reasonably be considered inappropriate in a professional setting
24 |
25 | ## Our Responsibilities
26 |
27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28 |
29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30 |
31 | ## Scope
32 |
33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34 |
35 | ## Enforcement
36 |
37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at info@vitexsoftware.cz. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38 |
39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40 |
41 | ## Attribution
42 |
43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44 |
45 | [homepage]: http://contributor-covenant.org
46 | [version]: http://contributor-covenant.org/version/1/4/
47 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Please feel free to send pull requests or clone this project.
2 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM vitexsoftware/easephpframework
2 | COPY debian/flexipeehp/usr /usr
3 | COPY debian/composer.json /usr/share/php/FlexiPeeHP/composer.json
4 |
--------------------------------------------------------------------------------
/Examples/AttachmentSaveToFile.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 | include_once './common.php';
15 |
16 | $invoiceID = askForFlexiBeeID();
17 |
18 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
19 |
20 | $attachment = \FlexiPeeHP\Priloha::getFirstAttachment($invoice);
21 |
22 | if (isset($attachment['id'])) {
23 | if (\FlexiPeeHP\Priloha::saveToFile((int) $attachment['id'], '/tmp/')) {
24 | $invoice->addStatusMessage(sprintf(_('Attachment %s was saved'),
25 | $attachment['nazSoub']), 'success');
26 | }
27 | } else {
28 | $invoice->addStatusMessage(_('Invoice without attachment'));
29 | }
30 |
--------------------------------------------------------------------------------
/Examples/AttachmentUpload.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 | include_once './common.php';
15 |
16 | $invoiceID = askForFlexiBeeID();
17 |
18 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
19 |
20 | $result = \FlexiPeeHP\Priloha::addAttachmentFromFile($invoice,
21 | '../flexipeehp.png');
22 | if ($result == 201) {
23 | $allAttachments = \FlexiPeeHP\Priloha::getAttachmentsList($invoice);
24 | $lastAttachment = end($allAttachments);
25 | $invoice->addStatusMessage('Attachment '.$invoice->getFlexiBeeURL().'/prilohy/'.$lastAttachment['id'].'/content OK',
26 | 'success');
27 | } else {
28 | $invoice->addStatusMessage('Attachment '.$invoice->getFlexiBeeURL().' Failed',
29 | 'error');
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/Examples/AuthSessionIdUsage.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | define('FLEXIBEE_AUTHSESSID',
16 | '00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff');
17 |
18 | $invoice = new \FlexiPeeHP\FakturaVydana();
19 | $invoice->setDataValue('typDokl', 'FAKTURA');
20 | $invoice->insertToFlexiBee();
21 |
22 |
--------------------------------------------------------------------------------
/Examples/AuthentizeContact.php:
--------------------------------------------------------------------------------
1 | #!/ur/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $kontakter = new \FlexiPeeHP\Kontakt();
16 |
17 | if ($kontakter->authenticate('login', 'heslo') === true) {
18 | $kontakter->addStatusMessage('User Authenticated', 'success');
19 | } else {
20 | $kontakter->addStatusMessage('Auth not match', 'warning');
21 | }
22 |
--------------------------------------------------------------------------------
/Examples/BatchOperation.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
8 | * @copyright (G) 2018 Vitex Software
9 | */
10 |
11 | namespace Example\FlexiPeeHP;
12 |
13 | include_once './config.php';
14 | include_once '../vendor/autoload.php';
15 |
16 | $adr = new \FlexiPeeHP\Adresar(null,['filter'=>"nazev like 'FlexiBee Systems s.r.o.'"]);
17 | $adr->insertToFlexiBee([
18 | 'nazev'=>'ABRA Flexi s.r.o.',
19 | 'ulice'=>'Jeremiášova 1422/7b',
20 | 'mesto'=>'Praha 13 Stodůlky',
21 | 'psc'=>'155 00'
22 | ]);
23 |
24 | /*
25 | {"winstrom":{"@version":"1.0","adresar":{"nazev":"ABRA Flexi s.r.o.","ulice":"Jeremi\u00e1\u0161ova 1422\/7b","mesto":"Praha 13 Stod\u016flky","psc":"155 00"},"adresar@filter":"nazev like 'FlexiBee Systems s.r.o.'"}}
26 | */
27 |
--------------------------------------------------------------------------------
/Examples/CreateLabel.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 | /**
15 | * @var \FlexiPeeHP\Stitek Label Object
16 | */
17 | $stitek = new \FlexiPeeHP\Stitek();
18 |
19 | $stitek->createNew('Without Invoice', ['pokladna']);
20 |
21 | $stitek->createNew('Example Label', ['faktura-vydana', 'faktura-prijata'],
22 | ['kod' => 'EXAMPLE']);
23 |
24 |
25 | $banker = new \FlexiPeeHP\Banka();
26 | $stitek->createNew('Unidentified', [$banker->getEvidence()]);
27 |
28 | $labelsDefinedForBank = \FlexiPeeHP\Stitek::getAvailbleLabels($banker);
29 |
--------------------------------------------------------------------------------
/Examples/DownloadInvoicePDF.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | $invoiceID = askForFlexiBeeID();
18 |
19 | /*
20 | * FlexiPeeHP Classes accept this form of initial identifier:
21 | *
22 | * (int) 2588
23 | * (string) ext:ESHOP:oi1978
24 | * (array) ['varSym'=>'20080015']
25 | */
26 |
27 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID, ['detail' => 'id']);
28 | echo 'invoice saved to: '.$invoice->downloadInFormat('pdf', '/tmp/',
29 | 'fakturaKB$$SUM_BEZ_QR')."\n";
30 |
31 | echo 'post money order saved to: '.$invoice->downloadInFormat($format, '/tmp/', 'slozenkaA$$SUM')."\n";
32 |
33 |
--------------------------------------------------------------------------------
/Examples/DryRun.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 |
16 | $invoice = new \FlexiPeeHP\FakturaVydana();
17 |
18 | $invoice->defaultUrlParams['dry-run'] = 'true';
19 |
20 | $resultHere = $invoice->insertToFlexiBee(['typDokl' => 'code:FAKTURA']);
21 |
22 | echo json_encode($resultHere, JSON_PRETTY_PRINT);;
23 |
--------------------------------------------------------------------------------
/Examples/Error404.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
9 | * @copyright (G) 2017 Vitex Software
10 | */
11 |
12 | namespace Example\FlexiPeeHP;
13 |
14 | include_once './config.php';
15 | include_once '../vendor/autoload.php';
16 |
17 | $banker = new \FlexiPeeHP\Banka();
18 | $first = $banker->getColumnsFromFlexibee(['id'], ['limit' => 1]);
19 |
20 |
21 | $banker->ignore404(true);
22 | $response404 = $banker->performRequest('error.json');
23 | $banker->ignore404(fals);
24 |
25 | $response200X = $banker->performRequest('/banka/'.$first[0]['id']);
26 |
--------------------------------------------------------------------------------
/Examples/ExampleTemplate.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 |
--------------------------------------------------------------------------------
/Examples/ExternalID.php:
--------------------------------------------------------------------------------
1 | array(
10 | 1000,
11 | 'ext:evid:2434',
12 | 'ext:another:753'
13 | ),
14 | 'eanKod' => 12233587868
15 | );
16 |
17 | $addr = new \FlexiPeeHP\Adresar($save);
18 |
19 | $addr->getExternalIDs(); // [ 0=> 'ext:evid:2434', 1 => 'ext:another:753' ]
20 | $addr->getMyKey(); // 1000
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Examples/FindOverdueInvoices.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | /**
16 | * Get Number of days overdue
17 | *
18 | * @param string $dueDate FlexiBee date
19 | * @return int
20 | */
21 | function poSplatnosti($dueDate)
22 | {
23 | return intval(date_diff(\FlexiPeeHP\FlexiBeeRO::flexiDateToDateTime($dueDate),
24 | new \DateTime())->format('%a'));
25 | }
26 |
27 | /**
28 | * Vrať faktury po splatnosti
29 | *
30 | * @param \FlexiPeeHP\FakturaVydana $invoicer
31 | * @return array
32 | */
33 | function getOverdueInvoices($invoicer)
34 | {
35 | $result = null;
36 | $invoicer->defaultUrlParams['order'] = 'datVyst@A';
37 | $invoicer->defaultUrlParams['relations'] = 'adresar,kontakt';
38 | $invoices = $invoicer->getColumnsFromFlexibee([
39 | 'id',
40 | 'kod',
41 | 'stavUhrK',
42 | 'firma',
43 | 'buc',
44 | 'varSym',
45 | 'specSym',
46 | 'sumCelkem',
47 | 'duzpPuv',
48 | 'datSplat',
49 | 'datVyst'],
50 | "(stavUhrK is null OR stavUhrK eq 'stavUhr.castUhr') AND storno eq false",
51 | 'id');
52 |
53 | if ($invoicer->lastResponseCode == 200) {
54 | $result = $invoices;
55 | }
56 | return $result;
57 | }
58 | $statuser = new \FlexiPeeHP\Status();
59 | $invoicer = new \FlexiPeeHP\FakturaVydana();
60 | $firmer = new \FlexiPeeHP\Adresar();
61 |
62 | foreach (getOverdueInvoices($invoicer) as $invoice) {
63 | $kontakt = $firmer->getColumnsFromFlexibee(['nazev', 'email'],
64 | ['id' => $invoice['firma']]);
65 |
66 | if (isset($kontakt[0]['email'])) {
67 | $invoicer->setMyKey($invoice['id']);
68 |
69 | $to = $kontakt[0]['email'];
70 | $subject = sprintf(_('Overdue invoice: %s - %s days'), $invoice['kod'],
71 | poSplatnosti($invoice['datSplat']));
72 | $body = sprintf(_('Please pay %s,-'), $invoice['sumCelkem']);
73 |
74 | if ($statuser->getDataValue('licenseVariant') == 'basic') {
75 | $mail = new \Ease\Mailer($to, $subject, $body);
76 | $mail->addFile($invoicer->downloadInFormat('pdf', '/tmp/'));
77 | $mail->addFile($invoicer->downloadInFormat('isdoc', '/tmp/'));
78 | $mail->send();
79 | } else {
80 | if ($invoicer->sendByMail($to, $subject, $body)) {
81 | $invoicer->addStatusMessage(spritnf(_('Message sent: %s to %s'),
82 | $subject, $to), 'mail');
83 | }
84 | }
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/Examples/GetBankAccountForCompany.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | $companyID = askForFlexiBeeID();
18 |
19 |
20 | $firma = new \FlexiPeeHP\Adresar($companyID);
21 | if ($firma->getMyKey()) {
22 | var_dump($firma->getBankAccountNumber());
23 |
24 | /**
25 | array(1) {
26 | [0] =>
27 | array(5) {
28 | 'id' =>
29 | string(1) "5"
30 | 'buc' =>
31 | string(9) "789987987"
32 | 'smerKod' =>
33 | string(9) "code:0100"
34 | 'smerKod@showAs' =>
35 | string(4) "0100"
36 | 'smerKod@ref' =>
37 | string(29) "/c/flexipeehp/penezni-ustav/1"
38 | }
39 | }
40 |
41 | */
42 |
43 | } else {
44 | $firma->addStatusMessage('Source Address does not exists in '.$firma->getApiURL());
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/Examples/GetRecordWithRelation.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | $contact_id = askForFlexiBeeID('Contact');
18 |
19 | /*
20 | * FlexiPeeHP Classes accept this form of initial identifier:
21 | *
22 | * (int) 2588
23 | * (string) ext:ESHOP:oi1978
24 | * (array) ['varSym'=>'20080015']
25 | */
26 | $contact = new \FlexiPeeHP\Kontakt($contact_id,
27 | ['defaultUrlParams' => ['relations' => 'adresar']]);
28 | $adresy = $contact->getDataValue('adresy');
29 | if (count($adresy)) {
30 | foreach ($adresy as $adresa) {
31 | echo $adresa['nazev']."\n";
32 | }
33 | } else {
34 | $contact->addStatusMessage('Source Contact does not exists');
35 | }
36 |
--------------------------------------------------------------------------------
/Examples/InvoiceCopy.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | /**
16 | * Copy an invoice to new one
17 | *
18 | * @param \FlexiPeeHP\FakturaVydana $invoice
19 | * @param array $extraValues Extra values for invoice Copy
20 | *
21 | * @return \FlexiPeeHP\FakturaVydana
22 | */
23 | function invoiceCopy(\FlexiPeeHP\FakturaVydana $invoice, $extraValues = [])
24 | {
25 | $invoice2 = new \FlexiPeeHP\FakturaVydana(array_merge(
26 | $extraValues, $invoice->getData()));
27 | $invoice2->unsetDataValue('id');
28 | $invoice2->unsetDataValue('kod');
29 | if ($invoice2->getDataValue('stavUhrK') != 'stavUhr.uhrazenoRucne') {
30 | $invoice2->unsetDataValue('stavUhrK');
31 | }
32 | $invoiceItems = $invoice2->getDataValue('polozkyFaktury');
33 | if (count($invoiceItems)) {
34 | foreach ($invoiceItems as $pid => $invoiceItem) {
35 | unset($invoiceItems[$pid]['id']);
36 | unset($invoiceItems[$pid]['doklFak']);
37 | unset($invoiceItems[$pid]['doklFak@showAs']);
38 | unset($invoiceItems[$pid]['doklFak@ref']);
39 | }
40 | $invoice2->setDataValue('polozkyFaktury', $invoiceItems);
41 |
42 | // $invoice2->addArrayToBranch($invoiceItems, 'polozkyFaktury');
43 | }
44 | $invoice2->setDataValue('typDokl', 'code:FAKTURA');
45 |
46 | $invoice2->unsetDataValue('external-ids');
47 |
48 | $today = date('Y-m-d');
49 |
50 | $invoice2->setDataValue('duzpPuv', $today);
51 | $invoice2->setDataValue('duzpUcto', $today);
52 | $invoice2->setDataValue('datUcto', $today);
53 | $invoice2->insertToFlexiBee();
54 | if ($invoice2->lastResponseCode == 201) {
55 | $invoice->addStatusMessage(sprintf(_('Invoice copy from %s to id:%s done'),
56 | (string) $invoice, (string) $invoice2), 'success');
57 | }
58 | return $invoice2;
59 | }
60 | include_once './common.php';
61 |
62 | $invoiceID = askForFlexiBeeID();
63 |
64 | /*
65 | * FlexiPeeHP Classes accept this form of initial identifier:
66 | *
67 | * (int) 2588
68 | * (string) ext:ESHOP:oi1978
69 | * (array) ['varSym'=>'20080015']
70 | */
71 |
72 | $originalInvoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
73 | if ($originalInvoice->getMyKey()) {
74 | $invoiceCopy = invoiceCopy($originalInvoice,
75 | ['poznam' => 'FlexiPeeHP php library example - this is copy of '.$invoiceID]);
76 |
77 | if ($invoiceCopy->lastResponseCode == 201) {
78 | echo $invoiceCopy->getEvidenceURL().'/'.(string) $invoiceCopy;
79 | }
80 | } else {
81 | $originalInvoice->addStatusMessage('Source Invoice does not exists');
82 | }
83 |
--------------------------------------------------------------------------------
/Examples/InvoiceLastChanges.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | $invoiceID = askForFlexiBeeID();
18 |
19 | /*
20 | * FlexiPeeHP Classes accept this form of initial identifier:
21 | *
22 | * (int) 2588
23 | * (string) ext:ESHOP:oi1978
24 | * (array) ['varSym'=>'20080015']
25 | */
26 |
27 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
28 | if ($invoice->getMyKey()) {
29 | $journaler = new \FlexiPeeHP\Zurnal();
30 | $changes = $journaler->getLastChange($invoice);
31 | } else {
32 | $invoice->addStatusMessage('Source Invoice does not exists');
33 | }
34 |
--------------------------------------------------------------------------------
/Examples/InvoiceLockUnlock.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | $invoiceID = askForFlexiBeeID();
18 |
19 | /*
20 | * FlexiPeeHP Classes accept this form of initial identifier:
21 | *
22 | * (int) 2588
23 | * (string) ext:ESHOP:oi1978
24 | * (array) ['varSym'=>'20080015']
25 | */
26 |
27 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
28 | $id = $invoice->getMyKey();
29 | $zamekK = $invoice->getDataValue('zamekK');
30 | $kod = $invoice->getDataValue('kod');
31 | if ($id) {
32 | $invoice->dataReset(); //Do not send back all data
33 | $invoice->setMyKey($id);
34 | $invoice->setDataValue('kod', $kod);
35 |
36 | switch ($zamekK) {
37 | case 'zamek.zamceno':
38 | $result = $invoice->performAction('unlock', 'int');
39 | break;
40 | case 'zamek.otevreno':
41 | $result = $invoice->performAction('lock', 'int');
42 | break;
43 | }
44 |
45 | if ($result['success'] == 'true') {
46 | $invoice->addStatusMessage(sprintf(_('Invoice %s lock switched'),
47 | $invoice), 'success');
48 | } else {
49 | $invoice->addStatusMessage(sprintf(_('Invoice %s lock switch failed'),
50 | $invoice), 'error');
51 | }
52 | } else {
53 | $invoice->addStatusMessage('Invoice '.$invoiceID.' does not exists',
54 | 'warning');
55 | }
56 |
--------------------------------------------------------------------------------
/Examples/LoginLogout.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 |
16 | $prober = new \FlexiPeeHP\FlexiBeeRO();
17 |
18 | $prober->login();
19 |
20 | echo $prober->authSessionId;
21 |
22 | $prober->logout();
23 |
24 |
--------------------------------------------------------------------------------
/Examples/MovePricelistItemToAnotherCategory.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $products_id = 2345;
16 | $old_category_id = 23;
17 | $new_category_id = 22;
18 |
19 | $sokoban = new \FlexiPeeHP\StromCenik();
20 | $pricelist = new \FlexiPeeHP\Cenik('ext:products:'.$products_id, ['detail' => 'id']);
21 | $sokoban->deleteFromFlexiBee('ext:ptc:'.$old_category_id);
22 | $sokoban->insertToFlexiBee(['id'=>'ext:ptc:'.$new_category_id,'idZaznamu' => $pricelist->getRecordID(), 'uzel' => 'ext:categories:'.$new_category_id]);
23 |
--------------------------------------------------------------------------------
/Examples/NajdiDanovyDokladKzalohovemu.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 | include_once './common.php';
15 |
16 | $invoiceID = askForFlexiBeeID();
17 |
18 | /*
19 | * FlexiPeeHP Classes accept this form of initial identifier:
20 | *
21 | * (int) 2588
22 | * (string) ext:ESHOP:oi1978
23 | * (array) ['varSym'=>'20080015']
24 | */
25 |
26 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
27 |
28 | $vazby = $invoice->reindexArrayBy($invoice->getVazby(), 'typVazbyK');
29 |
30 | $polozka = new \FlexiPeeHP\FlexiBeeRO(intval($vazby['typVazbyDokl.odpocetZALOHY']['a']),
31 | ['evidence' => 'faktura-vydana-polozka']);
32 |
33 | $faktura = new \FlexiPeeHP\FakturaVydana($polozka->getDataValue('doklFak'));
34 |
35 |
--------------------------------------------------------------------------------
/Examples/Naskladnění.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 |
16 |
17 | $storage = 'SKLAD';
18 | $productCode = \Ease\Sand::randomString();
19 | $serialNumbers = [
20 | \Ease\Sand::randomString(),
21 | \Ease\Sand::randomString(),
22 | \Ease\Sand::randomString(),
23 | \Ease\Sand::randomString()
24 | ];
25 | $defaultSerialNumber = \Ease\Sand::randomString();
26 |
27 |
28 |
29 | /** Preparation * */
30 | //We need an exising item
31 | $product = new \FlexiPeeHP\Cenik();
32 | $product->insertToFlexiBee([
33 | 'kod' => $productCode,
34 | 'nazev' => $productCode,
35 | 'typZasobyK' => 'typZasoby.zbozi',
36 | 'evidVyrCis' => true,
37 | // 'unikVyrCis'=> fase,
38 | 'skladove' => true
39 | ]);
40 |
41 | //with storage card for at least current accounting period
42 | $storageCard = new \FlexiPeeHP\SkladovaKarta();
43 | $storageCard->insertToFlexiBee([
44 | 'sklad' => \FlexiPeeHP\FlexiBeeRO::code($storage),
45 | 'cenik' => \FlexiPeeHP\FlexiBeeRO::code($productCode),
46 | 'ucetObdobi' => \FlexiPeeHP\FlexiBeeRO::code(date('Y'))
47 | ]);
48 |
49 | /** Preparation End * */
50 | $skladovyPohyb = new \FlexiPeeHP\SkladovyPohyb([
51 | 'id' => 'ext:PRIJEMKA:'.time(),
52 | 'typDokl' => \FlexiPeeHP\FlexiBeeRO::code('STANDARD'),
53 | 'sklad' => \FlexiPeeHP\FlexiBeeRO::code($storage),
54 | 'cenik' => \FlexiPeeHP\FlexiBeeRO::code($productCode),
55 | 'typPohybuK' => 'typPohybu.prijem',
56 | ],['debug'=>true]);
57 |
58 | // We Need
59 | $productModel = new \FlexiPeeHP\SkladovyPohybPolozka([
60 | 'sklad' => \FlexiPeeHP\FlexiBeeRO::code($storage),
61 | 'cenik' => \FlexiPeeHP\FlexiBeeRO::code($productCode)
62 | ], ['offline' => true]);
63 |
64 | //Add Serial numbers one by one
65 | foreach ($serialNumbers as $serialNumber) {
66 | $productModel->addSerialNumber($serialNumber);
67 | }
68 |
69 | //Also add default serial number
70 | $productModel->addSerialNumber($defaultSerialNumber, true); //Add another number - the Main one
71 | //$skladovyPohyb->addArrayToBranch([$productModel->getEvidence() => $productModel->getData()]);
72 | $skladovyPohyb->addObjectToBranch($productModel);
73 |
74 |
75 | //And Now We can save it into FlexiBee
76 | $skladovyPohyb->insertToFlexiBee();
77 |
78 |
79 | echo $skladovyPohyb->postFields;
80 | echo $skladovyPohyb->lastCurlResponse;
81 |
--------------------------------------------------------------------------------
/Examples/NewInvoice.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | use DateTime;
13 | use Ease\Sand;
14 | use FlexiPeeHP\FakturaVydana;
15 | use FlexiPeeHP\FlexiBeeRO;
16 |
17 | include_once './config.php';
18 | include_once '../vendor/autoload.php';
19 |
20 |
21 | $invoice = new FakturaVydana();
22 | $invoice->logBanner('Create New Invoice Example');
23 |
24 |
25 | //Set due date by DateTime object
26 | $nextMonth = new DateTime();
27 | $nextMonth->modify('+1 month');
28 | $invoice->setDataValue('datSplat', $nextMonth);
29 | $invoice->setDataValue('datVyst', (new \DateTime())->modify('-1 day') );
30 |
31 | $invoice->takeData([
32 | 'varSym' => Sand::randomNumber(1111, 9999),
33 | 'specSym' => Sand::randomNumber(111, 999),
34 | 'popis' => 'FlexiPeeHP Example invoice',
35 | 'typDokl' => FlexiBeeRO::code('FAKTURA')
36 | ]);
37 |
38 | $invoice->addArrayToBranch(['nazev' => 'Example Item 1', 'cenaMj' => 100]);
39 |
40 | /**
41 | * You need an existing pricelist item here:
42 | * (new \FlexiPeeHP\Cenik())->insertToFlexiBee(['kod'=>'EXAMPLE' ,'nazev'=>'New Example Product','cenaMj'=>100]);
43 | */
44 |
45 | $invoice->addArrayToBranch(['nazev' => 'Example Item 2', 'cenik' => 'code:EXAMPLE',
46 | 'mnozMj' => 2]);
47 |
48 |
49 | if ($invoice->sync()) {
50 | $invoice->addStatusMessage($invoice->getApiURL().' '.FlexiBeeRO::uncode($invoice->getDataValue('typDokl')).' '.FlexiBeeRO::uncode($invoice->getRecordIdent()).' '.FlexiBeeRO::uncode($invoice->getDataValue('sumCelkem')).' '.FlexiBeeRO::uncode($invoice->getDataValue('mena')),
51 | 'success');
52 | }
53 |
54 | echo $invoice->getJsonizedData($invoice->getData(),JSON_PRETTY_PRINT);
55 |
--------------------------------------------------------------------------------
/Examples/ObjectChaining.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $adresar = new \FlexiPeeHP\Adresar(['id' => 'EXT:APP:100', 'nazev' => 'FirmaAB',
16 | ], ['atomic' => 'false']); //Atomic Transaction: https://www.flexibee.eu/api/dokumentace/ref/tx/
17 |
18 | $adresar2 = new \FlexiPeeHP\Adresar(['id' => 'EXT:APP:200', 'nazev' => 'FirmaCD'],
19 | ['offline' => true]);
20 | $adresar3 = new \FlexiPeeHP\Adresar(['id' => 'EXT:APP:300', 'nazev' => 'FirmaEF'],
21 | ['offline' => true]);
22 | $adresar4 = new \FlexiPeeHP\Adresar(['id' => 'EXT:APP:400', 'nazev' => 'FirmaGH'],
23 | ['offline' => true]);
24 |
25 | $banka = new \FlexiPeeHP\Banka(['id' => 'EXT:APP:500', 'typDokl' => 'code:STANDARD',
26 | 'banka' => 'code:BANKOVNÍ ÚČET'], ['offline' => true]);
27 |
28 | $adresarBankovniUcet = new \FlexiPeeHP\Adresar(['iban' => 'CZ9501000000001234567899',
29 | 'bic' => 'KOMBCZPP', 'firma' => 'EXT:APP:300'],
30 | ['evidence' => 'adresar-bankovni-ucet'], ['offline' => true]);
31 |
32 | $adresar->join($banka);
33 |
34 | $adresarBankovniUcet->join($adresar2);
35 |
36 | $adresar3->join($adresar4);
37 |
38 | $adresarBankovniUcet->join($adresar3);
39 |
40 | $adresar->join($adresarBankovniUcet);
41 |
42 |
43 | echo "Request Sent to FlexiBee:\n". $adresar->getJsonizedData(null, JSON_PRETTY_PRINT);
44 |
45 | echo "\nFlexiBee Response:\n".var_export($adresar->insertToFlexiBee(), true);
46 |
47 | echo "\nResultIDs was pushed to its source objects:\n".
48 | '$banka: '.$banka->getMyKey()."\n".
49 | '$adresar: '.$adresar->getMyKey()."\n".
50 | '$adresar2: '.$adresar2->getMyKey()."\n".
51 | '$adresar3: '.$adresar3->getMyKey()."\n".
52 | '$adresar4: '.$adresar4->getMyKey()."\n".
53 | '$adresarBankovniUcet: '.$adresarBankovniUcet->getMyKey()."\n";
54 |
--------------------------------------------------------------------------------
/Examples/ObjectsCooperation.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | /**
16 | * @var \FlexiPeeHP\FakturaVydana With initial type code:FAKTURA, connected to
17 | * default constatnt('FLEXIBEE_URL')
18 | */
19 | $originalInvoice = new \FlexiPeeHP\FakturaVydana(['typDokl' => \FlexiPeeHP\FlexiBeeRO::code('FAKTURA')]);
20 |
21 | /**
22 | * @var \FlexiPeeHP\FakturaVydana
23 | */
24 | $invoice = new \FlexiPeeHP\FakturaVydana($originalInvoice->getData(),
25 | $originalInvoice->getConnectionOptions());
26 |
27 | /**
28 | * Save to FlexiBee a obtain processed record record with its new CODE, Number etc.
29 | */
30 | $invoice->sync();
31 |
32 |
33 | /**
34 | * Print Link to new record in FlexiBee web interface
35 | */
36 | echo ''.$invoice.'';
37 |
38 |
--------------------------------------------------------------------------------
/Examples/PerformingActions.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2018 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 | include_once './common.php';
15 |
16 | $invoiceID = askForFlexiBeeID();
17 |
18 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
19 | $invoice->performAction('storno','int');
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Examples/Převodka.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
8 | * @copyright (G) 2018 Vitex Software
9 | */
10 |
11 | namespace Example\FlexiPeeHP;
12 |
13 | include_once './config.php';
14 | include_once '../vendor/autoload.php';
15 |
16 | $skladovyPohyb = new \FlexiPeeHP\SkladovyPohyb( [
17 | 'id'=> 'ext:PREVODKA:1', //Vytvoříme záznam s tímto ID
18 | 'typDokl'=> 'code:PŘEVODKA',
19 | 'sklad'=> 'code:SKLAD-1', //Zdrojový sklad
20 | 'typPohybuK'=> 'typPohybu.vydej',
21 | 'typPohybuSkladK'=> 'typPohybuSklad.vydejPrevod',
22 | 'skladCil'=> 'code:SKLAD-2' //Cílový sklad
23 | ]);
24 |
25 | $skladovyPohyb->addArrayToBranch(['cenik'=> 'code:A','mnozMj'=> '3'], 'skladovePolozky');
26 | $skladovyPohyb->addArrayToBranch(['cenik'=> 'code:B','mnozMj'=> '3'], 'skladovePolozky');
27 | $skladovyPohyb->insertToFlexiBee();
28 |
29 |
30 | $skladovyPohyb->dataReset(); //Vyprázdníme objekt aby se neposílala zbytečná data
31 | $skladovyPohyb->setMyKey('ext:PREVODKA:1'); //Nastavíme id záznamu se kterým pracujeme
32 | $skladovyPohyb->performAction('dokoncit-prevodku'); //Vykonání akce
33 |
34 |
--------------------------------------------------------------------------------
/Examples/ReadAddressColumns.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
9 | * @copyright (G) 2017 Vitex Software
10 | */
11 |
12 | namespace Example\FlexiPeeHP;
13 |
14 | include_once './config.php';
15 | include_once '../vendor/autoload.php';
16 |
17 | $adreser = new \FlexiPeeHP\Adresar();
18 | $addresses = $adreser->getColumnsFromFlexibee(['id', 'nazev', 'email'],
19 | ['typVztahuK' => 'typVztahu.odberatel'], 'nazev');
20 |
--------------------------------------------------------------------------------
/Examples/SendReminders.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017-2019 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $invoicer = new \FlexiPeeHP\FakturaVydana();
16 |
17 | function getOverdueInvoices($invoicer)
18 | {
19 |
20 |
21 | $result = null;
22 | $invoicer->defaultUrlParams['order'] = 'datVyst@A';
23 | $invoicer->defaultUrlParams['relations'] = 'adresar,kontakt';
24 | $invoices = $invoicer->getColumnsFromFlexibee([
25 | 'id',
26 | 'kod',
27 | 'stavUhrK',
28 | 'firma',
29 | 'buc',
30 | 'varSym',
31 | 'specSym',
32 | 'sumCelkem',
33 | 'duzpPuv',
34 | 'datVyst'],
35 | "(stavUhrK is null OR stavUhrK eq 'stavUhr.castUhr') AND storno eq false",
36 | 'id');
37 |
38 | if ($invoicer->lastResponseCode == 200) {
39 | $result = $invoices;
40 | }
41 | return $result;
42 | }
43 | $firmer = new \FlexiPeeHP\Adresar();
44 |
45 | foreach (getOverdueInvoices($invoicer) as $invoice) {
46 | $invoicer->setData($invoice, true);
47 |
48 | $firmer->setMyKey($invoicer->getDataValue('firma'));
49 |
50 | $mail = new \Ease\Mailer($firmer->getNotificationEmailAddress(),
51 | sprintf(_('Overdue invoice: %s'), $invoice['kod']),
52 | sprintf(_('Please pay %s,-'), $invoice['sumCelkem']));
53 |
54 | $mail->addFile($invoicer->downloadInFormat('pdf', '/tmp/'),
55 | \FlexiPeeHP\Formats::$formats['PDF']['content-type']);
56 | $mail->addFile($invoicer->downloadInFormat('isdocx', '/tmp/'),
57 | \FlexiPeeHP\Formats::$formats['ISDOCx']['content-type']);
58 |
59 | $mail->send();
60 | }
61 |
--------------------------------------------------------------------------------
/Examples/SetContactAuth.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $kontakter = new \FlexiPeeHP\Kontakt();
16 | $first = $kontakter->getColumnsFromFlexibee(['id'], ['limit' => 1]);
17 | $kontakter->setData([
18 | 'id' => $first[0]['id'],
19 | 'username' => 'login',
20 | 'password' => 'heslo',
21 | // 'password@hash' => 'sha256',
22 | // 'password@salt' => 'osoleno',
23 | 'email' => 'example@flexibee.eu',
24 | 'poznam' => 'auth']);
25 |
26 | $kontakter->insertToFlexiBee();
27 |
28 | if ($kontakter->lastResponseCode == 201) {
29 | $kontakter->addStatusMessage('Password set', 'success');
30 | $kontakter->loadFromFlexiBee();
31 | } else {
32 | $kontakter->addStatusMessage('Password set failed', 'warning');
33 | }
34 |
--------------------------------------------------------------------------------
/Examples/TestConnection.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | $companer = new \FlexiPeeHP\Company();
16 | $companies = $companer->getData();
17 |
18 | if (array_key_exists('dbNazev', $companies) === true) {
19 | $companer->addStatusMessage('Connection OK', 'success');
20 | } else {
21 | $companer->addStatusMessage('Connection failed', 'warning');
22 | }
23 |
--------------------------------------------------------------------------------
/Examples/common.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (G) 2017 Vitex Software
7 | */
8 |
9 | namespace Example\FlexiPeeHP;
10 |
11 | /**
12 | * Ask For Invoice ID
13 | *
14 | * @param string $type Requested type for documents
15 | * @return int|string id or code
16 | */
17 | function askForFlexiBeeID($type = 'invoice')
18 | {
19 | $invoiceID = null;
20 | echo "Please enter $type ID:";
21 | $input = fopen("php://stdin", "r");
22 | $invoiceID = trim(fgets($input));
23 | fclose($input);
24 | if (is_numeric($invoiceID)) {
25 | $invoiceID = intval($invoiceID);
26 | }
27 | return $invoiceID;
28 | }
29 |
--------------------------------------------------------------------------------
/Examples/config.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (G) 2017-2019 Vitex Software
7 | */
8 |
9 |
10 | define('EASE_LOGGER', 'syslog|console');
11 | require_once '../testing/bootstrap.php';
12 |
--------------------------------------------------------------------------------
/Examples/flexipeehp-composer-install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/Examples/flexipeehp-composer-install.png
--------------------------------------------------------------------------------
/Examples/flexipeehp-debian-test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/Examples/flexipeehp-debian-test.png
--------------------------------------------------------------------------------
/Examples/sendInvoiceByMail.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -f
2 |
7 | * @copyright (G) 2017 Vitex Software
8 | */
9 |
10 | namespace Example\FlexiPeeHP;
11 |
12 | include_once './config.php';
13 | include_once '../vendor/autoload.php';
14 |
15 | include_once './common.php';
16 |
17 | echo "Please recipient email addreess:";
18 | $input = fopen("php://stdin", "r");
19 | $recipient = trim(fgets($input));
20 | fclose($input);
21 |
22 | $invoiceID = askForFlexiBeeID();
23 |
24 | /*
25 | * FlexiPeeHP Classes accept this form of initial identifier:
26 | *
27 | * (int) 2588
28 | * (string) ext:ESHOP:oi1978
29 | * (array) ['varSym'=>'20080015']
30 | */
31 |
32 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
33 | if ($invoice->sendByMail($recipient, 'Document sent by FlexiPeeHP ', 'Example How to sent document')) {
34 | $invoice->addStatusMessage(_('Invoice was sent'), 'success');
35 | } else {
36 | $invoice->addStatusMessage(_('Mailer does not work'), 'warning');
37 | }
38 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | all: build install
2 |
3 | fresh:
4 | git pull
5 | composer install
6 |
7 | install: build
8 | # cp -rvf src/FlexiPeeHP /usr/share/php/FlexiPeeHP
9 |
10 | static:
11 | composer update
12 | echo rm -rf static/*
13 | echo "STATIC #######################
14 | cd tools/ ; ./update_all.sh ; cd ..
15 |
16 | build: static
17 |
18 | clean:
19 | rm -rf debian/php-flexibee
20 | rm -rf debian/flexipeehp .phpunit.result.cache debian/flexipeehp.debhelper.log
21 | rm -rf debian/flexipeehp-doc
22 | rm -rf debian/*.log
23 | rm -rf debian/*.substvars
24 | rm -rf docs/*
25 | rm -f debianTest/composer.lock
26 | rm -rf vendor/* composer.lock
27 |
28 | apigen:
29 | VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
30 | apigen generate -d docs/ -s src/ --destination docs --title "FlexiPeeHP ${VERSION}" --charset UTF-8 --access-levels public --access-levels protected --php --tree
31 |
32 | pretest:
33 | composer --ansi --no-interaction update
34 | php -f tests/PrepareForTest.php
35 |
36 | phpunit:
37 | composer update
38 | vendor/bin/phpunit --bootstrap testing/bootstrap.php
39 |
40 | deb:
41 | dpkg-buildpackage -A -us -uc
42 |
43 | rpm:
44 | rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák " flexipeehp.spec
45 | rpmbuild -ba flexipeehp.spec
46 |
47 | verup:
48 | git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`"
49 | git push origin master
50 |
51 | dimage:
52 | docker build -t vitexsoftware/flexipeehp .
53 |
54 | .PHONY : install
55 |
56 |
--------------------------------------------------------------------------------
/Vagrantfile:
--------------------------------------------------------------------------------
1 | Vagrant.configure("2") do |config|
2 | # config.vm.box = "ubuntu/zesty64"
3 | config.vm.box = "ubuntu/bionic64"
4 | # config.vm.box = "centos/7"
5 | config.vm.provision :shell, path: "bootstrap-debian.sh"
6 | config.vm.provision :shell, path: "bootstrap-centos.sh"
7 | config.vm.network :forwarded_port, guest: 80, host: 8080
8 | end
9 |
--------------------------------------------------------------------------------
/bootstrap-centos.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | cd ~
3 | rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
4 | rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
5 | yum -y install fedora-packager
6 | rpmdev-setuptree
7 | make rpm
8 |
--------------------------------------------------------------------------------
/bootstrap-debian.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | export DEBIAN_FRONTEND="noninteractive"
3 | wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add -
4 | echo deb http://v.s.cz/ stable main | tee /etc/apt/sources.list.d/vitexsoftware.list
5 | apt-get update
6 | apt-get install -y php-cli php-curl php-pear php-intl php-zip composer dpkg-dev devscripts php-apigen-theme-default debhelper gdebi-core
7 | apt-get update
8 |
9 | cd /vagrant
10 | debuild -i -us -uc -b
11 |
12 | #mkdir -p /vagrant/deb
13 | #mv /*.deb /vagrant/deb
14 | #cd /vagrant/deb
15 | #dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
16 | #echo "deb file:/vagrant/deb ./" > /etc/apt/sources.list.d/local.list
17 | #apt-get update
18 | export DEBCONF_DEBUG="developer"
19 |
20 | #apt-get -y --allow-unauthenticated install flexipeehp
21 | gdebi -n ../flexipeehp_*_all.deb
22 |
23 | cd /usr/share/doc/FlexiPeeHP/
24 | composer update
25 | php -f /usr/share/doc/FlexiPeeHP/flexibeeping.php
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "spoje.net/flexipeehp",
3 | "description": "PHP Based Library for easy interaction with czech accounting system Flexibee.",
4 | "license": "GPL-2.0-or-later",
5 | "authors": [
6 | {
7 | "name": "Vítězslav Dvořák",
8 | "email": "vitex@arachne.cz"
9 | }
10 | ],
11 | "require": {
12 | "ext-curl": "*",
13 | "vitexsoftware/ease-framework": "dev-master"
14 | },
15 | "autoload": {
16 | "psr-4": {
17 | "FlexiPeeHP\\": "src/FlexiPeeHP/"
18 | }
19 | },
20 | "autoload-dev": {
21 | "psr-4": {
22 | "Test\\Ease\\": "vendor/vitexsoftware/ease-framework/tests/src/Ease",
23 | "Test\\FlexiPeeHP\\": "testing/src/FlexiPeeHP/",
24 | "Test\\": "testing/"
25 | }
26 | },
27 | "require-dev": {
28 | "phpunit/phpunit": "*",
29 | "phing/phing": "*"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/debian/README.Debian:
--------------------------------------------------------------------------------
1 | FlexiPeeHP Debian
2 | -------------------
3 |
4 | Is installed by standard way in /usr/share/php/FlexiPeeHP
5 |
6 | -- Vítězslav Dvořák Ne říj 21 15:17:56 CEST 2016
7 |
8 |
--------------------------------------------------------------------------------
/debian/apigendoc.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | FILE=""
3 | DIR="docs"
4 | if [ "$(ls -A $DIR)" ]; then
5 | echo "docs already generated. run make clean first"
6 | else
7 | apigen generate --source src --destination docs --title "FlexiPeeHP `cat debian/version` " --charset UTF-8 --access-levels public --access-levels protected --php --tree
8 | fi
9 |
--------------------------------------------------------------------------------
/debian/changelog:
--------------------------------------------------------------------------------
1 | flexipeehp (1.30) UNRELEASED; urgency=medium
2 |
3 | * Docker Image build
4 | * Ubuntu 18.04 compatibility build
5 | * Openbuild Service build
6 |
7 |
8 | -- Vítězslav Dvořák Wed, 13 Mar 2019 15:01:55 +0100
9 |
10 | flexipeehp (1.12) experimental; urgency=medium
11 |
12 | * Static Files Update
13 | * Tests & Fixes
14 |
15 | -- Vítězslav Dvořák Thu, 07 Jun 2018 18:54:03 +0200
16 |
17 | flexipeehp (1.11) experimental; urgency=medium
18 |
19 | * php5.3 - php7.2
20 |
21 | -- Vítězslav Dvořák Tue, 29 May 2018 13:33:35 +0200
22 |
23 | flexipeehp (1.9.7.1) experimental; urgency=low
24 |
25 | [ Vítězslav Vitex Dvořák ]
26 |
27 | [ Cybervitexus ]
28 | * Debian package build update
29 | * Přidán další parametr adresní řádky pro směr řazení výpisu Přidána
30 | třída pro cenník
31 | * Doplněna funkce pro získání GlobalVersion Přidána třída položky
32 | faktury vydané
33 |
34 |
35 | [ vitex ]
36 | * TODOs
37 | * Debian package buld update
38 | * Debian package version fix Links to other libraries added to Readme
39 | * added public $this->rowCount to hold @rowCount value if obtained
40 | * Debian package v1.3
41 | * Added class Structure that hold structure of all evidencies added
42 | tool update_structure_clas.php for generating class Structure Added
43 | class DodavatelskaSmlouva Version grow to 1.4
44 | * Added methods for managing used company Unit tests for obtaining
45 | evidence structure
46 | * Added methods for managing used company Unit tests for obtaining
47 | evidence structure
48 | * Added methods for managing used company Unit tests for obtaining
49 | evidence structure
50 | * Fixed support for Evidence Actions
51 | * Release 1.6 Evidence names moved from Structure to EvidenceList
52 | class Class Structure renamed to Relations Class generating scripts
53 | moved to "tools" folder Added generated class Relations
54 | * Added method for generating invoices to Provider Contract class
55 | Added login-logout URL prefix to list allowed prefixes
56 | * Added method for generating invoices to Provider Contract class
57 | Added login-logout URL prefix to list allowed prefixes
58 |
59 | [ Vítězslav Dvořák ]
60 | * UnitTest for FlexiBeeRW update Added missing PHPDoc comments
61 | * Added debian package for ApiGen documentation Static version as
62 | FlexiPeeHP::$libVersion
63 | * Merge origin/master
64 |
65 | [ vitex ]
66 | * Additonal control for relations in debug mode
67 | * __ToString returns allways string now
68 | * Updated Generated classes
69 |
70 |
71 | [ Vítězslav Dvořák ]
72 | *
73 |
74 | -- Vítězslav Dvořák Tue, 29 May 2018 13:11:03 +0200
75 |
--------------------------------------------------------------------------------
/debian/compat:
--------------------------------------------------------------------------------
1 | 9
2 |
--------------------------------------------------------------------------------
/debian/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "deb/flexipeehp",
3 | "description": "PHP Based Library for easy interaction with czech accounting system Flexibee.",
4 | "homepage": "https://github.com/Spoje-NET/FlexiPeeHP",
5 | "license": "GPL-2.0+",
6 | "version": "1.30",
7 | "type": "library",
8 | "authors": [
9 | {
10 | "name": "Vítězslav Dvořák",
11 | "email": "vitex@arachne.cz"
12 | }
13 | ],
14 | "require": {
15 | "php": ">= 7",
16 | "ext-curl": "*",
17 | "deb/ease-framework": "*"
18 | },
19 | "autoload": {
20 | "psr-4": {
21 | "FlexiPeeHP\\": "."
22 | }
23 | },
24 | "repositories": [
25 | {
26 | "type": "path",
27 | "url": "/usr/share/php/Ease",
28 | "options": {
29 | "symlink": true
30 | }
31 | }
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/debian/control:
--------------------------------------------------------------------------------
1 | Source: flexipeehp
2 | Build-Depends: debhelper (>= 7.0.50~)
3 | Standards-Version: 3.9.8
4 | Maintainer: Vítězslav Dvořák
5 | Uploaders: Vitex
6 | Priority: optional
7 | Homepage: https://github.com/Spoje-NET/FlexiPeeHP
8 |
9 | Package: flexipeehp
10 | Depends: ${misc:Depends}, php-curl|php5-curl|php5.6-curl|php7.0-curl|php7.1-curl|php7.2-curl|php7.3-curl,ease-framework (>= 1.5.11)
11 | Suggests: composer,flexipeehp-doc
12 | Architecture: all
13 | Section: web
14 | Priority: optional
15 | Description: PHP Based FlexiBee RestAPI/Json library
16 | Allow you read and write operations on czech accounting system FlexiBee
17 |
18 |
--------------------------------------------------------------------------------
/debian/copyright:
--------------------------------------------------------------------------------
1 | Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143
2 | Upstream-Name: FlexiPeeHP
3 | Upstream-Source: https://github.com/Spoje-NET/FlexiPeeHP/archive/master.zip
4 |
5 | Files: *
6 | Homepage: https://github.com/Spoje-NET/FlexiPeeHP/
7 | Copyright:
8 | (c) 2016 Spoje.Net s.r.o. (spoje.net)
9 | License: GPL-2
10 |
11 | License: GPL-2
12 | On Debian systems the full text of the GNU General Public License can be found
13 | in the `/usr/share/common-licenses/GPL-2' file.
14 |
15 |
--------------------------------------------------------------------------------
/debian/fixversion.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | VERSTR=`dpkg-parsechangelog --show-field Version`
3 | COMPOSER_VERSTR=`echo ${VERSTR}|sed 's/-/./g'`
4 | echo debian/flexipeehp/usr/share/php/FlexiPeeHP/composer.json version to ${COMPOSER_VERSTR}
5 | sed -i -e '/\"version\"/c\ \"version\": \"'${COMPOSER_VERSTR}'",' debian/flexipeehp/usr/share/php/FlexiPeeHP/composer.json
6 | sed -i -e "/public static \$libVersion/c\ public static \$libVersion = '${VERSTR}';" debian/flexipeehp/usr/share/php/FlexiPeeHP/FlexiBeeRO.php
7 | sed -i -e "/public static \$libVersion/c\ public static \$libVersion = '${VERSTR}';" src/FlexiPeeHP/FlexiBeeRO.php
8 |
9 | #dch -b -v ${VERSION}-${REVISION} --package "${PACKAGE}" "${CHANGES}"
10 |
--------------------------------------------------------------------------------
/debian/flexipeehp-doc.conf:
--------------------------------------------------------------------------------
1 | Alias /flexipeehp /usr/share/doc/FlexiPeeHP/html
2 | Alias /FlexiPeeHP /usr/share/doc/FlexiPeeHP/html
3 |
4 |
--------------------------------------------------------------------------------
/debian/flexipeehp-doc.install:
--------------------------------------------------------------------------------
1 | docs/* usr/share/doc/FlexiPeeHP/html
2 | docs/resources/* usr/share/doc/FlexiPeeHP/html/resources
3 | debian/flexipeehp-doc.conf usr/share/doc/flexipeehp-doc/apache
4 | README.md usr/share/doc/FlexiPeeHP/
5 |
--------------------------------------------------------------------------------
/debian/flexipeehp.install:
--------------------------------------------------------------------------------
1 | src/FlexiPeeHP/*.php /usr/share/php/FlexiPeeHP
2 | debian/composer.json /usr/share/php/FlexiPeeHP
3 | debian/test/* /usr/share/doc/FlexiPeeHP
4 | static/* /usr/share/php/FlexiPeeHP/static
5 |
--------------------------------------------------------------------------------
/debian/postinst:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # postinst script for flexipeehp
3 | #
4 | # see: dh_installdeb(1)
5 |
6 | set -e
7 |
8 | # summary of how this script can be called:
9 | # * `configure'
10 | # * `abort-upgrade'
11 | # * `abort-remove' `in-favour'
12 | #
13 | # * `abort-remove'
14 | # * `abort-deconfigure' `in-favour'
15 | # `removing'
16 | #
17 | # for details, see http://www.debian.org/doc/debian-policy/ or
18 | # the debian-policy package
19 |
20 |
21 | case "$1" in
22 | configure)
23 |
24 | composer-global-update deb/flexipeehp
25 |
26 | ;;
27 |
28 | abort-upgrade|abort-remove|abort-deconfigure)
29 | ;;
30 |
31 | *)
32 | echo "postinst called with unknown argument \`$1'" >&2
33 | exit 1
34 | ;;
35 | esac
36 |
37 | # dh_installdeb will replace this with shell code automatically
38 | # generated by other debhelper scripts.
39 |
40 | exit 0
41 |
--------------------------------------------------------------------------------
/debian/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 |
3 | %:
4 | dh $@
5 |
6 | override_dh_auto_test:
7 | echo tests temporarly skipped for now in rules file
8 |
9 | override_dh_install:
10 | dh_install
11 | sed -i -e "s/__DIR__.'\/..\/..\//'\\/usr\/share\/php\/FlexiPeeHP\//g" debian/flexipeehp/usr/share/php/FlexiPeeHP/FlexiBeeRO.php
12 | ./debian/fixversion.sh
13 |
--------------------------------------------------------------------------------
/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/debian/test/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "deb/flexipeehp-debian-test",
3 | "description": "FlexiPeeHP debian package test",
4 | "type": "project",
5 | "authors": [
6 | {
7 | "name": "Vítězslav Dvořák",
8 | "email": "info@vitexsoftware.cz"
9 | }
10 | ],
11 | "minimum-stability": "dev",
12 | "config": {
13 | "vendor-dir": "/tmp/flexipeehpdebiantest"
14 | },
15 | "require": {
16 | "deb/flexipeehp": "*",
17 | "deb/ease-framework": "*"
18 | },
19 | "repositories": [
20 | {
21 | "type": "path",
22 | "url": "/usr/share/php/Ease",
23 | "options": {
24 | "symlink": true
25 | }
26 | },
27 | {
28 | "type": "path",
29 | "url": "/usr/share/php/FlexiPeeHP",
30 | "options": {
31 | "symlink": true
32 | }
33 | }
34 | ]
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/debian/test/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "EASE_APPNAME": "FlexiPeeHPDebianTest",
3 | "EASE_LOGGER": "syslog|console",
4 | "FLEXIBEE_URL": "https://demo.flexibee.eu",
5 | "FLEXIBEE_LOGIN": "winstrom",
6 | "FLEXIBEE_PASSWORD": "winstrom"
7 | }
--------------------------------------------------------------------------------
/debian/test/flexibeeping.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 |
7 | * @copyright 2017 Spoje.Net
8 | */
9 | $autoload = '/tmp/flexipeehpdebiantest/autoload.php';
10 | if (file_exists($autoload)) {
11 | require_once $autoload;
12 | } else {
13 | echo 'composer install ???';
14 | exit(2);
15 | }
16 |
17 | if (file_exists('/usr/share/doc/FlexiPeeHP/config.json')) {
18 | $config = '/usr/share/doc/FlexiPeeHP/config.json';
19 | } else {
20 | $config = './config.json';
21 | }
22 |
23 | \Ease\Shared::instanced()->loadConfig($config,true);
24 |
25 | $tester = new \FlexiPeeHP\Company();
26 |
27 | $records = $tester->getAllFromFlexibee();
28 |
29 | if (isset($records) && count($records)) {
30 | foreach ($records as $companyInfo) {
31 | $tester->addStatusMessage($companyInfo['nazev'], 'success');
32 | }
33 | exit(0);
34 | } else {
35 | $tester->addStatusMessage('Error', 'danger');
36 | exit(1);
37 | }
38 |
--------------------------------------------------------------------------------
/docs/elementlist.js:
--------------------------------------------------------------------------------
1 |
2 | var ApiGen = ApiGen || {};
3 | ApiGen.elements = [["c","DateTime"],["c","DateTimeInterface"],["c","Exception"],["c","FlexiPeeHP\\Actions"],["c","FlexiPeeHP\\Adresar"],["c","FlexiPeeHP\\Banka"],["c","FlexiPeeHP\\Cenik"],["c","FlexiPeeHP\\Changes"],["c","FlexiPeeHP\\Company"],["c","FlexiPeeHP\\DodavatelskaSmlouva"],["c","FlexiPeeHP\\EvidenceList"],["c","FlexiPeeHP\\FakturaPrijata"],["c","FlexiPeeHP\\FakturaVydana"],["c","FlexiPeeHP\\FakturaVydanaPolozka"],["c","FlexiPeeHP\\Firma"],["c","FlexiPeeHP\\FlexiBeeRO"],["c","FlexiPeeHP\\FlexiBeeRW"],["c","FlexiPeeHP\\Formats"],["c","FlexiPeeHP\\Hooks"],["c","FlexiPeeHP\\InterniDoklad"],["c","FlexiPeeHP\\Kontakt"],["c","FlexiPeeHP\\Nastaveni"],["c","FlexiPeeHP\\Pokladna"],["c","FlexiPeeHP\\PokladniPohyb"],["c","FlexiPeeHP\\Priloha"],["c","FlexiPeeHP\\RadaPokladniPohyb"],["c","FlexiPeeHP\\Relations"],["c","FlexiPeeHP\\SkladovaKarta"],["c","FlexiPeeHP\\SkladovyPohyb"],["c","FlexiPeeHP\\SkladovyPohybPolozka"],["c","FlexiPeeHP\\SkupinaFirem"],["c","FlexiPeeHP\\Smlouva"],["c","FlexiPeeHP\\Status"],["c","FlexiPeeHP\\Stitek"],["c","FlexiPeeHP\\Stitky"],["c","FlexiPeeHP\\Strom"],["c","FlexiPeeHP\\StromCenik"],["c","FlexiPeeHP\\Sum"],["c","FlexiPeeHP\\UcetniObdobi"],["c","FlexiPeeHP\\VyrobniCislo"],["c","FlexiPeeHP\\Zavazek"],["c","FlexiPeeHP\\Zurnal"],["c","Throwable"]];
4 |
--------------------------------------------------------------------------------
/docs/resources/collapsed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/collapsed.png
--------------------------------------------------------------------------------
/docs/resources/footer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/footer.png
--------------------------------------------------------------------------------
/docs/resources/inherit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/inherit.png
--------------------------------------------------------------------------------
/docs/resources/resize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/resize.png
--------------------------------------------------------------------------------
/docs/resources/sort.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/sort.png
--------------------------------------------------------------------------------
/docs/resources/tree-cleaner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/tree-cleaner.png
--------------------------------------------------------------------------------
/docs/resources/tree-hasnext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/tree-hasnext.png
--------------------------------------------------------------------------------
/docs/resources/tree-last.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/tree-last.png
--------------------------------------------------------------------------------
/docs/resources/tree-vertical.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/docs/resources/tree-vertical.png
--------------------------------------------------------------------------------
/flexipeehp-html-docs.tar.bz2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/flexipeehp-html-docs.tar.bz2
--------------------------------------------------------------------------------
/nbproject/configs/Examples_Run.properties:
--------------------------------------------------------------------------------
1 | $label=Examples Run
2 |
--------------------------------------------------------------------------------
/nbproject/configs/GenerateListing.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/nbproject/configs/GenerateListing.properties
--------------------------------------------------------------------------------
/nbproject/configs/PHPUnit.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/nbproject/configs/PHPUnit.properties
--------------------------------------------------------------------------------
/nbproject/configs/testing.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/nbproject/configs/testing.properties
--------------------------------------------------------------------------------
/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | auxiliary.org-netbeans-modules-php-phing.action_2e_build=build
2 | auxiliary.org-netbeans-modules-php-phing.action_2e_clean=clean
3 | auxiliary.org-netbeans-modules-php-phing.action_2e_rebuild=clean build
4 | auxiliary.org-netbeans-modules-php-phing.action_2e_test=test
5 | auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_create_2e_tests=true
6 | auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_enabled=true
7 | auxiliary.org-netbeans-modules-php-phpunit.bootstrap_2e_path=testing/bootstrap.php
8 | auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_enabled=true
9 | auxiliary.org-netbeans-modules-php-phpunit.configuration_2e_path=phpunit.xml
10 | auxiliary.org-netbeans-modules-php-phpunit.customSuite_2e_enabled=false
11 | auxiliary.org-netbeans-modules-php-phpunit.customSuite_2e_path=
12 | auxiliary.org-netbeans-modules-php-phpunit.phpUnit_2e_enabled=true
13 | auxiliary.org-netbeans-modules-php-phpunit.phpUnit_2e_path=vendor/bin/phpunit
14 | auxiliary.org-netbeans-modules-php-phpunit.test_2e_groups_2e_ask=false
15 | auxiliary.org-netbeans-modules-php-phpunit.test_2e_run_2e_all=false
16 | auxiliary.org-netbeans-modules-php-phpunit.test_2e_run_2e_phpunit_2e_only=false
17 | file.reference.share-php=../../../../../usr/share/php
18 | include.path=
19 | php.version=PHP_71
20 | source.encoding=UTF-8
21 | src.dir=src
22 | tags.asp=false
23 | tags.short=false
24 | test.src.dir=testing
25 | testing.providers=PhpUnit
26 | web.root=.
27 |
--------------------------------------------------------------------------------
/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.php.project
4 |
5 |
6 | FlexiPeeHP
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/project_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/project_logo.png
--------------------------------------------------------------------------------
/project_logo.xcf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/project_logo.xcf
--------------------------------------------------------------------------------
/release.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | docker build -t vitexus/flexipeehp .
3 | docker push vitexus/flexipeehp
4 | cd debian
5 | ./deb-package.sh
6 |
--------------------------------------------------------------------------------
/spoje-net_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Spoje-NET/FlexiPeeHP/aef894242da90b1948b950fa7b341443a95a84d1/spoje-net_logo.gif
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Banka.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright (C) 2015-2017 Spoje.Net
8 | */
9 |
10 | namespace FlexiPeeHP;
11 |
12 | /**
13 | * Banka
14 | *
15 | * @link https://demo.flexibee.eu/c/demo/banka/properties Vlastnosti evidence
16 | */
17 | class Banka extends FlexiBeeRW
18 | {
19 | use Stitky;
20 | use Firma;
21 |
22 | /**
23 | * Evidence užitá objektem.
24 | *
25 | * @var string
26 | */
27 | public $evidence = 'banka';
28 |
29 | /**
30 | * Stáhne bankovní výpisy ( trvá delší dobu )
31 | *
32 | * @return boolean
33 | */
34 | public function stahnoutVypisyOnline()
35 | {
36 | $this->performRequest('nacteni-vypisu-online.json', 'PUT', 'txt');
37 | return $this->lastResponseCode == 200;
38 | }
39 |
40 | /**
41 | * Start invoice automatic matching process ( it takes longer time )
42 | * Spustí proces automatického párování plateb. ( trvá delší dobu )
43 | *
44 | * @link https://demo.flexibee.eu/devdoc/parovani-plateb Interní dokumentace
45 | *
46 | * @param boolean $advanced Use Advanced matching method ?
47 | * @param string $filter Filter bank records before pairing ?
48 | *
49 | * @return boolean
50 | */
51 | public function automatickeParovani($advanced = false, $filter = null)
52 | {
53 | $filterUrl = $filter === null ? "" : rtrim($filter, '/') . '/';
54 | $this->performRequest($filterUrl . 'automaticke-parovani'.($advanced ? '-pokrocile' : '' ), 'PUT');
55 | return $this->lastResponseCode == 200;
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Cenik.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright (C) 2016-2017 Spoje.Net
8 | */
9 |
10 | namespace FlexiPeeHP;
11 |
12 | /**
13 | * Ceník - Pricelist
14 | *
15 | * @link https://demo.flexibee.eu/c/demo/cenik/properties Vlastnosti evidence
16 | */
17 | class Cenik extends FlexiBeeRW
18 | {
19 | use Stitky;
20 | /**
21 | * Evidence užitá objektem.
22 | *
23 | * @var string
24 | */
25 | public $evidence = 'cenik';
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Changes.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2016-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Log změn v evidencích
13 | *
14 | * @link https://www.flexibee.eu/api/dokumentace/ref/changes-api/ Dokumentace
15 | */
16 | class Changes extends FlexiBeeRO
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | *
21 | * @var string
22 | */
23 | public $evidence = 'changes';
24 |
25 | /**
26 | * Povolí oznamování změn
27 | * Allow changes notification
28 | *
29 | * @return boolean
30 | */
31 | public function enable()
32 | {
33 | $this->performRequest('enable.xml', 'POST', 'xml');
34 | return $this->lastResponseCode == 200;
35 | }
36 |
37 | /**
38 | * Zakáže oznamování změn
39 | * Disallow changes notification
40 | *
41 | * @return boolean
42 | */
43 | public function disable()
44 | {
45 | $this->performRequest('disable.xml', 'POST', 'xml');
46 | return $this->lastResponseCode == 200;
47 | }
48 |
49 | /**
50 | * Vrátí stav zapnutí ChangesAPI
51 | *
52 | * @return boolean
53 | */
54 | public function getStatus()
55 | {
56 | $status = $this->performRequest('status.xml', 'GET', 'xml');
57 | return (($this->lastResponseCode == 200) && ($status['changes'][0]['success']
58 | === 'true'));
59 | }
60 |
61 | /**
62 | * Test if given record exists in FlexiBee .
63 | *
64 | * @param array $data
65 | * @return null Method is disabled for Changes
66 | */
67 | public function recordExists($data = null)
68 | {
69 | return null;
70 | }
71 |
72 | /**
73 | * Obtain actual GlobalVersion
74 | * Vrací aktuální globální verzi změn
75 | *
76 | * @link https://www.flexibee.eu/api/dokumentace/ref/changes-api#globalVersion Globální Verze
77 | * @return int
78 | */
79 | public function getGlobalVersion()
80 | {
81 | $this->getColumnsFromFlexibee('id', ['start' => 0, 'limit' => 0]);
82 | return $this->globalVersion;
83 | }
84 |
85 | /**
86 | * Convert FlexiBee Response XML to Array
87 | *
88 | * @param string $rawXML
89 | *
90 | * @return array
91 | */
92 | public function rawXmlToArray($rawXML)
93 | {
94 | return [$this->getEvidence() => parent::rawXmlToArray($rawXML)];
95 | }
96 |
97 | /**
98 | * Changes has no relations
99 | *
100 | * @return null
101 | */
102 | public function getVazby($id = null)
103 | {
104 | throw new \Exception(_('Changes has no relations'));
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/DodavatelskaSmlouva.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Dodavatelská smlouva
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/dodavatelska-smlouva/properties
15 | */
16 | class DodavatelskaSmlouva extends FlexiBeeRW
17 | {
18 |
19 | use Stitky;
20 | use Firma;
21 | /**
22 | * Evidence užitá objektem.
23 | *
24 | * @var string
25 | */
26 | public $evidence = 'dodavatelska-smlouva';
27 |
28 | /**
29 | * Generate invoices from contracts.
30 | * Vygeneruje faktury ze smluv.
31 | *
32 | * @return boolean operation success
33 | */
34 | public function generateInvoices()
35 | {
36 | $this->performRequest('dodavatelska-smlouva/generovani-faktur.xml',
37 | 'PUT', 'xml');
38 | return $this->lastResponseCode == 200;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Evidence.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2019 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Helper class for work with multiplete documents
13 | *
14 | * @author Vítězslav Dvořák
15 | */
16 | class Evidence extends \Ease\Sand
17 | {
18 | /**
19 | *
20 | * @var FlexiBeeRO
21 | */
22 | public $engine = null;
23 |
24 | /**
25 | *
26 | * @var array
27 | */
28 | public $conditions = [];
29 |
30 | /**
31 | *
32 | * @param \FlexiPeeHP\FlexiBeeRO $engine
33 | *
34 | * @param array $conditions
35 | */
36 | public function __construct(FlexiBeeRO $engine, array $conditions = [])
37 | {
38 | $this->engine = $engine;
39 | $this->conditions = $conditions;
40 | }
41 |
42 | /**
43 | * Array of objects in eveidence
44 | *
45 | * @return array
46 | */
47 | public function getEvidenceData()
48 | {
49 | return $this->engine->getColumnsFromFlexibee(array_key_exists('detail',
50 | $this->conditions) ? $this->conditions['detail'] : 'full', $this->conditions);
51 | }
52 |
53 | /**
54 | * Array of objects in eveidence
55 | *
56 | * @return FlexiBeeRO[]
57 | */
58 | public function getEvidenceObjects()
59 | {
60 | $contents = [];
61 | foreach ($this->getEvidenceData() as $pos => $recordData) {
62 | $contents[$pos] = clone $this->engine;
63 | $contents[$pos]->setData($recordData, true);
64 | }
65 | return $contents;
66 | }
67 |
68 | /**
69 | * get used evidence name
70 | *
71 | * @return string
72 | */
73 | public function getEvidence()
74 | {
75 | return $this->engine->getEvidence();
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/FakturaPrijata.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Incoming invoice
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/faktura-prijata/properties
15 | */
16 | class FakturaPrijata extends FlexiBeeRW
17 | {
18 | use Stitky;
19 | use Firma;
20 | use Sum;
21 | /**
22 | * Evidence použitá třídou.
23 | *
24 | * @var string
25 | */
26 | public $evidence = 'faktura-prijata';
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/FakturaVydanaPolozka.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2016-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Polozka Faktury vydané
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/faktura-vydana-polozka/properties položky evidence
15 | */
16 | class FakturaVydanaPolozka extends FlexiBeeRW
17 | {
18 | use Stitky;
19 | /**
20 | * Evidence užitá objektem.
21 | *
22 | * @var string
23 | */
24 | public $evidence = 'faktura-vydana-polozka';
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Firma.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2018-2019 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Add for Objects use with "firma" data column
13 | * @author Vítězslav Dvořák
14 | */
15 | trait Firma
16 | {
17 | /**
18 | * Here Customer's or Provider's comany object live
19 | * @var \FlexiPeeHP\Adresar
20 | */
21 | public $firma = null;
22 |
23 | /**
24 | * Instance of Adresar( $this->getDataValue('firma') )
25 | *
26 | * @return Adresar
27 | */
28 | public function getFirmaObject()
29 | {
30 | if (is_null($this->firma)) {
31 | $this->firma = new Adresar($this->getDataValue('firma'),
32 | ['details' => 'id']);
33 | }
34 | return $this->firma;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Hooks.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright (C) 2015-2017 Spoje.Net
8 | */
9 |
10 | namespace FlexiPeeHP;
11 |
12 | /**
13 | * Hooky pro ChangesAPI
14 | *
15 | * @note Tato položka nemá dostupné položky evidence
16 | */
17 | class Hooks extends FlexiBeeRW
18 | {
19 | /**
20 | * Evidence užitá objektem.
21 | *
22 | * @var string
23 | */
24 | public $evidence = 'hooks';
25 |
26 | /**
27 | * Zaregistruje WebHook
28 | *
29 | * @param string $url URL skript přímající WebHook
30 | * @param string $format json|xml formát přenášených dat
31 | *
32 | * @return boolean výsledek požadavku
33 | */
34 | public function register($url, $format = 'json')
35 | {
36 | $this->setDataValue('url', $url);
37 | $this->setDataValue('format', strtoupper($format));
38 |
39 | $hooks = $this->getAllFromFlexibee();
40 | if (is_array($hooks) && count($hooks)) {
41 | foreach ($hooks as $hook) {
42 | if (is_array($hook) && array_key_exists('url', $hook)) {
43 | if ($hook['url'] == $url) {
44 | $this->addStatusMessage(_('Url allready registered'),
45 | 'warning');
46 | return false;
47 | }
48 | }
49 | }
50 | }
51 | $this->performRequest('?'.http_build_query($this->getData()), 'PUT',
52 | 'xml');
53 |
54 | return $this->lastResponseCode === 200;
55 | }
56 |
57 | /**
58 | * Aktualizuje WebHook (penalty = 0)
59 | *
60 | * @param int $id
61 | */
62 | public function refreshWebHook($id)
63 | {
64 | $this->performRequest($id.'/retry', 'PUT');
65 | return $this->lastResponseCode === 200;
66 | }
67 |
68 | /**
69 | * Odregistruje webhook
70 | *
71 | * @param int $id číslo záznamu
72 | */
73 | public function unregister($id)
74 | {
75 | return $this->deleteFromFlexiBee($id);
76 | }
77 |
78 | /**
79 | * Test if given record exists in FlexiBee.
80 | *
81 | * @param array $data
82 | * @return null Unsupported evidence
83 | */
84 | public function recordExists($data = null)
85 | {
86 | return null;
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/InterniDoklad.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2019 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Internal Document
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/interni-doklad/properties
15 | */
16 | class InterniDoklad extends FlexiBeeRW
17 | {
18 |
19 | use Stitky;
20 | use Firma;
21 | use Sum;
22 | /**
23 | * Evidence použitá třídou.
24 | *
25 | * @var string
26 | */
27 | public $evidence = 'interni-doklad';
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Kontakt.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Kontakt adresáře
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/kontakt/properties
15 | */
16 | class Kontakt extends FlexiBeeRW
17 | {
18 |
19 | use Stitky;
20 | use Firma;
21 | /**
22 | * Evidence užitá objektem.
23 | *
24 | * @var string
25 | */
26 | public $evidence = 'kontakt';
27 |
28 | /**
29 | * Authenticate by contact
30 | *
31 | * @link https://www.flexibee.eu/api/dokumentace/ref/autentizace-kontaktu/ Contact Auth
32 | * @param string $login
33 | * @param string $password
34 | *
35 | * @return boolean
36 | */
37 | public function authenticate($login, $password)
38 | {
39 | $defaultHttpHeaders = $this->defaultHttpHeaders;
40 | $this->defaultHttpHeaders['Content-Type'] = 'application/x-www-form-urlencoded';
41 | $this->setPostFields(http_build_query(['username' => $login, 'password' => $password]));
42 | $result = $this->performRequest('authenticate',
43 | 'POST', 'xml');
44 | $this->defaultHttpHeaders = $defaultHttpHeaders;
45 | if (!empty($result['message'])) {
46 | $this->addStatusMessage($result['message'],
47 | $result['success'] == 'true' ? 'success' : 'warning' );
48 | }
49 | return array_key_exists('success', $result) && $result['success'] == 'true';
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Nastaveni.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Nastavení firmy
13 | *
14 | * @note Tato položka nemá dostupné položky evidence
15 | * @note Tato evidence není veřejně dostupná na demo.flexibee.eu
16 | */
17 | class Nastaveni extends FlexiBeeRO
18 | {
19 | /**
20 | * Evidence užitá objektem.
21 | *
22 | * @var string
23 | */
24 | public $evidence = 'nastaveni';
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Pokladna.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Pokladna
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/pokladna/properties
15 | */
16 | class Pokladna extends FlexiBeeRW
17 | {
18 | use Stitky;
19 | /**
20 | * Evidence užitá objektem.
21 | *
22 | * @var string
23 | */
24 | public $evidence = 'pokladna';
25 |
26 | /**
27 | * Add Data to invoice subItem
28 | *
29 | * @see Relations
30 | *
31 | * @param array $data pole dat
32 | * @param string $relationPath path evidence (relation) pro vkládaná data
33 | * @param boolean $removeAll
34 | *
35 | * @return boolean Operation success
36 | */
37 | public function addArrayToBranch($data, $relationPath = 'polozkyIntDokladu',
38 | $removeAll = false)
39 | {
40 | return parent::addArrayToBranch($data, $relationPath, $removeAll);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/PokladniPohyb.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Pokladní pohyb
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/pokladni-pohyb/properties položky evidence
15 | */
16 | class PokladniPohyb extends FlexiBeeRW
17 | {
18 | use Stitky;
19 | use Firma;
20 | use Sum;
21 | /**
22 | * Evidence FlexiBee.
23 | *
24 | * @var string
25 | */
26 | public $evidence = 'pokladni-pohyb';
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/RadaPokladniPohyb.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Číselná řada pokladního pohybu
13 | */
14 | class RadaPokladniPohyb extends FlexiBeeRW
15 | {
16 | /**
17 | * Evidence užitá objektem.
18 | *
19 | * @var string
20 | */
21 | public $evidence = 'rada-pokladni-pohyb';
22 |
23 | /**
24 | * Obtain code for new Record
25 | *
26 | * @param string $code
27 | * @return string
28 | */
29 | public function getNextRecordCode($code = null)
30 | {
31 | if (is_null($code)) {
32 | $code = $this->getMyKey();
33 | }
34 | $crID = null;
35 | if (is_string($code)) {
36 | $sro = $this->performRequest($this->evidence.'/(kod=\''.$code.'\').json');
37 | if (count($sro[$this->evidence])) {
38 | $crID = current(current($sro[$this->evidence]));
39 | }
40 | } else {
41 | $crID = $code;
42 | }
43 |
44 | $cr = $this->performRequest($this->evidence.'/'.$crID.'.json');
45 | $radaPokladniPohyb = current($cr[$this->evidence]);
46 | $crInfo = end($radaPokladniPohyb['polozkyRady']);
47 |
48 | $cislo = $crInfo['cisAkt'] + 1;
49 | if ($crInfo['zobrazNuly'] == 'true') {
50 | return $crInfo['prefix'].sprintf('%\'.0'.$crInfo['cisDelka'].'d',
51 | $cislo).'/'.date('y');
52 | } else {
53 | return $crInfo['prefix'].$cislo.'/'.date('y');
54 | }
55 | }
56 |
57 | /**
58 | * Zvedne číslo dokladu
59 | *
60 | * @param string $code
61 | * @return int číslo nového dokladu
62 | */
63 | public function incrementNextRecordCode($code = null)
64 | {
65 | if (is_null($code)) {
66 | $code = $this->getMyKey();
67 | }
68 |
69 | if (is_string($code)) {
70 | $sro = $this->performRequest($this->evidence.'/(kod=\''.$code.'\').json');
71 | $crID = current(current($sro[$this->evidence]));
72 | } else {
73 | $crID = $code;
74 | }
75 |
76 | $cr = $this->performRequest($this->evidence.'/'.$crID.'.json');
77 | $radaPokladniPohyb = current($cr[$this->evidence]);
78 | $crInfo = end($radaPokladniPohyb['polozkyRady']);
79 |
80 | $cislo = $crInfo['cisAkt'] + 1;
81 | return $cislo;
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/SkladovaKarta.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Skladová Karta
13 | * Storage Card
14 | *
15 | * @link https://demo.flexibee.eu/c/demo/skladova-karta/properties položky evidence
16 | */
17 | class SkladovaKarta extends FlexiBeeRW
18 | {
19 | /**
20 | * Evidence užitá objektem.
21 | * Evidence used by object.
22 | *
23 | * @var string
24 | */
25 | public $evidence = 'skladova-karta';
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/SkladovyPohyb.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Skladového pohyb
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/skladovy-pohyb/properties
15 | */
16 | class SkladovyPohyb extends FlexiBeeRW
17 | {
18 | use Stitky;
19 | use Firma;
20 | use Sum;
21 | /**
22 | * Evidence užitá objektem.
23 | *
24 | * @var string
25 | */
26 | public $evidence = 'skladovy-pohyb';
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/SkladovyPohybPolozka.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2018 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Položka skladového pohybu
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/skladovy-pohyb-polozka/properties
15 | */
16 | class SkladovyPohybPolozka extends FlexiBeeRW
17 | {
18 |
19 | use Stitky;
20 | /**
21 | * Evidence užitá objektem.
22 | *
23 | * @var string
24 | */
25 | public $evidence = 'skladovy-pohyb-polozka';
26 |
27 | /**
28 | * Add Items Serial Number
29 | *
30 | * @param string $number serial number
31 | * @param boolean $isMain main number
32 | *
33 | * @return boolean Success
34 | */
35 | public function addSerialNumber($number, $isMain = false)
36 | {
37 | $numberBranch['kod'] = $number;
38 | $crrentSerialNumbers = $this->getDataValue('vyrobniCislaPrijata');
39 | if ($isMain) {
40 | if (!empty($crrentSerialNumbers)) {
41 | foreach (array_keys($crrentSerialNumbers) as $serialNumberID) {
42 | unset($this->data['vyrobniCislaPrijata'][$serialNumberID]['vyrobnicislohlav']);
43 | }
44 | }
45 | $numberBranch['vyrobnicislohlav'] = 1;
46 | }
47 | $this->setDataValue('mnozMj', count($crrentSerialNumbers) + 1);
48 | return $this->addArrayToBranch($numberBranch, 'vyrobniCislaPrijata');
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/SkupinaFirem.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Skupina Firem
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/skupina-firem/properties
15 | */
16 | class SkupinaFirem extends FlexiBeeRW
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | *
21 | * @var string
22 | */
23 | public $evidence = 'skupina-firem';
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Smlouva.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright (C) 2018 Spoje.Net
8 | */
9 |
10 | namespace FlexiPeeHP;
11 |
12 | /**
13 | * Smlouva
14 | *
15 | * @link https://demo.flexibee.eu/c/demo/smlouva/properties Vlastnosti evidence
16 | */
17 | class Smlouva extends FlexiBeeRW
18 | {
19 |
20 | use Stitky;
21 | use Firma;
22 | /**
23 | * Evidence užitá objektem.
24 | *
25 | * @var string
26 | */
27 | public $evidence = 'smlouva';
28 |
29 | /**
30 | * Generuje faktury ze smluv. Pokud je nastaven sloupec id generují se pouze z této smlouvy.
31 | *
32 | * @link https://www.flexibee.eu/api/dokumentace/ref/generovani-faktur/ Interní dokumentace
33 | *
34 | * @return boolean
35 | */
36 | public function generovaniFaktur()
37 | {
38 | $this->performRequest(($this->getMyKey() ? $this->getMyKey().'/' : '' ).'generovani-faktur',
39 | 'PUT');
40 | return $this->lastResponseCode == 200;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Status.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2016-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Description of Status
13 | *
14 | * @author vitex
15 | */
16 | class Status extends FlexiBeeRO
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | * Evidence used by object
21 | *
22 | * @link https://demo.flexibee.eu/c/demo/evidence-list Přehled evidencí
23 | * @var string
24 | */
25 | public $evidence = 'status';
26 |
27 | /**
28 | * @link https://demo.flexibee.eu/devdoc/company-identifier Identifikátor firmy
29 | * @var string
30 | */
31 | public $company = '';
32 |
33 | /**
34 | * Default Line Prefix.
35 | *
36 | * @var string
37 | */
38 | public $prefix = '';
39 |
40 | /**
41 | * FlexiBee status
42 | *
43 | * @param mixed $init mostly ignored
44 | * @param array $options not used at all
45 | */
46 | public function __construct($init = null, $options = [])
47 | {
48 | parent::__construct($init, $options);
49 | $this->takeData($this->getFlexiData('/'.$this->evidence));
50 | }
51 |
52 | /**
53 | * Return the same response format for one and multiplete results
54 | *
55 | * @param array $responseRaw
56 | * @return array
57 | */
58 | public function unifyResponseFormat($responseRaw)
59 | {
60 | if (array_key_exists('status', $responseRaw)) {
61 | $response = $responseRaw['status'];
62 | } else {
63 | $response = $responseRaw;
64 | }
65 | return $response;
66 | }
67 |
68 | /**
69 | * Status has no relations
70 | *
71 | * @return null
72 | */
73 | public function getVazby($id = null)
74 | {
75 | throw new \Exception(_('Status has no relations'));
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Stitky.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2018 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Add for Objects use with "firma" data column
13 | * @author Vítězslav Dvořák
14 | */
15 | trait Stitky
16 | {
17 |
18 | /**
19 | * Get all labels for current record
20 | *
21 | * @return array
22 | */
23 | public function getLabels()
24 | {
25 | return Stitek::listToArray($this->getDataValue('stitky'));
26 | }
27 |
28 | /**
29 | * Set one of availble Labels for current record
30 | *
31 | * @param string $label
32 | *
33 | * @return boolean Operation success
34 | */
35 | public function setLabel($label)
36 | {
37 | $this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky' => $label]);
38 | return $this->lastResponseCode == 201;
39 | }
40 |
41 | /**
42 | * UnSet Label for Current Object record
43 | *
44 | * @param string|array $label(s) To Remove
45 | *
46 | * @return boolean success result ?
47 | */
48 | public function unsetLabel($labelsToRemove)
49 | {
50 | $this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky@removeAll' => 'true',
51 | 'stitky' => array_diff_key($this->getLabels($this),
52 | Stitek::listToArray($labelsToRemove))]);
53 | return $this->lastResponseCode == 201;
54 | }
55 |
56 | /**
57 | * UnSet all Labels for Current Object record
58 | *
59 | * @return boolean success result ?
60 | */
61 | public function unsetLabels()
62 | {
63 | $this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky@removeAll' => 'true']);
64 | return $this->lastResponseCode == 201;
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Strom.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Obecný Strom
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/strom/properties vlastnosti evidence
15 | */
16 | class Strom extends FlexiBeeRW
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | *
21 | * @var string
22 | */
23 | public $evidence = 'strom';
24 |
25 | /**
26 | * Sloupeček se jménem záznamu
27 | *
28 | * @var string
29 | */
30 | public $nameColumn = 'nazev';
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/StromCenik.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Strom Položek ceníku
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/strom-cenik/properties Vlastnosti evidence
15 | */
16 | class StromCenik extends FlexiBeeRW
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | *
21 | * @var string
22 | */
23 | public $evidence = 'strom-cenik';
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Sum.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2018-2019 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Add for evidencies with Summary support
13 | * @author Vítězslav Dvořák
14 | */
15 | trait Sum
16 | {
17 |
18 | /**
19 | * Vrací z FlexiBee sumaci i podle podmínek.
20 | *
21 | * @param array $conditions pole podmínek nebo ID záznamu
22 | *
23 | * @return array
24 | */
25 | public function getSumFromFlexibee($conditions = [])
26 | {
27 | $flexiData = $this->getFlexiData('$sum', $conditions);
28 | return empty($flexiData) ? null : $flexiData['sum'];
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/UcetniObdobi.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Class for Accounting period handling.
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/ucetni-obdobi/properties Položky evidence
15 | * @author vitex
16 | */
17 | class UcetniObdobi extends FlexiBeeRW
18 | {
19 | /**
20 | * Evidence FlexiBee
21 | * @var string
22 | */
23 | public $evidence = 'ucetni-obdobi';
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/VyrobniCislo.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Výrobní číslo
13 | *
14 | * @link https://demo.flexibee.eu/c/demo/vyrobni-cislo/properties položky evidence
15 | */
16 | class VyrobniCislo extends FlexiBeeRW
17 | {
18 | /**
19 | * Evidence užitá objektem.
20 | *
21 | * @var string
22 | */
23 | public $evidence = 'vyrobni-cislo';
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Zavazek.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2015-2019 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 | /**
11 | * Description of Zavazek
12 | *
13 | * @author Vítězslav Dvořák
14 | */
15 | class Zavazek extends \FlexiPeeHP\FlexiBeeRW
16 | {
17 | use Stitky;
18 | use Firma;
19 | use Sum;
20 |
21 | public $evidence = 'zavazek';
22 | }
23 |
--------------------------------------------------------------------------------
/src/FlexiPeeHP/Zurnal.php:
--------------------------------------------------------------------------------
1 |
6 | * @copyright (C) 2017 Spoje.Net
7 | */
8 |
9 | namespace FlexiPeeHP;
10 |
11 | /**
12 | * Žurnál změn
13 | * Journal of Changes
14 | *
15 | * @link https://demo.flexibee.eu/c/demo/adresar/properties položky evidence
16 | */
17 | class Zurnal extends FlexiBeeRO
18 | {
19 | /**
20 | * Evidence užitá objektem.
21 | *
22 | * @var string
23 | */
24 | public $evidence = 'zurnal';
25 |
26 | /**
27 | *
28 | * @var array
29 | */
30 | public static $evidenceToDb = ['faktura-vydana' => 'ddoklfak'];
31 |
32 | /**
33 | * Class for read only interaction with FlexiBee.
34 | *
35 | * @param mixed $init default record id or initial data
36 | * @param array $options Connection settings and other options override
37 | */
38 | public function __construct($init = null, $options = [])
39 | {
40 | parent::__construct($init, $options);
41 | foreach (EvidenceList::$evidences as $evidenceName => $evidenceProperties) {
42 | if (array_key_exists('dbName', $evidenceProperties)) {
43 | self::$evidenceToDb[$evidenceName] = $evidenceProperties['dbName'];
44 | }
45 | }
46 | }
47 |
48 | /**
49 | * obtain all record changes array
50 | *
51 | * Note: Do not use this method in production environment!
52 | *
53 | * If you have no other choice pleas add indexes into wzurnal
54 | * postgesql table:
55 | *
56 | * CREATE INDEX CONCURRENTLY tname_index ON wzurnal (tabulka);
57 | * CREATE INDEX CONCURRENTLY rid_index ON wzurnal (idZaznamu);
58 | *
59 | * @param FlexiBeeRO $object
60 | * @return array changes history
61 | */
62 | public function getAllChanges($object)
63 | {
64 | $changesArray = [];
65 |
66 | $evidence = $object->getEvidence();
67 | if (array_key_exists($evidence, self::$evidenceToDb)) {
68 | $dbTable = self::$evidenceToDb[$evidence];
69 | $changes = $this->getColumnsFromFlexibee('*',
70 | ['tabulka' => $dbTable, 'idZaznamu' => $object->getMyKey()]);
71 |
72 | foreach ($changes as $change) {
73 | $changesArray[$change['datCas']][$change['sloupec']] = $change;
74 | }
75 | }
76 | return $changesArray;
77 | }
78 |
79 | /**
80 | * obtain last change array
81 | *
82 | * @param FlexiBeeRO $object
83 | * @return array Old/New values pairs
84 | */
85 | public function getLastChange($object)
86 | {
87 | $lastChange = null;
88 | $allChanges = $this->getAllChanges($object);
89 | if (count($allChanges)) {
90 | $lastChange = end($allChanges);
91 | }
92 | return $lastChange;
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/src/demo.php:
--------------------------------------------------------------------------------
1 | addItem(new \Ease\TWB\Container(new \Ease\Html\H1Tag(_('FlexiBee Connection Test'))));
9 |
10 | $statuser = new Status();
11 |
12 | $infoTable = new \Ease\Html\TableTag(null, ['class' => 'table']);
13 |
14 | $infoTable->addRowColumns(['URL', $statuser->apiURL]);
15 |
16 | foreach ($statuser->getData() as $property => $value) {
17 | $infoTable->addRowColumns([$property, $value]);
18 | }
19 |
20 | $container->addItem(new \Ease\TWB\Panel(_('FlexiBee server info'), 'info',
21 | $infoTable));
22 |
23 |
24 | $company = new Company();
25 | $info = $company->getAllFromFlexibee();
26 |
27 | if (isset($info) && count($info)) {
28 | foreach ($info as $companyInfo) {
29 | $return[] = new \Ease\TWB\LinkButton(constant('FLEXIBEE_URL').'/c/'.$companyInfo['dbNazev'],
30 | $companyInfo['nazev'], 'success');
31 | }
32 | } else {
33 | $return = new \Ease\TWB\LinkButton(constant('FLEXIBEE_URL'),
34 | _('Chyba komunikace'), 'danger');
35 | }
36 |
37 | $button = $container->addItem($return);
38 |
39 |
40 | if (isset($info['message'])) {
41 | if ($info['success'] == 'true') {
42 | $button->addItem(new \Ease\TWB\Label('success', $info['message']));
43 | } else {
44 | $button->addItem(new \Ease\TWB\Label('warning', $info['message']));
45 | }
46 | }
47 |
48 | $changer = new Changes();
49 | $changer->enable();
50 |
51 | if ($changer->getStatus()) {
52 | $changer->addStatusMessage(_('ChangesApi Povoleno'));
53 | $container->addItem(new \Ease\TWB\Label('success', _('ChangesAPI povoleno')));
54 | } else {
55 | $container->addItem(new \Ease\TWB\Label('warning', _('ChangesAPI zakázáno')));
56 | }
57 |
58 |
59 | $oPage->draw();
60 |
--------------------------------------------------------------------------------
/static/Properties.certifikacni-autorita.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdAutCert","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"uzivNazev":{"showToUser":"true","propertyName":"uzivNazev","dbName":"UzivNazev","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"certNazev":{"showToUser":"true","propertyName":"certNazev","dbName":"CertNazev","name":"N\u00e1zev certifik\u00e1tu","title":"N\u00e1zev certifik\u00e1tu","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"certOrgan":{"showToUser":"true","propertyName":"certOrgan","dbName":"CertOrgan","name":"Organizace certifik\u00e1tu","title":"Organizace certifik\u00e1tu","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.cislo-baliku.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdCisloBal","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"cislo":{"showToUser":"true","propertyName":"cislo","dbName":"Cislo","name":"\u010c\u00edslo","title":"\u010c\u00edslo","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"100","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"formaDopravy":{"showToUser":"true","propertyName":"formaDopravy","dbName":"IdFormaDopravy","name":"Forma dopravy","title":"Forma dopravy","type":"relation","fkName":"Formy dopravy 20038","fkEvidencePath":"forma-dopravy","fkEvidenceType":"FORMA_DOPRAVY","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/forma-dopravy","links":null},"doklFak":{"showToUser":"true","propertyName":"doklFak","dbName":"IdDoklFak","name":"Doklad faktury","title":"Doklad faktury","type":"relation","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","evidenceVariants":{"evidenceVariant":["zavazek","prodejka","pohledavka","faktura-vydana","faktura-prijata"]},"links":null},"doklSklad":{"showToUser":"true","propertyName":"doklSklad","dbName":"IdDoklSklad","name":"P\u0159\u00edjemka\/v\u00fddejka","title":"P\u0159\u00edjemka\/v\u00fddejka","type":"relation","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","evidenceVariants":{"evidenceVariant":"skladovy-pohyb"},"links":null},"doklObch":{"showToUser":"true","propertyName":"doklObch","dbName":"IdDoklObch","name":"Obchodn\u00ed doklad","title":"Obchodn\u00ed doklad","type":"relation","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","evidenceVariants":{"evidenceVariant":["nabidka-prijata","poptavka-vydana","objednavka-prijata","nabidka-vydana","poptavka-prijata","objednavka-vydana"]},"links":null}}
--------------------------------------------------------------------------------
/static/Properties.custom-button.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"Idwcustbutton","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"url":{"showToUser":"true","propertyName":"url","dbName":"Url","name":"Url","title":"Url","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"title":{"showToUser":"true","propertyName":"title","dbName":"Title","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"description":{"showToUser":"true","propertyName":"description","dbName":"Description","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"evidence":{"showToUser":"true","propertyName":"evidence","dbName":"Evidence","name":"Evidence","title":"Evidence","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"location":{"showToUser":"true","propertyName":"location","dbName":"Location","name":"Um\u00edst\u011bn\u00ed","title":"Um\u00edst\u011bn\u00ed","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"browser":{"showToUser":"true","propertyName":"browser","dbName":"Browser","name":"Volba prohl\u00ed\u017ee\u010de","title":"Volba prohl\u00ed\u017ee\u010de","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.dashboard-sharing.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"Idwdashboardsharing","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"hidden":{"showToUser":"true","propertyName":"hidden","dbName":"Hidden","name":"Skryt\u00fd","title":"Skryt\u00fd","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"priority":{"showToUser":"true","propertyName":"priority","dbName":"Priority","name":"Po\u0159ad\u00ed","title":"Po\u0159ad\u00ed","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"user":{"showToUser":"true","propertyName":"user","dbName":"Iduser","name":"U\u017eivatel","title":"U\u017eivatel","type":"relation","fkName":"Osoby a u\u017eivatel\u00e9 20024","fkEvidencePath":"uzivatel","fkEvidenceType":"UZIVATELE","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"254","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"true","url":"http:\/\/demo.flexibee.eu\/c\/demo\/uzivatel","links":null},"dashboardpanel":{"showToUser":"true","propertyName":"dashboardpanel","dbName":"Iddashboardpanel","name":"Dashboard panel","title":"Dashboard panel","type":"relation","fkName":"Spr\u00e1va p\u0159ehled\u016f 30033","fkEvidencePath":"dashboard-panel","fkEvidenceType":"DASHBOARD_PANEL","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/dashboard-panel","links":null}}
--------------------------------------------------------------------------------
/static/Properties.forma-uhrady-zauctovani.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdFormaUhradyZauc","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"formaUhradyCis":{"showToUser":"true","propertyName":"formaUhradyCis","dbName":"IdFormaUhradyCis","name":"Forma \u00fahrady","title":"Forma \u00fahrady","type":"relation","fkName":"Formy \u00fahrady 20033","fkEvidencePath":"forma-uhrady","fkEvidenceType":"FORMA_UHRADY","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/forma-uhrady","links":null},"typDokl":{"showToUser":"true","propertyName":"typDokl","dbName":"IdTypDokl","name":"Typ dokladu","title":"Typ dokladu","type":"relation","fkName":"Typy doklad\u016f 30006","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","evidenceVariants":{"evidenceVariant":["typ-faktury-prijate","typ-nabidky-vydane","typ-banka","typ-pokladni-pohyb","typ-skladovy-pohyb","typ-prodejky","typ-vzajemnych-zapoctu","typ-pohledavky","typ-interniho-dokladu","typ-poptavky-vydane","typ-objednavky-prijate","typ-poptavky-prijate","typ-objednavky-vydane","typ-zavazku","typ-nabidky-prijate","typ-faktury-vydane"]},"links":null},"kasa":{"showToUser":"true","propertyName":"kasa","dbName":"IdKasa","name":"Prodejn\u00ed kasa","title":"Prodejn\u00ed kasa","type":"relation","fkName":"Typy doklad\u016f 30006","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","evidenceVariants":{"evidenceVariant":["typ-faktury-prijate","typ-nabidky-vydane","typ-banka","typ-pokladni-pohyb","typ-skladovy-pohyb","typ-prodejky","typ-vzajemnych-zapoctu","typ-pohledavky","typ-interniho-dokladu","typ-poptavky-vydane","typ-objednavky-prijate","typ-poptavky-prijate","typ-objednavky-vydane","typ-zavazku","typ-nabidky-prijate","typ-faktury-vydane"]},"links":null}}
--------------------------------------------------------------------------------
/static/Properties.intrastat-kurz.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdKurzy","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiOdData":{"showToUser":"true","propertyName":"platiOdData","dbName":"PlatiOdData","name":"Datum","title":"Datum","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"nbStred":{"showToUser":"true","propertyName":"nbStred","dbName":"NbStred","name":"Kurz","title":"Kurz","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"kurzMnozstvi":{"showToUser":"true","propertyName":"kurzMnozstvi","dbName":"KurzMnozstvi","name":"Mno\u017estv\u00ed","title":"Mno\u017estv\u00ed","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"mena":{"showToUser":"true","propertyName":"mena","dbName":"IdMeny","name":"M\u011bna","title":"M\u011bna","type":"relation","fkName":"M\u011bny 20005","fkEvidencePath":"mena","fkEvidenceType":"MENA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/mena","links":null}}
--------------------------------------------------------------------------------
/static/Properties.konst-symbol.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdKonSym","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevA":{"showToUser":"true","propertyName":"nazevA","dbName":"NazevA","name":"N\u00e1zev EN","title":"N\u00e1zev EN","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevB":{"showToUser":"true","propertyName":"nazevB","dbName":"NazevB","name":"N\u00e1zev DE","title":"N\u00e1zev DE","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevC":{"showToUser":"true","propertyName":"nazevC","dbName":"NazevC","name":"N\u00e1zev FR","title":"N\u00e1zev FR","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.kurz-pro-cenotvorbu.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdKurzy","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiOdData":{"showToUser":"true","propertyName":"platiOdData","dbName":"PlatiOdData","name":"Datum","title":"Datum","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"nbStred":{"showToUser":"true","propertyName":"nbStred","dbName":"NbStred","name":"Kurz","title":"Kurz","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"kurzMnozstvi":{"showToUser":"true","propertyName":"kurzMnozstvi","dbName":"KurzMnozstvi","name":"Mno\u017estv\u00ed","title":"Mno\u017estv\u00ed","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"mena":{"showToUser":"true","propertyName":"mena","dbName":"IdMeny","name":"M\u011bna","title":"M\u011bna","type":"relation","fkName":"M\u011bny 20005","fkEvidencePath":"mena","fkEvidenceType":"MENA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/mena","links":null}}
--------------------------------------------------------------------------------
/static/Properties.kurz.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdKurzy","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiOdData":{"showToUser":"true","propertyName":"platiOdData","dbName":"PlatiOdData","name":"Datum","title":"Datum","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"nbStred":{"showToUser":"true","propertyName":"nbStred","dbName":"NbStred","name":"Kurz","title":"Kurz","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"kurzMnozstvi":{"showToUser":"true","propertyName":"kurzMnozstvi","dbName":"KurzMnozstvi","name":"Mno\u017estv\u00ed","title":"Mno\u017estv\u00ed","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","digits":"19","decimal":"6","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"mena":{"showToUser":"true","propertyName":"mena","dbName":"IdMeny","name":"M\u011bna","title":"M\u011bna","type":"relation","fkName":"M\u011bny 20005","fkEvidencePath":"mena","fkEvidenceType":"MENA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/mena","links":null}}
--------------------------------------------------------------------------------
/static/Properties.mapovani-skladu.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdMapSklad","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"stredisko":{"showToUser":"true","propertyName":"stredisko","dbName":"IdStred","name":"St\u0159edisko","title":"St\u0159edisko","type":"relation","fkName":"St\u0159ediska 20001","fkEvidencePath":"stredisko","fkEvidenceType":"STREDISKO","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/stredisko","links":null},"skupZboz":{"showToUser":"true","propertyName":"skupZboz","dbName":"IdSkupZboz","name":"Skupina zbo\u017e\u00ed","title":"Skupina zbo\u017e\u00ed","type":"relation","fkName":"Skupiny zbo\u017e\u00ed a materi\u00e1lu 6001","fkEvidencePath":"skupina-zbozi","fkEvidenceType":"SKUPINA_ZBOZI","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/skupina-zbozi","links":null},"cenik":{"showToUser":"true","propertyName":"cenik","dbName":"IdCenik","name":"Cen\u00edk","title":"Cen\u00edk","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null},"sklad":{"showToUser":"true","propertyName":"sklad","dbName":"IdSklad","name":"Sklad","title":"Sklad","type":"relation","fkName":"Seznam sklad\u016f 7020","fkEvidencePath":"sklad","fkEvidenceType":"SKLAD","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/sklad","links":null}}
--------------------------------------------------------------------------------
/static/Properties.osoba-hlavicka.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdOsobaHlav","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"osbCis":{"showToUser":"true","propertyName":"osbCis","dbName":"OsbCis","name":"Osobn\u00ed \u010d\u00edslo","title":"Osobn\u00ed \u010d\u00edslo","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"prijmeni":{"showToUser":"true","propertyName":"prijmeni","dbName":"Prijmeni","name":"P\u0159\u00edjmen\u00ed","title":"P\u0159\u00edjmen\u00ed","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"jmeno":{"showToUser":"true","propertyName":"jmeno","dbName":"Jmeno","name":"Jm\u00e9no","title":"Jm\u00e9no","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"titul":{"showToUser":"true","propertyName":"titul","dbName":"Titul","name":"Titul","title":"Titul","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.podobne-zbozi.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdPodobne","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"cenikOtec":{"showToUser":"true","propertyName":"cenikOtec","dbName":"IdCenikOtec","name":"Cen\u00edkov\u00e1 polo\u017eka","title":"Cen\u00edkov\u00e1 polo\u017eka","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null},"cenik":{"showToUser":"true","propertyName":"cenik","dbName":"IdCenik","name":"Podobn\u00e9","title":"Podobn\u00e9","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null}}
--------------------------------------------------------------------------------
/static/Properties.poplatek.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdPoplatek","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"mnozMj":{"showToUser":"true","propertyName":"mnozMj","dbName":"MnozMj","name":"Mno\u017estv\u00ed","title":"Mno\u017estv\u00ed","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","digits":"19","decimal":"6","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"cenikOtec":{"showToUser":"true","propertyName":"cenikOtec","dbName":"IdCenikOtec","name":"Cen\u00edkov\u00e1 polo\u017eka","title":"Cen\u00edkov\u00e1 polo\u017eka","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null},"cenik":{"showToUser":"true","propertyName":"cenik","dbName":"IdCenik","name":"Poplatek","title":"Poplatek","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null}}
--------------------------------------------------------------------------------
/static/Properties.prace-mesic.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdPraceStred","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"hodin":{"showToUser":"true","propertyName":"hodin","dbName":"Hodin","name":"Hodin","title":"Hodin","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","digits":"6","decimal":"2","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"osoba":{"showToUser":"true","propertyName":"osoba","dbName":"IdOsoba","name":"Osoba","title":"Osoba","type":"relation","fkName":"Hlavi\u010dky osob 58101","fkEvidencePath":"osoba-hlavicka","fkEvidenceType":"OSOBA_HLAVICKA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/osoba-hlavicka","links":null},"stredisko":{"showToUser":"true","propertyName":"stredisko","dbName":"IdStredisko","name":"St\u0159edisko","title":"St\u0159edisko","type":"relation","fkName":"St\u0159ediska 20001","fkEvidencePath":"stredisko","fkEvidenceType":"STREDISKO","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/stredisko","links":null},"zakazka":{"showToUser":"true","propertyName":"zakazka","dbName":"IdZakazka","name":"Zak\u00e1zka","title":"Zak\u00e1zka","type":"relation","fkName":"Zak\u00e1zky 20002","fkEvidencePath":"zakazka","fkEvidenceType":"ZAKAZKA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/zakazka","links":null},"cinnost":{"showToUser":"true","propertyName":"cinnost","dbName":"IdCinnost","name":"\u010cinnost","title":"\u010cinnost","type":"relation","fkName":"\u010cinnost 20013","fkEvidencePath":"cinnost","fkEvidenceType":"CINNOST","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/cinnost","links":null}}
--------------------------------------------------------------------------------
/static/Properties.pracovni-pomer-hlavicka.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdPracPomHlav","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"osoba":{"showToUser":"true","propertyName":"osoba","dbName":"IdOsoba","name":"Osoba","title":"Osoba","type":"relation","fkName":"Hlavi\u010dky osob 58101","fkEvidencePath":"osoba-hlavicka","fkEvidenceType":"OSOBA_HLAVICKA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/osoba-hlavicka","links":null}}
--------------------------------------------------------------------------------
/static/Properties.pravo-viditelnosti.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdDataPrava","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"idUzivatel":{"showToUser":"true","propertyName":"idUzivatel","dbName":"IdUzivatel","name":"u\u017eivatel","title":"u\u017eivatel","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"typDatK":{"showToUser":"true","propertyName":"typDatK","dbName":"TypDatK","name":"typ dat","title":"typ dat","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"modulK":{"showToUser":"true","propertyName":"modulK","dbName":"ModulK","name":"modul","title":"modul","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"idObjektu":{"showToUser":"true","propertyName":"idObjektu","dbName":"IdObjektu","name":"objekt","title":"objekt","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"editovat":{"showToUser":"true","propertyName":"editovat","dbName":"Editovat","name":"editovat","title":"editovat","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.prislustenstvi.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdPrislusenstvi","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"cenikOtec":{"showToUser":"true","propertyName":"cenikOtec","dbName":"IdCenikOtec","name":"Cen\u00edkov\u00e1 polo\u017eka","title":"Cen\u00edkov\u00e1 polo\u017eka","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null},"cenik":{"showToUser":"true","propertyName":"cenik","dbName":"IdCenik","name":"P\u0159\u00edslu\u0161enstv\u00ed","title":"P\u0159\u00edslu\u0161enstv\u00ed","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null}}
--------------------------------------------------------------------------------
/static/Properties.sady-a-komplety.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdSady","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"mnozMj":{"showToUser":"true","propertyName":"mnozMj","dbName":"MnozMj","name":"Mno\u017estv\u00ed","title":"Mno\u017estv\u00ed","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","digits":"19","decimal":"6","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"cenikSada":{"showToUser":"true","propertyName":"cenikSada","dbName":"IdCenikSada","name":"Sada","title":"Sada","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null},"cenik":{"showToUser":"true","propertyName":"cenik","dbName":"IdCenik","name":"Cen\u00edkov\u00e1 polo\u017eka","title":"Cen\u00edkov\u00e1 polo\u017eka","type":"relation","fkName":"Cen\u00edk 6003","fkEvidencePath":"cenik","fkEvidenceType":"CENIK","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/cenik","links":null}}
--------------------------------------------------------------------------------
/static/Properties.sazba-dph.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdSazbyDph","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"typSzbDphK":{"showToUser":"true","propertyName":"typSzbDphK","dbName":"TypSzbDphK","name":"Sazba DPH","title":"Sazba DPH","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"typSzbDph.dphOsv","$":"osvobozeno"},{"@key":"typSzbDph.dphSniz","$":"sn\u00ed\u017een\u00e1"},{"@key":"typSzbDph.dphSniz2","$":"2. sn\u00ed\u017een\u00e1"},{"@key":"typSzbDph.dphZakl","$":"z\u00e1kladn\u00ed"}]}},"szbDph":{"showToUser":"true","propertyName":"szbDph","dbName":"SzbDph","name":"DPH [%]","title":"DPH [%]","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","digits":"6","decimal":"2","minValue":"0.0","maxValue":"1000.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiOdData":{"showToUser":"true","propertyName":"platiOdData","dbName":"PlatiOdData","name":"Plat\u00ed od data","title":"Plat\u00ed od data","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiDoData":{"showToUser":"true","propertyName":"platiDoData","dbName":"PlatiDoData","name":"Plat\u00ed do data","title":"Plat\u00ed do data","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"stat":{"showToUser":"true","propertyName":"stat","dbName":"IdStatu","name":"St\u00e1t","title":"St\u00e1t","type":"relation","fkName":"St\u00e1ty 20004","fkEvidencePath":"stat","fkEvidenceType":"STAT","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"3","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/stat","links":null}}
--------------------------------------------------------------------------------
/static/Properties.setting-store.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdSetting","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"klic":{"showToUser":"true","propertyName":"klic","dbName":"Klic","name":"Kl\u00ed\u010d","title":"Kl\u00ed\u010d","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"hodnota":{"showToUser":"true","propertyName":"hodnota","dbName":"Hodnota","name":"Hodnota","title":"Hodnota","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"uzivatelId":{"showToUser":"true","propertyName":"uzivatelId","dbName":"IdUzivatel","name":"U\u017eivatel","title":"U\u017eivatel","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.smena.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdSmeny","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"rok":{"showToUser":"true","propertyName":"rok","dbName":"Rok","name":"Rok","title":"Rok","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"mesic":{"showToUser":"true","propertyName":"mesic","dbName":"Mesic","name":"M\u011bs\u00edc","title":"M\u011bs\u00edc","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"planovane":{"showToUser":"true","propertyName":"planovane","dbName":"Planovane","name":"Pl\u00e1novan\u00e9 sm\u011bny","title":"Pl\u00e1novan\u00e9 sm\u011bny","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"skutecne":{"showToUser":"true","propertyName":"skutecne","dbName":"Skutecne","name":"Skute\u010dn\u011b odpracov\u00e1no","title":"Skute\u010dn\u011b odpracov\u00e1no","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"skupOsob":{"showToUser":"true","propertyName":"skupOsob","dbName":"IdSkupOsob","name":"Skupina osob","title":"Skupina osob","type":"relation","fkName":"Skupiny osob 58116","fkEvidencePath":"skupina-osob","fkEvidenceType":"SKUPINA_OSOB","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/skupina-osob","links":null},"osoba":{"showToUser":"true","propertyName":"osoba","dbName":"IdOsoba","name":"Osoba","title":"Osoba","type":"relation","fkName":"Hlavi\u010dky osob 58101","fkEvidencePath":"osoba-hlavicka","fkEvidenceType":"OSOBA_HLAVICKA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/osoba-hlavicka","links":null},"pracPom":{"showToUser":"true","propertyName":"pracPom","dbName":"IdPracPom","name":"Pracovn\u00ed pom\u011br","title":"Pracovn\u00ed pom\u011br","type":"relation","fkName":"Pracovn\u00ed pom\u011br 58112","fkEvidencePath":"pracovni-pomer-hlavicka","fkEvidenceType":"PRACOVNI_POMER_HLAVICKA","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/vitexsoftware.flexibee.eu:5434\/c\/flexipeehp\/pracovni-pomer-hlavicka","links":null}}
--------------------------------------------------------------------------------
/static/Properties.stav-zakazky.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdStavZakazky","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevA":{"showToUser":"true","propertyName":"nazevA","dbName":"NazevA","name":"N\u00e1zev EN","title":"N\u00e1zev EN","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevB":{"showToUser":"true","propertyName":"nazevB","dbName":"NazevB","name":"N\u00e1zev DE","title":"N\u00e1zev DE","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevC":{"showToUser":"true","propertyName":"nazevC","dbName":"NazevC","name":"N\u00e1zev FR","title":"N\u00e1zev FR","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"druhStavuZakK":{"showToUser":"true","propertyName":"druhStavuZakK","dbName":"DruhStavuZakK","name":"Druh stavu","title":"Druh stavu","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"druhStavuZakazky.ziskavame","$":"Z\u00edsk\u00e1v\u00e1me ji"},{"@key":"druhStavuZakazky.mame","$":"M\u00e1me ji"},{"@key":"druhStavuZakazky.hotovo","$":"Hotovo"},{"@key":"druhStavuZakazky.storno","$":"Stornov\u00e1no"}]}}}
--------------------------------------------------------------------------------
/static/Properties.strom-cenik.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"Idvazuzel","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"idZaznamu":{"showToUser":"true","propertyName":"idZaznamu","dbName":"Idzaznamu","name":"","title":"","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"uzel":{"showToUser":"true","propertyName":"uzel","dbName":"Iduzlu","name":"Strom","title":"Strom","type":"relation","fkName":"Uzel stromu 30013","fkEvidencePath":"strom","fkEvidenceType":"STROM","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/strom","links":null}}
--------------------------------------------------------------------------------
/static/Properties.subjekt.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"Idsubjekt","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"typVztahuK":{"showToUser":"true","propertyName":"typVztahuK","dbName":"TypVztahuK","name":"Typ vztahu","title":"Typ vztahu","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"gdprTypVztahu.spravce","$":"Spr\u00e1vce"},{"@key":"gdprTypVztahu.spolSpravce","$":"Spole\u010dn\u00ed spr\u00e1vci"},{"@key":"gdprTypVztahu.zpracovatel","$":"Zpracovatel"},{"@key":"gdprTypVztahu.subzpracovatel","$":"Subzpracovatel"},{"@key":"gdprTypVztahu.prijemce","$":"P\u0159\u00edjemce"},{"@key":"gdprTypVztahu.jedenZeZprac","$":"Jeden ze zpracovatel\u016f"},{"@key":"gdprTypVztahu.zastupce","$":"Z\u00e1stupce"}]}},"definice":{"showToUser":"true","propertyName":"definice","dbName":"Definice","name":"Definice","title":"Definice","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"tretiZeme":{"showToUser":"true","propertyName":"tretiZeme","dbName":"TretiZeme","name":"\u00dadaje jsou p\u0159ed\u00e1v\u00e1ny do t\u0159et\u00ed zem\u011b","title":"\u00dadaje jsou p\u0159ed\u00e1v\u00e1ny do t\u0159et\u00ed zem\u011b","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"adresar":{"showToUser":"true","propertyName":"adresar","dbName":"Idadresar","name":"Adres\u00e1\u0159","title":"Adres\u00e1\u0159","type":"relation","fkName":"Adresy firem 4002","fkEvidencePath":"adresar","fkEvidenceType":"ADRESAR","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/adresar","links":null},"definiceUcel":{"showToUser":"true","propertyName":"definiceUcel","dbName":"Iddefiniceucelu","name":"Definice \u00fa\u010delu","title":"Definice \u00fa\u010delu","type":"relation","fkName":"Definice \u00fa\u010delu 66002","fkEvidencePath":"definice-ucelu","fkEvidenceType":"DEFINICE_UCELU","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/definice-ucelu","links":null}}
--------------------------------------------------------------------------------
/static/Properties.typ-pracovniho-pomeru.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdTypPracPom","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevA":{"showToUser":"true","propertyName":"nazevA","dbName":"NazevA","name":"N\u00e1zev EN","title":"N\u00e1zev EN","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevB":{"showToUser":"true","propertyName":"nazevB","dbName":"NazevB","name":"N\u00e1zev DE","title":"N\u00e1zev DE","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevC":{"showToUser":"true","propertyName":"nazevC","dbName":"NazevC","name":"N\u00e1zev FR","title":"N\u00e1zev FR","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.ucetni-obdobi.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdUcetObdobi","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiOdData":{"showToUser":"true","propertyName":"platiOdData","dbName":"PlatiOdData","name":"Plat\u00ed od data","title":"Plat\u00ed od data","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiDoData":{"showToUser":"true","propertyName":"platiDoData","dbName":"PlatiDoData","name":"Plat\u00ed do data","title":"Plat\u00ed do data","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"zmenaZaver":{"showToUser":"true","propertyName":"zmenaZaver","dbName":"ZmenaZaver","name":"Zm\u011bna po uz\u00e1v\u011brce","title":"Zm\u011bna po uz\u00e1v\u011brce","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"chybaPreceneni":{"showToUser":"true","propertyName":"chybaPreceneni","dbName":"ChybaPreceneni","name":"Chyba p\u0159i p\u0159ecen\u011bn\u00ed","title":"Chyba p\u0159i p\u0159ecen\u011bn\u00ed","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"rokProRadu":{"showToUser":"true","propertyName":"rokProRadu","dbName":"RokProRadu","name":"K\u00f3d roku pro \u0159adu","title":"K\u00f3d roku pro \u0159adu","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.umisteni.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdUmisteni","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevA":{"showToUser":"true","propertyName":"nazevA","dbName":"NazevA","name":"N\u00e1zev EN","title":"N\u00e1zev EN","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevB":{"showToUser":"true","propertyName":"nazevB","dbName":"NazevB","name":"N\u00e1zev DE","title":"N\u00e1zev DE","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevC":{"showToUser":"true","propertyName":"nazevC","dbName":"NazevC","name":"N\u00e1zev FR","title":"N\u00e1zev FR","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.uzivatelska-vazba.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdVazba","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"vazbaTyp":{"showToUser":"true","propertyName":"vazbaTyp","dbName":"IdVazbaTyp","name":"Typ vazby","title":"Typ vazby","type":"relation","fkName":"Typy u\u017eivatelsk\u00fdch vazeb 30027","fkEvidencePath":"typ-uzivatelske-vazby","fkEvidenceType":"VAZBA_TYP","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","url":"http:\/\/demo.flexibee.eu\/c\/demo\/typ-uzivatelske-vazby","links":null},"modul":{"showToUser":"true","propertyName":"modul","name":"Modul","title":"Modul","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"20","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"castka":{"showToUser":"true","propertyName":"castka","name":"\u010c\u00e1stka","title":"\u010c\u00e1stka","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","digits":"15","decimal":"2","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"datum":{"showToUser":"true","propertyName":"datum","name":"Datum","title":"Datum","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis vazby","title":"Popis vazby","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka k vazb\u011b","title":"Pozn\u00e1mka k vazb\u011b","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.vazba.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdVazby","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"typVazbyK":{"showToUser":"true","propertyName":"typVazbyK","dbName":"TypVazbyK","name":"Typ vazby","title":"Typ vazby","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"typVazbyDokl.uhrada","$":"\u00dahrada"},{"@key":"typVazbyDokl.uhradaKR","$":"\u00dahrada kurzov\u00e9ho rozd\u00edlu"},{"@key":"typVazbyDokl.KR","$":"Kurzov\u00fd rozd\u00edl"},{"@key":"typVazbyDokl.uhradaZB","$":"\u00dahrada zbytku"},{"@key":"typVazbyDokl.ZB","$":"Zbytek"},{"@key":"typVazbyDokl.uhradaPP","$":"\u00dahrada p\u0159eplatku"},{"@key":"typVazbyDokl.PP","$":"P\u0159eplatek"},{"@key":"typVazbyDokl.preceneni","$":"P\u0159ecen\u011bn\u00ed"},{"@key":"typVazbyDokl.hlavaSkl","$":"Skladov\u00fd doklad"},{"@key":"typVazbyDokl.polozkaSkl","$":"Skladov\u00e1 polo\u017eka"},{"@key":"typVazbyDokl.polozkaSklSada","$":"Skladov\u00e1 polo\u017eka (rozpad sady)"},{"@key":"typVazbyDokl.hlavaSklKus","$":"Skladov\u00fd doklad (rozpad kusovn\u00edku)"},{"@key":"typVazbyDokl.polozkaSklKus","$":"Skladov\u00e1 polo\u017eka (rozpad kusovn\u00edku)"},{"@key":"typVazbyDokl.hlavaSklPrevod","$":"Skladov\u00fd doklad (p\u0159evodka)"},{"@key":"typVazbyDokl.polozkaSklPrevod","$":"Skladov\u00e1 polo\u017eka (p\u0159evodka)"},{"@key":"typVazbyDokl.odpocetZALOHY","$":"Odpo\u010det z\u00e1lohy"},{"@key":"typVazbyDokl.odpocetZDD","$":"Odpo\u010det ZDD"},{"@key":"typVazbyDokl.vazbaZDD","$":"Vazba ZDD"},{"@key":"typVazbyDokl.uhradaZALOHY","$":"\u00dahrada z\u00e1lohy"},{"@key":"typVazbyDokl.odpocetPolZALOHY","$":"Odpo\u010det z\u00e1lohov\u00e9 polo\u017eky"},{"@key":"typVazbyDokl.obchod_obchod_hla","$":"Obchodn\u00ed vazba"},{"@key":"typVazbyDokl.obchod_obchod_pol","$":"Obchodn\u00ed vazba polo\u017eky"},{"@key":"typVazbyDokl.obchod_faktura_hla","$":"Faktura vytvo\u0159en\u00e1 z objedn\u00e1vky"},{"@key":"typVazbyDokl.obchod_faktura_pol","$":"Polo\u017eka faktury vytvo\u0159en\u00e1 z objedn\u00e1vky"},{"@key":"typVazbyDokl.obchod_zaloha_hla","$":"Z\u00e1loha vytvo\u0159en\u00e1 z objedn\u00e1vky"},{"@key":"typVazbyDokl.obchod_zaloha_pol","$":"Polo\u017eka z\u00e1lohy vytvo\u0159en\u00e1 z objedn\u00e1vky"},{"@key":"typVazbyDokl.obchod_sklad_hla","$":"Skladov\u00fd doklad vytvo\u0159en\u00fd z objedn\u00e1vky"},{"@key":"typVazbyDokl.obchod_sklad_pol","$":"Polo\u017eka skladov\u00e9ho dokladu vytvo\u0159en\u00e1 z objedn\u00e1vky"},{"@key":"typVazbyDokl.zaucProdejky","$":"Za\u00fa\u010dtov\u00e1n\u00ed prodejky"},{"@key":"typVazbyDokl.nakladVynos","$":"Rozlo\u017een\u00ed n\u00e1klad\u016f a v\u00fdnos\u016f"},{"@key":"typVazbyDokl.hlavaDobropis","$":"Dobropis"},{"@key":"typVazbyDokl.polozkaDobropis","$":"Polo\u017eka dobropisu"},{"@key":"typVazbyDokl.uhrazovanaFaktura","$":"Uhrazovan\u00e1 faktura"},{"@key":"typVazbyDokl.uhrazujiciDoklad","$":"Uhrazuj\u00edc\u00ed doklad"},{"@key":"typVazbyDokl.odpocitavanaFaktura","$":"Odpo\u010d\u00edt\u00e1van\u00e1 faktura"}]}},"castka":{"showToUser":"true","propertyName":"castka","dbName":"Castka","name":"Sp\u00e1rovan\u00e1 \u010d\u00e1stka","title":"Sp\u00e1rovan\u00e1 \u010d\u00e1stka","type":"numeric","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","digits":"15","decimal":"2","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"storno":{"showToUser":"true","propertyName":"storno","dbName":"Storno","name":"Storno","title":"Storno","type":"logic","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.xslt.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdXslt","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"kod":{"showToUser":"true","propertyName":"kod","dbName":"Kod","name":"Zkratka","title":"Zkratka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"20","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"true","isLowerCase":"false","links":null},"nazev":{"showToUser":"true","propertyName":"nazev","dbName":"Nazev","name":"N\u00e1zev","title":"N\u00e1zev","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevA":{"showToUser":"true","propertyName":"nazevA","dbName":"NazevA","name":"N\u00e1zev EN","title":"N\u00e1zev EN","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevB":{"showToUser":"true","propertyName":"nazevB","dbName":"NazevB","name":"N\u00e1zev DE","title":"N\u00e1zev DE","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"nazevC":{"showToUser":"true","propertyName":"nazevC","dbName":"NazevC","name":"N\u00e1zev FR","title":"N\u00e1zev FR","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"poznam":{"showToUser":"true","propertyName":"poznam","dbName":"Poznam","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"popis":{"showToUser":"true","propertyName":"popis","dbName":"Popis","name":"Popis","title":"Popis","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"transformace":{"showToUser":"true","propertyName":"transformace","dbName":"Transformace","name":"Transformace","title":"Transformace","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/static/Properties.zurnal.json:
--------------------------------------------------------------------------------
1 | {"id":{"showToUser":"false","propertyName":"id","dbName":"IdZurnal","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"tabulka":{"showToUser":"true","propertyName":"tabulka","dbName":"Tabulka","name":"Tabulka","title":"Tabulka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"idZaznamu":{"showToUser":"true","propertyName":"idZaznamu","dbName":"IdZaznamu","name":"ID \u0159\u00e1dky","title":"ID \u0159\u00e1dky","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"sloupec":{"showToUser":"true","propertyName":"sloupec","dbName":"Sloupec","name":"Sloupec","title":"Sloupec","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"novaHod":{"showToUser":"true","propertyName":"novaHod","dbName":"NovaHod","name":"Nov\u00e1 hodnota","title":"Nov\u00e1 hodnota","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"staraHod":{"showToUser":"true","propertyName":"staraHod","dbName":"StaraHod","name":"P\u016fvodn\u00ed hodnota","title":"P\u016fvodn\u00ed hodnota","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"op":{"showToUser":"true","propertyName":"op","dbName":"Op","name":"Operace","title":"Operace","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"transakceK":{"showToUser":"true","propertyName":"transakceK","dbName":"TransakceK","name":"Transakce","title":"Transakce","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"uziv":{"showToUser":"true","propertyName":"uziv","dbName":"Uziv","name":"U\u017eivatel","title":"U\u017eivatel","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"false","maxLength":"63","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"datCas":{"showToUser":"true","propertyName":"datCas","dbName":"DatCas","name":"\u010cas zm\u011bny","title":"\u010cas zm\u011bny","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}}
--------------------------------------------------------------------------------
/tools/current_version.php:
--------------------------------------------------------------------------------
1 | getDataValue('version');
9 |
--------------------------------------------------------------------------------
/tools/find_undocumented_columns.php:
--------------------------------------------------------------------------------
1 | performRequest($evidence.'/properties.json');
18 | if (count($flexinfo) && array_key_exists('properties', $flexinfo)) {
19 | foreach ($flexinfo['properties']['property'] as $evidenceProperty) {
20 | $key = $evidenceProperty['propertyName'];
21 | $useKeywords[$key] = $evidenceProperty;
22 | $useKeywords[$key]['name'] = $evidenceProperty['name'];
23 | $useKeywords[$key]['type'] = $evidenceProperty['type'];
24 | }
25 | }
26 | return $useKeywords;
27 | }
28 |
29 | function controlData($data, $fbColumns, $fbRelations)
30 | {
31 | $controlResult = [];
32 | if (count($fbColumns)) {
33 | foreach ($data as $key => $value) {
34 | if ($key == 'external-ids') {
35 | continue;
36 | }
37 |
38 | if (strstr($key, '@')) {
39 | $baseKey = substr($key, 0, strrpos($key, '@'));
40 | if (!array_key_exists($baseKey, $fbColumns)) {
41 | $controlResult[$key][] = sprintf('unknown column property %s',
42 | $key);
43 | }
44 | continue;
45 | }
46 |
47 | if (!array_key_exists($key, $fbColumns)) {
48 | if (is_array($fbRelations) && !array_key_exists($key,
49 | $fbRelations)) {
50 | $controlResult[$key][] = sprintf('unknown column %s', $key);
51 | }
52 | }
53 | }
54 | }
55 | return $controlResult;
56 | }
57 | $syncer = new EvidenceList();
58 |
59 | $evidencies = $syncer->getColumnsFromFlexibee(['evidencePath', 'evidenceName']);
60 |
61 |
62 | $controlResult = [];
63 | foreach ($evidencies['evidences']['evidence'] as $evidenceID => $evidence) {
64 | $evlist[$evidence['evidencePath']] = $evidence['evidenceName'];
65 |
66 | $syncer->setEvidence($evidence['evidencePath']);
67 | $firstRecord = $syncer->getFlexiData(null, ['limit' => 1]);
68 | if (count($firstRecord) && isset($firstRecord[0]) && count($firstRecord[0])) {
69 | $controlled = controlData($firstRecord[0], $syncer->getColumnsInfo(),
70 | $syncer->getRelationsInfo());
71 | if (count($controlled)) {
72 | $controlResult[$evidence['evidencePath']] = $controlled;
73 | }
74 | }
75 | }
76 |
77 | echo json_encode($controlResult, JSON_PRETTY_PRINT);
78 |
79 |
80 |
--------------------------------------------------------------------------------
/tools/force_update_all.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | mkdir -p ../static
3 | CURRENT=`php -qf current_version.php`
4 | php -qf update_evidencelist_class.php
5 | mv -f EvidenceList.php ../src/FlexiPeeHP/EvidenceList.php
6 | php -qf update_properties_class.php
7 | php -qf update_actions_class.php
8 | mv Actions.php ../src/FlexiPeeHP/Actions.php
9 | php -qf update_relations_class.php
10 | mv Relations.php ../src/FlexiPeeHP/Relations.php
11 | php -qf update_formats_class.php
12 | mv Formats.php ../src/FlexiPeeHP/Formats.php
13 | mv -f Actions.json EvidenceFullList.json EvidenceList.json Formats.json Properties*.json Relations.json ../static/
14 |
15 | echo git commit ../src/FlexiPeeHP/ -m \"Update for FlexiBee ${CURRENT}\"
16 |
--------------------------------------------------------------------------------
/tools/time_to_update.php:
--------------------------------------------------------------------------------
1 | getDataValue('version') === \FlexiPeeHP\EvidenceList::$version) {
9 | echo 'false';
10 | } else {
11 | echo 'true';
12 | }
13 |
--------------------------------------------------------------------------------
/tools/update_all.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | CURRENT=`php -qf current_version.php`
4 | if [ `php -qf time_to_update.php` = "true" ]
5 | then
6 | echo updating for $CURRENT
7 | ./force_update_all.sh
8 | else
9 | echo $CURRENT still fresh
10 | fi
11 |
--------------------------------------------------------------------------------
/tools/update_properties_class.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright (C) 2015-'.date('Y').' Spoje.Net
23 | */
24 |
25 | namespace FlexiPeeHP;
26 |
27 | /**
28 | * Evidence Properties
29 | *
30 | * @link https://demo.flexibee.eu/c/demo/evidence-list.json vlastnosti evidence
31 | */
32 |
33 | class Properties
34 | {
35 | ';
36 |
37 | $statuser = new Status();
38 |
39 |
40 | $syncer = new FlexiBeeRO();
41 | $syncer->setObjectName('FlexiBee Evidence Properties');
42 | $syncer->addStatusMessage('Updating Evidences Properties');
43 |
44 | $pos = 0;
45 | foreach (EvidenceList::$name as $evidencePath => $evidenceName) {
46 | $pos++;
47 | if ($evidencePath == 'nastaveni') {
48 | $info = json_decode(file_get_contents('nastaveni-properties.json'),
49 | true);
50 | $structure = $info['properties']['property'];
51 | } else {
52 | $structure = $syncer->getOnlineColumnsInfo($evidencePath);
53 | }
54 |
55 | if (count($structure)) {
56 | $syncer->addStatusMessage($pos.' of '.count(EvidenceList::$name).' '.$evidencePath.': structure obtained',
57 | 'success');
58 | $ok++;
59 | } else {
60 | $syncer->addStatusMessage($pos.' of '.count(EvidenceList::$name).' '.$evidencePath.': structure problem',
61 | 'error');
62 | }
63 | file_put_contents('Properties.'.$evidencePath.'.json',
64 | json_encode($structure));
65 |
66 | $evidenceClass = evidenceToClass($evidencePath);
67 | $evidenceClassFile = '../src/FlexiPeeHP/'.$evidenceClass.'.php';
68 | if (file_exists($evidenceClassFile)) {
69 | $evidenceClassBody = file_get_contents($evidenceClassFile);
70 |
71 | if (array_key_exists('firma', $structure)) {
72 | if (!strstr($evidenceClassBody, 'use Firma;')) {
73 | $syncer->addStatusMessage(sprintf('use Firma; not found in %s ',
74 | $evidenceClassFile), 'warning');
75 | }
76 | }
77 |
78 | if (array_key_exists('stitky', $structure)) {
79 | if (!strstr($evidenceClassBody, 'use Stitky;')) {
80 | $syncer->addStatusMessage(sprintf('use Stitky; not found in %s ',
81 | $evidenceClassFile), 'warning');
82 | }
83 | }
84 | }
85 | }
86 |
87 | $syncer->addStatusMessage('Updating of '.$ok.' Evidences Properties done',
88 | 'success');
89 |
--------------------------------------------------------------------------------
/tools/update_relations_class.php:
--------------------------------------------------------------------------------
1 | performRequest($evidence.'/relations.json');
26 | if (count($flexinfo) && array_key_exists('relations', $flexinfo)) {
27 | if (isset($flexinfo['relations']['relation'])) {
28 | foreach ($flexinfo['relations']['relation'] as $evidenceRelations) {
29 | $relations[] = $evidenceRelations;
30 | }
31 | } else {
32 | $syncer->addStatusMessage(sprintf('Missing relations for %s',
33 | $evidence), 'warning');
34 | }
35 | }
36 | return $relations;
37 | }
38 | $evidenceRels = '
43 | * @copyright (C) 2015-2017 Spoje.Net
44 | */
45 |
46 | namespace FlexiPeeHP;
47 |
48 | /**
49 | * Evidence Relations
50 | *
51 | * @link https://demo.flexibee.eu/devdoc/relations Provádění akcí
52 | */
53 |
54 | class Relations
55 | {
56 | ';
57 | $statuser = new Status();
58 | $evidenceRels .= ' /**
59 | * Source FlexiBee server version.
60 | *
61 | * @var string
62 | */
63 | ';
64 | $evidenceRels .= ' static public $version = \''.$statuser->getDataValue('version').'\';
65 |
66 | ';
67 |
68 |
69 | $syncer = new FlexiBeeRO();
70 | $syncer->setObjectName('FlexiBee Evidence Relations');
71 | $syncer->addStatusMessage('Updating Evidences Relations');
72 |
73 | $relations = [];
74 |
75 | $pos = 0;
76 | foreach (EvidenceList::$name as $evidencePath => $evidenceName) {
77 | $pos++;
78 | $structure = getEvidenceRelations($evidencePath, $syncer);
79 |
80 | $relations[$evidencePath] = $structure;
81 |
82 | if (count($structure)) {
83 | $evidenceRels .= ' /**
84 | * Evidence '.$evidencePath.' ('.$evidenceName.') Relations.
85 | *
86 | * @var array
87 | */
88 | ';
89 | $evidenceRels .= ' static public $'.lcfirst(FlexiBeeRO::evidenceToClassName($evidencePath)).' = '.var_export($structure,
90 | true).';
91 | ';
92 |
93 | $syncer->addStatusMessage($pos.' of '.count(EvidenceList::$name).' '.$evidencePath.': relations obtained',
94 | 'success');
95 | $ok++;
96 | } else {
97 | $syncer->addStatusMessage($pos.' of '.count(EvidenceList::$name).' '.$evidencePath.': obtaining relations problem',
98 | 'error');
99 | }
100 | }
101 |
102 | $evidenceRels .= '}
103 | ';
104 |
105 | $syncer->addStatusMessage('Updating of '.$ok.' Evidences Properties done',
106 | 'success');
107 | file_put_contents($outFile, $evidenceRels);
108 |
109 | file_put_contents($outJson, json_encode($relations));
110 |
111 |
--------------------------------------------------------------------------------