Commit cd46141719ada91def22b7986f8188f43720b666
1 parent
eae16d143f
Exists in
master
perbaikan bug reply total_kwh dari suplier
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
partner-simplepay.js
... | ... | @@ -135,6 +135,12 @@ function _composeCompleteSn(responseDataObj) { |
135 | 135 | if (cleanedData.cust_name) { |
136 | 136 | cleanedData.cust_name = cleanedData.cust_name.replace(/\W+/g, ' ').trim().replace(/\W+/g, '-').toUpperCase(); |
137 | 137 | } |
138 | + | |
139 | + if (cleanedData.total_kwh) { | |
140 | + cleanedData.total_kwh = cleanedData.total_kwh.replace(/kWh /g, ''); | |
141 | + } | |
142 | + | |
143 | + | |
138 | 144 | logger.verbose('Detail token info extracted', {originalResponseInfo: info, cleanedData: cleanedData}); |
139 | 145 | |
140 | 146 | return [ |