Update Dinein method
This commit is contained in:
parent
1afc155637
commit
fc521c7b2f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
__psycache__
|
||||||
@ -3,7 +3,7 @@
|
|||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'category': 'Point of Sale',
|
'category': 'Point of Sale',
|
||||||
'summary': 'Export POS orders to BC Excel format',
|
'summary': 'Export POS orders to BC Excel format',
|
||||||
'author': 'Aziz',
|
'author': 'Abdul Aziz Amrullah',
|
||||||
'description': """
|
'description': """
|
||||||
This module adds a wizard in the POS backend to export POS Orders
|
This module adds a wizard in the POS backend to export POS Orders
|
||||||
into a specific BC Excel format ("MIE MAPAN INVOICES").
|
into a specific BC Excel format ("MIE MAPAN INVOICES").
|
||||||
|
|||||||
@ -107,8 +107,8 @@ class PosExportBcWizard(models.TransientModel):
|
|||||||
payment_methods = ', '.join(order.payment_ids.mapped('payment_method_id.name'))
|
payment_methods = ', '.join(order.payment_ids.mapped('payment_method_id.name'))
|
||||||
note = order.note if 'note' in order._fields else ''
|
note = order.note if 'note' in order._fields else ''
|
||||||
# dinein = 'dinein' if table else 'takeaway'
|
# dinein = 'dinein' if table else 'takeaway'
|
||||||
preset = order.preset_id.name
|
# preset = order.preset_id.name
|
||||||
if "dine" in preset.lower():
|
if table <= 60:
|
||||||
dinein = "dinein"
|
dinein = "dinein"
|
||||||
else:
|
else:
|
||||||
dinein = "takeaway"
|
dinein = "takeaway"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user