Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

micros 3700 menu item export

Status
Not open for further replies.

mxap

Vendor
May 11, 2005
197
US
Hi All,
I was able to export menu items by using the following script.
But it only imported three rows.
We have pretty good size menu.
Any ideas, please?
Thank you all.
mxap

WITH prices AS (
SELECT *,
ROW_NUMBER() OVER(PARTITION BY mi_seq ORDER BY effective_from DESC) AS rk
FROM micros.mi_price_def WHERE effective_from <= NOW() AND (effective_to > NOW() OR effective_to IS NULL))
SELECT
p.mi_seq,
d.obj_num,
d.name_1,
p.preset_amt_1,
p.preset_amt_2,
p.preset_amt_3,
p.preset_amt_4,
p.preset_amt_5,
p.preset_amt_6,
p.preset_amt_7,
p.preset_amt_8,
p.preset_amt_9,
p.preset_amt_10
FROM
prices p
JOIN micros.mi_def d ON p.mi_seq = d.mi_seq
WHERE p.rk = 1

;output to C:\MICROS\temp\Menu_items.csv
 
try this
select micros.mi_def.obj_num,micros.mi_def.name_1,micros.mi_def.name_2,micros.mi_slu_def.name,micros.mi_price_def.preset_amt_1,micros.prn_class_def.name from micros.mi_def
INNER JOIN micros.mi_slu_def on micros.mi_slu_def.mi_slu_seq = micros.mi_def.mi_slu_seq
INNER JOIN micros.mi_price_def on micros.mi_price_def.mi_seq = micros.mi_def.mi_seq
INNER JOIN micros.prn_class_def on micros.prn_class_def.prn_def_class_seq = micros.mi_def.prn_def_class_seq
ORDER BY micros.mi_def.obj_num;
OUTPUT TO C:\EXPORT.txt FORMAT ASCII DELIMITED BY ';'

 
AndreasZ,
That seems to be working. I was able to export out to CSV file and now I will change prices.
Can you please also help me to Import back this file into DB, so that my new prices can get imported?
thank you so much.
best
mxap
 
hi,

i would not update the prices external. if you want to do an fast price updating go to menu item - prices - select the priclevel - change it - press "strg+n"
You jump to the next menu item in the same price level.

 
AndreasZ,
I was hoping to change the prices in Exported CSV file without changing any file format, just the prices and then Import it back into micros.
Would that be possible?
Thanks again
mxap
 
You can do an simple update... but i recommend you to do an backup first.
 
AndreasZ
Yes, that is the goal. Just the price column.
Can you please help on SQL script query for importing this file?
thanks
mxap
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top