You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2013/12/04 10:36:36 UTC
[jira] [Comment Edited] (OFBIZ-5415) Invoice Item type drop down
empty when creating new invoice item
[ https://issues.apache.org/jira/browse/OFBIZ-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838767#comment-13838767 ]
Jacques Le Roux edited comment on OFBIZ-5415 at 12/4/13 9:35 AM:
-----------------------------------------------------------------
Completed: At revision: 1547742+1547745
I made a mistake in r1527171. When I removed the call to GetInvoiceItemTypes.groovy in InvoiceScreens.xml I did not notice it was also generating the AccountOrganizationAndClass list.
This fixes it by renaming GetInvoiceItemTypes.groovy to GetAccountOrganizationAndClass.groovy and removing the now useless invoiceItemTypes list inside it.
was (Author: jacques.le.roux):
Completed: At revision: 1547742
I made a mistake in r1527171. When I removed the call to GetInvoiceItemTypes.groovy in InvoiceScreens.xml I did not notice it was also generating the AccountOrganizationAndClass list.
This fixes it by renaming GetInvoiceItemTypes.groovy to GetAccountOrganizationAndClass.groovy and removing the now useless invoiceItemTypes list inside 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
> Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
>
> 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)