Re: should expired inventoryitems still be reservable?
Posted by
David E Jones-2 on
Jul 07, 2006; 5:59pm
URL: http://ofbiz.116.s1.nabble.com/should-expired-inventoryitems-still-be-reservable-tp169466p169468.html
Christian Geisert wrote:
> Si Chen schrieb:
>> Hi.
>>
>> Just noticed that if inventory items with InventoryItem.expireDate in
>> the past are still being reserved against order items. Is this a bug?
>
> I'd say yes. As an example companies producing food or drugs will be in
> trouble if they are selling stuff with an exceeded expire date but I
> could imagine there are companies who sell stuff even if the expire date
> has been reached.
> So I think the default should be that inventory with an expire date in
> the past shouldn't get reserved but maybe add an option (global, store
> or product) to allow this.
I agree, for some products it may be important to still be able to sell it after expiration. Perhaps there are a few options that could be configured with an enum on the Product entity:
1. Ignore Expiration Date
2. Don't Sell After Expiration
3. Sell At A Discount After Expiration
4. ...
On the other hand, maybe a true/false for allow sale after expiration is sufficient because the inventory can be re-assigned to another Product that represents the expired inventory and is sold in a special store or at a special discount.
Either way, I'd say we shouldn't add a rule that makes it impossible to sell expired inventory unless it is configurable with a per-Product option (and like Christian said, perhaps with per-Store or other defaults).
-David