pos_journal_sequence : pos_sequence -> sequence, to have the same as v9

This commit is contained in:
Alexis de Lattre
2014-12-02 15:42:36 +01:00
parent 7f1c5a9b7e
commit 5052b233dd
4 changed files with 12 additions and 8 deletions

View File

@@ -6,9 +6,9 @@ index 8e02ddd..b95c113 100644
renderElement: function() {
var self = this;
this._super();
+ // sort cashregisters by pos_sequence
+ // sort cashregisters by sequence
+ this.pos.cashregisters.sort(function(obj1, obj2) {
+ return obj1.journal.pos_sequence - obj2.journal.pos_sequence;
+ return obj1.journal.sequence - obj2.journal.sequence;
+ });
_.each(this.pos.cashregisters,function(cashregister) {