Commit 07218fe3ec19f254bfba40e4f3b061387ebde951

Authored by Adhidarma Hadiwinoto
1 parent 48b079b533
Exists in master

perbaikan field harga dari suplier

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

... ... @@ -111,12 +111,12 @@ function processPartnerResponseBody(body, task) {
111 111 messages.push(responseMessage);
112 112 }
113 113  
114   - let responseAmount;
115   - if (response.data && response.data.info && response.data.info.amount) {
116   - responseAmount = response.data.info.amount;
  114 + let responseHarga;
  115 + if (response.data && response.data.harga) {
  116 + responseHarga = response.data.harga;
117 117  
118   - if (responseAmount) {
119   - messages.push('Amount: ' + responseAmount);
  118 + if (responseHarga) {
  119 + messages.push('Price: ' + responseHarga);
120 120 }
121 121 }
122 122  
... ... @@ -137,7 +137,7 @@ function processPartnerResponseBody(body, task) {
137 137 message: messages.join('. ') + '.',
138 138 sn: null,
139 139 handler: config.handler_name,
140   - amount: responseAmount,
  140 + amount: responseHarga,
141 141 balance: responseBalance,
142 142 core_task: task,
143 143 raw: body