Subversion Repositories SmartDukaan

Rev

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

Rev 34798 Rev 35011
Line 67... Line 67...
67
                        <td>$cr.getValue().getCode()</td>
67
                        <td>$cr.getValue().getCode()</td>
68
 
68
 
69
                        <td>$fofoIdPartnerTypeMap.get($cr.getKey())
69
                        <td>$fofoIdPartnerTypeMap.get($cr.getKey())
70
                            <input type="hidden" class="shortInvestment-mk"
70
                            <input type="hidden" class="shortInvestment-mk"
71
                                   value="$partnerDailyInvestmentMap.get($cr.getKey()).getShortInvestment().longValue()">
71
                                   value="$partnerDailyInvestmentMap.get($cr.getKey()).getShortInvestment().longValue()">
-
 
72
                            <input type="hidden" class="totaldue-with-interest-mk"
-
 
73
                                   value="$totalDueMap.get($cr.getKey()).setScale(0,$ru)">
72
 
74
 
73
                        </td>
75
                        </td>
74
                        <td>$partnerSalesHeadersMap.get($cr.getKey()).getTerritoryManager()</td>
76
                        <td>$partnerSalesHeadersMap.get($cr.getKey()).getTerritoryManager()</td>
75
 
77
 
76
                        <td class="currency">$partnerDailyInvestmentMap.get($cr.getKey()).getWalletAmount()</td>
78
                        <td class="currency">$partnerDailyInvestmentMap.get($cr.getKey()).getWalletAmount()</td>
Line 340... Line 342...
340
        var fofoId = $(this).data('fofoid');
342
        var fofoId = $(this).data('fofoid');
341
        var brand = $(this).data('brand');
343
        var brand = $(this).data('brand');
342
 
344
 
343
        var $row = $(this).closest('tr');
345
        var $row = $(this).closest('tr');
344
 
346
 
345
        ## var shortInvest = $row.find('.shortInvestment-mk').val().trim();
347
        var shortInvest = $row.find('.shortInvestment-mk').val().trim();
-
 
348
        var totalDueWithInterest = $row.find('.totaldue-with-interest-mk').val().trim();
346
        var shortInvest = 0;
349
        // var shortInvest = 0;
347
 
350
 
348
        console.log(shortInvest)
351
        console.log(shortInvest)
349
 
352
 
350
        doGetAjaxRequestHandler(context + "/getPartnerShortageStock?brand=" + brand + "&fofoId=" + fofoId + "&shortInvest=" + shortInvest, function (response) {
353
        doGetAjaxRequestHandler(context + "/getPartnerShortageStock?brand=" + brand + "&fofoId=" + fofoId + "&shortInvest=" + shortInvest, +"&totalDueWithInterest=" + totalDueWithInterest, function (response) {
351
 
354
 
352
            $('#itemWiseBrandStock .modal-content').html(response);
355
            $('#itemWiseBrandStock .modal-content').html(response);
353
            getPartnerShortageStockDetail(fofoId, brand);
356
            getPartnerShortageStockDetail(fofoId, brand);
354
 
357
 
355
        });
358
        });