You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Divesh Dutta (JIRA)" <ji...@apache.org> on 2009/12/02 16:20:20 UTC

[jira] Updated: (OFBIZ-3284) Error at page - https://demo.ofbiz.org/ar/control/FindArInvoices

     [ https://issues.apache.org/jira/browse/OFBIZ-3284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Divesh Dutta updated OFBIZ-3284:
--------------------------------

    Attachment: OFBIZ-3248.patch

After doing research on this error I got exact steps to produce this error, reason of the error and solution for the error. Here are my findings:

Steps to reproduce the error:

1) Start placing sales order from Order manager application by taking DemoCustomer.
2) Add any two products into the cart, choose shipping address and shipping method.
3) And then land on Order terms screens. Now select Term Type = Payment (net days) or any of its subtype.
4) Do not enter Term days and click on add button.
5) Select offline payment and create your order.
6) Now from payment section of order detail page, click on "Receive Payment" button and receive payment for Personal check by entering the amount and clicking on save button. 
7) Complete the order by clicking on "Quick ship entire order" button on Action block.
8) Note the Invoice Id created and go to Find Invoices screen of AR by accessing https://demo.ofbiz.org/ar/control/FindArInvoices
9) Enter the Invoice ID and click on search, You will find error page. 

Reason of error:

1) getInvoicePaymentInfoList Service returns  error (in ListInvoices.ftl) for  invoices of some specific order in which Term type = Payment (net days) or any of its subtype and user forgot to enter Term days.

2) Due to this reason code breaks while calling getDayEnd class method inside getInvoicePaymentInfoList simple method of PaymentServies.xml

Solution of error:

1) I have handled this situation by adding validation on Order terms screen .

2) Validation is like if  User selects, Term type = Payment (net days) or any of its subtype and not entered  Term days , then Error message will be returned to user 

3) Error message will prompt : Order Term Days is required for this term type. 



> Error at page - https://demo.ofbiz.org/ar/control/FindArInvoices
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-3284
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3284
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>            Reporter: Sumit Pandit
>            Assignee: Anil K Patel
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3248.patch
>
>
> At https://demo.ofbiz.org/ar/control/FindArInvoices, it is giving an exception. Need to fix it.
> invoicePaymentInfoList.get("invoicePaymentInfoList") is undefined on line 116, column 41 in component://accounting/webapp/ar/invoice/ListInvoices.ftl. The problematic instruction: ---------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.