web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

HQ Rebuilded, Inventory Transfer on stores not closed again

(0) ShareShare
ReportReport
Posted on by 10

Good morning everyone.

We rebuild our HQ Manager, using the folowing schedulle:

1 Delete all stores frm HQ

2 Run at one store at the time the folowing scripts:

update AccountingAccounts set HQID=0;
update AccountingTerms set HQID=0;
update AccountType set HQID=0;
update Cashier set HQID=0;
update Category set HQID=0;
update Currency set HQID=0;
update CustomButtons set HQID=0;
update CustomCaption set HQID=0;
update Customer set HQID=0;
update Department set HQID=0;
update Item set HQID=0;
update item_bck set HQID=0;
update ItemClass set HQID=0;
update ItemMessage set HQID=0;
update ItemTax set HQID=0;
update MatrixAttributeDisplayOrder set HQID=0;
update PriceRounding set HQID=0;
update QuantityDiscount set HQID=0;
update ReasonCode set HQID=0;
update SalesRep set HQID=0;
update Schedule set HQID=0;
update ScheduleSegment set HQID=0;
update Serial set HQID=0;
update ShippingCarrier set HQID=0;
update ShippingService set HQID=0;
update ShipTo set HQID=0;
update Supplier set HQID=0;
update Taskpad set HQID=0;
update TaskpadButtons set HQID=0;
update TaskpadLayout set HQID=0;
update Tax set HQID=0;
update Tender set HQID=0;

update [Configuration] set SyncID=0;


update [Configuration] set StoreID=0;

2 At the Store´s RMS insert again it´s Store ID

3 Run Worksheet 101

4 Run Worksheet 401 from 01-01-2013 to today.

5 Run Workseet 401

After that in HQ, we make reports about last month Sales and Inventory Report, Snapshot Store Quantity List, verifyng that the sales are the same in okd and new HQ, and  that the Inventory were the same in Store´s RMS and HQ Manager. 

After that, we considered that the rebuikding was Successful, at 9:3 PM 05-01-17.

Yesterday, at Store´s RMS, show´s in Inventory Transfer In, a lot of transfer in not received that were received correctly many yers ago.

We must delet with administrator powers, all resended Inventory Transfer? or there is any SQL Script that do this job?

Thank´s a lot for your help.

Regards

*This post is locked for comments

I have the same question (0)
  • Michael Marmah Profile Picture
    1,511 on at
    RE: HQ Rebuilded, Inventory Transfer on stores not closed again

    Hi,

    Do you want to set those Transfer In status to "closed"?

    But, also I don't think the reason why those transfer Ins are not closed is because of the rebuild, it could be something else, have you checked if all items in the order are fully received

  • Pablo Luis Adolfo Livov Profile Picture
    10 on at
    RE: HQ Rebuilded, Inventory Transfer on stores not closed again

    Thank´s a lot, Michael.

    Yes, we like to change the status to closed.

    There´´s any script for that job?

    I think the problem is about transaction numbers.

    Thank You

    Pablo Livov

  • Michael Marmah Profile Picture
    1,511 on at
    RE: HQ Rebuilded, Inventory Transfer on stores not closed again

    OK,

    1. Take a backup of the shop database for safety reasons.

    2.Do a select query to see and  confirm which orders you will be changing their status using this script

    Select * from PurchaseOrder Where Potype  IN (2,4) and Convert(Varchar(15),DateCreated,102) >='2017.02.17'  order by ID 
    assuming you want to change status for all orders created on or after 17th Feb,2017.

    If you are sure then you run the below to close all those Orders

    Update PurchaseOrder Set Status=2 Where Potype  IN (2,4) and Convert(Varchar(15),DateCreated,102) >='2017.02.17'

    All the best

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans