Skip to content

Commit

Permalink
Only check for Paid fully matches in paymentStatus folio field
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Feb 7, 2024
1 parent 799d697 commit 1cd6023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyber_source/download_payment_batch_detail_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def is_a_payment?(account, batch_date, transaction_date)
bx_date = Date.parse(batch_date)
dates = [tx_date - 1, tx_date, tx_date + 1, bx_date - 1, bx_date, bx_date + 1]

dates.include?(created_date(account)) || dates.include?(updated_date(account)) &&
(account['status']['name'] == 'Closed' || account['paymentStatus']['name'] == 'Paid fully')
(dates.include?(created_date(account)) || dates.include?(updated_date(account))) &&
(account['paymentStatus']['name'] == 'Paid fully')
end

def created_date(account)
Expand Down

0 comments on commit 1cd6023

Please sign in to comment.