Hi Bilgin,

we may implement this using one of the following approaches:

A) extending order notes (a bit hacky):

A1) rename OrderHeaderNote to OrderNote and add to it an orderItemSeqId that can be set to "_NA_" for order header notes A2) store the cancellation reason as an note (you may pre-define all the noteId available in a drop down)

or

B) add a new entity "OrderItemChange" that keeps track of all the modifications of an OrderItem (including cancellation); the new entity may have a type and a reasonEnumId

There are probably other solutions... these are the first ones that comes to my mind

My two cents,

Jacopo


On May 7, 2008, at 11:36 AM, Bilgin Ibryam wrote:

Hi all,

I am working on order manager and canceling order items.
There is already a possibility to cancel some quantity of order Items
which updates cancelQunatity of orderItem w/o canceling the whole
orderItem.
What I need is to store the cancelReasonId (Enumeration or a new entity
for cancel Reasons) and comments for this cancel. Notice that this
doesn't change the orderItem status, because only a quantity from the
item is canceled.
Order Notes are not appropriate, because I need to know which orderItem
is canceled, and also need to store cancelReasonId for creating
statistics based on cancel reasons.

Do you think that we need a new entity in OFBiz for this or it is
possible somehow with existing entities?

Any thoughts or advices would be greatly appreciated.
Bilgin Ibryam


Reply via email to