models

package
v0.0.0-...-c13d03f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bank

type Bank struct {
	NomorBank int
	NamaBank  string
}

type Barang

type Barang struct {
	KodeBarang     string
	NamaBarang     string
	TipeBigQty     string
	BigToMedium    int
	TipeMediumQty  string
	MediumToSmall  int
	TipeSmallQty   string
	HargaJualKecil int
	TipeBarang     string
}

func (Barang) ConvertQty

func (barang Barang) ConvertQty(from, to string, qty int) int

kode: nama: tipebig: btm: tipemedium: mts: tipesmall: hargakecil: tipebarang:

type Customer

type Customer struct {
	NomorUrut    int
	NamaCustomer string
	Alamat       string
	NomorHP      string
}

type Demand

type Demand struct {
	ID               int
	Barang           Barang
	QuantityDemand   int
	QuantityThen     int
	QuantityRightNow int
	TipeQuantity     string
}

type Faktur

type Faktur struct {
	NomorUrut      int
	NomorFaktur    int
	TanggalFaktur  time.Time
	TipeTransaksi  string
	TipePembayaran string
	NomorEntitas   int
	JatuhTempo     time.Time
	NomorGiro      string
}

type Giro

type Giro struct {
	NomorGiro   string
	Nominal     int
	TanggalGiro time.Time
	BankGiro    Bank
}

type Hutang

type Hutang struct {
	NomorHutang  int
	FakturHutang Faktur
	TokoDihutang Toko
	NominalRetur int
	SisaHutang   int
	JatuhTempo   time.Time
}

type Pembelian

type Pembelian struct {
	FakturPembelian    Faktur
	Quantity           int
	TipeQuantity       string
	DiskontilPembelian int
	TotalHargaBeli     int
	StockBarang        Stock
}

type Piutang

type Piutang struct {
	NomorPiutang    int
	FakturPiutang   Faktur
	CustomerPiutang Customer
	NominalRetur    int
	SisaPiutang     int
	JatuhTempo      time.Time
}

type Retur

type Retur struct {
	FakturBarang   Faktur
	Status         string
	BarangRetur    Barang
	Quantity       int
	TipeQuantity   string
	DiskontilRetur int
	TotalNominal   int
	Description    string
}

type Sales

type Sales struct {
	NomorSales      int
	Karyawan        User
	FakturPenjualan Faktur
	TotalPenjualan  int
	Insentif        string
}

type Stock

type Stock struct {
	NomorFaktur    int
	TanggalFaktur  time.Time
	NomorStock     int
	BarangStock    Barang
	Expired        time.Time
	BigQty         int
	MediumQty      int
	SmallQty       int
	HargaBeliKecil int
}

func (*Stock) BigToMedium

func (S *Stock) BigToMedium(qty int) (int, error)

func (Stock) ConvertQty

func (S Stock) ConvertQty(from, to string) int

func (*Stock) MediumToSmall

func (S *Stock) MediumToSmall(qty int) (int, error)

func (*Stock) Unbox

func (S *Stock) Unbox(from, to string, qty int) (int, error)

type Toko

type Toko struct {
	NomorToko    int
	NamaToko     string
	NomorTelepon string
	Alamat       string
}

type User

type User struct {
	Id       uint   `json:"id" gorm:"unique"`
	Name     string `json:"name"`
	NIK      string `json:"nik" gorm:"unique"`
	Password []byte `json:"-"`
	Role     string `json:"role"`
}

Jump to

Keyboard shortcuts

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