Hotel Rooms (Entity?)

The True value was listed in the screengrab as I had been trying all combinations of True, False and Null. It just happened to be in that state when I grabbed the image. Any of the three selections makes no difference to the functionality.

This is a screengrab of the Debugger with the Background setting at False.All my Room Entities are currently not ‘Occupied’ therefore the Constraints in Grid Rule prevent the setting of Entity GridBookingNumber and EntityGridBookingBalance values and therefore Jumps straight to the Execute Automation Command Action to start the AskQuestions Rule.

At this point the EntityGridCommandStart AutomationCommand loops and calls itself again and asks again for confirmation. If I were to switch off Confirmation of the Automation Command it goes into an “infinite loop” and SambaPos crashes without any error message. The only way I can break the loop is by selecting No on the Confirmation question.

As mentioned earlier I do not feel the Ask Questions Rule is even being executed as this does not appear on the Debugger Screen.

If I amend the Booking Entity Grid properties to execute ‘RoomEntityGridAskQuestions’ the Ask Question Rule runs and looks OK (Except [:CommandValue] is obviously not set)

Here is the EntityGridAskQuestion Grabs. Note the Contraints are truncated by the ScreenGrab and I will cut and paste my settings below

Constraint 1
‘{REPORT ENTITY DETAIL:EC.Room Status:(EN=[:CommandValue])}’ != ‘Occupied’

Constraint 2
‘{REPORT ENTITY DETAIL:EC.Room Status:(EN=[:CommandValue])}’ == ‘Occupied’ && ‘{CALL:accountinfo.BalanceFromEntityGridBookingNumberSetting()}’ != ‘’ && ‘{CALL:accountinfo.BalanceFromEntityGridBookingNumberSetting()}’ != ‘0.00’

Constraint 3
‘{REPORT ENTITY DETAIL:EC.Room Status:(EN=[:CommandValue])}’ == ‘Occupied’ && (’{CALL:accountinfo.BalanceFromEntityGridBookingNumberSetting()}’ == ‘’ || ‘{CALL:accountinfo.BalanceFromEntityGridBookingNumberSetting()}’ == ‘0.00’)

The full constraints were copied from the detail provided directly by Joe so I am confident these are correct.