Update Product POS
This commit is contained in:
@@ -230,6 +230,7 @@ type OrderPrintDetail struct {
|
||||
ID int64 `gorm:"column:id"`
|
||||
Logo string `gorm:"logo"`
|
||||
PartnerName string `gorm:"column:partner_name"`
|
||||
SiteName string `gorm:"column:site_name"`
|
||||
OrderID string `gorm:"column:order_id"`
|
||||
VisitDate time.Time `gorm:"column:visit_date"`
|
||||
PaymentType string `gorm:"column:payment_type"`
|
||||
|
||||
@@ -21,7 +21,7 @@ type Product struct {
|
||||
DeletedAt *time.Time `gorm:"column:deleted_at"`
|
||||
CreatedBy int64 `gorm:"type:int;column:created_by"`
|
||||
UpdatedBy int64 `gorm:"type:int;column:updated_by"`
|
||||
Stock int64 `gorm:"type:int;column:stock"`
|
||||
Stock int64 `gorm:"type:int;column:stock"`
|
||||
}
|
||||
|
||||
func (Product) TableName() string {
|
||||
@@ -94,7 +94,8 @@ func (b *ProductList) ToProductList() []*Product {
|
||||
|
||||
func (b *ProductList) ToProductListPOS() []*Product {
|
||||
var Products []*Product
|
||||
today := time.Now().Weekday()
|
||||
location, _ := time.LoadLocation("Asia/Jakarta")
|
||||
today := time.Now().In(location).Weekday()
|
||||
isWeekend := today == time.Saturday || today == time.Sunday
|
||||
|
||||
for _, p := range *b {
|
||||
|
||||
Reference in New Issue
Block a user