[FIX] purchase: fixed error when making po from procurement + [FIX] resource: fixed error in computation of next day when exceptions are involved