Compare commits

...

17 Commits

Author SHA1 Message Date
Jorge Penadés 745253f30b Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6942-improveInvoiceIn
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-03-11 13:46:53 +01:00
Guillermo Bonet adafab5847 refactor: refs #6874 item_getSimilar
gitea/salix/pipeline/head This commit looks good Details
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-03-11 13:27:18 +01:00
Guillermo Bonet a34be6ca02 Merge branch 'test' into dev
gitea/salix/pipeline/head This commit looks good Details
2024-03-11 12:21:54 +01:00
Guillermo Bonet 03e9f167a6 Merge branch 'master' into test
gitea/salix/pipeline/head This commit looks good Details
2024-03-11 12:18:23 +01:00
Robert Ferrús 4d1b02b793 Merge pull request 'feat: refs #6610 fixDeleteTickets' (!2154) from 6610-hotFixDeleteTicketsWeekly into master
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #2154
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
2024-03-11 11:15:04 +00:00
Robert Ferrús 9910ae5c64 fix: refs #6610 quitar variable
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-11 12:12:02 +01:00
Robert Ferrús e7a6d0109c Merge branch 'master' into 6610-hotFixDeleteTicketsWeekly
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-08 11:36:35 +00:00
Robert Ferrús b6af349d89 Merge branch '6610-hotFixDeleteTicketsWeekly' of https://gitea.verdnatura.es/verdnatura/salix into 6610-hotFixDeleteTicketsWeekly
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-08 12:32:25 +01:00
Robert Ferrús b1e90fabb2 refs #6610 2024-03-08 12:32:22 +01:00
Javier Segarra 82c9bd4ea7 Merge pull request '#7004 - hotfix_updateFiscalData' (!2153) from 7004_hotfix_updateFiscalData into master
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #2153
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2024-03-08 11:21:42 +00:00
Robert Ferrús 05b60150a0 Merge branch 'master' into 6610-hotFixDeleteTicketsWeekly
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-08 11:20:07 +00:00
Robert Ferrús cdb9f372cf feat: refs #6610 fixDeleteTickets
gitea/salix/pipeline/pr-master Build queued... Details
2024-03-08 12:19:57 +01:00
Javier Segarra faeba92548 Merge branch 'master' into 7004_hotfix_updateFiscalData
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-08 09:59:45 +00:00
Guillermo Bonet 825818fc85 Merge branch 'master' into test
gitea/salix/pipeline/head This commit looks good Details
2024-03-08 10:43:31 +01:00
Guillermo Bonet 74c199384c fix: refs #6372 vn2008.clean
gitea/salix/pipeline/head This commit looks good Details
2024-03-08 10:42:07 +01:00
Javier Segarra a8420cd650 refs #7004 feat: translate label newSupplier
gitea/salix/pipeline/pr-master This commit looks good Details
2024-03-08 10:39:54 +01:00
Javier Segarra 238099311b refs #7004 fix: bug 2024-03-08 10:39:34 +01:00
4 changed files with 23 additions and 17 deletions

View File

@ -188,11 +188,13 @@ BEGIN
SELECT MAX(tl.id)ids
FROM ticket t
JOIN ticketLog tl ON tl.originFk = t.id
LEFT JOIN ticketWeekly tw ON tw.ticketFk = t.id
WHERE t.shipped BETWEEN '2000-01-01' AND '2000-12-31'
AND t.isDeleted
AND tw.ticketFk IS NULL
GROUP BY t.id
) sub ON sub.ids = tl.id
WHERE tl.creationDate <= util.VN_CURDATE() - INTERVAL 60 DAY;
WHERE tl.creationDate <= v2Months;
DELETE t
FROM ticket t
JOIN tTicketDelete tmp ON tmp.ticketFk = t.id;

View File

@ -19,17 +19,17 @@ BEGIN
DECLARE vTypeFk INT;
DECLARE vPriority INT DEFAULT 1;
DECLARE vTag1 VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vTag5 VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vTag6 VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vTag7 VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vTag8 VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vValue1 VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vValue5 VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vValue6 VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vValue7 VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vValue8 VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';
DECLARE vTag1 VARCHAR(20) COLLATE 'utf8_unicode_ci';
DECLARE vTag5 VARCHAR(20) COLLATE 'utf8_unicode_ci';
DECLARE vTag6 VARCHAR(20) COLLATE 'utf8_unicode_ci';
DECLARE vTag7 VARCHAR(20) COLLATE 'utf8_unicode_ci';
DECLARE vTag8 VARCHAR(20) COLLATE 'utf8_unicode_ci';
DECLARE vValue1 VARCHAR(50) COLLATE 'utf8_unicode_ci';
DECLARE vValue5 VARCHAR(50) COLLATE 'utf8_unicode_ci';
DECLARE vValue6 VARCHAR(50) COLLATE 'utf8_unicode_ci';
DECLARE vValue7 VARCHAR(50) COLLATE 'utf8_unicode_ci';
DECLARE vValue8 VARCHAR(50) COLLATE 'utf8_unicode_ci';
SELECT typeFk,
tag5,
@ -81,7 +81,8 @@ BEGIN
IF(b.groupingMode = 1, b.grouping, b.packing) minQuantity,
iss.visible located
FROM item i
JOIN cache.available a ON a.item_id = i.id
STRAIGHT_JOIN cache.available a ON a.item_id = i.id
AND a.calc_id = vCalcFk
LEFT JOIN itemProposal ip ON ip.mateFk = i.id
AND ip.itemFk = vSelf
LEFT JOIN itemTag it ON it.itemFk = i.id
@ -92,8 +93,7 @@ BEGIN
LEFT JOIN buy b ON b.id = lb.buy_id
LEFT JOIN itemShelvingStock iss ON iss.itemFk = i.id
AND iss.warehouseFk = vWarehouseFk
WHERE a.calc_id = vCalcFk
AND a.available > 0
WHERE a.available > 0
AND IF(vShowType, i.typeFk = vTypeFk, TRUE)
AND i.id <> vSelf
ORDER BY `counter` DESC,

View File

@ -1,3 +1,5 @@
const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.remoteMethodCtx('newSupplier', {
description: 'Creates a new supplier and returns it',
@ -19,12 +21,13 @@ module.exports = Self => {
Self.newSupplier = async(ctx, options) => {
const models = Self.app.models;
const args = ctx.args;
const myOptions = {};
const myOptions = {validate: false};
if (typeof options == 'object')
Object.assign(myOptions, options);
delete args.ctx;
if (!args.name) throw new UserError('The social name cannot be empty');
const data = {...args, ...{nickname: args.name}};
const supplier = await models.Supplier.create(data, myOptions);

View File

@ -4,4 +4,5 @@ Go to client: Ir al cliente
Verified supplier: Proveedor verificado
Unverified supplier: Proveedor no verificado
Inactive supplier: Proveedor inactivo
Create invoiceIn: Crear factura recibida
Create invoiceIn: Crear factura recibida
Supplier name: Razón social