forked from verdnatura/salix-front
feat: refs #8166 show notification
This commit is contained in:
parent
e54eb50265
commit
73b7fa7704
|
@ -213,7 +213,10 @@ const requestComponentUpdate = async (ticket, isWithoutNegatives) => {
|
||||||
warehouseFk: ticket.futureWarehouseFk,
|
warehouseFk: ticket.futureWarehouseFk,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!newLanded) throw new Error(t('advanceTickets.noDeliveryZone'));
|
if (!newLanded) {
|
||||||
|
notify(t('advanceTickets.noDeliveryZone'), 'negative');
|
||||||
|
throw new Error(t('advanceTickets.noDeliveryZone'));
|
||||||
|
}
|
||||||
|
|
||||||
ticket.landed = newLanded.landed;
|
ticket.landed = newLanded.landed;
|
||||||
ticket.zoneFk = newLanded.zoneFk;
|
ticket.zoneFk = newLanded.zoneFk;
|
||||||
|
|
Loading…
Reference in New Issue