Production Ticket(ST) #11248
GOLDCREST - the stock request location should from KL not HQ, may i ask where can i change this setting?
1) The stock request location for MCJ user should from KL not HQ.
2) The logic was, salesman start with W is transfer out from KL, other from HQ, hence this explain why MCJ is from HQ
3) Here is new request from client:
- jnm, jnl = hq
- wwq, wwv, wwx, mcj = kl
- evo, tcw is pre sales, no stock transfer needed
4) Escalate to level 3. https://app.clickup.com/t/86enwqqzv
Root cause: Current logic, salesman start with W is transfer out from KL, other from HQ.
None
Description
- hi for this user the stock request location should from KL not HQ, may i ask where can i change this setting?
History
#1 Updated by Rashdan Hussin 6 months ago
- Status changed from Assigned To to Support In Progress
#2 Updated by Rashdan Hussin 6 months ago
- Status changed from Support In Progress to Escalated to Level 3
- % Done changed from 0 to 50
- Actual Initial Response set to 18/03/2024
- Resolution updated (diff)
#3 Updated by Rashdan Hussin 6 months ago
- Status changed from Escalated to Level 3 to Pending Client Verification
- % Done changed from 50 to 80
- Esclation Time set to 20/03/2024
Debug script:
sp_sync_download_txn_stock_transfer
Testing script:
SELECT
--h.txn_no [TXN_KEY]
h.warehouse_txn_hdr_id [TXN_KEY]
,h.txn_no [TXN_NO]
,h.doc_no [REF_NO]
,m.login_id [SLSMAN_CD] -- No integrate from SQL accounting?
,w.warehouse_code [WHS_CD] --??
,case when h.txn_type='Stock In' then m.login_id else (case when m.org_id = 'GOLDCREST' and (m.login_id like 'W%' or m.login_id = 'MCJ') then 'KL' else 'HQ' end) end as FROM_LOCATION
,case when h.txn_type='Stock In' then (case when m.org_id = 'GOLDCREST' and (m.login_id like 'W%' or m.login_id = 'MCJ') then 'KL' else 'HQ' end) else m.login_id end as TO_LOCATION
-- MCJ & start with W -
,CONVERT(varchar(10), h.txn_date,120) [TXN_DT]
,h.[txn_type] [TXN_TYPE]
,h.remarks [REMARK]
FROM warehouse_stock_transaction_header h
INNER JOIN member m ON h.salesman_id=m.member_id
inner join warehouse w on h.warehouse_id=w.warehouse_id
WHERE isnull(h.salesman_id,'') <> ''
AND h.org_id = 'goldcrest' AND (h.sync_date IS NULL OR 2023-11-17 <> '')
--and h.txn_no='GOLDCREST-WST-000021'
ORDER BY FROM_LOCATION --h.txn_no
--OFFSET @batch_no * @batch_size ROWS
--FETCH NEXT @batch_size ROWS ONLY;
#4 Updated by Rashdan Hussin 6 months ago
- Status changed from Pending Client Verification to Ticket Resolved
- % Done changed from 80 to 100