|
@ -145,13 +145,20 @@ odoo.define('vracoop_pos_free_balance_v2.models_and_db_balance', function (requi |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// returns the id of balance/caisse from config
|
|
|
|
|
|
|
|
|
// returns the id of caisse from config
|
|
|
get_balance_id: function(){ |
|
|
get_balance_id: function(){ |
|
|
if (this.config.balance_id) { |
|
|
if (this.config.balance_id) { |
|
|
return this.config.balance_id; |
|
|
return this.config.balance_id; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// returns the id of balance from config
|
|
|
|
|
|
get_caisse_id: function(){ |
|
|
|
|
|
if (this.config.caisse_id) { |
|
|
|
|
|
return this.config.caisse_id; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// returns if the pos is balance from config
|
|
|
// returns if the pos is balance from config
|
|
|
get_is_balance_free: function(){ |
|
|
get_is_balance_free: function(){ |
|
|
if (this.config.is_balance_free) { |
|
|
if (this.config.is_balance_free) { |
|
@ -296,7 +303,7 @@ odoo.define('vracoop_pos_free_balance_v2.models_and_db_balance', function (requi |
|
|
container_id: this.get_container() ? this.get_container().id : null, |
|
|
container_id: this.get_container() ? this.get_container().id : null, |
|
|
container_barcode: this.get_container() ? this.get_container().barcode : null, |
|
|
container_barcode: this.get_container() ? this.get_container().barcode : null, |
|
|
container_weight: this.get_container() ? this.get_container().weight : null, |
|
|
container_weight: this.get_container() ? this.get_container().weight : null, |
|
|
caisse_id: this.pos.config.balance_id, |
|
|
|
|
|
|
|
|
caisse_id: this.pos.config.caisse_id, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
}), |
|
|
}), |
|
|