Production Ticket(ST) #11832
SNEKKU - unpaid got negative amount
100%
Root cause due to double collection
solution: add checking
None
Description
Hi @Rashdan Hussin why unpaid got negative amount?
History
#1 Updated by Rashdan Hussin 4 months ago
- Status changed from Assigned To to Support In Progress
select * from customer where customer_code = '5K033'
select * from txn_invoice_history_header where customer_id = 'E948B83EFFC44F83B7418C9C50B444CE' order by invoice_balance
select * from txn_mobile_collection_invoice where inv_id = 'A6FFD75844B443ECBC49FD88DD38832E' order by created_date
select * from txn_mobile_collection_invoice where inv_id = '58C2A6594919444F8F516C732B4D7FB5' order by created_date
select * from txn_invoice_history_header where invoice_id = 'F9A1D17083F8436E8871C36F38C56272'
select * from txn_invoice_history_header_at where invoice_id = 'F9A1D17083F8436E8871C36F38C56272' order by at_date
select * from txn_mobile_collection_invoice where inv_id = 'F9A1D17083F8436E8871C36F38C56272' order by created_date
select * from txn_mobile_collection_invoice_at where inv_id = 'F9A1D17083F8436E8871C36F38C56272' order by at_date
- Seems come from integration
#2 Updated by Rashdan Hussin 4 months ago
- the negative invoice due to collection from mysoft
#3 Updated by Rashdan Hussin 4 months ago
- Assignee changed from Rashdan Hussin to Muhammad Arif
#4 Updated by Muhammad Arif 4 months ago
Shan You already fix the issue, for now, need to patch previous data
#5 Updated by Muhammad Arif 4 months ago
- Status changed from Support In Progress to Pending Client Verification
- Actual Initial Response set to 29/05/2024
- Resolution updated (diff)
select * from txn_invoice_history_header where invoice_balance < 0 and org_id='snekku'
select * from txn_invoice_history_header where customer_id = 'E948B83EFFC44F83B7418C9C50B444CE'
and invoice_balance < 0
order by invoice_balance
select * from customer_to_user_relation where customer_id = 'E948B83EFFC44F83B7418C9C50B444CE'
select * from member where member_id='c031006c0d8a4963810e7a9996d49125'
--update txn_invoice_history_header set invoice_balance=0.00 where customer_id = 'E948B83EFFC44F83B7418C9C50B444CE'
--and invoice_balance < 0
--order by invoice_balance
select * into DMS_Ecosystem_Backup_Table.dbo.txn_invoice_history_header_20240529v1 from txn_invoice_history_header where invoice_balance < 0 and org_id='snekku'
#6 Updated by Muhammad Arif 4 months ago
- Status changed from Pending Client Verification to Ticket Resolved
- % Done changed from 0 to 100