×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

micros 3700 menu item export

micros 3700 menu item export

micros 3700 menu item export

(OP)
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

RE: micros 3700 menu item export

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 ';'

RE: micros 3700 menu item export

(OP)
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

RE: micros 3700 menu item export

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.

RE: micros 3700 menu item export

(OP)
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

RE: micros 3700 menu item export

You can do an simple update... but i recommend you to do an backup first.

RE: micros 3700 menu item export

(OP)
AndreasZ
Yes, that is the goal. Just the price column.
Can you please help on SQL script query for importing this file?
thanks
mxap

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close