Now you can change the shipped hour of a ticket
This commit is contained in:
parent
f037fd8997
commit
eaec968aa4
|
@ -40,7 +40,7 @@ Worker: Trabajador
|
||||||
Available: Disponible
|
Available: Disponible
|
||||||
Create: Crear
|
Create: Crear
|
||||||
Client card: Ficha del cliente
|
Client card: Ficha del cliente
|
||||||
Shipped: F. envio
|
Shipped: F. envío
|
||||||
stems: Tallos
|
stems: Tallos
|
||||||
Compression: Compresión
|
Compression: Compresión
|
||||||
Density: Densidad
|
Density: Densidad
|
||||||
|
|
|
@ -162,3 +162,19 @@
|
||||||
message="Do you want to send it directly?">
|
message="Do you want to send it directly?">
|
||||||
<tpl-buttons>asd</tpl-buttons>
|
<tpl-buttons>asd</tpl-buttons>
|
||||||
</vn-confirm>
|
</vn-confirm>
|
||||||
|
<vn-dialog
|
||||||
|
vn-id="changeShippedDialog"
|
||||||
|
on-response="$ctrl.changeShipped(response)">
|
||||||
|
<tpl-body>
|
||||||
|
<div>
|
||||||
|
<h5 style="text-align: center">
|
||||||
|
<span translate>Change shipped hour</span>
|
||||||
|
</h5>
|
||||||
|
<vn-input-time vn-one model="$ctrl.ticket.shipped" label="Shipped hour"></vn-input-time>
|
||||||
|
</div>
|
||||||
|
</tpl-body>
|
||||||
|
<tpl-buttons>
|
||||||
|
<input type="button" response="CANCEL" translate-attr="{value: 'Cancel'}"/>
|
||||||
|
<button response="ACCEPT" translate>Save</button>
|
||||||
|
</tpl-buttons>
|
||||||
|
</vn-dialog>
|
|
@ -13,7 +13,7 @@ class Controller {
|
||||||
{callback: this.showRemoveStowaway, name: 'Remove stowaway', show: () => this.shouldShowRemoveStowaway()},
|
{callback: this.showRemoveStowaway, name: 'Remove stowaway', show: () => this.shouldShowRemoveStowaway()},
|
||||||
{callback: this.showDeliveryNote, name: 'Show Delivery Note', show: true},
|
{callback: this.showDeliveryNote, name: 'Show Delivery Note', show: true},
|
||||||
{callback: this.showDeleteTicketDialog, name: 'Delete ticket', show: true},
|
{callback: this.showDeleteTicketDialog, name: 'Delete ticket', show: true},
|
||||||
/* callback: this.showChangeShipped, name: 'Change shipped hour', show: true} */
|
{callback: this.showChangeShipped, name: 'Change shipped hour', show: true}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ class Controller {
|
||||||
if (response === 'ACCEPT') {
|
if (response === 'ACCEPT') {
|
||||||
let params = {shipped: this.newShipped};
|
let params = {shipped: this.newShipped};
|
||||||
this.$http.patch(`/ticket/api/Tickets/${this.ticket.id}/`, params).then(() => {
|
this.$http.patch(`/ticket/api/Tickets/${this.ticket.id}/`, params).then(() => {
|
||||||
this.$state.go('ticket.index');
|
|
||||||
this.vnApp.showSuccess(this.$translate.instant('Shipped hour updated'));
|
this.vnApp.showSuccess(this.$translate.instant('Shipped hour updated'));
|
||||||
|
this.cardReload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,3 +8,5 @@ Add stowaway: Añadir polizón
|
||||||
Remove stowaway: Borrar polizón
|
Remove stowaway: Borrar polizón
|
||||||
Are you sure you want to delete this stowaway?: ¿Estas seguro de que quieres borrar este polizón?
|
Are you sure you want to delete this stowaway?: ¿Estas seguro de que quieres borrar este polizón?
|
||||||
Show Delivery Note: Ver albarán
|
Show Delivery Note: Ver albarán
|
||||||
|
Change shipped hour: Cambiar hora de envío
|
||||||
|
Shipped hour: Hora de envío
|
|
@ -41,7 +41,7 @@ Quantity: Cantidad
|
||||||
Remove lines: Borrar lineas
|
Remove lines: Borrar lineas
|
||||||
Route: Ruta
|
Route: Ruta
|
||||||
Shipment: Salida
|
Shipment: Salida
|
||||||
Shipped: F. envio
|
Shipped: F. envío
|
||||||
Some fields are invalid: Algunos campos no son válidos
|
Some fields are invalid: Algunos campos no son válidos
|
||||||
State: Estado
|
State: Estado
|
||||||
Tickets: Tickets
|
Tickets: Tickets
|
||||||
|
|
Loading…
Reference in New Issue