Skip to content

Instantly share code, notes, and snippets.

@dhruv-soft
Created June 6, 2013 10:19
Show Gist options
  • Save dhruv-soft/5720578 to your computer and use it in GitHub Desktop.
Save dhruv-soft/5720578 to your computer and use it in GitHub Desktop.
IMAGE ( IF ( AND ( DeliveryDate__c >=56 , ISPICKVAL( Stage__c, "New Order" )),"/img/samples/color_green.gif",
IF ( ISPICKVAL( Stage__c, "New Order" ),"/img/samples/color_red.gif",
IF ( AND ( DeliveryDate__c >= 56 , ISPICKVAL( Stage__c, "In production" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c < 56 , DeliveryDate__c >= 42 , ISPICKVAL( Stage__c, "In production" )),"/img/samples/color_yellow.gif",
IF ( ISPICKVAL( Stage__c, "In production" ),"/img/samples/color_red.gif",
IF ( AND ( DeliveryDate__c >= 7 , DeliveryDate__c < 14 , FactoryShipmentDate__c > 35 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c >= 14 , DeliveryDate__c < 21 , FactoryShipmentDate__c > 28 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c >= 21 , DeliveryDate__c < 28 , FactoryShipmentDate__c > 21 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c >= 28, DeliveryDate__c < 35 ,FactoryShipmentDate__c> 14 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c >= 35 , DeliveryDate__c < 42 , FactoryShipmentDate__c> 7 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c >= 28, DeliveryDate__c < 35 ,FactoryShipmentDate__c< 7 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_red.gif", IF ( AND ( DeliveryDate__c >= 21 , DeliveryDate__c < 28 , FactoryShipmentDate__c < 14 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_red.gif", IF ( AND ( DeliveryDate__c >= 14 , DeliveryDate__c < 21 , FactoryShipmentDate__c < 21 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_red.gif", IF ( AND ( DeliveryDate__c >= 7 , DeliveryDate__c < 14 , FactoryShipmentDate__c < 28 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_red.gif", IF ( AND ( DeliveryDate__c >= 7 , DeliveryDate__c < 42 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_yellow.gif",
IF ( AND ( DeliveryDate__c < 7 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_red.gif", IF ( AND ( DeliveryDate__c >= 7 , ISPICKVAL( Stage__c, "Transported" )),"/img/samples/color_green.gif",
IF ( AND ( DeliveryDate__c < 7 , ISPICKVAL( Stage__c, "RT Ship" )),"/img/samples/color_yellow.gif", IF ( AND ( DeliveryDate__c >= 7 , ISPICKVAL( Stage__c, "RT Ship" )),"/img/samples/color_green.gif",
IF ( ISPICKVAL( Stage__c, "Received" ),"/img/samples/color_grey.gif",
null )
))))))))))))))))))),
"status",18,55)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment