Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 7283-itemsMigration3
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
392012ef60
|
@ -2573,18 +2573,18 @@ INSERT INTO `vn`.`rate`(`dated`, `warehouseFk`, `rate0`, `rate1`, `rate2`, `rate
|
||||||
(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 YEAR), 1, 10, 15, 20, 25),
|
(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 YEAR), 1, 10, 15, 20, 25),
|
||||||
(util.VN_CURDATE(), 1, 12, 17, 22, 27);
|
(util.VN_CURDATE(), 1, 12, 17, 22, 27);
|
||||||
|
|
||||||
INSERT INTO `vn`.`dua` (id, code, awbFk__, issued, operated, booked, bookEntried, gestdocFk, customsValue, companyFk)
|
INSERT INTO `vn`.`dua` (id, code, issued, operated, booked, bookEntried, gestdocFk, customsValue, companyFk)
|
||||||
VALUES
|
VALUES
|
||||||
(1, '19ES0028013A481523', 1, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 1, 11276.95, 442),
|
(1, '19ES0028013A481523', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 1, 11276.95, 442),
|
||||||
(2, '21ES00280136115760', 2, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 1376.20, 442),
|
(2, '21ES00280136115760', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 1376.20, 442),
|
||||||
(3, '19ES00280131956004', 3, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 3, 14268.50, 442),
|
(3, '19ES00280131956004', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 3, 14268.50, 442),
|
||||||
(4, '19ES00280131955995', 4, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 1, 8242.50, 442),
|
(4, '19ES00280131955995', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 1, 8242.50, 442),
|
||||||
(5, '19ES00280132022070', 5, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 10012.49, 442),
|
(5, '19ES00280132022070', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 10012.49, 442),
|
||||||
(6, '19ES00280132032308', 6, util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 19914.25, 442),
|
(6, '19ES00280132032308', util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 19914.25, 442),
|
||||||
(7, '19ES00280132025489', 7, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 1934.06, 442),
|
(7, '19ES00280132025489', DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 1934.06, 442),
|
||||||
(8, '19ES00280132025490', 8, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 3618.52, 442),
|
(8, '19ES00280132025490', DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 3618.52, 442),
|
||||||
(9, '19ES00280132025491', 9, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 7126.23, 442),
|
(9, '19ES00280132025491', DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 7126.23, 442),
|
||||||
(10, '19ES00280132025492', 10, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 4631.45, 442);
|
(10, '19ES00280132025492', DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), util.VN_CURDATE(), util.VN_CURDATE(), util.VN_CURDATE(), 2, 4631.45, 442);
|
||||||
|
|
||||||
INSERT INTO `vn`.`duaEntry` (`duaFk`, `entryFk`, `value`, `customsValue`, `euroValue`)
|
INSERT INTO `vn`.`duaEntry` (`duaFk`, `entryFk`, `value`, `customsValue`, `euroValue`)
|
||||||
VALUES
|
VALUES
|
||||||
|
|
|
@ -17,14 +17,14 @@ BEGIN
|
||||||
* @param vOrderBy Order by criteria
|
* @param vOrderBy Order by criteria
|
||||||
* @param vIsConciliated Indicates whether it is reconciled or not
|
* @param vIsConciliated Indicates whether it is reconciled or not
|
||||||
* @param vHasEntries Indicates if future entries must be shown
|
* @param vHasEntries Indicates if future entries must be shown
|
||||||
* @return tmp.supplierStatement
|
* @return tmp.supplierStatement
|
||||||
*/
|
*/
|
||||||
DECLARE vBalanceStartingDate DATETIME;
|
DECLARE vBalanceStartingDate DATETIME;
|
||||||
|
|
||||||
SET @euroBalance:= 0;
|
SET @euroBalance:= 0;
|
||||||
SET @currencyBalance:= 0;
|
SET @currencyBalance:= 0;
|
||||||
|
|
||||||
SELECT balanceStartingDate
|
SELECT balanceStartingDate
|
||||||
INTO vBalanceStartingDate
|
INTO vBalanceStartingDate
|
||||||
FROM invoiceInConfig;
|
FROM invoiceInConfig;
|
||||||
|
|
||||||
|
@ -64,14 +64,14 @@ BEGIN
|
||||||
c.code,
|
c.code,
|
||||||
'invoiceIn' statementType
|
'invoiceIn' statementType
|
||||||
FROM invoiceIn ii
|
FROM invoiceIn ii
|
||||||
JOIN invoiceInDueDay iid ON iid.invoiceInFk = ii.id
|
LEFT JOIN invoiceInDueDay iid ON iid.invoiceInFk = ii.id
|
||||||
JOIN currency c ON c.id = ii.currencyFk
|
JOIN currency c ON c.id = ii.currencyFk
|
||||||
WHERE ii.issued >= vBalanceStartingDate
|
WHERE ii.issued >= vBalanceStartingDate
|
||||||
AND ii.supplierFk = vSupplierFk
|
AND ii.supplierFk = vSupplierFk
|
||||||
AND vCurrencyFk IN (ii.currencyFk, 0)
|
AND vCurrencyFk IN (ii.currencyFk, 0)
|
||||||
AND vCompanyFk IN (ii.companyFk, 0)
|
AND vCompanyFk IN (ii.companyFk, 0)
|
||||||
AND (vIsConciliated = ii.isBooked OR NOT vIsConciliated)
|
AND (vIsConciliated = ii.isBooked OR NOT vIsConciliated)
|
||||||
GROUP BY iid.id
|
GROUP BY iid.id, ii.id
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT p.bankFk,
|
SELECT p.bankFk,
|
||||||
p.companyFk,
|
p.companyFk,
|
||||||
|
@ -107,7 +107,7 @@ BEGIN
|
||||||
AND vCurrencyFk IN (p.currencyFk, 0)
|
AND vCurrencyFk IN (p.currencyFk, 0)
|
||||||
AND vCompanyFk IN (p.companyFk, 0)
|
AND vCompanyFk IN (p.companyFk, 0)
|
||||||
AND (vIsConciliated = p.isConciliated OR NOT vIsConciliated)
|
AND (vIsConciliated = p.isConciliated OR NOT vIsConciliated)
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT NULL,
|
SELECT NULL,
|
||||||
companyFk,
|
companyFk,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -134,7 +134,7 @@ BEGIN
|
||||||
AND vCurrencyFk IN (se.currencyFk,0)
|
AND vCurrencyFk IN (se.currencyFk,0)
|
||||||
AND vCompanyFk IN (se.companyFk,0)
|
AND vCompanyFk IN (se.companyFk,0)
|
||||||
AND (vIsConciliated = se.isConciliated OR NOT vIsConciliated)
|
AND (vIsConciliated = se.isConciliated OR NOT vIsConciliated)
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT NULL bankFk,
|
SELECT NULL bankFk,
|
||||||
e.companyFk,
|
e.companyFk,
|
||||||
'E' serial,
|
'E' serial,
|
||||||
|
@ -150,7 +150,7 @@ BEGIN
|
||||||
FALSE isBooked,
|
FALSE isBooked,
|
||||||
c.code,
|
c.code,
|
||||||
'order'
|
'order'
|
||||||
FROM entry e
|
FROM entry e
|
||||||
JOIN travel tr ON tr.id = e.travelFk
|
JOIN travel tr ON tr.id = e.travelFk
|
||||||
JOIN currency c ON c.id = e.currencyFk
|
JOIN currency c ON c.id = e.currencyFk
|
||||||
WHERE e.supplierFk = vSupplierFk
|
WHERE e.supplierFk = vSupplierFk
|
||||||
|
|
|
@ -41,7 +41,6 @@ AS SELECT `i`.`id` AS `Id_Article`,
|
||||||
`i`.`hasKgPrice` AS `hasKgPrice`,
|
`i`.`hasKgPrice` AS `hasKgPrice`,
|
||||||
`i`.`equivalent` AS `Equivalente`,
|
`i`.`equivalent` AS `Equivalente`,
|
||||||
`i`.`isToPrint` AS `Imprimir`,
|
`i`.`isToPrint` AS `Imprimir`,
|
||||||
`i`.`family` AS `Familia__`,
|
|
||||||
`i`.`doPhoto` AS `do_photo`,
|
`i`.`doPhoto` AS `do_photo`,
|
||||||
`i`.`created` AS `odbc_date`,
|
`i`.`created` AS `odbc_date`,
|
||||||
`i`.`isFloramondo` AS `isFloramondo`,
|
`i`.`isFloramondo` AS `isFloramondo`,
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
ALTER TABLE util.config
|
||||||
|
CHANGE dbVersion dbVersion__ char(11) DEFAULT NULL COMMENT '@deprecated 2024-09-02 refs #7819';
|
||||||
|
|
||||||
|
ALTER TABLE util.config
|
||||||
|
CHANGE hasTriggersDisabled hasTriggersDisabled__ tinyint(1) DEFAULT 0 NOT NULL COMMENT '@deprecated 2024-09-02 refs #7819';
|
||||||
|
|
||||||
|
RENAME TABLE account.accountLog TO account.accountLog__;
|
||||||
|
ALTER TABLE account.accountLog__ COMMENT='@deprecated 2024-09-02 refs #7819';
|
|
@ -0,0 +1 @@
|
||||||
|
DROP DATABASE IF EXISTS `.mysqlworkbench`;
|
|
@ -0,0 +1,84 @@
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN coste_bulto__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN Dia__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN km__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN m3__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN Matricula__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN month__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN Terceros__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN Tipo__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN warehouse_id__;
|
||||||
|
ALTER TABLE bi.rutasBoard DROP COLUMN year__;
|
||||||
|
|
||||||
|
ALTER TABLE bs.clientDied DROP COLUMN Boss__;
|
||||||
|
ALTER TABLE bs.clientDied DROP COLUMN clientName__;
|
||||||
|
ALTER TABLE bs.clientDied DROP COLUMN workerCode__;
|
||||||
|
|
||||||
|
ALTER TABLE bs.salesByItemTypeDay DROP COLUMN netSale__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.agency DROP FOREIGN KEY agency_FK;
|
||||||
|
ALTER TABLE vn.agency DROP COLUMN warehouseAliasFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.awbComponent DROP COLUMN dated__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.buy DROP COLUMN containerFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.chat DROP COLUMN status__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.claim DROP COLUMN rma__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.client DROP COLUMN clientTypeFk__;
|
||||||
|
ALTER TABLE vn.client DROP COLUMN hasIncoterms__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.clientType DROP COLUMN id__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.cmr DROP FOREIGN KEY cmr_fk1;
|
||||||
|
ALTER TABLE vn.cmr DROP COLUMN ticketFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.company DROP COLUMN sage200Company__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.country DROP FOREIGN KEY country_FK;
|
||||||
|
ALTER TABLE vn.country DROP COLUMN politicalCountryFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.deliveryNote DROP FOREIGN KEY albaran_FK;
|
||||||
|
ALTER TABLE vn.deliveryNote DROP COLUMN farmingFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.dmsType DROP COLUMN path__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.dua DROP COLUMN awbFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.entry DROP COLUMN isBlocked__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.expedition DROP COLUMN itemFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.item DROP COLUMN minQuantity__;
|
||||||
|
ALTER TABLE vn.item DROP COLUMN packingShelve__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN compression__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN density__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN hasComponents__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN location__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN maneuver__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN profit__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN target__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN topMargin__;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN transaction__;
|
||||||
|
ALTER TABLE vn.itemType DROP FOREIGN KEY warehouseFk5;
|
||||||
|
ALTER TABLE vn.itemType DROP COLUMN warehouseFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.ledgerConfig DROP COLUMN lastBookEntry__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.saleTracking DROP FOREIGN KEY saleTracking_FK_1;
|
||||||
|
ALTER TABLE vn.saleTracking DROP COLUMN actionFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.supplier DROP COLUMN isFarmer__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.supplierAccount DROP COLUMN description__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.ticketRequest DROP COLUMN buyerCode__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.travel DROP COLUMN agencyFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.warehouse DROP FOREIGN KEY warehouse_ibfk_2;
|
||||||
|
ALTER TABLE vn.warehouse DROP COLUMN aliasFk__;
|
||||||
|
|
||||||
|
ALTER TABLE vn.worker DROP COLUMN labelerFk__;
|
|
@ -0,0 +1,21 @@
|
||||||
|
DROP TABLE IF EXISTS account.mailClientAccess__;
|
||||||
|
DROP TABLE IF EXISTS account.mailSenderAccess__;
|
||||||
|
DROP TABLE IF EXISTS bi.analisis_ventas_familia_evolution__;
|
||||||
|
DROP TABLE IF EXISTS bi.live_counter__;
|
||||||
|
DROP TABLE IF EXISTS bi.partitioning_information__;
|
||||||
|
DROP TABLE IF EXISTS bi.primer_pedido__;
|
||||||
|
DROP TABLE IF EXISTS bi.tarifa_premisas__;
|
||||||
|
DROP TABLE IF EXISTS bi.tarifa_warehouse__;
|
||||||
|
DROP TABLE IF EXISTS bs.compradores__;
|
||||||
|
DROP TABLE IF EXISTS bs.salesMonthlySnapshot___;
|
||||||
|
DROP TABLE IF EXISTS bs.salesPerson__;
|
||||||
|
DROP TABLE IF EXISTS bs.vendedores_evolution__;
|
||||||
|
DROP TABLE IF EXISTS vn.botanicExport__;
|
||||||
|
DROP TABLE IF EXISTS vn.claimRma__;
|
||||||
|
DROP TABLE IF EXISTS vn.coolerPathDetail__;
|
||||||
|
DROP TABLE IF EXISTS vn.forecastedBalance__;
|
||||||
|
DROP TABLE IF EXISTS vn.routeLoadWorker__;
|
||||||
|
DROP TABLE IF EXISTS vn.routeUserPercentage__;
|
||||||
|
DROP TABLE IF EXISTS vn.ticketSms__;
|
||||||
|
DROP TABLE IF EXISTS vn.ticketTrackingState__;
|
||||||
|
DROP TABLE IF EXISTS vn.warehouseAlias__;
|
|
@ -33,7 +33,6 @@ class Controller extends Dialog {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getAmountPaid();
|
|
||||||
this.$http.get(`Clients/findOne`, {filter})
|
this.$http.get(`Clients/findOne`, {filter})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.receipt.email = res.data.email;
|
this.receipt.email = res.data.email;
|
||||||
|
@ -52,6 +51,7 @@ class Controller extends Dialog {
|
||||||
|
|
||||||
set companyFk(value) {
|
set companyFk(value) {
|
||||||
this.receipt.companyFk = value;
|
this.receipt.companyFk = value;
|
||||||
|
this.getAmountPaid();
|
||||||
}
|
}
|
||||||
|
|
||||||
set description(value) {
|
set description(value) {
|
||||||
|
|
|
@ -53,6 +53,13 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!merger._doc) throw new UserError('The entry not have stickers');
|
if (!merger._doc) throw new UserError('The entry not have stickers');
|
||||||
|
|
||||||
|
await Self.rawSql(`
|
||||||
|
UPDATE buy
|
||||||
|
SET printedStickers = stickers
|
||||||
|
WHERE entryFk = ?
|
||||||
|
`, [id], myOptions);
|
||||||
|
|
||||||
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
|
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue