- Created a new SQL migration for the sag_salgsvarer table to manage sales and purchase items. - Implemented a new HTML template for the Varekøb & Salg module, including summary cards and tables for sales and purchases. - Added JavaScript functions for loading and rendering order data dynamically. - Introduced a new backend search module for customers, contacts, hardware, and locations with autocomplete functionality. - Developed an email templates API for managing system and customer-specific email templates. - Created multiple migrations for Nextcloud instances, cache, audit logs, email templates, sag comments, hardware locations, and billing methods. - Enhanced the sag module with solutions, order lines, work types, and 2FA support for user authentication.
9 lines
437 B
SQL
9 lines
437 B
SQL
-- Migration: Add prepaid_card_id to tmodule_times for integration with Ticket Prepaid Cards
|
|
-- Date: 2025-02-02
|
|
-- Description: Allows Solutions/Time Module entries to be linked to prepaid cards (klippekort)
|
|
|
|
ALTER TABLE tmodule_times
|
|
ADD COLUMN IF NOT EXISTS prepaid_card_id INTEGER REFERENCES tticket_prepaid_cards(id) ON DELETE SET NULL;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_tmodule_times_prepaid_card ON tmodule_times(prepaid_card_id);
|