fix(finance): aceita anotacao nula e usa valor liquido na fatura

This commit is contained in:
Felipe Coutinho
2026-03-12 19:23:13 +00:00
parent b0fbb1062a
commit 20c14aa96f
3 changed files with 15 additions and 9 deletions

View File

@@ -55,5 +55,6 @@ export const noteSchema = z
.string()
.trim()
.max(500, "A anotação deve ter no máximo 500 caracteres.")
.nullable()
.optional()
.transform((value) => (value && value.length > 0 ? value : null));