Description
Describe the bug
If you create a customer invoice and try to add an item by using Add from masterlist
, it only shows the masterlists that are visible to both the customer and the supplier.
If you try to add an item through the Add item
button, it shows all items visible in the store you're logged in to, regardless of which masterlist it is on. You can then add an item that is not visible to the customer, and then finalise that customer invoice.
If you go to the customer store, once the supplier invoice arrives, you can see the item you added on the Current stock
window, with 0 stock. Once you finalise the supplier invoice, this disappears and you can't see the item in the current stock window :(
To reproduce
Steps to reproduce the behavior:
- Have two mobile stores, one with an additional masterlist that the other does not have (Store B)
- Create a supplier invoice in Store B, the one with the additional masterlist, for Store A
- Click
Add item
and see all items available in store - See error
Expected behaviour
Should not be able to send items that the customer can't see?
Proposed Solution
Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.
Version and device info
- App version: v6
- Tablet model:
- OS version:
Additional context
Add any other context about the problem here.