branch aku jah deh

This commit is contained in:
hafifierahman
2021-01-05 09:55:06 +08:00
parent b533e2de7d
commit c7704e0741
26 changed files with 3082 additions and 475 deletions
+19 -1
View File
@@ -6,6 +6,21 @@ function totalamount(idwang,bilangan)
var amount = 0;
switch (idwang) {
case 'bundle1':
// var rec1 = parseInt($('#rekodb1').val());
// var tempbil = 0;
// console.log(rec1);
// bilangan != '' ? tempbil = bilangan : tempbil = 0;
// console.log(tempbil);
// total = rec1-tempbil;
// $('#rekodb1').val(total);
amount += (bilangan * 100);
break;
case 'bundle20':
@@ -76,8 +91,11 @@ function totalkey(datakeyin)
$.each(arrayambilan, function( index, arr ){
if(arr[0] == idkey)
arrayambilan[index][1] = totalamount(idkey,valkey);
{
arrayambilan[index][1] = totalamount(idkey,valkey);
}
amount += arr[1];
});