bueno es parte del plan de implementacion para el caso de uso de gestion

de stock
This commit is contained in:
fede committed 2026-11-16 08:37:34 -03:00
1 parent 24e746b1b7
commit 6ed8805e21
40 files changed
+2748 -31

No files matched your search

+4
View File
@@ -1,10 +1,14 @@
package models
import "gorm.io/datatypes"
type Devolucion struct {
Comprobante
Motivo string `gorm:"type:varchar(200);not null" json:"motivo"`
FacturaOrigen Factura `gorm:"foreignKey:FacturaOrigenID" json:"facturaOrigen"`
FacturaOrigenID uint `gorm:"column:facturaOrigenID;not null" json:"facturaOrigenId"`
Detalles datatypes.JSONSlice[DevolucionDetalle] `gorm:"type:json" json:"detalles,omitempty"`
}
func (Devolucion) TableName() string {