By default, when an invoice (or its items) is deleted, the goods issue note generated from the invoice is also deleted. This behavior is controlled by the zdrojProSkl field (Source for warehouse documents) on the invoice.
If the value false is set in the zdrojProSkl (Source for warehouse documents) field when creating the invoice, the goods issue note created from the invoice will not be deleted when the invoice (items) is deleted.
If the value true is set (default value), the goods issue note is automatically deleted together with the invoice (items) by default.
From a warehouse perspective, deleting a goods issue note is not blocked by anything — there are no links holding it in place. However, if it was created by an invoice, the invoice must be deleted first — the goods issue note cannot be deleted on its own.
ℹ️ If you don't want to delete the document, use cancellation. The result in the warehouse is the same, but the document will remain in the records, crossed out and traceable. For receiving notes, the opposite rule applies compared to goods issue notes - their deletion is blocked by related outgoing shipments; the procedure is described in the guide for cases when an incorrectly created receiving note cannot be deleted.
