minor fix tip_product and delivery_product

This commit is contained in:
Wilson Gomez 2023-01-25 12:15:04 -05:00
parent 03553bb4f7
commit af854c3eb5
1 changed files with 2 additions and 2 deletions

View File

@ -1172,7 +1172,7 @@ class AppWindow(FrontWindow):
tip_invoice = self.field_tip_amount_invoice.isChecked()
self.field_tip_amount_invoice.setChecked(False)
if tip_invoice:
tip_product = self._config.get('tip_product')
tip_product = self._config.get('tip_product.')
self.add_product(record=tip_product, list_price=value)
res = self.store.update({'tip_amount': 0})
self.set_amounts(res)
@ -1192,7 +1192,7 @@ class AppWindow(FrontWindow):
delivery_invoice = self.field_delivery_amount_invoice.isChecked()
self.field_delivery_amount_invoice.setChecked(False)
if delivery_invoice:
delivery_product = self._config.get('delivery_product')
delivery_product = self._config.get('delivery_product.')
self.add_product(record=delivery_product, list_price=value)
res = self.store.update({'delivery_amount': 0})
self.set_amounts(res)