[ 
https://issues.apache.org/jira/browse/OFBIZ-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838169#comment-13838169
 ] 

Christian Carlow commented on OFBIZ-5415:
-----------------------------------------

I think the trunk revision 1527171 mistakenly removed 
GetInvoiceItemTypes.groovy from InvoiceScreens.xml.  The comments suggest the 
change resulted from a message I posted on the message board but I haven't been 
able to find it.

> Invoice Item type drop down empty when creating new invoice item
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-5415
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5415
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk
>            Reporter: Christian Carlow
>
> The invoice item type drop down field is empty on the insert invoice item 
> page.  The problem is that the EditInvoiceItem form in InvoiceForms.xml uses 
> the list-name="invoiceItemTypes" which is never set.  
> Adding this to EditInvoiceItems in InvoiceScreens populates the drop down:
> <entity-condition entity-name="InvoiceItemType" list="invoiceItemTypes" /> 
> However, the description of the <list-options> is:
> description="${groovy:uiLabelMap.get('InvoiceItemType.description.'+invoiceItemTypeId)}
> And some of the Invoice Item types do not yet have a uiLabelMap value set for 
> them so the uiLabelMap string is displayed instead.  This resolves the 
> missing uiLabelMap problem:
> <list-options list-name="invoiceItemTypes" key-name="invoiceItemTypeId" 
> description="${groovy: uiLabelString = 
> 'InvoiceItemType.description.'+invoiceItemTypeId; uiLabelMapVal = 
> uiLabelMap.get(uiLabelString); if(uiLabelMapVal != uiLabelString) return 
> uiLabelMapVal; else return description;}"/>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to