Ajout de l'identifiant des produits dans les errors de quantités
This commit is contained in:
parent
689bd2a602
commit
11980d06ac
|
@ -129,7 +129,7 @@ class EmployeeServiceImpl(
|
|||
|
||||
override fun saveDefaultGroupEmployee(group: EmployeeGroup) {
|
||||
save(
|
||||
Employee(
|
||||
employee(
|
||||
id = 1000000L + group.id!!,
|
||||
firstName = group.name,
|
||||
lastName = "EmployeeModel",
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue