Browse Source

Correctif order-order.js

refactoring
Guillaume 3 years ago
parent
commit
714ae397fd
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      producer/web/js/vuejs/order-order.js

+ 3
- 6
producer/web/js/vuejs/order-order.js View File

this.init('first') ; this.init('first') ;


if(dateDefined) {
if(this.producer && this.producer.option_order_entry_point == 'date') {
this.changeStep('point-sale') ;
}
}

this.loadingInit = false ; this.loadingInit = false ;
}, },
methods: { methods: {
if(app.producer.option_order_entry_point == 'point-sale') { if(app.producer.option_order_entry_point == 'point-sale') {
app.step = 'point-sale' ; app.step = 'point-sale' ;
} }
else if(app.getDate() && app.producer && app.producer.option_order_entry_point == 'date') {
app.step = 'point-sale' ;
}
else { else {
app.step = 'date' ; app.step = 'date' ;
} }

Loading…
Cancel
Save