feat(assignments): remaining quantity display and partial return i18n
This commit is contained in:
@@ -479,6 +479,23 @@ describe("i18n dictionaries", () => {
|
||||
assetIdRequired: "Asset ID is required when item ID is provided",
|
||||
idRequired: "Assignment ID is required",
|
||||
},
|
||||
partialReturn: {
|
||||
title: "Return item",
|
||||
quantity: "Quantity",
|
||||
quantityPlaceholder: "1",
|
||||
notes: "Notes",
|
||||
notesPlaceholder: "Optional notes",
|
||||
submit: "Return",
|
||||
cancel: "Cancel",
|
||||
maxQuantity: "Maximum: {max}",
|
||||
errorConcurrent:
|
||||
"This return was modified by another user. Reload and try again.",
|
||||
errorGeneric: "Error processing the return",
|
||||
},
|
||||
remaining: {
|
||||
label: "Remaining",
|
||||
value: "{remaining} of {total}",
|
||||
},
|
||||
})
|
||||
|
||||
expect(getDictionary("es").inventory.assignments).toEqual({
|
||||
@@ -544,6 +561,23 @@ describe("i18n dictionaries", () => {
|
||||
"El activo es obligatorio cuando se especifica el artículo",
|
||||
idRequired: "El ID de asignación es obligatorio",
|
||||
},
|
||||
partialReturn: {
|
||||
title: "Devolver artículo",
|
||||
quantity: "Cantidad",
|
||||
quantityPlaceholder: "1",
|
||||
notes: "Notas",
|
||||
notesPlaceholder: "Notas opcionales",
|
||||
submit: "Devolver",
|
||||
cancel: "Cancelar",
|
||||
maxQuantity: "Máximo: {max}",
|
||||
errorConcurrent:
|
||||
"La devolución fue modificada por otro usuario. Recarga e inténtalo de nuevo.",
|
||||
errorGeneric: "Error al procesar la devolución",
|
||||
},
|
||||
remaining: {
|
||||
label: "Restantes",
|
||||
value: "{remaining} de {total}",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user