/
Debtor Child sales orders do not appear in the Parent / Head Office account - 7.00.175 SR10 and prior

Debtor Child sales orders do not appear in the Parent / Head Office account - 7.00.175 SR10 and prior

Problem

Not all of the child / branch debtor transactions appear in the Parent / Head Office account.  This can happen when sales orders for the child / branch debtor were created before the child / branch debtor was linked to the parent / head office account

Solution

SQL skills are required

A working knowledge of SQL Management Studio is required to complete this task.



In Service Release 11 for 07.00.175, when attempting to link a child debtor to a head office account AND unprocessed sales orders exist for the child/branch debtor a warning is displayed.

Warning.  'Debtor account XXXX has unprocessed sales orders xxxx-S01.  The link cannot be made until the sales order(s) is processed'

Note:  Processed sales order are correctly linked to the parent account

Run the following script in SQL to update the relevant records

-- This script updates the records in the DB_Trans table linking the child / branch transactions to the parent / office account UPDATE DB_Trans SET DebtorID = (SELECT ParentDebtorID FROM DB_Main WHERE DB_Main.DebtorID = DB_Trans.DebtorID) -- This script updates the sales order records in the SO_Main table linking the child / branch sales orders to the parent / head office account UPDATE SO_Main SET ParentDebtorID = (SELECT TOP 1 ParentDebtorID FROM DB_Main WHERE DB_Main.DebtorID =SO_Main.DebtorID) WHERE SO_Main.Status = 0 AND ParentDebtorID <> (SELECT TOP 1 ParentDebtorID FROM DB_Main WHERE DB_Main.DebtorID =SO_Main.DebtorID)



Related articles



Related content

Importing sales orders via XML for child accounts is not updating the parent debtor record
Importing sales orders via XML for child accounts is not updating the parent debtor record
More like this
Debtor Parent Price element is not being applied to child debtor accounts
Debtor Parent Price element is not being applied to child debtor accounts
More like this
Debtors statements to print un-aged fully allocated transactions
Debtors statements to print un-aged fully allocated transactions
More like this
Process Back Orders is not fulfilling back orders on Warehouse Transfers - 7.00.175, 7.02.00, 7.02.01
Process Back Orders is not fulfilling back orders on Warehouse Transfers - 7.00.175, 7.02.00, 7.02.01
More like this
SOMGT051 - Sales with COGS by Debtor does not filter by Branch
SOMGT051 - Sales with COGS by Debtor does not filter by Branch
More like this
Debtor Sales tab errors where the General Ledger periods are non standard 'Object reference not set ...' 7.00.175
Debtor Sales tab errors where the General Ledger periods are non standard 'Object reference not set ...' 7.00.175
More like this