adding edit icons to sales list

This commit is contained in:
Flatlogic Bot 2026-02-16 09:58:22 +00:00
parent 4b20014812
commit caf37ba2c8
3 changed files with 695 additions and 116 deletions

View File

@ -0,0 +1,25 @@
-- Add VAT to stock items
ALTER TABLE stock_items ADD COLUMN vat_rate DECIMAL(5,2) DEFAULT 0.00;
-- Add VAT details to invoices
ALTER TABLE invoices ADD COLUMN vat_amount DECIMAL(15,2) DEFAULT 0.00;
ALTER TABLE invoices ADD COLUMN total_with_vat DECIMAL(15,2) DEFAULT 0.00;
-- Create settings table for company profile
CREATE TABLE IF NOT EXISTS settings (
`key` VARCHAR(50) PRIMARY KEY,
`value` TEXT,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
-- Seed initial company profile
INSERT INTO settings (`key`, `value`) VALUES
('company_name', 'My Tech Company'),
('company_logo', ''),
('vat_number', ''),
('cr_number', ''),
('company_address', ''),
('company_phone', ''),
('vat_enabled', '1'),
('default_vat_rate', '15.00')
ON DUPLICATE KEY UPDATE `key`=`key`;

786
index.php

File diff suppressed because it is too large Load Diff

BIN
uploads/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB