form barang bawaan teknisi dan fix bug draft item
This commit is contained in:
@@ -811,10 +811,10 @@ function rupiahToNumber(value){
|
||||
|
||||
if(!value) return 0;
|
||||
|
||||
return parseInt(
|
||||
value.toString()
|
||||
.replace(/[^\d]/g,'')
|
||||
) || 0;
|
||||
let s = value.toString().trim();
|
||||
s = s.replace(/\.(?=\d{3}(\.|$))/g, '');
|
||||
s = s.replace(/,/g, '');
|
||||
return parseFloat(s) || 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user