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

In that case, why do you need the <if-not-empty 
field-name="parameters.paidDate">?  It should be "invoice.paidDate" right?  
Otherwise, if I try to set the invoice to READY but don't supply a paidDate 
parameter, you won't be clearing the invoice's paidDate.

> 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