[ 
http://issues.apache.org/jira/browse/OFBIZ-438?page=comments#action_12448912 ] 
            
Ashish Vijaywargiya commented on OFBIZ-438:
-------------------------------------------

Si,

I added this condition to clear out the paidDate field of the invoice entity.
This condition will run when paidDate exists and we are changing the status 
from INVOICE_PAID into INVOICE_READY.
In the InvoiceServices.xml we are setting the status to "INVOICE_READY" and 
calling the service "setInvoiceStatus".

Is there any better way in your mind to clear out paid date ???

Regards
Ashish Vijaywargiya

> 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