You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Si Chen <si...@opensourcestrategies.com> on 2007/01/04 02:06:55 UTC

why does product inventory page hide DELIVERED serialized inventory?

Hi,

For some reason serialized inventory in the state of "DELIVERED" do not 
show up in Catalog Manager's Product > Inventory tab.  Looking at the 
code it's fairly obvious why:

$ vi 
applications/product/webapp/catalog/product/EditProductInventoryItems.ftl
    <#list productInventoryItems as inventoryItem>
       <#if showEmpty || (inventoryItem.inventoryItemTypeId?if_exists == 
"SERIALIZED_INV_ITEM" && inventoryItem.statusId?if_exists != 
"INV_DELIVERED")

But why is it done like this?  Is there some design reason why 
serialized inventory in the DELIVERED status should not be shown, but 
all the other status codes are shown?

Si

Re: why does product inventory page hide DELIVERED serialized inventory?

Posted by David E Jones <jo...@undersunconsulting.com>.
On Jan 3, 2007, at 6:28 PM, Si Chen wrote:

> Si Chen wrote:
>> Hi,
>>
>> For some reason serialized inventory in the state of "DELIVERED"  
>> do not show up in Catalog Manager's Product > Inventory tab.   
>> Looking at the code it's fairly obvious why:
>>
>> $ vi applications/product/webapp/catalog/product/ 
>> EditProductInventoryItems.ftl
>>    <#list productInventoryItems as inventoryItem>
>>       <#if showEmpty || (inventoryItem.inventoryItemTypeId? 
>> if_exists == "SERIALIZED_INV_ITEM" && inventoryItem.statusId? 
>> if_exists != "INV_DELIVERED")
>>
>> But why is it done like this?  Is there some design reason why  
>> serialized inventory in the DELIVERED status should not be shown,  
>> but all the other status codes are shown?
>>
>> Si
>>
> Aha - I figured it out and in the process flushed out another bug:
> http://issues.apache.org/jira/browse/OFBIZ-591

Oh yeah, this looks like a nice juicy bug that needs to be squashed,  
or consumed, or whatever... ;)

-David



Re: why does product inventory page hide DELIVERED serialized inventory?

Posted by Si Chen <si...@opensourcestrategies.com>.
Si Chen wrote:
> Hi,
>
> For some reason serialized inventory in the state of "DELIVERED" do 
> not show up in Catalog Manager's Product > Inventory tab.  Looking at 
> the code it's fairly obvious why:
>
> $ vi 
> applications/product/webapp/catalog/product/EditProductInventoryItems.ftl
>    <#list productInventoryItems as inventoryItem>
>       <#if showEmpty || (inventoryItem.inventoryItemTypeId?if_exists 
> == "SERIALIZED_INV_ITEM" && inventoryItem.statusId?if_exists != 
> "INV_DELIVERED")
>
> But why is it done like this?  Is there some design reason why 
> serialized inventory in the DELIVERED status should not be shown, but 
> all the other status codes are shown?
>
> Si
>
Aha - I figured it out and in the process flushed out another bug:
http://issues.apache.org/jira/browse/OFBIZ-591