Open eve-git opened 1 month ago
It appears that namex.payments.id
is being confused or mixed up with namex.payments.payment_id
.
-- in namex-db
select * from payments where id = 504410;
--"id" "payment_id" "payment_completion_date" "payment_status_code" "nr_id" "payment_note" "payment_action" "furnished"
--504410 "6596907" "2024-10-16 18:27:33.83831+00" "COMPLETED" 2610548 "CREATE" true
-------
-- in pay-db
-- select id, invoice_status_code, total, invoice_status_code, corp_type_code from invoices where id= 504410;
-- "id" "created_on" "invoice_status_code" "total" "invoice_status_code-2" "corp_type_code"
-- 504410 "2022-04-02 21:54:58.767989" "PAID" 8.50 "PAID" "PPR"
-- it makes sense using paymant_id in namex.payments table:
select id, created_on, invoice_status_code, total, invoice_status_code, corp_type_code from invoices where id= 6596907;
-- "id" "created_on" "invoice_status_code" "total" "invoice_status_code-2" "corp_type_code"
-- 6596907 "2024-10-16 18:27:33.269603" "PAID" 31.50 "PAID" "NRO"
That would be funny.
That shouldn't be too hard to find in code.
In the message "Queue Issue: Duplicate, payment already processed for payment.id=504410", the payment.id means namex.payments.id instead of invoices.id or namex.payments.payment_id.
In the Namex-Pay queue, the message "duplicate payment already processed" repeatedly appears in the logs. The referenced payment IDs are old (e.g., payments made in 2022) and are unrelated to Namex, such as PPR payments.