Commit Graph

6014 Commits

Author SHA1 Message Date
Steve Ireland
0ce73cc249 These minor changes were needed to get to the point where the Item form could be displayed. There are still some issues with the actual form 2023-04-27 21:54:12 -04:00
Steve Ireland
c5180ab614 Primary changes return type from ResultSet to int for those requests that only return a record count. Also corrected a few other minor issues. 2023-04-27 21:54:12 -04:00
Steve Ireland
80b893a332 Corrected model search method naming and added defaults for parameters not provided since the addition of type hints seems to disable the use of default values. 2023-04-27 21:54:12 -04:00
Steve Ireland
512baf7731 Never program while your wife is trying to have a serious discussion with you. 2023-04-27 21:54:11 -04:00
Steve Ireland
f03c75d08b More search corrections 2023-04-27 21:54:11 -04:00
Steve Ireland
3ec33b641f Correct some experimental code. 2023-04-27 21:54:11 -04:00
Steve Ireland
7cb4c3eef1 Correct some experimental code. 2023-04-27 21:54:11 -04:00
Steve Ireland
a9e4283b80 I believe this batch of changes resolves numerous CI4 related issues (but not all issues). 2023-04-27 21:54:11 -04:00
Steve Ireland
eb313130da This resolve the issue of the tables not being rendered by removing the esc() function from the headers. 2023-04-27 21:54:11 -04:00
Steve Ireland
750b2afa7a A touch of "standards compliance" cleanup. 2023-04-27 21:54:11 -04:00
Steve Ireland
ac10b61792 If in development mode use the non-minimized verson of the java and css scripts. 2023-04-27 21:54:11 -04:00
Steve Ireland
d0ddf798b9 jQuery was one of three javascript files that were not being built correctly. This fixes the Javascript issues. 2023-04-27 21:54:11 -04:00
Steve Ireland
b23573dda5 Clone .env to have clean version in case the repository version accidentally gets clobbered. 2023-04-27 21:54:11 -04:00
Steve Ireland
c990bb2abb Tack on the void return type onto the Employee:logout method. 2023-04-27 21:54:11 -04:00
objecttothis
63b0068a38 Sales MVC
- Added todo to Stock_location.php
- make library function return nullable
- Added missing model instantiation
- Commented out Sale model instantiation in library because it's causing infinite loop
- Changed function name prepending get and post required by CI4 autorouting
2023-04-27 21:54:11 -04:00
Steve Ireland
026ac25106 Restore the logout behavior so that when logout is clicked then the user is returned to the login page. 2023-04-27 21:54:11 -04:00
Steve Ireland
706adf44cd This commit addresses the scenario where encryption fails when the value to be encrypted is either FALSE or blank. I'm testing for !empty before doing encryption/decryption on the value and that seems to be working with this commit. 2023-04-27 21:54:11 -04:00
Steve Ireland
32ba4a9545 Remove grunt045 from zipped opensourcepos file. Also fix the call to array_walker since the parameters (even if not used) are validated in PHP 8. 2023-04-27 21:54:11 -04:00
objecttothis
715275b41f Added missing stock_location model reference 2023-04-27 21:54:11 -04:00
objecttothis
32192b90c3 CI4 bugfixes
- Added session variable instantiation where needed.
- Added tabular helper to autoload
- removed tabular helper reference where no longer needed.
- Remove esc() references where it was causing display problems.
- Remove excess whitespace on blank line
- Remove unecessary using reference
- Make parameters for dinner table functions nullable
2023-04-27 21:54:11 -04:00
Steve Ireland
d8d82aaeed Mostly clean up the build documentation, but also corrects an error in the creation of the database script that supports migration from phppos 2023-04-27 21:54:11 -04:00
objecttothis
78cfe927b0 Convert encryption to CI4
- optimized save function
2023-04-27 21:54:11 -04:00
objecttothis
8a1e4b2083 Convert encryption to CI4
- automatic upgrade of encryption key.
- automatic decryption of CI3 data, then re-encryption in CI4 and update of table.
- Fixing save function in app_config model
2023-04-27 21:54:11 -04:00
Steve Ireland
bd91576d6f The first of many tweaks to the reworked build process. This corrects numerous grammatical errors and adds a bit more detail. 2023-04-27 21:54:11 -04:00
Steve Ireland
51f891008e This revises the build process to handle grunt components requiring two versions of grunt. The new BUILD.md file documents the changes. 2023-04-27 21:54:11 -04:00
objecttothis
00955b0c94 Model fixes
- Removed unused imports
- Simplified boolean expression
- Added missing return type
- Fixed incorrect call to lang()
- Fixed missing type declaration
2023-04-27 21:54:11 -04:00
objecttothis
dd3b7330d3 Added protected fields for CI4 models
- primary table
- primary key
- useAutoIncrement
- useSoftDeletes
2023-04-27 21:54:11 -04:00
objecttothis
6126483586 Added allowedFields to models
- Without this save(), insert() and update() fail
2023-04-27 21:54:11 -04:00
objecttothis
7738242386 Encryption
- Removed unneeded encryption code.
- Configured Encryption settings for CI4
2023-04-27 21:54:11 -04:00
objecttothis
7d78eec7de Fix CI4/CI3 encryption compatibility
- Removed the CI3 Encryption library as it's no longer needed.
- Added a field to \App\Config\Encryption.php to allow cipher.
- Removed test code for CI3 encryption and added test code for CI4 decryption of CI3 data.
2023-04-27 21:54:11 -04:00
objecttothis
e8b7f226fa Added CI3's encryption class as a library
- For now CI4 is straight up not compatible with CI3 encrypted data.
- We will remove this in the future if CI4 fixes the compatibility.
2023-04-27 21:54:11 -04:00
objecttothis
75944399a8 commented out code causing infinite loop. 2023-04-27 21:54:11 -04:00
objecttothis
03872f02c9 Working on encryption 2023-04-27 21:54:11 -04:00
objecttothis
86b47c37c7 Fix login so that it redirects after migration
- Before it was going on to the home controller after migration, but the session had already been destroyed.
2023-04-27 21:54:11 -04:00
objecttothis
319205d2d6 Fixed default language_code
In app_config the default language code for new installs is set to 'en'. This is not a language in the system. Corrected to the default of 'en-US'
2023-04-27 21:54:11 -04:00
objecttothis
067fd99c8b Work on language line generation for reports.
- They are broken because CI4 calls lang lines with lang([Filename].[stringname])
2023-04-27 21:54:11 -04:00
objecttothis
f3bd5346ea Added missing initialization of stock_location model 2023-04-27 21:54:11 -04:00
objecttothis
f0898f3461 Fix for incorrect link generation 2023-04-27 21:54:11 -04:00
objecttothis
2150e4d2e8 Fix encryption and missing call 2023-04-27 21:54:11 -04:00
objecttothis
dd73099dd3 Removed commented code 2023-04-27 21:54:10 -04:00
objecttothis
d276f99773 Autoload cookie helper
It's being used in almost every view
2023-04-27 21:54:10 -04:00
objecttothis
854b58c406 fixed css references 2023-04-27 21:54:10 -04:00
objecttothis
9dc98563e7 Fixed undefined variable before use. 2023-04-27 21:54:10 -04:00
objecttothis
2dd8a62e34 Replaces calls to config('OSPOS')
- In controllers, models, helpers and libraries
- Reduced down to one call per class
- Update the OSPOS config on update to ospos_app_config table
2023-04-27 21:54:10 -04:00
objecttothis
bde3cb22c8 Replaces calls to config('OSPOS') in views
- the settings array is now passed through the Secure Controller to the view
2023-04-27 21:54:10 -04:00
objecttothis
b041f8f8f0 rawurlencode/decode cache data
- because of PSR6 compliance there are reserved characters in cache
2023-04-27 21:54:10 -04:00
objecttothis
2db77b910e Remove unused function 2023-04-27 21:54:10 -04:00
objecttothis
b149ae66cc Reduce calls to config('OSPOS') for speed.
- calling config from Secure_Controller.php and passing the data through a global view
- calling config in the Login view once rather than using config('OSPOS')->settings[] everywhere
2023-04-27 21:54:10 -04:00
objecttothis
29997d9083 Simplified business logic 2023-04-27 21:54:10 -04:00
objecttothis
7b7de41ffc Caching of ospos_app_config
- Implement a caching mechanism for the app_config table
- Revamp the OSPOS custom config so that cached values are used rather than pulling from the db
2023-04-27 21:54:10 -04:00