Subversion Repositories SmartDukaan

Rev

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

Rev 27035 Rev 27040
Line 649... Line 649...
649
						}
649
						}
650
					} else {
650
					} else {
651
						FofoAvailabilityInfo fdi = new FofoAvailabilityInfo();
651
						FofoAvailabilityInfo fdi = new FofoAvailabilityInfo();
652
						SaholicCIS currentAvailability = itemAvailabilityMap.get(itemId);
652
						SaholicCIS currentAvailability = itemAvailabilityMap.get(itemId);
653
						SaholicPOItem poItemAvailability = poItemAvailabilityMap.get(itemId); 
653
						SaholicPOItem poItemAvailability = poItemAvailabilityMap.get(itemId); 
654
						String poColor = "grey";
654
						String poColor = "red";
655
						boolean active = false;
655
						boolean active = false;
656
						if(currentAvailability != null && currentAvailability.getNetavailability() > 0) {
656
						if(currentAvailability != null && currentAvailability.getNetavailability() > 0) {
657
							poColor = "green";
657
							poColor = "green";
658
							modelColorClass = "green";
658
							modelColorClass = "green";
659
						} else if (poItemAvailability != null && poItemAvailability.getUnfulfilledQty() > 0) {
659
						} else if (poItemAvailability != null && poItemAvailability.getUnfulfilledQty() > 0) {
660
							if(currentAvailability != null 
660
							if(currentAvailability != null 
661
							&& poItemAvailability.getUnfulfilledQty() + currentAvailability.getNetavailability() <= 0) {
661
							&& poItemAvailability.getUnfulfilledQty() + currentAvailability.getNetavailability() <= 0) {
662
								poColor = "grey";
662
								poColor = "red";
663
							} else {
663
							} else {
664
								poColor = "orange";
664
								poColor = "yellow";
665
								if(modelColorClass!="green") {
665
								if(modelColorClass!="green") {
666
									modelColorClass = poColor;
666
									modelColorClass = poColor;
667
								}
667
								}
668
							}
668
							}
669
						}
669
						}