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

Micros 3700 POS API, how to pass check status bits in the XML

Status
Not open for further replies.

microslady

Vendor
Feb 24, 2015
53
US
I am needing to pass the future order check status bit, but not sure how to parse this in the request XML.

With the definition of each bit position as follows:

1 Rush Order
2 VIP Transaction
3 Employee must own the check that is being picked up
4 Allow Partial Auth
5 Future Order Check
6 thru 32 are unused

I thought it would be this,
<tns:CheckStatusBits>08000000</tns:CheckStatusBits>
but that did not flag the check as a future order check.

Any help is greatly appreciated.
 
The CheckStatusBits takes in Integer value.
I haven't tried this but i assume you need to convert a binary representation of the check bits to an integer as the CheckStatusBits is an integer value.

So to enable a future order set the 5th bit to 1 all other 31 bits should be zero. it should be 00001000000000000000000000000000 which when converted to an integer is 524288.

If you send 08000000 then when this is converted to an integer it is 8000000.

Do you want some custom SIM scripts developed. Contact me via my website
 
Actually just ignore what i said above.

I found a chunk of c# code that determines the CheckStatusBits
int CheckStatusBits = 0;
if (Rush)
{
CheckStatusBits |= 0x1;
}
if (VIP)
{
CheckStatusBits |= 0x2;
}
if (EmplMatch)
{
CheckStatusBits |= 0x4;
}
if (AllowPartialAuth)
{
CheckStatusBits |= 0x8;
}
if (FutureOrder)
{
CheckStatusBits |= 0x10;
}

Do you want some custom SIM scripts developed. Contact me via my website
 
Thank you for your replies CathalMF

Does this mean we send 16 (1x16+0x1) as the integer value?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top