package models

type KeuanganModel struct {
	F_BillID          int    `db:"F_BillID"`
	F_BillNo          string `db:"F_BillNo"`
	F_BillCorporateID int    `db:"F_BillCorporateID"`
	F_BillDueDate     string `db:"F_BillDueDate"`
	F_BillTotal       int    `db:"F_BillTotal"`
	F_BillUnpaid      int    `db:"F_BillUnpaid"`
	F_BillCreated     string `db:"F_BillCreated"`
	BillPayment       []BillPaymentModel
	TotalBillPayment  int
}

type BillPaymentModel struct {
	F_BillPaymentID       int     `db:"F_BillPaymentID"`
	F_BillPaymentF_BillID int     `db:"F_BillPaymentF_BillID"`
	F_BillPaymentDate     string  `db:"F_BillPaymentDate"`
	F_BillPaymentNumber   string  `db:"F_BillPaymentNumber"`
	F_BillPaymentAmount   float64 `db:"F_BillPaymentAmount"`
}

type TotalOrderHeader struct {
	T_OrderHeaderID          int     `db:"T_OrderHeaderID"`
	T_OrderHeaderCorporateID int     `db:"T_OrderHeaderCorporateID"`
	T_OrderHeaderTotal       float64 `db:"T_OrderHeaderTotal"`
	T_OrderHeaderCreated     string  `db:"T_OrderHeaderCreated"`
}

type TotalBillCard struct {
	TotalTagihan   int
	TotalPelunasan int
	TotalHutang    int
}
