Update payment type
This commit is contained in:
@@ -240,3 +240,11 @@ type OrderPrintDetail struct {
|
||||
Total float64 `gorm:"column:total"`
|
||||
Fee float64 `gorm:"column:fee"`
|
||||
}
|
||||
|
||||
func (o *OrderPrintDetail) GetPaymanetType() string {
|
||||
if o.PaymentType == "CASH" {
|
||||
return "TUNAI"
|
||||
}
|
||||
|
||||
return o.PaymentType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user