Study of optimal ordering policies for time varying decay rate of inventory under different payment conditions