From 1154ff807af262db6581672ef8df54b5fd2b02ef Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Mon, 22 Aug 2016 15:39:41 +0700 Subject: [PATCH] sn dari field SN --- xmlout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmlout.js b/xmlout.js index d71a922..a9bd42e 100644 --- a/xmlout.js +++ b/xmlout.js @@ -108,7 +108,10 @@ function _topupRequest(task) { value['RESPONSECODE'] = '68'; } - if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') { + if (value['RESPONSECODE'] == '00' && value['SN'] && value['SN'].trim()) { + value['MESSAGE'] = 'SN=' + value['SN'].trim() + '; ' + value['MESSAGE']; + } + else if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') { value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE']; } -- 1.9.0