|
@@ -93,6 +93,15 @@ class ShopInBillService extends CrudService {
|
|
|
canGet = this.ctx.minus(canGet, outBillMoney);
|
|
|
return { total, canGet };
|
|
|
}
|
|
|
+
|
|
|
+ async afterQuery(filter, data) {
|
|
|
+ for (const i of data) {
|
|
|
+ const { source } = i;
|
|
|
+ if (parseInt(source) >= 0) i.receipts = `+${i.receipts}`;
|
|
|
+ else i.receipts = `-${i.receipts}`;
|
|
|
+ }
|
|
|
+ return data;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
module.exports = ShopInBillService;
|