summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-10-11 10:35:52 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-10-11 10:35:52 +0700
commiteabf0ceb0fb6900736449fcb0b82125afc955751 (patch)
tree8d7587a552e8be600518eca77b0d3c1d83f79204
parent224f1dd2cf63d01c2a1e8cfa8e78521140827353 (diff)
Update discount_amount type int to float on voucher model
-rw-r--r--indoteknik_custom/models/voucher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/voucher.py b/indoteknik_custom/models/voucher.py
index a40f8c42..66c50c24 100644
--- a/indoteknik_custom/models/voucher.py
+++ b/indoteknik_custom/models/voucher.py
@@ -12,7 +12,7 @@ class Voucher(models.Model):
image = fields.Binary(string='Image')
code = fields.Char(string='Code', help='Kode voucher yang akan berlaku untuk pengguna')
description = fields.Text(string='Description')
- discount_amount = fields.Integer(string='Discount Amount')
+ discount_amount = fields.Float(string='Discount Amount')
discount_type = fields.Selection(string='Discount Type',
selection=[
('percentage', 'Percentage'),