소스 검색

历史台账相关

MaiXinRong 3 년 전
부모
커밋
56c9fbb0c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/ledger_history.js

+ 1 - 1
app/service/ledger_history.js

@@ -74,7 +74,7 @@ module.exports = app => {
             const sbCount = await this.ctx.service.ledger.count({ tender_id: this.ctx.stage.tid });
             const spCount = await this.ctx.service.pos.count({ tid: this.ctx.stage.tid });
             const ledgerHis = await this.ctx.service.ledgerHistory.getLatestHistory(this.ctx.tender.id);
-            if (sbCount === ledgerHis.bills_count || spCount === ledgerHis.pos_count) return ledgerHis.id;
+            if (sbCount === ledgerHis.bills_count && spCount === ledgerHis.pos_count) return ledgerHis.id;
 
             const now = new Date();
             const timestamp = (now).getTime();