mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 17:18:44 -04:00
Remove invoice / sale format enable option
Add giftcards -> person_id foreign key constraint Fix tax calculation for non taxable customers Improve giftcard person autocompletion
This commit is contained in:
1 parent
b546883d2a
commit
07a32a0deb
9 files changed
+65
-52
No files matched your search
@@ -78,9 +78,7 @@ INSERT INTO `ospos_grants` (`permission_id`, `person_id`) VALUES
|
||||
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('tax_included', '0'),
|
||||
('recv_invoice_format', '$CO'),
|
||||
('sales_invoice_format', '$CO'),
|
||||
('sales_invoice_enable', '0'),
|
||||
('recv_invoice_enable', '0');
|
||||
('sales_invoice_format', '$CO');
|
||||
|
||||
-- add invoice_number column to receivings table
|
||||
ALTER TABLE `ospos_receivings`
|
||||
@@ -101,3 +99,7 @@ ALTER TABLE `ospos_sales_suspended`
|
||||
ALTER TABLE `ospos_items`
|
||||
ADD COLUMN `receiving_quantity` int(11) DEFAULT '1',
|
||||
DROP COLUMN `quantity`;
|
||||
|
||||
-- add foreign key to giftcards table
|
||||
ALTER TABLE `ospos_giftcards`
|
||||
ADD CONSTRAINT `ospos_giftcards_ibfk_1` FOREIGN KEY (`person_id`) REFERENCES `ospos_people` (`person_id`);
|
||||
@@ -39,9 +39,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('website', ''),
|
||||
('recv_invoice_format', '$CO'),
|
||||
('sales_invoice_format', '$CO'),
|
||||
('tax_included', '0'),
|
||||
('recv_invoice_enable', '0'),
|
||||
('sales_invoice_enable', '0');
|
||||
('tax_included', '0');
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -819,3 +817,9 @@ ALTER TABLE `ospos_item_quantities`
|
||||
--
|
||||
ALTER TABLE `ospos_suppliers`
|
||||
ADD CONSTRAINT `ospos_suppliers_ibfk_1` FOREIGN KEY (`person_id`) REFERENCES `ospos_people` (`person_id`);
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_giftcards`
|
||||
--
|
||||
ALTER TABLE `ospos_giftcards`
|
||||
ADD CONSTRAINT `ospos_giftcards_ibfk_1` FOREIGN KEY (`person_id`) REFERENCES `ospos_people` (`person_id`);
|
||||
Reference in new issue
Block a user