Merge pull request 'fix: refs #6403 extend length to 6 digits for mrw clientType' (!2696) from 6403-fixClientTypeWidth into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2696
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Pablo Natek 2024-07-08 08:56:49 +00:00
commit dd2101790d
2 changed files with 8 additions and 2 deletions

View File

@ -53,7 +53,7 @@ module.exports = Self => {
LPAD(IF(mw.serviceType IS NULL, ms.serviceType, mw.serviceType), mc.serviceTypeWidth, '0') serviceType,
IF(mw.weekdays, 'S', 'N') weekDays,
oa.description deliveryObservation,
ms.clientType
LPAD(ms.clientType, mc.clientTypeWidth, '0') clientType
FROM expedition e
JOIN ticket t ON e.ticketFk = t.id
JOIN agencyMode am ON am.id = t.agencyModeFk

View File

@ -0,0 +1,6 @@
-- Place your SQL code here
ALTER TABLE vn.mrwConfig ADD IF NOT EXISTS clientTypeWidth int(10) unsigned NULL
COMMENT 'If it does not reach the required value, it will be padded with zeros on the left to meet the specified length.';
UPDATE vn.mrwConfig
SET clientTypeWidth = 6;