Subversion Repositories SmartDukaan

Rev

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

Rev 9523 Rev 9527
Line 673... Line 673...
673
						sent_inventory = 0;
673
						sent_inventory = 0;
674
					}
674
					}
675
					
675
					
676
				}
676
				}
677
				else{
677
				else{
678
					if(actualavailability > defaultinventory){
678
					if((actualavailability + inventoryItem.getHeldForSource()) > defaultinventory){
679
						if((Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource()) > heldorders){
679
						if((Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource()) > heldorders){
680
							System.out.println("actual" + actualavailability + "\t2/3actual" + Math.round(actualavailability*2/3) +  "\theld for source" + inventoryItem.getHeldForSource() + "\theldorders" +  heldorders + "\tFinal Value is : " + (Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource() - heldorders));
680
							System.out.println("actual" + actualavailability + "\t2/3actual" + Math.round(actualavailability*2/3) +  "\theld for source" + inventoryItem.getHeldForSource() + "\theldorders" +  heldorders + "\tFinal Value is : " + (Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource() - heldorders));
681
							sent_inventory = Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource() - heldorders;
681
							sent_inventory = Math.round(actualavailability*2/3) +  inventoryItem.getHeldForSource() - heldorders;
682
						}
682
						}
683
						else{
683
						else{