feat(reports): simplify dashboards, align OT flow labels, and normalize filters
This commit is contained in:
@@ -234,8 +234,8 @@ func addItemH() fiber.Handler {
|
||||
}
|
||||
return fiber.NewError(500, "erro ao validar ordem")
|
||||
}
|
||||
if status == "open" && b.ChangeJustification == "" {
|
||||
return fiber.NewError(400, "justificação da alteração é obrigatória em orçamento aprovado")
|
||||
if status == "in_progress" && b.ChangeJustification == "" {
|
||||
return fiber.NewError(400, "justificação da alteração é obrigatória durante o trabalho")
|
||||
}
|
||||
item, err := AddItem(c.Context(), conn, c.Params("id"), b.CatalogItemID, b.Description, b.ChangeJustification, b.Qty, b.UnitPrice, b.DiscountPct)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user