It is possible to assign a seriel number to a line with quantity > 1

Description

It is possible to assign a serial number to a line with quantity > 1.

This should be impossible.

Environment

None

Activity

Show:
Diego Ruiz
May 4, 2020, 7:16 PM

triaged by Diego Ruiz,

Steps to reproduce:

  1. Open the Sales Order window

  2. Create a new record

  3. Set a line with PChair as the product

  4. Set a qty of 10

  5. Open the Sales Order window

  6. Create a new record

  7. Set a line with PChair as the product

  8. Set a qty of 10

Expected Result:

The system should throw an error saying that it is not possible to assign the same serial No to more than one product

Actual result

I can assign the serial no and complete the order without problem

Carlos Ruiz
May 5, 2020, 10:58 AM

This needs to be thought carefully if solved.

There are companies that can receive a of serialized items and put them in a "pending to serialize" storage location, and then run a process to serialize them.

There are other companies that can have all the inventory without serial (or maybe with a pending serial) and just serialize at the moment of shipping.

So, many of this reports needs to be thought in a wider way and that's why sometimes we recommend to implement these validations in a plugin.

Diego Ruiz
May 5, 2020, 11:11 AM

IMHO,

Your statement is valid, but as you say it should be validated when shipping. Companies could buy and sell a batch of products without knowing exactly which serial no. will be delivered. However, it is conceptually wrong to ship 5 serialized items with the same Serial No.

You can do that currently in iDempiere (check shipment #600012 in test idempiere).

The ticket description could be changed then to specify that this should no be allowed only in Shipment (customer)

 

Carlos Ruiz
May 5, 2020, 11:13 AM

Yes, in Shipment it doesn't sound correct - if somebody needs to ship several serials, then that's a lot.

Assignee

Unassigned

Reporter

Volker Voßkämper

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure