Add "Prepare" Document Action to Inventory Move and Physical Inventory

Description

See attached Patch.

I added the "Prepare" document action for a "Drafted" Physical Inventory or Inventory Move. The purpose of this change is to give a user the ability to put a Physical Inventory or Inventory Move document into a state that is approved but not "Completed". The document could be pending a target date or some other criteria to come true before the document should be completed.

Since the Physical Inventory or Inventory Move windows do not have the concept of an "Order" (like a Sales Order is to a Shipment), this change helps create the concept of an order (instructions for future action) for Physical Inventories and Inventory Moves.

I hope this helps!!

Regards,
Chuck Boecking

Environment

None

Attachments

2
  • 28 Apr 2021, 11:39 AM
  • 27 Dec 2014, 09:10 PM

Activity

Show:

Deepak Pansheriya May 10, 2021 at 2:53 PM

I pushed PR.

Carlos Ruiz May 9, 2021 at 8:46 AM

Hi - if the patch works fine please add it to the pull request.

Regards,

Carlos Ruiz

Deepak Pansheriya May 7, 2021 at 3:43 PM

tested the PR you sent. It worked for each document in prepared status.

Also review patch and looks good.

Carlos Ruiz April 28, 2021 at 11:39 AM

Hi - testing with invoice (customer) - I ran prepare, then added a line with a non-stocked BOM, but there is no option to run prepare again.

So, I think prepare must be shown also for already prepared documents.

The following patch can implement that, please check it. I also deleted redundant options adding prepare below:

 

A review of all prepareIt methods would be worthy to check for potential wrong consequences.

Regards,

Carlos Ruiz

Deepak Pansheriya April 14, 2021 at 6:49 AM

Created PR https://github.com/idempiere/idempiere/pull/653

This enables Prepare action on all document type when status is Invalid or draft.

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

Created December 27, 2014 at 9:10 PM
Updated July 1, 2021 at 12:11 PM
Resolved May 11, 2021 at 11:24 AM