Skip to content

Issue with backdated Repack #46980

@guilmori

Description

@guilmori

Information about bug

Here are the steps to reproduce the issue:

Create and Submit a Stock Entry Receipt for 100 qty of item with a posting date of last week.

Create and Submit a Stock Entry Issue for 100 qty of item with a posting date of now.

Create a Stock Entry repack with a posting date between last week and now.
Add a line to consume 100 qty of item.
Add another line to produce 102 of item.

Image

If we try to submit, we get this error:

Image

This example is over simplified, the real use case is a Finished Product that was manufactured, and is now all sold. Then the user realize he forgot to consume some raw materials. So he try to submit a repack dated right after the manufacture entry, that consume finished product + missing raw material and produce finished product.

Module

stock

Version

v15.53.1

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions