diff --git a/CHANGELOG b/CHANGELOG
index d684efe59..514a8c2cd 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+# [3.4.3] - 13/07/2023
+ - Añadida opción para agregar el canal al añadir un producto en un albarán nuevo
+
# [3.4.2] - 13/07/2023
- Corregida visualización de los totales en la modal de editar totales de un albarán
diff --git a/package.json b/package.json
index 385d72273..fc5092e76 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"author": "Eduardo Parra Mazuecos",
"email": "eduparra90@gmail.com",
"licence": "MIT",
- "version": "3.4.2",
+ "version": "3.4.3",
"private": true,
"type": "module",
"scripts": {
diff --git a/src/pages/DeliveryOrder/components/DeliveryOrder.jsx b/src/pages/DeliveryOrder/components/DeliveryOrder.jsx
index c1942de5c..6e16547a1 100644
--- a/src/pages/DeliveryOrder/components/DeliveryOrder.jsx
+++ b/src/pages/DeliveryOrder/components/DeliveryOrder.jsx
@@ -22,7 +22,7 @@ const DeliveryOrder = () => {
addProduct
} = useDeliveryOrder(idDeliveryOrder)
- if (!deliveryOrder) return
+ if (!deliveryOrder) return
const {
provider,
@@ -46,6 +46,7 @@ const DeliveryOrder = () => {
invoice={invoice}
deleteDeliveryOrder={deleteDeliveryOrder}
addProduct={addProduct}
+ hasCanal={deliveryOrder.hasCanal}
/>
{
@@ -72,7 +73,7 @@ const DeliveryOrder = () => {
/>
-
+
diff --git a/src/pages/DeliveryOrder/components/Header/index.jsx b/src/pages/DeliveryOrder/components/Header/index.jsx
index 6a4afb75a..9b44e53e5 100644
--- a/src/pages/DeliveryOrder/components/Header/index.jsx
+++ b/src/pages/DeliveryOrder/components/Header/index.jsx
@@ -15,7 +15,8 @@ const HeaderDeliveryOrder = ({
readOnly,
invoice,
deleteDeliveryOrder,
- addProduct
+ addProduct,
+ hasCanal
}) => {
const [showAddModal, setShowAddModal] = useState(false)
const [showDeleteModal, setShowDeleteModal] = useState(false)
@@ -23,6 +24,8 @@ const HeaderDeliveryOrder = ({
const _openAddModal = useCallback(() => setShowAddModal(true), [setShowAddModal])
const _closeDeleteModal = useCallback(() => setShowDeleteModal(false), [setShowDeleteModal])
const _openDeleteModal = useCallback(() => setShowDeleteModal(true), [setShowDeleteModal])
+
+ console.log(provider, deleteDeliveryOrder)
return (
<>