These are chat archives for CORE-POS/IS4C

9th
Aug 2016
danry25
@danry25
Aug 09 2016 00:40
@gohanman so are our sales not being synced if we can't get a sales report in Fannie or Lane?
Cause it looks like we're at transaction #16, but none are shwoing up in Fannie that we did yesterday and Lane won't print a slip from the manager menu
Andy Theuninck
@gohanman
Aug 09 2016 00:44
Yesterday would be an issue if management cron tasks aren't enabled (https://github.com/CORE-POS/IS4C/wiki/Scheduled-Tasks#the-transaction-shuffle). What color is the lane status indicator (https://github.com/CORE-POS/IS4C/wiki/Cashier-Handbook#the-lane-interface)
danry25
@danry25
Aug 09 2016 00:49
The lane status indicator is green, but none of the scheduled tasks are enabled on /fannie/cron/management/CronManagementPage.php
Which ones should I enable?
Andy Theuninck
@gohanman
Aug 09 2016 00:50
Should be irrelevant for reporting on today then
danry25
@danry25
Aug 09 2016 00:50
Some are in red towards the bottom
Andy Theuninck
@gohanman
Aug 09 2016 00:52
Those are older style scripts for backwards compatibility. All of them or nearly all of them have newer, OO replacements
danry25
@danry25
Aug 09 2016 00:55
ah
Should I enable any of them to get reporting for yesterday?
danry25
@danry25
Aug 09 2016 01:01
huh, reporting now shows we did 4 transactions
I did nothing besides refresh the page
danry25
@danry25
Aug 09 2016 03:36
Yea, tender report still doesn't show anything
Finn
@thefinn93
Aug 09 2016 04:56
So in our testing the cursor seems to defocus from the input box during many routine events, and @danry25 feels that this will confuse the cashier too much, would you object to a change that just agressively re-focuses the cursor in #reginput?
like,
$this->add_onload_command("setInterval(function(){\$('#reginput').focus();}, 500);\n");
in BasicCorePage
or maybe just InputCorePage?
idk
Finn
@thefinn93
Aug 09 2016 05:35
Aug 8 22:31:35 lane-1 lane[844]: (debug) Failed Query on /pos/is4c-nf/gui-modules/adminlist.php
SELECT datetime AS tdate,
                    register_no,
                    trans_no,
                    CASE
                        WHEN trans_subtype='CA' AND total >= 0 THEN total
                        WHEN trans_subtype='CA' AND total < 0 THEN 0
                        ELSE -1*total
                    END AS tender
                  FROM dtransactions 
                  WHERE emp_no=1
                    AND tender_code = 'EF' 
                    AND trans_status NOT IN ('X','Z')
                  ORDER BY datetime
