Jersey-Electricity-plc / jwissues

Hold issues/questions/improvements for the Jenworks conversion
0 stars 0 forks source link

Till ID Environment #57

Closed RPCJendev closed 10 months ago

RPCJendev commented 11 months ago

Set up till 06.

My environment variable is set up 06 as per screenshot but I get an error message:

image

image

tscottjendev commented 11 months ago

Yeah, we can't read environment variables in BC (cloud anyway). We might have to assign it on the User Setup somewhere.

tscottjendev commented 11 months ago

Also, please include the "details" in any error reported by clicking the "Copy Details" link.

RPCJendev commented 11 months ago

Sorry, will do the Copy details in future.

Can we discuss the design issue around this as soon as we can then as payment process with tills is important? Thanks.

tscottjendev commented 11 months ago

A couple of thoughts

tscottjendev commented 11 months ago

What is the "purpose" of the environment variable? We don't seem to be doing other hardware related functions with it.

RPCJendev commented 11 months ago

There is/was hardware functions in previous versions that would open till drawers.

The reason for knowing the till id is to know what the amount posted to a particular till is at the end of the day for balancing/cashing up. How could this be done in a different way? Be interesting to know how LS Retail handle such things as you would have thought they would have to deal with different tills.

Would it be possible, I wonder, to just allow a look up for the user to select which till they want to post the transactions against at the time of the process and having a default on a set up record if they didn't want to record against multiple tills.

tscottjendev commented 11 months ago

I have added logic to prompt for TillID if it is required. The prompt allows the user to select the TillID. The prompt will only occur once per session and the value saved. The next session the user will have to select the TillID again.

Assuming this works well enough we will have to open a new discussion on how to handle this from design point of view.

RPCJendev commented 10 months ago

Not working for me:

Get this:

If requesting support, please provide the following details to help troubleshooting:

The Tills does not exist. Identification fields and values: Code=''

Internal session ID: d6061fae-a916-448c-aa28-9dd32081a656

Application Insights session ID: 7443c2f5-4483-4b80-8538-c8b40f56b6a6

Client activity id: 89129f42-6338-07d6-18f1-db1bf46b4fc9

Time stamp on error: 2023-09-04T13:56:10.0707767Z

AL call stack: "JW Customer Payments"(Page 9096406).OnOpenPage(Trigger) line 4 - Jenworks by Jendev "JW Customer Payments Mgt."(CodeUnit 9096410).FetchEntriesInToPOSFromCustomer line 23 - Jenworks by Jendev "JW Utility Account Card"(Page 9096011)."Payment Process - OnAction"(Trigger) line 4 - Jenworks by Jendev