|
@@ -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();
|