feat: refs #7116 create table agencyIncoming
This commit is contained in:
parent
a76b7c8535
commit
bb86c27202
|
@ -27,7 +27,7 @@ BEGIN
|
||||||
JOIN vn.ticket t ON t.id = s.ticketFk
|
JOIN vn.ticket t ON t.id = s.ticketFk
|
||||||
WHERE ic.merchandise
|
WHERE ic.merchandise
|
||||||
AND t.shipped BETWEEN vDateStart AND util.dayEnd(vDateEnd)
|
AND t.shipped BETWEEN vDateStart AND util.dayEnd(vDateEnd)
|
||||||
GROUP BY it.id, bs.dated;
|
GROUP BY i.id, bs.dated;
|
||||||
|
|
||||||
INSERT INTO salesByItemTypeDay (itemTypeFk, dated, trash, faults)
|
INSERT INTO salesByItemTypeDay (itemTypeFk, dated, trash, faults)
|
||||||
SELECT it.id itemTypeFk,
|
SELECT it.id itemTypeFk,
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
-- Place your SQL code here
|
||||||
|
CREATE TABLE IF NOT EXISTS `vn`.`agencyIncoming` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`code` varchar(50) DEFAULT NULL,
|
||||||
|
`description` varchar(50) DEFAULT NULL,
|
||||||
|
`isOrigin` tinyint(1) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
)
|
||||||
|
ENGINE=InnoDB
|
||||||
|
DEFAULT CHARSET=utf8mb3
|
||||||
|
COLLATE=utf8mb3_unicode_ci;
|
Loading…
Reference in New Issue