7195_roadmap2 #2554
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2554
Loading…
Reference in New Issue
No description provided.
Delete Branch "7195_roadmap2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +1,63 @@
module.exports = Self => {
Self.remoteMethod('getPalletMatchState', {
description: 'Get pallet',
posa algo mes concret del que fa el proc
Afegit
@ -0,0 +32,4 @@
const result = await Self.rawSql(`
WITH tPallet AS(
SELECT ep.truckFk roadMapStop,ep.id pallet, e.id expedition, e.stateTypeFk
es molt confús que tornes com a roadMapStop un id d'un camio..de fet, pots mirar inclús de no tornar-ho perque sols et tornarà coses d'ixe truck
Llevat
@ -0,0 +50,4 @@
)
SELECT t.roadMapStop,
t.pallet,
IF (tpe.totalPalletExpedition = tpec.totalPalletExpeditionCode, 'TRUE', 'FALSE') hasMatchStateCode
aci sobra el if, sols (tpe.totalPalletExpedition = tpec.totalPalletExpeditionCode) ja torna true o false
Llevat
@ -0,0 +2,4 @@
const {models} = require('vn-loopback/server/server');
describe('roadMapStop getPalletMatchState()', () => {
fit('should return list of pallet with true or false if state is matched', async() => {
fit no
Llevat