Page 1 of 1

DBA merging creditors

PostPosted: Mon Mar 25, 2024 4:51 pm
by neil.interactit
Hi guys,

We have a client that merged business operations many years ago and 2 Jiwas were combined. It now turns out that a handful of creditors remained duplicated with one accounts team using one version and the other account team using the other ... which is causing problems!

In each case the pair of records both refer to the same creditor and the client can see no audit reason not to combine these to a single record.

Are there any concerns or gotchas with this?

My plan would be to find every CreditorID FK (excepting those associated with the core CR_Main record - ie. on the actual creditor maintenance screen itself) and replace CreditorID BBBBBBBBBBB with AAAAAAAAAAA.

Yours tentitavely,
Neil.

Re: DBA merging creditors

PostPosted: Tue Mar 26, 2024 2:31 pm
by Mike.Sheen
neil.interactit wrote:My plan would be to find every CreditorID FK (excepting those associated with the core CR_Main record - ie. on the actual creditor maintenance screen itself) and replace CreditorID BBBBBBBBBBB with AAAAAAAAAAA.


That should work - but you'll need to run usp_JIWA_Creditor_Recalc_Balances after you've done the transactions if you had any unaged transactions which were moved otherwise their balances will be wrong.

Re: DBA merging creditors

PostPosted: Thu Mar 28, 2024 1:33 pm
by neil.interactit
Perfect, thanks.

Re: DBA merging creditors

PostPosted: Thu Apr 04, 2024 1:34 pm
by neil.interactit
Hi Mike,

Would you mind casting your eye over and sanity checking the following?

This is the proposed split between leave alone and update IDs.

OTHER CREDITOR (CreditorID left alone as this is the duplicate and its children)

CR_Main.CreditorID
CR_CustomSettingValues.CreditorID
CR_Warehouse.CreditorID ??
CN_Main.CreditorID
CR_Notes.CreditorID **
CR_Documents.CreditorID **

TRANSACTIONAL (CreditorID updated to reference the 'main' creditor instead of the 'other' creditor)

BR_DirectCreditorPayments.CreditorID
BR_DirectCreditorReceipts.CreditorID
CB_BatchTranLines.DebtorCreditorID (WHERE DebtorCreditor IS CREDITOR)
CR_AllocationBatch.CreditorID
CR_BatchTranLines.AccountID
CR_Purchases.CreditorID
CR_Trans.CreditorID
CR_TransAlloc.CreditorID
IN_Creditor.CreditorID
IN_LogicalOrder.CentralWarehouseID ??
PI_Main.CreditorID
PO_BatchPurchaseOrders.CR_Main_RecID
PO_Main.CentralWarehouseID
PO_Main.CreditorID
RA_CreditMain.CreditorID
RA_RequestMain.CreditorID
RA_ShipMain.CreditorID
RE_Main.CreditorID
SH_BookInLines.CreditorID
SH_Costs.CreditorID
SH_Invoices.CreditorID
SH_Lines.CreditorID
SH_Main.ShippingAgent
SH_Voti.CreditorID
SY_RecentlyViewed.Document_RecID (also update also Document_DisplayText)
TD_Main.Source_RecID

** Even though an 'other' child, planning to update to reference the 'main' creditor instead, to effectively move these children to the 'main' record
?? Unsure about these


Cheers,
Neil.

Re: DBA merging creditors  Topic is solved

PostPosted: Thu Apr 04, 2024 6:29 pm
by Mike.Sheen
neil.interactit wrote:Would you mind casting your eye over and sanity checking the following?


Without obtaining the database you are wanting to do this on and actually doing it myself, I cannot tell you if there any problems with it or not, I'm afraid.

Copy the database, and run your merge scripts on the copy, inspect some of the merged creditors to see if they look sensible. Try to create and complete a PO -> GRN -> PI cycle for one of the merged creditors - check for the invoice showing up against the right creditor. Do the same for any other critical flows they perform - supplier returns, shipments and so on.

Right now, even if an obscene amount of money was offered for me to do it, I would have to decline as my dance card is full.

Re: DBA merging creditors

PostPosted: Tue Apr 16, 2024 2:57 pm
by neil.interactit
No probs, thanks.

And here was me, thinking of brushing up on my tango!