[ 
http://issues.apache.org/jira/browse/OFBIZ-438?page=comments#action_12448909 ] 
            
Si Chen commented on OFBIZ-438:
-------------------------------

What does this block do?

+                
+                <if-not-empty field-name="parameters.paidDate">
+                   <if-compare field-name="parameters.statusId" 
operator="equals" value="INVOICE_READY">
+                       <clear-field field-name="invoice.paidDate" />
+                   </if-compare>    
+                </if-not-empty>
+             

> setInvoiceStatus not updating invoice.paidDate
> ----------------------------------------------
>
>                 Key: OFBIZ-438
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-438
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: accounting
>            Reporter: Si Chen
>         Assigned To: Si Chen
>
> setInvoiceStatus currently is not setting Invoice.paidDate if the invoice 
> status is being set to PAID but there is no paidDate supplied in the 
> parameter.  Invoices are being marked PAID because 
> checkInvoicePaymentApplication will supply a paidDate parameter based on the 
> Payments applied to invoice.
> The change would be to modify setInvoiceStatus so that IF statusId = 
> INVOICE_PAID and parameters.paidDate is null (empty), then set paidDate to 
> current timestamp

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to