branch aku jah deh
This commit is contained in:
Vendored
+19
-1
@@ -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];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user