Shop.__super__.constructor.apply(this, arguments);
}
- Shop.prototype.defaults = {
- orders: new OrderCollection,
- products: new ProductCollection
- };
Shop.prototype.initialize = function() {
this.set({
+ orders: new OrderCollection(),
+ products: new ProductCollection()
+ });
+ this.set({
cashRegisters: new CashRegisterCollection(pos.store.get('account.bank.statement')),
});
return (this.get('orders')).bind('remove', __bind( function(removedOrder) {
});
if (pos)
- throw "It is not possible to instantiate multiple instances"+
+ throw "It is not possible to instantiate multiple instances "+
"of the point of sale at the same time.";
pos = new Pos(this.session);