salesRepository

package
v0.0.0-...-e9ec6a3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaleItemRepository

type SaleItemRepository struct {
	*appRepository.BaseRepository
}

func InitSaleItemRepository

func InitSaleItemRepository(db *gorm.DB) *SaleItemRepository

func (*SaleItemRepository) FindAll

func (r *SaleItemRepository) FindAll(dto interface{}, results interface{}, preloads ...string) (int64, error)

func (*SaleItemRepository) GetSaleProductSummary

func (r *SaleItemRepository) GetSaleProductSummary(
	dto salesDTO.QuerySalesProductSummaryDTO,
	results interface{},
) (int64, error)

func (*SaleItemRepository) GetTotalQuantitySoldByCreatedMonth

func (r *SaleItemRepository) GetTotalQuantitySoldByCreatedMonth(month time.Month, year int) (int64, error)

type SaleRepository

type SaleRepository struct {
	*appRepository.BaseRepository
}

func InitSaleRepository

func InitSaleRepository(db *gorm.DB) *SaleRepository

func (*SaleRepository) GetTotalValueSoldByCreatedMonth

func (r *SaleRepository) GetTotalValueSoldByCreatedMonth(month time.Month, year int) (float64, error)

func (*SaleRepository) GetTotalValuesSold

func (r *SaleRepository) GetTotalValuesSold(
	dto salesDTO.QueryTotalSalesSoldDTO,
	results interface{},
) (int64, error)

Jump to

Keyboard shortcuts

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