diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index ffbc7a6565..806aa4ac2a 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -12,6 +12,16 @@ const props = defineProps({ default: null, }, }); + +const locationProperties = [ + 'postcode', + (obj) => + obj.city + ? `${obj.city}${obj.province?.name ? `(${obj.province.name})` : ''}` + : null, + (obj) => obj.country?.name, +]; + const formatLocation = (obj, properties) => { const parts = properties.map((prop) => { if (typeof prop === 'string') { @@ -29,15 +39,6 @@ const formatLocation = (obj, properties) => { return filteredParts.join(', '); }; -const locationProperties = [ - 'postcode', - (obj) => - obj.city - ? `${obj.city}${obj.province?.name ? `(${obj.province.name})` : ''}` - : null, - (obj) => obj.country?.name, -]; - const modelValue = ref( props.location ? formatLocation(props.location, locationProperties) : null ); diff --git a/src/pages/Entry/EntryStockBought.vue b/src/pages/Entry/EntryStockBought.vue deleted file mode 100644 index 0e80135868..0000000000 --- a/src/pages/Entry/EntryStockBought.vue +++ /dev/null @@ -1,300 +0,0 @@ - - - - - es: - Edit travel: Editar envío - Travel: Envíos - Booked trucks: Camiones reservados - Buyer: Comprador - Reserve: Reservado - Bought: Comprado - Date: Fecha - View more details: Ver más detalles - Reserve some space: Reservar espacio - This buyer has already made a reservation for this date: Este comprador ya ha hecho una reserva para esta fecha - diff --git a/src/pages/Entry/EntryStockBoughtDetail.vue b/src/pages/Entry/EntryStockBoughtDetail.vue deleted file mode 100644 index 0fd775ee6a..0000000000 --- a/src/pages/Entry/EntryStockBoughtDetail.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - - - es: - Buyer: Comprador - Reserve: Reservado - Bought: Comprado - More: Más - Date: Fecha - Entry: Entrada - Item: Artículo - Name: Nombre - Volume: Volumen - Packaging: Embalage -