From 36205e75beba2bc4a33c39dd57385c32523d7aa8 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 18 May 2023 07:55:43 +0200 Subject: [PATCH] feat(232201): new version --- CHANGELOG.md | 17 ++++++++++++++++- db/changes/232001/00-createWorker.sql | 10 +++++----- db/changes/{232001 => 232201}/.gitkeep | 0 package-lock.json | 2 +- package.json | 2 +- 5 files changed, 23 insertions(+), 8 deletions(-) rename db/changes/{232001 => 232201}/.gitkeep (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 083e43199..bfff5e53b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [2320.01] - 2023-05-25 +## [2322.01] - 2023-06-08 ### Added - + ### Changed - @@ -18,6 +19,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [2320.01] - 2023-05-25 + +### Added +- (Tickets -> Crear Factura) Al facturar se envia automáticamente el pdf al cliente + + +### Changed +- (Trabajadores -> Nuevo trabajador) Los clientes se crean sin 'TR' pero se añade tipo de negocio 'Trabajador' + +### Fixed +- + + + ## [2318.01] - 2023-05-08 ### Added diff --git a/db/changes/232001/00-createWorker.sql b/db/changes/232001/00-createWorker.sql index df08b9df4..3e5af683f 100644 --- a/db/changes/232001/00-createWorker.sql +++ b/db/changes/232001/00-createWorker.sql @@ -1,14 +1,14 @@ -INSERT INTO vn.businessType (code,description) + INSERT INTO `vn`.`businessType` (`code`, `description`) VALUES ('worker','Trabajador'); -ALTER TABLE `vn`.`workerConfig` ADD businessTypeFk varchar(100) NULL +ALTER TABLE `vn`.`workerConfig` ADD businessTypeFk varchar(100) NULL COMMENT 'Tipo de negocio por defecto al dar de alta un trabajador nuevo'; UPDATE `vn`.`workerConfig` SET businessTypeFk = 'worker' WHERE id = 1; - UPDATE client c - JOIN worker w ON w.id = c.id + UPDATE `vn`.`client` c + JOIN `vn`.`worker` w ON w.id = c.id SET c.name = REPLACE(c.name, 'TR ', ''), - c.businessTypeFk = 'worker'; \ No newline at end of file + c.businessTypeFk = 'worker'; diff --git a/db/changes/232001/.gitkeep b/db/changes/232201/.gitkeep similarity index 100% rename from db/changes/232001/.gitkeep rename to db/changes/232201/.gitkeep diff --git a/package-lock.json b/package-lock.json index d373248fd..05ff6466a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "salix-back", - "version": "23.18.01", + "version": "23.22.01", "lockfileVersion": 1, "requires": true, "packages": { diff --git a/package.json b/package.json index 4b4f552ac..d068d6615 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-back", - "version": "23.20.01", + "version": "23.22.01", "author": "Verdnatura Levante SL", "description": "Salix backend", "license": "GPL-3.0",