Private
Public Access
hecho lo ded Registro de pagos
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
1 parent
b68db07c92
commit
09830e15ec
19 files changed
+722
-46
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package dto
|
||||
|
||||
// RegistrarPagoDto representa el cobro de una factura existente.
|
||||
type RegistrarPagoDto struct {
|
||||
FormaDePagoID uint `json:"formaDePagoId" binding:"required"`
|
||||
Importe float64 `json:"importe" binding:"required,gt=0"`
|
||||
Fecha string `json:"fecha"`
|
||||
Observacion string `json:"observacion" binding:"max=255"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package dto
|
||||
|
||||
// RegistrarPagoResponse devuelve el pago creado y el estado final de la
|
||||
// factura para que el frontend refresque saldo y estado sin otra consulta.
|
||||
type RegistrarPagoResponse struct {
|
||||
Pago PagoResumen `json:"pago"`
|
||||
Factura FacturaResponse `json:"factura"`
|
||||
SaldoAnterior float64 `json:"saldoAnterior"`
|
||||
SaldoNuevo float64 `json:"saldoNuevo"`
|
||||
}
|
||||
Reference in new issue
Block a user