{"id":26358278,"url":"https://github.com/spoje-net/discomp2abraflexi","last_synced_at":"2025-03-16T14:27:35.024Z","repository":{"id":207545717,"uuid":"719493226","full_name":"Spoje-NET/discomp2abraflexi","owner":"Spoje-NET","description":"Import Discomp pricelist into AbraFlexi","archived":false,"fork":false,"pushed_at":"2025-02-10T18:00:19.000Z","size":291,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T19:21:27.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spoje-NET.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-16T09:35:34.000Z","updated_at":"2025-02-10T18:00:23.000Z","dependencies_parsed_at":"2023-12-12T00:52:49.619Z","dependency_job_id":"afc78680-51d2-48f0-8720-eab7665ad961","html_url":"https://github.com/Spoje-NET/discomp2abraflexi","commit_stats":null,"previous_names":["spoje-net/discomp2abraflexi"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fdiscomp2abraflexi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fdiscomp2abraflexi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fdiscomp2abraflexi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fdiscomp2abraflexi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spoje-NET","download_url":"https://codeload.github.com/Spoje-NET/discomp2abraflexi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243881117,"owners_count":20362901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T14:27:34.392Z","updated_at":"2025-03-16T14:27:35.017Z","avatar_url":"https://github.com/Spoje-NET.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![discomp2abraflexi](social-preview.svg?raw=true)\n\nKonfigurace\n-----------\n\n* `ABRAFLEXI_URL` - Adresa na které je API\n* `ABRAFLEXI_LOGIN` - - Uživatel API\n* `ABRAFLEXI_PASSWORD` - Heslo do AbraFlexi\n* `ABRAFLEXI_COMPANY` - API kód firmy do ktera naskladňuje\n* `ABRAFLEXI_STORAGE` - Kód výchozího skladu pro import\n* `ABRAFLEXI_DISCOMP_CODE` - Kód pod kterým je Discomp s.r.o. v adresáři\n\n* `DISCOMP_SCOPE` - V jakém časovém intervalu importovat aktualizace. \"all\" pro všechny dostupné. \"yesterday\" nové produkty přidané včera.\n\n* `DISCOMP_USERNAME`\n* `DISCOMP_PASSWORD`\n\n* `DISCOMP_TYP_ZASOBY` - Položky do ceníku importovat jako. Výchozí hodnota: `typZasoby.material`\n* `EASE_LOGGER` - Kam logovat. Doporučená hodnota: `console|syslog`\n\nImport Scopes\n-------------\n\n* `today`\n* `yesterday`\n* `last_week`\n* `last_month`\n* `last_two_months`\n* `previous_month`\n* `two_months_ago`\n* `this_year`\n* `January`  \n* `February`\n* `March`\n* `April`\n* `May`\n* `June`\n* `July`\n* `August`\n* `September`\n* `October`\n* `November`\n* `December`\n* `2024-08-05\u003e2024-08-11` - custom scope\n* `2024-10-11` - only specific day\n\nRun In Container\n----------------\n\n\u003chttps://hub.docker.com/repository/docker/vitexsoftware/discomp2abraflexi\u003e\n\n```shell\ndocker run --env-file .env vitexsoftware/discomp2abraflexi:latest\n```\n\n```shell\npodman run --env-file .env docker.io/vitexsoftware/discomp2abraflexi:latest\n```\n\nPodman first run output:\n\n```shell\n$ podman run --env-file .env docker.io/vitexsoftware/discomp2abraflexi:latest\nTrying to pull docker.io/vitexsoftware/discomp2abraflexi:latest...\nGetting image source signatures\nCopying blob 249ff3a7bbe6 done  \nCopying blob 48824c101c6a done  \nCopying blob 8df282322d1b done  \nCopying blob 1f7ce2fa46ab done  \nCopying blob ae6ba28dd781 done  \nCopying blob aa5d47f22b64 done  \nCopying blob c244af8d9658 done  \nCopying blob c1286f5f47fc done  \nCopying blob 8c9c8132d2d8 done  \nCopying blob 5ddaa1b2c3d8 done  \nCopying blob b08c405e0c7c done  \nCopying blob 262c618b663f done  \nCopying blob 55a741b87e7a done  \nCopying blob 1d30d31414f7 done  \nCopying blob 4f4fb700ef54 done  \nCopying blob 7a1bd9b9b4d5 done  \nCopying blob cafa0330c197 done  \nCopying blob 4f4fb700ef54 skipped: already exists  \nCopying config 4525446344 done  \nWriting manifest to image destination\nStoring signatures\n11/28/2023 11:14:22 ⚙ ❲Discomp2AbraFlexi⦒SpojeNet\\Discomp\\Importer❳ Discomp2AbraFlexi EaseCore dev-main (PHP 8.2.13)\n11/28/2023 11:14:22 🌼 ❲Discomp2AbraFlexi⦒SpojeNet\\Discomp\\Importer❳ Supplier Exists\n11/28/2023 11:14:22 🌼 ❲Discomp2AbraFlexi⦒SpojeNet\\Discomp\\Importer❳ Category Root Exists\n\nFatal error: Uncaught Exception: https://WWW.discomp.CZ/i6ws/default.asmx/GetResultByFromTo?resultType=StoItemShop_El\u0026from=2023-11-20T00:00:00\u0026to=2023-11-26T00:00:00\nSystem.ApplicationException: Unsupported hour: '12' for method: 'GetResultByFromTo' of resultType: 'StoItemShop_El'.\n   v CyberSoft.I6.Web.WebService.HelpLib.GetResult(String method, String resultType, Hashtable runTimeValues)\n   v CyberSoft.I6.Web.WebService.HelpLib.GetResultByFromTo(String resultType, DateTime from, DateTime to)\n   v CyberSoft.I6.Web.WebService.I6Ws.GetResultByFromTo(String resultType, DateTime from, DateTime to)\n in /usr/src/discomp2abraflexi/src/Discomp/ApiClient.php:273\nStack trace:\n#0 /usr/src/discomp2abraflexi/src/Discomp/Importer.php(190): SpojeNet\\Discomp\\ApiClient-\u003egetResultByFromTo('StoItemShop_El', Object(DateTime), Object(DateTime))\n#1 /usr/src/discomp2abraflexi/src/Discomp/Importer.php(197): SpojeNet\\Discomp\\Importer-\u003egetFreshItems()\n#2 /usr/src/discomp2abraflexi/src/discomp2abraflexi.php(34): SpojeNet\\Discomp\\Importer-\u003efreshItems()\n#3 {main}\n  thrown in /usr/src/discomp2abraflexi/src/Discomp/ApiClient.php on line 273\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fdiscomp2abraflexi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoje-net%2Fdiscomp2abraflexi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fdiscomp2abraflexi/lists"}