fixes #5020 Borrado lógico en la tabla ItemPackingType #1257
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE `vn`.`itemPackingType` ADD isActive BOOLEAN NOT NULL;
|
||||||
|
|||||||
|
UPDATE `vn`.`itemPackingType` SET isActive = 0 WHERE code IN ('P', 'F');
|
||||||
|
UPDATE `vn`.`itemPackingType` SET isActive = 1 WHERE code IN ('V', 'H');
|
|
@ -13,6 +13,9 @@
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"isActive":{
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
@ -23,4 +26,4 @@
|
||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,10 @@ class Controller extends SearchPanel {
|
||||||
|
|
||||||
getItemPackingTypes() {
|
getItemPackingTypes() {
|
||||||
let itemPackingTypes = [];
|
let itemPackingTypes = [];
|
||||||
this.$http.get('ItemPackingTypes').then(res => {
|
const filter = {
|
||||||
|
where: {isActive: true}
|
||||||
|
};
|
||||||
|
this.$http.get('ItemPackingTypes', {filter}).then(res => {
|
||||||
for (let ipt of res.data) {
|
for (let ipt of res.data) {
|
||||||
itemPackingTypes.push({
|
itemPackingTypes.push({
|
||||||
code: ipt.code,
|
code: ipt.code,
|
||||||
|
|
|
@ -39,6 +39,7 @@ export default class Controller extends Section {
|
||||||
field: 'ipt',
|
field: 'ipt',
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
url: 'ItemPackingTypes',
|
url: 'ItemPackingTypes',
|
||||||
|
where: `{isActive: true}`,
|
||||||
showField: 'description',
|
showField: 'description',
|
||||||
valueField: 'code'
|
valueField: 'code'
|
||||||
}
|
}
|
||||||
|
@ -47,6 +48,7 @@ export default class Controller extends Section {
|
||||||
field: 'futureIpt',
|
field: 'futureIpt',
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
url: 'ItemPackingTypes',
|
url: 'ItemPackingTypes',
|
||||||
|
where: `{isActive: true}`,
|
||||||
showField: 'description',
|
showField: 'description',
|
||||||
valueField: 'code'
|
valueField: 'code'
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,10 @@ class Controller extends SearchPanel {
|
||||||
|
|
||||||
getItemPackingTypes() {
|
getItemPackingTypes() {
|
||||||
let itemPackingTypes = [];
|
let itemPackingTypes = [];
|
||||||
this.$http.get('ItemPackingTypes').then(res => {
|
const filter = {
|
||||||
|
where: {isActive: true}
|
||||||
|
};
|
||||||
|
this.$http.get('ItemPackingTypes', {filter}).then(res => {
|
||||||
for (let ipt of res.data) {
|
for (let ipt of res.data) {
|
||||||
itemPackingTypes.push({
|
itemPackingTypes.push({
|
||||||
description: this.$t(ipt.description),
|
description: this.$t(ipt.description),
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
{{::ticket.shipped | date: 'dd/MM/yyyy HH:mm'}}
|
{{::ticket.shipped | date: 'dd/MM/yyyy HH:mm'}}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>{{::ticket.ipt}}</td>
|
<td>{{::ticket.ipt | dashIfEmpty}}</td>
|
||||||
<td>
|
<td>
|
||||||
<span
|
<span
|
||||||
class="chip {{$ctrl.stateColor(ticket.state)}}">
|
class="chip {{$ctrl.stateColor(ticket.state)}}">
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
{{::ticket.futureShipped | date: 'dd/MM/yyyy HH:mm'}}
|
{{::ticket.futureShipped | date: 'dd/MM/yyyy HH:mm'}}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>{{::ticket.futureIpt}}</td>
|
<td>{{::ticket.futureIpt | dashIfEmpty}}</td>
|
||||||
<td>
|
<td>
|
||||||
<span
|
<span
|
||||||
class="chip {{$ctrl.stateColor(ticket.futureState)}}">
|
class="chip {{$ctrl.stateColor(ticket.futureState)}}">
|
||||||
|
|
|
@ -34,6 +34,7 @@ export default class Controller extends Section {
|
||||||
field: 'ipt',
|
field: 'ipt',
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
url: 'ItemPackingTypes',
|
url: 'ItemPackingTypes',
|
||||||
|
where: `{isActive: true}`,
|
||||||
showField: 'description',
|
showField: 'description',
|
||||||
valueField: 'code'
|
valueField: 'code'
|
||||||
}
|
}
|
||||||
|
@ -42,6 +43,7 @@ export default class Controller extends Section {
|
||||||
field: 'futureIpt',
|
field: 'futureIpt',
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
url: 'ItemPackingTypes',
|
url: 'ItemPackingTypes',
|
||||||
|
where: `{isActive: true}`,
|
||||||
showField: 'description',
|
showField: 'description',
|
||||||
valueField: 'code'
|
valueField: 'code'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
not null