Skip to content

Can add item that is not part of the customer's masterlist when creating a customer invoice #3278

Open
@DhanyaHerath

Description

@DhanyaHerath

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:

  1. Have two mobile stores, one with an additional masterlist that the other does not have (Store B)
  2. Create a supplier invoice in Store B, the one with the additional masterlist, for Store A
  3. Click Add item and see all items available in store
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.0.0Bug: productionBug was found or believed to be in a live release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions