Repository navigation
docs(readme): explain how to save document items and debug requests - #56
Merged
Merged
Conversation
Document items cannot be imported directly: FlexiBee answers a direct
import into faktura-vydana/{id}/polozkyDokladu with "Import není
povolen" (importStatus NOT_DIRECT). The README now shows saving items
nested in the parent document, the polozkyDokladu@removeAll switch and
what the debug mode and exceptions reveal about a failed request.
Closes #38
pekral
marked this pull request as ready for review
November 12, 2026 15:04
Collaborator
Author
Code ReviewStatus: clean Summary: 0 Critical · 0 Moderate · 0 Minor · 0 Refactoring · assignment conformance: conformant (#38: explains the "Import není povolen" cause with the FlexiBee docs and how to inspect a failed request) · reviewer comments: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #38
TL;DR
Issue #38 nehlásí chybu klienta. FlexiBee nepovoluje importovat položky dokladu napřímo. README teď ukazuje správný postup a co se dá zjistit o odeslaném requestu.
Rozbor
V issue se položky faktury ukládaly jako samostatná evidence
faktura-vydana/{id}/polozkyDokladu. Dokumentace FlexiBee říká, že položky dokladů majíimportStatusNOT_DIRECT: přímo importovat nejdou, jen přes nadřazený záznam, a pokus o přímý import skončí hláškou „Import není povolen.“ (Import evidencí přes API). Klient tu hlášku jen předává ve výjimce.Změny (jen README)
save(),polozkyDokladu@removeAll(Výmaz zanořené evidence),$debugModea výjimky (druhý dotaz z issue, jak zjistit odeslaný request).getPropertiesForEvidence().Merge danger
Testování
composer checkprochází (beze změny kódu). Nové testy: ne.