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

Deepak Nigam commented on OFBIZ-10620:
--------------------------------------

Hello [~suraj.khurana],

Yes, the code suggested by you will also work fine. However, I took reference 
from some other forms inside InvoiceForms.xml like InvoiceHeader, 
ListInvoiceStatus. 

Apart from this, there will be a difference in the date pattern:

By using <display description="${groovy:if(invoiceDate!=null)return 
invoiceDate.toString().substring(0,10);}"/> the date pattern will be 
YYYY-MM-DD. Please find the attached screenshot 'InvoiceDateFormat1.png'.

By using <display type="date"/> the date pattern will be MM/DD/YY. Please find 
the attached screenshot 'InvoiceDateFormat2.png'.

When I checked the list order and other list screens of invoices, I found 
another pattern for showing the, something like <field 
name="invoiceDate"><display/></field>. By this code, the date pattern will be 
YYYY-MM-dd HH:mm:ss.SSS. Please find the attached screenshot 
'InvoiceDateFormat2.png' for the same. 

Out of the above 3, the last pattern is making sense to me. Please share your 
thoughts on the same and commit the respective patch.






> Invoice date is not displayed on findInvoice screen
> ---------------------------------------------------
>
>                 Key: OFBIZ-10620
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10620
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Trunk
>         Environment: https://demo-trunk.ofbiz.apache.org
>            Reporter: Arpit Mor
>            Assignee: Deepak Nigam
>            Priority: Minor
>         Attachments: OFBiz-10620.patch, findInvoices.png, invoiceOverview.png
>
>
> Steps to regenerate:
>  # Open URL: 
> [https://demo-trunk.ofbiz.apache.org/accounting/control/findInvoices]
>  # Click on find button
> Actual: Invoice date is not displayed on findInvoices screen. Please refer 
> attachment: findInvoices
> But when an invoice is created then current date is set as invoice date which 
> can be viewed on invoiceOverview screen. Please refer attachment: 
> invoiceOverview
> Expected: Invoice date should be displayed on findInvoices screen



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to