Commit b07b330dfc6e813eec7b706183a76f3bb5eda16e

Authored by Adhidarma Hadiwinoto
1 parent dcb65e1202
Exists in master

penanganan thousand separator di jumlah stok

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

partner-scrappingkisel.js
... ... @@ -172,7 +172,8 @@ function parseStock(stocks, product_desc) {
172 172 }
173 173  
174 174 if (stock[0] == product_keyword) {
175   - return parseInt(stock[1]);
  175 + var value = stock[1].replace(/[,\.]/g, '');
  176 + return parseInt(value);
176 177 }
177 178 }
178 179