accounting modules
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
-- db: wms2
|
||||
CREATE TABLE IF NOT EXISTS `ac_quotation` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`company_id` int(11) NOT NULL DEFAULT 0,
|
||||
`uuid` varchar(32) NOT NULL DEFAULT '',
|
||||
`quotation_number` varchar(50) NOT NULL DEFAULT '',
|
||||
`contact_id` int(11) NOT NULL DEFAULT 0,
|
||||
`quotation_date` date DEFAULT NULL,
|
||||
`valid_until` date DEFAULT NULL,
|
||||
`status` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`subtotal` decimal(18,4) NOT NULL DEFAULT 0.0000,
|
||||
`discount` decimal(18,4) NOT NULL DEFAULT 0.0000,
|
||||
`tax` decimal(18,4) NOT NULL DEFAULT 0.0000,
|
||||
`grand_total` decimal(18,4) NOT NULL DEFAULT 0.0000,
|
||||
`items` mediumtext NOT NULL DEFAULT '[]',
|
||||
`notes` text NOT NULL DEFAULT '',
|
||||
`log` mediumtext NOT NULL DEFAULT '{}',
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `company_id` (`company_id`),
|
||||
KEY `quotation_number` (`quotation_number`),
|
||||
KEY `status` (`status`),
|
||||
KEY `contact_id` (`contact_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user