Production Ticket(ST) #12101
GOLDCREST - help to add the customer branch code
1) Review and verify all the data in the excel file provided.
2) Insert all the data into server.
Root cause: Update customer branch.
None
Description
hi, can help to add the customer branch code?
History
#1 Updated by Rashdan Hussin 3 months ago
- Status changed from Assigned To to Support In Progress
select * from #TempTable --1301
select * from customer where org_id = 'GOLDCREST' order by updated_date desc --3835
select * from #TempTable where customer_code not in
(select customer_code from customer where org_id = 'GOLDCREST') --0
select b.area_code, * from customer a
inner join mst_area b on b.area_id = a.area_id and b.org_id = 'GOLDCREST'
where a.org_id = 'GOLDCREST'
and exists (select 1 from #TempTable r where r.customer_code = a.customer_code and r.area_code = b.area_code)
select * from mst_customer_branch where org_id = 'GOLDCREST'
select * from #TempTable a
inner join customer b on b.customer_code = a.customer_code and b.org_id = 'GOLDCREST'
where b.customer_id not in
(select customer_id from mst_customer_branch where org_id = 'GOLDCREST')
select a.customer_code, c.branch_code, * from customer a
inner join #TempTable b on b.customer_code = a.customer_code
inner join mst_branch c on c.branch_code = b.branch_code and c.org_id = 'GOLDCREST'
where a.org_id = 'GOLDCREST'
--select * into DMS_Ecosystem_Backup_Table.dbo._customer_20240626 from DMS_Ecosystem.dbo.customer
--update a set a.branch_id = c.branch_id, a.updated_date = getdate(), a.updated_by = 'Support'
--from customer a
--inner join #TempTable b on b.customer_code = a.customer_code
--inner join mst_branch c on c.branch_code = b.branch_code and c.org_id = 'GOLDCREST'
--where a.org_id = 'GOLDCREST'
select * from mst_customer_branch a
inner join customer b on b.customer_id = a.customer_id and b.org_id = 'GOLDCREST'
where a.org_id = 'GOLDCREST' and b.updated_date = '2024-06-26 11:04:41.033'
--select * into DMS_Ecosystem_Backup_Table.dbo._mst_customer_branch_20240626 from DMS_Ecosystem.dbo.mst_customer_branch
--update a set a.branch_id = b.branch_id, a.updated_date = getdate(), a.updated_by = 'Support'
--from mst_customer_branch a
--inner join customer b on b.customer_id = a.customer_id and b.org_id = 'GOLDCREST'
--where a.org_id = 'GOLDCREST' and b.updated_date = '2024-06-26 11:04:41.033'
#2 Updated by Rashdan Hussin 3 months ago
- Status changed from Support In Progress to Pending Client Verification
- % Done changed from 0 to 90
- Actual Initial Response set to 26/06/2024
- Resolution updated (diff)
#3 Updated by Rashdan Hussin 3 months ago
- Status changed from Pending Client Verification to Ticket Resolved
- % Done changed from 90 to 100
[14:11, 26/06/2024] Rashdan Hussin: Based on my developer feedback, customer branch will follow the salesman branch
[14:15, 26/06/2024] +60 12-734 5873: so next time no need update by my side right?
[14:22, 26/06/2024] Rashdan Hussin: Yes. If the customer have more than one salesman, the customer branch will take either one from the salesman branch
[14:22, 26/06/2024] +60 12-734 5873: ok thanks ya