Thanks @rohit_w @ganas @rmehta
let me check and i will back to tell you the result
there is also another bug that the server sometimes do not save the invoices from the local storage after syncing , i catch that error while reviewing the printed recipts comparing it withe the saved result in local storage it was typical but after syncing i saw that some of them did not wrote in the data base and not in the list
i passed that bug by commenting the clear.localstorage line so the list keep syncing with the server untill i delete it manually and that seems solved the problem as the server stopped missing the invoices.
today i catched another bug as the pc sometimes do not write the invoice on the local storage and its not saved in database as well but i have the reciept which i got after the selling operation , this is weird and i still invistigate in this issue