feat: refs #7116 create table agencyIncoming

This commit is contained in:
Robert Ferrús 2024-03-20 11:07:55 +01:00
parent a76b7c8535
commit bb86c27202
2 changed files with 12 additions and 1 deletions

View File

@ -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,

View File

@ -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;