Unknown column 'tender_code' in 'where clause'
figured out why dan's reports are printing
aren't*
not really sure what to do about it... but yeah
Andy Theuninck
@gohanman
Aug 09 2016 11:54
I have no issues whatsoever with input focus leaving the main text box, but I'm pretty sure the suggested "fix" will just make things a lot worse. If the cursor jumps to the beginning of the input box every half a second it'll be impossible to type anything reliably. The only real solution will involve figuring out what in your particular environment is causing focus to change
Andy Theuninck
@gohanman
Aug 09 2016 12:15
tender report CORE-POS/IS4C@79be635
Finn
@thefinn93
Aug 09 2016 16:07
@gohanman I did not experience any cursor jumping...
What browser did you use? Just curious
Andy Theuninck
@gohanman
Aug 09 2016 16:10
Firefox mainly, but AFAIK behavior is pretty consistent. Like I said on the PR, if the textbox already has focus, nothing will happen. But if it lost focus, when focus returns to the textbox the cursor will be placed at the beginning. e.g. if the text box contains "ABC" and loses focus on returning the cursor will be in front of the A rather than after the C
Finn
@thefinn93
Aug 09 2016 16:12
huh, alright
danry25
@danry25
Aug 09 2016 16:13
@gohanman FYI without the input focus fix we were getting unfocused from the text input box upon login and with any usage of the touchscreen. AFAICT the input fix puts you at the end of whatever is entered oin the text input box, I tested it a few dozen times last night for that specifically since I thought it could potentially screw things up. Also, pressing clear on the touchscreen just drops CL into the text box & doesn't press enter FYI.
Andy Theuninck
@gohanman
Aug 09 2016 16:19
Pressing clear where specifically?
Finn
@thefinn93
Aug 09 2016 16:59
"On the touch screen" (I asked him via text)
Andy Theuninck
@gohanman
Aug 09 2016 17:00
That's not really helpful. Clear buttons render all over the place in different contexts
Finn
@thefinn93
Aug 09 2016 17:00
yeah...
oh i was able to find one
i hit the tender button
Andy Theuninck
@gohanman
Aug 09 2016 17:01
Which tender button?
Finn
@thefinn93
Aug 09 2016 17:01
not sure... dan somehow configured a visual button at the bottom that says "tender"
i clicked it
i haven't looked at any of the quickkeys/touchscreen stuff
Andy Theuninck
@gohanman
Aug 09 2016 17:05
Hm. If I enter CA I get a dialog box to tender out as cash & the clear button works as expected. If I enter TT I get a select list of tender options & the clear button works as expected.
Finn
@thefinn93
Aug 09 2016 17:06
yeah, we get that too
the Tender button shows something different
hang on i'll grab a screenshot
Andy Theuninck
@gohanman
Aug 09 2016 17:08
ah
Finn
@thefinn93
Aug 09 2016 17:08
that Clear button puts CL in the box, does not submit the form
i can try it again in a browser that will let me pull up the JS logger if you'd like
Andy Theuninck
@gohanman
Aug 09 2016 17:13
It's CORE-POS/IS4C@bf364d1
Finn
@thefinn93
Aug 09 2016 17:13
cool
I'm playing around with the tender report thing, where is the dtransactions table?
i found it in translog on lane but it's empty
Andy Theuninck
@gohanman
Aug 09 2016 17:18
End of transaction the contents of lane-side dtransactions gets shipped to the server (barring network failure / connectivity / etc). Default name for that server-side database is core_trans but it's configurable
Finn
@thefinn93
Aug 09 2016 17:21
ok
Finn
@thefinn93
Aug 09 2016 21:50
so Dan really wants a report for total's by transaction type and grand total in the MG menu
would you accept a patch that adds that?
also, would you be opposed to making that menu extensible?
Andy Theuninck
@gohanman
Aug 09 2016 21:51
I'm not following how that differs from a tender report
Finn
@thefinn93
Aug 09 2016 21:51
yeah honestly, idfk at this point either... gonna try to get him on here
oh, nvm, he's taking off
Andy Theuninck
@gohanman
Aug 09 2016 21:52
FWIW I've never seen a real world install where the default tender report wasn't replaced with a custom one. It seems like one thing literally no one agrees on
Finn
@thefinn93
Aug 09 2016 21:52
ha
"‎[02:52:36 PM] ‎dan‎: To provide an easy way for cashiers to total out their drawer at the end of the day"
Andy Theuninck
@gohanman
Aug 09 2016 21:53
That sure sounds like a tender report to me
Finn
@thefinn93
Aug 09 2016 21:53
"‎[02:52:36 PM] ‎dan‎: To provide an easy way for cashiers to total out their drawer at the end of the day"
actually yeah, so the thing that printed out when we ran it doesn't really have a total report, it appears to be a list of all the transactions that happened
The whole thing's replaceable so you can ultimately format it however you want and omit or include whatever details
Finn
@thefinn93
Aug 09 2016 21:59
ahh cool
so i just extend TenderReport
and spit out a string of nicely formatted whatever that gets printed on the receipt?
Andy Theuninck
@gohanman
Aug 09 2016 22:00
Yep. get has to return a string.
Finn
@thefinn93
Aug 09 2016 22:00
cool
where does one select which tender report should run?
Andy Theuninck
@gohanman
Aug 09 2016 22:01
the receipt tab IIRC. might be extras
Finn
@thefinn93
Aug 09 2016 22:01
ah yeah found it just as you said that
near the bottom of extras
cool
i'll build a menu
errr
module*
words