Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
commit
3d8bc3b7b4
|
@ -83,4 +83,10 @@
|
|||
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
||||
<button response="accept" translate>Save</button>
|
||||
</tpl-buttons>
|
||||
</vn-dialog>
|
||||
</vn-dialog>
|
||||
<vn-confirm
|
||||
vn-id="clone"
|
||||
on-accept="$ctrl.onCloneAccept()"
|
||||
question="Do you want to clone this item?"
|
||||
message="All it's properties will be copied">
|
||||
</vn-confirm>
|
||||
|
|
|
@ -60,6 +60,11 @@ class Controller extends Descriptor {
|
|||
this.warehouseFk = null;
|
||||
this.quantity = null;
|
||||
}
|
||||
|
||||
onCloneAccept() {
|
||||
this.$http.post(`Items/${this.item.id}/clone`)
|
||||
.then(res => this.$state.go('item.card.tags', {id: res.data.id}));
|
||||
}
|
||||
}
|
||||
|
||||
ngModule.vnComponent('vnItemDescriptor', {
|
||||
|
|
|
@ -23,7 +23,7 @@ module.exports = app => {
|
|||
|
||||
for (const ticket of tickets) {
|
||||
try {
|
||||
await db.rawSql(`CALL vn.ticketClosureTicket(:ticketId)`, {
|
||||
await db.rawSql(`CALL vn.ticket_closeByTicket(:ticketId)`, {
|
||||
ticketId: ticket.id
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue