mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2025-12-24 01:57:51 -05:00
* Improve code style and PSR-12 compliance - refactored code formatting to adhere to PSR-12 guidelines - standardized coding conventions across the codebase - added missing framework files and reverted markup changes - reformatted arrays for enhanced readability - updated language files for consistent styling and clarity - minor miscellaneous improvements
27 lines
752 B
SQL
27 lines
752 B
SQL
--
|
|
-- Add support for GDPR utility
|
|
--
|
|
|
|
-- Add columns to customer table for tracking purposes and explicit consent of data registration
|
|
|
|
ALTER TABLE `ospos_customers`
|
|
ADD COLUMN `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
ADD COLUMN `employee_id` int(10) NOT NULL,
|
|
ADD COLUMN `consent` int(1) NOT NULL DEFAULT '0';
|
|
|
|
-- This is to enforce privacy by means of scrambling customer details
|
|
|
|
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
|
('enforce_privacy', '0');
|
|
|
|
|
|
-- Add print receipt autoreturn delay
|
|
|
|
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
|
('print_delay_autoreturn', '0');
|
|
|
|
|
|
-- Insure that the receiving quantity is not zero
|
|
|
|
UPDATE ospos_receivings_items SET receiving_quantity = 1 WHERE receiving_quantity = 0;
|