chunter2

Results 40 comments of chunter2

@odiea As a start do you know of a way to log the current error message to the server? I have logging enabled on the server but when I force...

@jekkos @objecttothis Would either of you know how to get this error message into the log file? I did a quick search of the code but didn't find an example...

@objecttothis Just reading this page https://github.com/opensourcepos/opensourcepos/wiki/OSPOS-DEVEL-for-Error-Logging-in-OSPOS but I'm not seeing the OSPOS log. Is this still a server side log file?

@objecttothis I had already enabled logging by setting $config['log_threshold'] = 4 in application/config/config.php and this got me files like log-2021-11-19.php in the application/logs folder of ospos but I don't see...

@objecttothis I was able to get it to work. The error message was in the add function in the application/controllers/Sales.php file. I was able to add the log_message function right...

@objecttothis Next question, I'd like to add the value entered in the item box of the sales module to the log_message function when it fails to add the item. I...

@objecttothis Thanks for the encouragement. I have done a couple pull requests but only for bug fixes or other small additions. I've managed to get myself out of sync with...

@objecttothis I found what I was looking for. Turns out the item_id_or_number_or_item_kit_or_receipt variable is an input/output variable. I added a log message to the add_item function in application/libraries/Sale_lib.php before it...

@objecttothis After a couple days of observation it looks like there could be two issues. One being the "hint" I mentioned above and the other being the cashiers scanning too...

I was able to get sound working. The top of the add_item function in application/libraries/Sale_lib.php now looks like this. ``` $item_info = $this->CI->Item->get_info_by_id_or_number($item_id, $include_deleted); $sound_file_name = "error.mp3"; //make sure item...