Private
Public Access
hecha la parte del cu-02 falta test
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
1 parent
42bf987ffc
commit
cc80dd1467
20 files changed
+940
-7
No files matched your search
@@ -0,0 +1,24 @@
|
||||
package dto
|
||||
|
||||
type CrearFacturaDto struct {
|
||||
ClienteID uint `json:"clienteId" binding:"required"`
|
||||
AlmacenID uint `json:"almacenId" binding:"required"`
|
||||
Items []ItemFacturaDto `json:"items" binding:"required,min=1"`
|
||||
DescuentoID uint `json:"descuentoId"`
|
||||
Pagos []PagoFacturaDto `json:"pagos"`
|
||||
EnviarEmail bool `json:"enviarEmail"`
|
||||
Observacion string `json:"observacion"`
|
||||
}
|
||||
|
||||
type ItemFacturaDto struct {
|
||||
RepuestoID uint64 `json:"repuestoId" binding:"required"`
|
||||
Cantidad float64 `json:"cantidad" binding:"required,gt=0"`
|
||||
PrecioUnitario float64 `json:"precioUnitario" binding:"gte=0"`
|
||||
}
|
||||
|
||||
type PagoFacturaDto struct {
|
||||
FormaDePagoID uint `json:"formaDePagoId" binding:"required"`
|
||||
Importe float64 `json:"importe" binding:"required,gt=0"`
|
||||
Fecha string `json:"fecha"`
|
||||
Observacion string `json:"observacion"`
|
||||
}
|
||||
Reference in new issue
Block a user