Receive Payment: Days Old value is incorrect

Issue No: AR-14858
Created 6/16/2022 2:28:21 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 22.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-270167 - F-NA-Walter Matter Initiative for Bugs & Features|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-270167]   Detailed steps: [WAMA-T1376|http://jira.irelyserver.com/secure/Tests.jspa#/testCase/WAMA-T1376]     *Preconditions:*   Date Today: 06/16/2022   Service Charge:   !pastedImage_d188023_0.jpg!     Invoice 1:   * Invoice Date = Today - 10 days * Post Date = Today - 10 days * Currency: CHF * Amount Due: 500.00 * Terms: Due on Receipt * Due Date: Today - 10 days     Invoice 2:   * Invoice Date = Today - 10 days * Post Date = Today - 10 days * Currency: CHF * Amount Due: 500.00 * Terms: Due on Receipt * Due Date: Today - 10 days     Invoice 3   * Invoice Date = Today - 30 days * Post Date = Today - 30 days * Currency: CHF * Amount Due: 1,500.00 * Terms: Due on Receipt * Due Date: Today - 30 days     Invoice 4   * Invoice Date = Today - 40 days * Post Date = Today - 40 days * Currency: CHF * Amount Due: 2,000.00 * Terms: Due on Receipt * Due Date: Today - 40 days     Steps to reproduce:   1. Go to Sales > Activities > Receive Payments   2. Click New button   3. Enter the following:   * Customer: Customer entered in the above invoices * Payment Method: Cash * Location: Geneve * Date Paid: Today - 10 Days   4. Check the Days Old values of Invoice 3 and Invoice 4   Expected result:   Invoice 3 Days Old value: Today - 30 Days   Invoice 4 Days Old value: Today - 40 Days     Actual result:   Invoice 3 Days Old value: {color:#e74c3c}Today - 29 Days{color}   Invoice 4 Days Old value: {color:#e74c3c}Today - 39 Days{color}   !pastedImage_d188023_1.png|height=466,width=888!     Other screens:   !pastedImage_d188023_2.png|height=251,width=960!   !pastedImage_d188023_3.png|height=343,width=960!   FYI [~roudinee.panteria]