set shipper_branch to load & map loads in warehouse view

This commit is contained in:
Alexandro Uc Santos
2025-03-01 18:58:48 -06:00
parent 1a857f989d
commit 87c3e8a678
4 changed files with 71 additions and 32 deletions

View File

@@ -35,7 +35,7 @@ export const getStatusLoad = (load, locale = 'es') => {
};
}
export const eventStatusLoad = (loadStatus) => {
export const eventStatusLoad = (loadStatus, locale = 'es') => {
let color;
let status;
switch (loadStatus) {
@@ -58,13 +58,15 @@ export const eventStatusLoad = (loadStatus) => {
break;
case 'Delivered':
color = "blue";
status = "#1B70AF";
status = "Entregado";
break;
default:
color = "yellow";
status = 'Sin publicar';
break;
}
status = (locale === 'es') ? status : loadStatus;
return {
color,
status