InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

[FR] Stock Expiry when Receiving Line Item in PO

Open jacobfelknor opened this issue 1 year ago • 7 comments

Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find a similar feature request

Problem statement

When receiving line items - thus generating stock - from the PO view, you are unable to set an expiry on the stock item being generated. Instead, we must then go to the received stock item created after the receive event and edit it to add the expiry. This isn't that annoying, but there are options to add a batch code or location from this view.

Suggested solution

Add another option for expire date for a stock item being received from a PO, similar to how you can add a batch code. In would also be helpful to add any stock item notes from this view

Describe alternatives you've considered

As mentioned, we are just going to the detail view after the line item receive and adding the expire date after the fact. This is fine, but an extra step that could be forgotten or done incorrectly (accidently navigate to wrong stock item)

Examples of other systems

No response

Do you want to develop this?

  • [ ] I want to develop this.

jacobfelknor avatar Jan 08 '24 23:01 jacobfelknor

If you have other suggestions for a better way of accomplishing this, let me know. I am still learning the system

jacobfelknor avatar Jan 08 '24 23:01 jacobfelknor

I can see the usefulness of this. Would you be willing to look into contributing this feature?

SchrodingersGat avatar Jan 10 '24 13:01 SchrodingersGat

I could definitely take a look. It may be some time before I can get to it though, which is fine. I'm not particularly in a rush. You can assign me the issue and I'll see where I get

jacobfelknor avatar Jan 12 '24 16:01 jacobfelknor

For this to be considered complete, we probably also need to update inventree-python's PurchaseOrderLineItem.receive function

https://github.com/inventree/inventree-python/blob/master/inventree/purchase_order.py#L207-L220

jacobfelknor avatar Jan 12 '24 18:01 jacobfelknor

Ok, assigned, feel free to ping me when you get a chance.

Note that we are currently pushing to refactor the entire front-end into react. So, any front-end / UI / UX features should be implemented only in the new React interface

SchrodingersGat avatar Jan 13 '24 11:01 SchrodingersGat

This issue seems stale. Please react to show this is still important.

github-actions[bot] avatar Mar 14 '24 11:03 github-actions[bot]

This issue seems stale. Please react to show this is still important.

github-actions[bot] avatar May 14 '24 11:05 github-actions[bot]