Commit bf3ad3f71ac1a4b0df685ca64ced745f4cacfad6
1 parent
e029b230f9
Exists in
master
supplier ending balance
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
lib/partner.js
... | ... | @@ -106,6 +106,7 @@ function _hit(task, is_advice) { |
106 | 106 | message: result.message, |
107 | 107 | sn: result.sn, |
108 | 108 | amount: Number(result.amount) || null, |
109 | + balance: Number(qs.ending_balance) || null, | |
109 | 110 | raw: body, |
110 | 111 | misc: { |
111 | 112 | task: task |
... | ... | @@ -127,7 +128,7 @@ function reverseReportHandler(req, res) { |
127 | 128 | |
128 | 129 | logger.verbose('Incoming reverse report', {report_id: report_id, url: req.url}); |
129 | 130 | res.end('OK'); |
130 | - | |
131 | + | |
131 | 132 | const qs = URL.parse(req.url, true).query; |
132 | 133 | |
133 | 134 | if (!qs.request_id || !qs.rc) { |
... | ... | @@ -147,6 +148,7 @@ function reverseReportHandler(req, res) { |
147 | 148 | message: qs.message, |
148 | 149 | sn: qs.sn, |
149 | 150 | amount: qs.amount || null, |
151 | + balance: Number(qs.ending_balance) || null, | |
150 | 152 | raw: req.url, |
151 | 153 | misc: { |
152 | 154 | task: task |