Importing an invoice or order fails with the following error:
Pokud má být vygenerován skladový doklad, musí být vyplněn typ skladového dokladu
Based on its type, the document you are importing is set to automatically create a related stock document — however, the type of that stock document has not been specified.
What to check
In the document type you are importing, generation of a stock document is enabled (field
generovatSkl), but the subsequent stock document type setting is missing. Fill it in under the document type settings in the app.For manufacturing, also check the related manufacturing document type within the stock document type.
💡 The stock document type can be sent directly in the import — on the document via the element <typDoklSkl>code:STANDARD</typDoklSkl>, and when fulfilling an order, using the same element inside realizaceObj. Take the value from the typ-skladovy-pohyb record.
