Ajout de l'identifiant des produits dans les errors de quantités

This commit is contained in:
FyloZ 2021-04-13 16:38:16 -04:00
parent 689bd2a602
commit 11980d06ac
2 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class EmployeeServiceImpl(
override fun saveDefaultGroupEmployee(group: EmployeeGroup) {
save(
Employee(
employee(
id = 1000000L + group.id!!,
firstName = group.name,
lastName = "EmployeeModel",

View File

@ -95,6 +95,7 @@ class NotEnoughInventoryException(quantity: Float, material: Material) :
"Cannot deduct ${quantity}mL of ${material.name} because there is only ${material.inventoryQuantity}mL in inventory",
mapOf(
"material" to material.name,
"materialId" to material.id.toString(),
"requestQuantity" to quantity,
"availableQuantity" to material.inventoryQuantity
)