From 4cd70d1c362f0b7047c916f932df94ced8248087 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 31 Jul 2024 05:50:00 +0000 Subject: [PATCH] =?utf8?q?[ERP-81]=20=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D1=85=20=D1=81?= =?utf8?q?=D0=BA=D1=80=D1=8B=D1=82=D1=8B=D1=85=20=D0=B8=D0=BD=D0=BF=D1=83?= =?utf8?q?=D1=82=D0=BE=D0=B2=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=20=D1=8D?= =?utf8?q?=D0=BA=D1=81=D0=BF=D0=BE=D1=80=D1=82=D0=BE=D0=BC=20=D1=82=D0=B0?= =?utf8?q?=D0=B1=D0=BB=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/modul/shipment/shipment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erp24/modul/shipment/shipment.php b/erp24/modul/shipment/shipment.php index f883dee8..bd0424ff 100644 --- a/erp24/modul/shipment/shipment.php +++ b/erp24/modul/shipment/shipment.php @@ -299,7 +299,11 @@ function htmlTableToExcel() { const type = 'xlsx'; var data = document.getElementById('shipmentTable'); $.each(data.querySelectorAll('input'), (ind, x) => { - x.parentNode.textContent = x.value; + if (x.type === 'hidden') { + x.parentNode.removeChild(x); + } else { + x.parentNode.textContent = x.value; + } }); var excelFile = XLSX.utils.table_to_book(data, {sheet: 'sheet1'}); XLSX.write(excelFile, { bookType: type, bookSST: true, type: 'base64' }); -- 2.39.5