Documentation ¶
Index ¶
- func AddEstadoRecibo(m *EstadoRecibo) (id int64, err error)
- func AddPagoRecibo(m *PagoRecibo) (id int64, err error)
- func AddRecibo(m *Recibo) (id int64, err error)
- func AddTipoPago(m *TipoPago) (id int64, err error)
- func AddTipoRecibo(m *TipoRecibo) (id int64, err error)
- func DeleteEstadoRecibo(id int) (err error)
- func DeletePagoRecibo(id int) (err error)
- func DeleteRecibo(id int) (err error)
- func DeleteTipoPago(id int) (err error)
- func DeleteTipoRecibo(id int) (err error)
- func GetAllEstadoRecibo(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllPagoRecibo(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllRecibo(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllTipoPago(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllTipoRecibo(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func UpdateEstadoReciboById(m *EstadoRecibo) (err error)
- func UpdatePagoReciboById(m *PagoRecibo) (err error)
- func UpdateReciboById(m *Recibo) (err error)
- func UpdateTipoPagoById(m *TipoPago) (err error)
- func UpdateTipoReciboById(m *TipoRecibo) (err error)
- type Alert
- type EstadoRecibo
- type PagoRecibo
- type Recibo
- type TipoPago
- type TipoRecibo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEstadoRecibo ¶
func AddEstadoRecibo(m *EstadoRecibo) (id int64, err error)
AddEstadoRecibo insert a new EstadoRecibo into database and returns last inserted Id on success.
func AddPagoRecibo ¶
func AddPagoRecibo(m *PagoRecibo) (id int64, err error)
AddPagoRecibo insert a new PagoRecibo into database and returns last inserted Id on success.
func AddRecibo ¶
AddRecibo insert a new Recibo into database and returns last inserted Id on success.
func AddTipoPago ¶
AddTipoPago insert a new TipoPago into database and returns last inserted Id on success.
func AddTipoRecibo ¶
func AddTipoRecibo(m *TipoRecibo) (id int64, err error)
AddTipoRecibo insert a new TipoRecibo into database and returns last inserted Id on success.
func DeleteEstadoRecibo ¶
DeleteEstadoRecibo deletes EstadoRecibo by Id and returns error if the record to be deleted doesn't exist
func DeletePagoRecibo ¶
DeletePagoRecibo deletes PagoRecibo by Id and returns error if the record to be deleted doesn't exist
func DeleteRecibo ¶
DeleteRecibo deletes Recibo by Id and returns error if the record to be deleted doesn't exist
func DeleteTipoPago ¶
DeleteTipoPago deletes TipoPago by Id and returns error if the record to be deleted doesn't exist
func DeleteTipoRecibo ¶
DeleteTipoRecibo deletes TipoRecibo by Id and returns error if the record to be deleted doesn't exist
func GetAllEstadoRecibo ¶
func GetAllEstadoRecibo(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllEstadoRecibo retrieves all EstadoRecibo matches certain condition. Returns empty list if no records exist
func GetAllPagoRecibo ¶
func GetAllPagoRecibo(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllPagoRecibo retrieves all PagoRecibo matches certain condition. Returns empty list if no records exist
func GetAllRecibo ¶
func GetAllRecibo(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllRecibo retrieves all Recibo matches certain condition. Returns empty list if no records exist
func GetAllTipoPago ¶
func GetAllTipoPago(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllTipoPago retrieves all TipoPago matches certain condition. Returns empty list if no records exist
func GetAllTipoRecibo ¶
func GetAllTipoRecibo(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllTipoRecibo retrieves all TipoRecibo matches certain condition. Returns empty list if no records exist
func UpdateEstadoReciboById ¶
func UpdateEstadoReciboById(m *EstadoRecibo) (err error)
UpdateEstadoRecibo updates EstadoRecibo by Id and returns error if the record to be updated doesn't exist
func UpdatePagoReciboById ¶
func UpdatePagoReciboById(m *PagoRecibo) (err error)
UpdatePagoRecibo updates PagoRecibo by Id and returns error if the record to be updated doesn't exist
func UpdateReciboById ¶
UpdateRecibo updates Recibo by Id and returns error if the record to be updated doesn't exist
func UpdateTipoPagoById ¶
UpdateTipoPago updates TipoPago by Id and returns error if the record to be updated doesn't exist
func UpdateTipoReciboById ¶
func UpdateTipoReciboById(m *TipoRecibo) (err error)
UpdateTipoRecibo updates TipoRecibo by Id and returns error if the record to be updated doesn't exist
Types ¶
type EstadoRecibo ¶
type EstadoRecibo struct { Id int `orm:"column(id);pk;auto"` Nombre string `orm:"column(nombre)"` Descripcion string `orm:"column(descripcion)"` CodigoAbreviacion string `orm:"column(codigo_abreviacion)"` NumeroOrden float64 `orm:"column(numero_orden)"` Activo bool `orm:"column(activo)"` FechaCreacion string `orm:"column(fecha_creacion);null"` FechaModificacion string `orm:"column(fecha_modificacion);null"` }
func GetEstadoReciboById ¶
func GetEstadoReciboById(id int) (v *EstadoRecibo, err error)
GetEstadoReciboById retrieves EstadoRecibo by Id. Returns error if Id doesn't exist
func (*EstadoRecibo) TableName ¶
func (t *EstadoRecibo) TableName() string
type PagoRecibo ¶
type PagoRecibo struct { Id int `orm:"column(id);pk;auto"` ReciboId *Recibo `orm:"column(recibo_id);rel(fk)"` FechaPago time.Time `orm:"column(fecha_pago);type(date)"` Aprobado bool `orm:"column(aprobado)"` TipoPagoId *TipoPago `orm:"column(tipo_pago_id);rel(fk)"` Comprobante int `orm:"column(comprobante);null"` FechaCreacion string `orm:"column(fecha_creacion);null"` FechaModificacion string `orm:"column(fecha_modificacion);null"` }
func GetPagoReciboById ¶
func GetPagoReciboById(id int) (v *PagoRecibo, err error)
GetPagoReciboById retrieves PagoRecibo by Id. Returns error if Id doesn't exist
func (*PagoRecibo) TableName ¶
func (t *PagoRecibo) TableName() string
type Recibo ¶
type Recibo struct { Id int `orm:"column(id);pk;auto"` Referencia int `orm:"column(referencia);null"` TipoReciboId *TipoRecibo `orm:"column(tipo_recibo_id);rel(fk)"` EstadoReciboId *EstadoRecibo `orm:"column(estado_recibo_id);rel(fk)"` FechaOrdinaria time.Time `orm:"column(fecha_ordinaria);type(date)"` FechaExtraordinaria time.Time `orm:"column(fecha_extraordinaria);type(date);null"` ValorOrdinario int `orm:"column(valor_ordinario)"` ValorExtraordinario int `orm:"column(valor_extraordinario);null"` FechaCreacion string `orm:"column(fecha_creacion);null"` FechaModificacion string `orm:"column(fecha_modificacion);null"` }
func GetReciboById ¶
GetReciboById retrieves Recibo by Id. Returns error if Id doesn't exist
type TipoPago ¶
type TipoPago struct { NumeroOrden float64 `orm:"column(numero_orden)"` Id int `orm:"column(id);pk;auto"` Nombre string `orm:"column(nombre)"` Descripcion string `orm:"column(descripcion)"` CodigoAbreviacion string `orm:"column(codigo_abreviacion)"` Activo bool `orm:"column(activo)"` FechaCreacion string `orm:"column(fecha_creacion);null"` FechaModificacion string `orm:"column(fecha_modificacion);null"` }
func GetTipoPagoById ¶
GetTipoPagoById retrieves TipoPago by Id. Returns error if Id doesn't exist
type TipoRecibo ¶
type TipoRecibo struct { NumeroOrden float64 `orm:"column(numero_orden)"` Id int `orm:"column(id);pk;auto"` Nombre string `orm:"column(nombre)"` Descripcion string `orm:"column(descripcion)"` CodigoAbreviacion string `orm:"column(codigo_abreviacion)"` Activo bool `orm:"column(activo)"` FechaCreacion string `orm:"column(fecha_creacion);null"` FechaModificacion string `orm:"column(fecha_modificacion);null"` }
func GetTipoReciboById ¶
func GetTipoReciboById(id int) (v *TipoRecibo, err error)
GetTipoReciboById retrieves TipoRecibo by Id. Returns error if Id doesn't exist
func (*TipoRecibo) TableName ¶
func (t *TipoRecibo) TableName() string