Categorie: entities
Bijgewerkt: 2026-04-07
batch partij voorraad FIFO LIFO FEFO magazijn artikel
Batch (Partij)
De Batch-entiteit registreert partijen van artikelen in het magazijn. Partijregistratie is essentieel voor FIFO (First In, First Out), LIFO (Last In, First Out) en FEFO (First Expired, First Out) voorraadbeheer. Elke Batch is gekoppeld aan een Article en kan over meerdere magazijnlocaties verdeeld zijn via BatchWarehouseLocation.
Entiteitsnaam: Batch
Databasetabel: Batch
Primaire sleutel: BTCHID (nvarchar 9)
Contextsbewerken
| Value | Naam | Beschrijving |
|---|---|---|
| 0 | BatchContext.None | Artikel |
| 1 | BatchContext.Article | Artikel |
Statussenbewerken
| Value | Naam | Beschrijving |
|---|---|---|
| -1 | BatchStatus.Trash | Trash |
| 0 | BatchStatus.None | None |
| 1 | BatchStatus.Created | Open |
| 2 | BatchStatus.Active | Actief |
| 4 | BatchStatus.Blocked | Geblokkeerd |
| 8 | BatchStatus.Emptied | Leeg |
| 16 | BatchStatus.Expired | Vervallen |
Belangrijkste propertiesbewerken
| Property | Type | Kolom | Nullable | Omschrijving |
|---|---|---|---|---|
| Id | UltimoString(9) | BTCHID | Nee | Uniek ID (partijnummer) |
| Article | Article | BTCHARTID | Ja | Gekoppeld artikel |
| ArticleGroup | ArticleGroup | BTCHAGID | Ja | Artikelgroep |
| InitialQuantity | Decimal | BTCHINITIALQUANTITY | Nee | Initiele hoeveelheid |
| ExpiryDate | Date? | BTCHEXPIRYDATE | Ja | Vervaldatum |
| ReceivedDate | DateTime? | BTCHRECEIVEDDATE | Ja | Ontvangstdatum |
| Vendor | Vendor | BTCHVDRID | Ja | Leverancier |
| VendorBatchCode | UltimoString(12) | BTCHVENDORBATCHCODE | Ja | Leveranciers-partijcode |
| ReceiptLine | ReceiptLine | BTCHRCPLRCPID, BTCHRCPLLINEID | Ja | Gekoppelde ontvangstregel |
| RemarkText | UltimoString | BTCHREMARKTEXT | Ja | Opmerkingen |
| Status | Status | BTCHRECSTATUS | Nee | Recordstatus (default: 1) |
| Context | Context | BTCHCONTEXT | Nee | Context (default: 1) |
BatchWarehouseLocation (Partij per magazijnlocatie)bewerken
Per Batch wordt de voorraad per magazijnlocatie bijgehouden:
| Property | Type | Kolom | Omschrijving |
|---|---|---|---|
| Batch | Batch | BTCHWHSLBTCHID | Partij |
| WarehouseLocation | WarehouseLocation | BTCHWHSLWHSLWHSID, BTCHWHSLWHSLWHSCODE | Magazijnlocatie |
| Quantity | Decimal | BTCHWHSLQUANTITY | Huidige hoeveelheid |
| QuantityAvailableForPickLists | Decimal | BTCHWHSLQTYAVLBLFORPICKLIST | Beschikbaar voor picklists (berekend) |
| QuantityReservedForPickLists | Decimal | BTCHWHSLQTYRSRVDFORPICKLIST | Gereserveerd voor picklists |
Relaties met andere entiteitenbewerken
| Property | Verwijst naar | Omschrijving |
|---|---|---|
| Article | article | Artikel waartoe de partij behoort |
| ArticleGroup | ArticleGroup | Artikelgroep |
| Vendor | Vendor | Leverancier |
| ReceiptLine | ReceiptLine | Ontvangstregel waaruit de partij is ontstaan |
| BatchWarehouseLocations | List[BatchWarehouseLocation] | Voorraad per magazijnlocatie |
Tips voor consultantsbewerken
- Levenscyclus: Een Batch start als Open (1), wordt Actief (2) bij gebruik, kan Geblokkeerd (4) worden bij kwaliteitsproblemen, en eindigt als Leeg (8) of Vervallen (16).
- FEFO-beheer: Vul de
ExpiryDatein voor artikelen met een houdbaarheidsdatum. Ultimo kan dan automatisch de partij met de kortste houdbaarheid voorstellen bij uitgifte. - Blokkeren: Status Geblokkeerd (4) voorkomt dat de partij wordt uitgegeven. Gebruik dit bij recalls of kwaliteitsproblemen.
- Traceerbaarheid: Via
VendorBatchCodeenReceiptLineis de partij herleidbaar tot de leverancier en de oorspronkelijke ontvangst. - Magazijnlocaties: Een partij kan verdeeld zijn over meerdere magazijnlocaties.
QuantityAvailableForPickListsis een computed field dat de beschikbare voorraad berekent.
Brondatabewerken
Let op: De wiki-samenvatting hierboven toont een curated subset van properties en praktische consultant-tips. Voor ground truth (exacte kolomnamen, alle properties, defaults, triggers) gebruik de onderstaande tools.
- Entity-definitie —
lookup_entity("Batch")· reference/entities/Batch Alle properties, contexts en statussen. Bron:Entities.xml. - DB-schema —
lookup_table_schema("Batch")· reference/tables/Batch Alle DB-kolommen, triggers, computed columns en defaults. Bron:database-schema.json. - Gerelateerde workflows —
find_workflows("", entity="Batch")Alle Before/After Save events en andere workflow-ActionFields voor Batch. Bron:workflows.xml.