Merge branch '7258-lastChangesMigrationVn2008' of https://gitea.verdnatura.es/verdnatura/salix into 7258-lastChangesMigrationVn2008
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-04-24 10:57:36 +02:00
commit fda2298f7a
4 changed files with 13 additions and 5 deletions

View File

@ -70,7 +70,7 @@ module.exports = Self => {
c.hasToInvoice,
c.isTaxDataChecked,
w.id comercialId,
CONCAT(w.firstName, ' ', w.lastName) comercialName
u.name workerName
FROM vn.ticket t
JOIN vn.company co ON co.id = t.companyFk
JOIN vn.sale s ON s.ticketFk = t.id

View File

@ -15,5 +15,13 @@
"description": {
"type": "string"
}
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}

View File

@ -114,7 +114,7 @@
<vn-span
class="link"
ng-click="workerDescriptor.show($event, client.comercialId)">
{{::client.comercialName | dashIfEmpty}}
{{::client.workerName | dashIfEmpty}}
</vn-span>
</td>
</tr>

View File

@ -1,4 +1,3 @@
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
const buildFilter = require('vn-loopback/util/filter').buildFilter;
const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
@ -135,7 +134,8 @@ module.exports = Self => {
tr.requesterFk,
tr.isOk,
s.quantity saleQuantity,
s.itemFk,
s.itemFk saleItemFk,
i.id itemFk,
i.name itemDescription,
t.shipped,
DATE(t.shipped) shippedDate,