Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locstock Table Swap
09-28-2013, 10:19 PM,
#1
Locstock Table Swap
Unfortunately when I started using weberp I loaded the products before creating the product locations so I am unable to transfer products to some locations. I created a locstock2 table that has all of the stockid and locations necessary.

What would be the recommended process for making locstock2 table the new locstock table? For example, should I change the primary keys first and then Drop locstock and rename locstock2 to locstock? Are there any other dependencies that I should consider?
Reply
09-29-2013, 07:13 AM,
#2
RE: Locstock Table Swap
The interface creates locstock records as necessary. If you import items (which might result in no locstock record being created) you can recreate the necessary locstock records with Z_MakeStockLocns.php
I suggest ditch the new locstock2 and run the above script to create the records you need.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
09-29-2013, 10:22 AM,
#3
RE: Locstock Table Swap
Thanks Phil! Next time I'll ask first before playing around with the tables.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)