laiguoran пре 3 година
родитељ
комит
561331add6
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/service/change_ledger.js

+ 1 - 0
app/service/change_ledger.js

@@ -597,6 +597,7 @@ module.exports = app => {
                 if (!this.newBills) {
                     await this.transaction.update(this.ctx.service.ledger.tableName, { id: pre.id, order: pre[this.setting.order] + count });
                 }
+                order.push(pre[this.setting.order] + count);
                 await this.transaction.commit();
                 this.transaction = null;
             } catch (err) {