Create Goods Receipt (NIR)
Turn an extracted invoice into a Romanian goods-receipt note. Takes the job id from a Key Data Extractor step that ran on the 'Factura — produse' document type, matches each line against the saved supplier correspondences, converts the units and files the NIR. Lines it cannot match are kept, not dropped: the NIR is filed as 'de_verificat' with the reasons on it, so a batch does not stop at the first unfamiliar product and the corrections happen in one place afterwards.
Category: Data Processing & Transformation · Group: Data Processing · Activity name: NirFromInvoice
Example
outputVariable = NirFromInvoice("<jobId>", "<gestiune>", nirNumber="<nirNumber>")
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Extraction Job | string | Yes | The job id returned by a Key Data Extractor step. The document type must be one with a line-items table; a header-only extraction has no goods to receive. | |
| Gestiune | string | Yes | Which stock the goods went into. It is the one thing on a NIR an invoice cannot say, so it has to be given here. Must be one of the organization's gestiuni. | |
| NIR Number | string | Leave empty to use the invoice's own number, which is what the app does. Give one only when the invoice's number could not be read. |
Outputs
| Name | Type | Description |
|---|---|---|
| outputVariable | json | Stores the result: the NIR number, its status ('finalizat' or 'de_verificat'), and the reasons it needs review. |