[IMP] pos_restaurant: set default #customer to 1 for all tables.

This commit is contained in:
Frédéric van der Essen
2015-05-04 14:13:44 +02:00
parent 3149c1e03f
commit fb93cc2509
@@ -678,13 +678,7 @@ models.Order = models.Order.extend({
if (!this.table) {
this.table = this.pos.table;
}
if (!this.customer_count) {
if (this.table) {
this.customer_count = this.table.seats;
} else {
this.customer_count = 1;
}
}
this.customer_count = this.customer_count || 1;
this.save_to_db();
},
export_as_JSON: function() {