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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micros Database change when item voided

Status
Not open for further replies.

RitwickGupta

Programmer
Aug 21, 2014
96
CA
Hello,

I am trying to extract check details from a micros 3700 db. Everything is going fine till someone voids an item from the check on the POS.
For every item that has been voided, 2 rows are added to trans_dtl and mi_dtl.

For example,

When I add Pizza1 with extra pepper and Pizza2 with extra cheese, (They will both have same object number in reality)

Pizza $5​
Pepper $1​
Pizza $5​
Cheese $2​

but when I void it,

Pizza $5​
Pepper $1​
Pizza $5​
Cheese $2​
Pizza $0​
Cheese $0​
Pizza -$5​
Cheese -$2​

I can easily figure out that a Pizza2 has been deleted, but how do I link that pizza in sql/code to which pizza was deleted? I want to not retrieve the second pizza. Is there way to do that linking? I tried all the fields in trans_dtl and mi_dtl but I was not able to figure out.

Below is an image of explaining a similar situation in an image form. I have only kept the non common rows. Sorry the row headings are missing. Stupid Sybase export

rivm8w.png


Thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top