Closed dbeyda closed 5 years ago
@tloriato I have no idea where to put the "estado" field in the Wiki. Which section should it go in? Any suggestions?
@dbeyda Which "estado" ?
@dbeyda "estado" is an enum holding one of those values: pendente, pago, atrasado, substituido, dados inconsistentes.
"estado" is an status of an invoice, it should be in its table. each invoice has a single "estado"
Added, all good.
In our wiki and in our swagger docs, monetary fields are stored as float with two decimal places (we store the R$ quantity). They should be changed to an integer, corresponding to the same total quantity, but stored in cents (R$*100).
Besides that, some Enum fields only have two options: 1 - Yes, 2 - No. When that happens, the field type should be changed to boolean.