Subversion Repositories SmartDukaan

Rev

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

Rev 32023 Rev 32032
Line 785... Line 785...
785
                    finalPayout = eligiblePayoutValue;
785
                    finalPayout = eligiblePayoutValue;
786
                    Map<Integer, Double> fofoCriteriaMap = fixedSlabCriteriaPartnerMap.get(criteriaId);
786
                    Map<Integer, Double> fofoCriteriaMap = fixedSlabCriteriaPartnerMap.get(criteriaId);
787
                    if (fofoCriteriaMap != null) {
787
                    if (fofoCriteriaMap != null) {
788
                        if (fofoCriteriaMap.containsKey(fofoId)) {
788
                        if (fofoCriteriaMap.containsKey(fofoId)) {
789
                            double totalPayout = fofoCriteriaMap.get(fofoId);
789
                            double totalPayout = fofoCriteriaMap.get(fofoId);
790
                            if (totalPayout - finalPayout > Utils.DOUBLE_EPSILON)
790
                            if (Math.abs(eligiblePayoutValue - finalPayout) < Utils.DOUBLE_EPSILON)
791
                                finalPayout = 0;
791
                                finalPayout = 0;
792
                        }
792
                        }
793
                    }
793
                    }
794
                }
794
                }
795
 
795
 
Line 803... Line 803...
803
                            amount = eligiblePayoutValue * (lineItemValueEntry.getValue() / totalDpValue);
803
                            amount = eligiblePayoutValue * (lineItemValueEntry.getValue() / totalDpValue);
804
                            //Fixed slab should be treated as fixed after payout
804
                            //Fixed slab should be treated as fixed after payout
805
                        } else {
805
                        } else {
806
                            amount = eligiblePayoutValue;
806
                            amount = eligiblePayoutValue;
807
                        }
807
                        }
808
 
-
 
809
                        if (serialNumberPaid.containsKey(lineItemValueEntry.getKey().getSerialNumber())) {
808
                        if (serialNumberPaid.containsKey(lineItemValueEntry.getKey().getSerialNumber())) {
810
                            amount = amount - serialNumberPaid.get(lineItemValueEntry.getKey().getSerialNumber());
809
                            amount = amount - serialNumberPaid.get(lineItemValueEntry.getKey().getSerialNumber());
811
                        }
810
                        }
812
                        //ignore reasonably small
811
                        //ignore reasonably small
813
                        if (amount < Utils.DOUBLE_EPSILON) continue;
812
                        if (amount < Utils.DOUBLE_EPSILON) continue;