Subversion Repositories SmartDukaan

Rev

Rev 30973 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30973 Rev 30975
Line 4... Line 4...
4
        <thead class="row htable" style="background:#F5F5F5;">
4
        <thead class="row htable" style="background:#F5F5F5;">
5
 
5
 
6
        <tr style="color:black;">
6
        <tr style="color:black;">
7
            <th rowspan="2">Committed By</th>
7
            <th rowspan="2">Committed By</th>
8
            <th rowspan="2">Partner Name</th>
8
            <th rowspan="2">Partner Name</th>
9
            <th colspan="2">Collection</th>
9
            <th colspan="2">Collection Tgt (<span id="coltgt"> </span>)</th>
10
            <th colspan="2">Total</th>
10
            <th colspan="2">Total Sale Tgt (<span id="saletgt"> </span>)</th>
11
            <th colspan="2">Samsung</th>
11
            <th colspan="2">Samsung</th>
12
            <th colspan="2">Oppo</th>
12
            <th colspan="2">Oppo</th>
13
            <th colspan="2">Vivo</th>
13
            <th colspan="2">Vivo</th>
14
            <th colspan="2">Itel</th>
14
            <th colspan="2">Itel</th>
15
            <th colspan="2">Almost New</th>
15
            <th colspan="2">Almost New</th>
16
            <th colspan="2">Others</th>
16
            <th colspan="2">Others</th>
17
        </tr>
17
        </tr>
18
        <tr>
18
        <tr>
19
            <th>Target(<span id="coltgt"> </span>)</th>
19
            <th>Target</th>
20
            <th>Ach (<span id="colach"> </span>)</th>
20
            <th>Ach (<span id="colach"> </span>)</th>
21
            <th>Tgt</th>
21
            <th>Tgt</th>
22
            <th>Ach</th>
22
            <th>Ach (<span id="saleach"> </span>)</th>
23
            <th>Tgt</th>
23
            <th>Tgt</th>
24
            <th>Ach</th>
24
            <th>Ach</th>
25
            <th>Tgt</th>
25
            <th>Tgt</th>
26
            <th>Ach</th>
26
            <th>Ach</th>
27
            <th>Tgt</th>
27
            <th>Tgt</th>
Line 73... Line 73...
73
    });
73
    });
74
 
74
 
75
 
75
 
76
    function datatableSum() {
76
    function datatableSum() {
77
 
77
 
78
        var col_tgt_sum = $('#commitment-table').DataTable().column(2, {page: 'current'}).data().sum();
78
        let col_tgt_sum = $('#commitment-table').DataTable().column(2, {page: 'current'}).data().sum();
79
        $('#coltgt').html(col_tgt_sum);
79
        $('#coltgt').html(numberToComma(col_tgt_sum));
80
 
80
 
81
 
81
 
82
        var col_acv_sum = $('#commitment-table').DataTable().column(3, {page: 'current'}).data().sum();
82
        let col_ach_sum = $('#commitment-table').DataTable().column(3, {page: 'current'}).data().sum();
83
        console.log(col_acv_sum)
83
        console.log(col_ach_sum)
84
        $('#colach').html(col_acv_sum);
84
        $('#colach').html(numberToComma(col_ach_sum));
-
 
85
 
-
 
86
        let sale_tgt_sum = $('#commitment-table').DataTable().column(4, {page: 'current'}).data().sum();
-
 
87
        let sale_ach_sum = $('#commitment-table').DataTable().column(5, {page: 'current'}).data().sum();
-
 
88
        $('#saletgt').html(numberToComma(sale_tgt_sum));
-
 
89
        $('#saleach').html(numberToComma(sale_ach_sum));
85
 
90
 
86
    }
91
    }
87
 
92
 
88
 
93
 
89
</script>
94
</script>
90
95