These are chat archives for CORE-POS/IS4C

6th
Aug 2016
danry25
@danry25
Aug 06 2016 09:10
I think quite a bit of this weirdness has to do with our use of the customer display. When it is open, live weight values will show up on it or on the cashier display, and items will only show up on the cashier display 2 out of every 3 times scanned. If the customer display is closed, both issues cease.
Finn
@thefinn93
Aug 06 2016 21:27
So, @danry25 has asked me to add support for this particular Zebra label printer. He wanted the ability to print off a single shelf tag easily. I have built something that does that, and now am building out configuration and stuff so it works for a more general use case. If you could take a look diff and lemme know what you think, that'd be appreciated :)
Andy Theuninck
@gohanman
Aug 06 2016 22:06
I'm not sure it merits a separate settings page; those seem like they could go the Products tab with the other tag/sign settings. Should the layout include a loop to create many pages of single barcodes if passed a longer array? I imagine the printer can also kick out a long stream of labels
Oh, and it'd be nice to clean up the diffs that are just whitespace. It makes the commit history of files noisier
Finn
@thefinn93
Aug 06 2016 22:18
yeah, i wasn't 100% sure what page to put it on so I made a new one. I'll move it to the Products tab
I intend to update the zebra template to do multiple pages soon
that was something we discussed and were unsure what would happen if we send it multiple pages, although we have since tested that
Andy Theuninck
@gohanman
Aug 06 2016 22:20
Cool. Does it have to be attached to the server via USB, or can you print to it over the network?
Finn
@thefinn93
Aug 06 2016 22:20
and I agree re: diffs, I've been trying to decide if it's ugly enough to warrant going through and putting them back. My text editor removes tailing whitespace
it works over a network
Finn
@thefinn93
Aug 06 2016 22:27
Moved settings to the products page
Something else I'm hoping to do is remove the various exec() and passthru() commands and get proper CUPS integration
Finn
@thefinn93
Aug 06 2016 23:08
hrm, @gohanman any idea why variables set in config.php are undefined when I try to access them from a function in addShelfTag.php?
FANNIE_SINGLE_LABEL_PRINTER and FANNIE_SINGLE_LABEL_LAYOUT are both undefined
but they're def in my config.php file
i assume this is some weird scoping thing
Andy Theuninck
@gohanman
Aug 06 2016 23:11
Because PHP essentially. Global variables need to be explicitly imported using the global keyword. Pages all have a $config property though. Using $this->config->get('SINGLE_LABEL_PRINTER') is probably a better solution
Finn
@thefinn93
Aug 06 2016 23:38
cool
it will prepend the FANNIE_ part?
Andy Theuninck
@gohanman
Aug 06 2016 23:39
Yeah. It'll work with that included in the argument, too, but it's optional
Finn
@thefinn93
Aug 06 2016 23:39
mk
Finn
@thefinn93
Aug 06 2016 23:48
Alright, its working pretty good, gonna PR
danry25
@danry25
Aug 06 2016 23:49
@gohanman any clue why the customer display would cause the issues I mentioned earlier?
Andy Theuninck
@gohanman
Aug 06 2016 23:55
This'd be my first guess CORE-POS/IS4C@b5b3a32