handle optional POS config in order setup and update equal split button placement
This commit is contained in:
parent
c29a74a41b
commit
bff3db82de
@ -11,7 +11,7 @@ patch(Order.prototype, {
|
|||||||
setup(_defaultObj, options) {
|
setup(_defaultObj, options) {
|
||||||
super.setup(...arguments);
|
super.setup(...arguments);
|
||||||
// Initialize with POS config defaults
|
// Initialize with POS config defaults
|
||||||
const config = this.pos.config;
|
const config = this.pos?.config || {};
|
||||||
this.order_source = config.default_order_source || 'walk_in';
|
this.order_source = config.default_order_source || 'walk_in';
|
||||||
this.fulfilment_type = config.default_fulfilment_type || 'dine_in';
|
this.fulfilment_type = config.default_fulfilment_type || 'dine_in';
|
||||||
this.delivery_street = '';
|
this.delivery_street = '';
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
t-inherit="pos_restaurant.SplitBillScreen"
|
t-inherit="pos_restaurant.SplitBillScreen"
|
||||||
t-inherit-mode="extension"
|
t-inherit-mode="extension"
|
||||||
owl="1">
|
owl="1">
|
||||||
<xpath expr="//div[hasclass('split-bill-screen')]" position="prepend">
|
<xpath expr="//div[hasclass('top-content')]" position="before">
|
||||||
<div class="equal-split-toggle-bar d-flex align-items-center justify-content-between px-3 py-2 border-bottom">
|
<div class="equal-split-toggle-bar d-flex align-items-center justify-content-between px-3 py-2 border-bottom">
|
||||||
<span class="fw-semibold text-muted small">
|
<span class="fw-semibold text-muted small">
|
||||||
<i class="fa fa-cut me-1"/>Split By Item
|
<i class="fa fa-cut me-1"/>Split By Item
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user