Question: Same Purchase Reference Number

Same Purchase Reference Number

Recently found an issue where purchase reference number for recent payments is same. Please see the screenshots. How is the system calculating Payment Reference number? Any auto-increment o

HS

Harpreet Singh

Asked
Recently found an issue where purchase reference number for recent payments is same. Please see the screenshots.

How is the system calculating Payment Reference number? Any auto-increment of manually through code?
  • HS

    Harpreet Singh

    Answered
    Just wanted to add my reviews:

    I had worked with CI lately and we faced about similar issue where SELECT queries were being cached, despite of db_cache = false in database.php.

    To resolve that, we have to add $this->db->cache_delete_all(); function before every SELECT statement that must return highly dynamic data.

    Hope that help.
  • MS

    Mian Saleem

    Answered
    Thank you for letting us know. I will check this. You actually can reply to that question too so that it will be easier to follow up. Thanks again
  • Login to Reply