[
https://issues.apache.org/jira/browse/OFBIZ-2684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726428#action_12726428
]
Rishi Solanki commented on OFBIZ-2684:
--------------------------------------
+1 for Anil comments may save the existing menu widget, which I deleted in my
patch.
There are two buttons which are not working. set to canceled and set to
writeoff on the invoiceOverview page.
Either need to fix the MenuRenderer of OFBiz or can fix the problem without
using the Menu widget in such cases, which we did in case of FormWidget there
are certain situations in which we prefer to use ftls instead of FormWidget.
I tried to fix it from JS but it will not work because the menu-item > link
target parameters always append after the target given in the target attribute.
Then post the query in side the target given in the function like ;
confirmActionLink('You want to cancel this invoice number
${invoice.invoiceId}?','setInvoiceStatus?.....')
so that JS function can be called as he wants parameters, but the
setInvoiceStatus is work on secured url that is why it was not working.
Finally, this is a bug in a OFBiz and there are good functionality available
which can not be called because of this. So either this let this patch in the
trunk till the menu renderer handles the javascript properly.
> In Accounting invoice section the InvoiceSubBar Menu all options are not
> working properly, convert it to ftl, so that all functionality can be run.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-2684
> URL: https://issues.apache.org/jira/browse/OFBIZ-2684
> Project: OFBiz
> Issue Type: Bug
> Components: accounting
> Affects Versions: Release Branch 9.04, SVN trunk
> Reporter: Rishi Solanki
> Assignee: Ashish Vijaywargiya
> Fix For: Release Branch 9.04, SVN trunk
>
> Attachments: InvoiceSubTabBar_Ofbiz-2684.patch,
> InvoiceSubTabBar_Ofbiz-2684.patch
>
>
> On invoice overview page if we select a invoice to see its view for example
> navigate thru following link ;
> https://localhost:8443/accounting/control/invoiceOverview?invoiceId=demo10002
> On this link all the functionality working fine when we go for changing the
> status to statusId, but in case of changing the previous status to
> "INVOICE_WRITEOFF" and "INVOICE_CANCELLED" a JS function confirmActionLink()
> call on click.
> The JS can not work due the MenuWidget renders not accordingly and not
> handling the such scenario. So to achieve the functionality work properly
> convert the Menu to ftl, without changing its any of the functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.