models

package
v0.0.0-...-c87c14e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func AddRecibo(m *Recibo) (id int64, err error)

AddRecibo insert a new Recibo into database and returns last inserted Id on success.

func AddTipoPago

func AddTipoPago(m *TipoPago) (id int64, err error)

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

func DeleteEstadoRecibo(id int) (err error)

DeleteEstadoRecibo deletes EstadoRecibo by Id and returns error if the record to be deleted doesn't exist

func DeletePagoRecibo

func DeletePagoRecibo(id int) (err error)

DeletePagoRecibo deletes PagoRecibo by Id and returns error if the record to be deleted doesn't exist

func DeleteRecibo

func DeleteRecibo(id int) (err error)

DeleteRecibo deletes Recibo by Id and returns error if the record to be deleted doesn't exist

func DeleteTipoPago

func DeleteTipoPago(id int) (err error)

DeleteTipoPago deletes TipoPago by Id and returns error if the record to be deleted doesn't exist

func DeleteTipoRecibo

func DeleteTipoRecibo(id int) (err error)

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

func UpdateReciboById(m *Recibo) (err error)

UpdateRecibo updates Recibo by Id and returns error if the record to be updated doesn't exist

func UpdateTipoPagoById

func UpdateTipoPagoById(m *TipoPago) (err error)

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 Alert

type Alert struct {
	Type string
	Code string
	Body interface{}
}

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

func GetReciboById(id int) (v *Recibo, err error)

GetReciboById retrieves Recibo by Id. Returns error if Id doesn't exist

func (*Recibo) TableName

func (t *Recibo) TableName() string

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

func GetTipoPagoById(id int) (v *TipoPago, err error)

GetTipoPagoById retrieves TipoPago by Id. Returns error if Id doesn't exist

func (*TipoPago) TableName

func (t *TipoPago) TableName() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL