Update payment type

This commit is contained in:
aditya.siregar
2024-08-28 12:59:44 +07:00
parent 0b8c247045
commit 7aceb0488b
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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
}