Question: Same Invoice Number

Same Invoice Number

We had two different sales with two different sales person at the same time, the invoice came out with the same number for the two sales ,what could be the issue?

E

Erico

Asked
We had two different sales with two different sales person at the same time, the invoice came out with the same number for the two sales ,what could be the issue?
  • MS

    Mian Saleem

    Answered
    Hello,

    If you leave the reference input empty, system will generate it while adding sale. As I know the sale use db transaction and there shouldn't be such issue, unless it was typed or for some reason edit page caused this. I am not sure, if it was not manual then please let me know. I will check this.

    Thank you
  • E

    Erico

    Answered
    Hello, we have two terminals each terminal have its sales person the sale made was through pos, it was not manual payment.
    They sold the same time which i guess submitted the same receipt number
  • MS

    Mian Saleem

    Answered
    Hello,

    I have checked and found the the reference is set from controller and it would be same if the sales submitted at the same time :(

    I will fix this in coming update. If you need the fix urgently please edit `app/models/admin/Pos_model.php` and add the line below after line 135 `$this->db->trans_start();`

    ```
    $data['reference_no'] = $this->site->getReference('pos');
    ```

    Thank you
  • Login to Reply