ryan 1 месяц назад
Родитель
Сommit
2a50b317a4
1 измененных файлов с 12 добавлено и 11 удалено
  1. 12 11
      common/libs/export/BaseExport.php

+ 12 - 11
common/libs/export/BaseExport.php

@@ -1824,17 +1824,18 @@ EOT;
                             </tr>
                             {$orderDetails}
                         </table>
-                        <table border="1" width="100%">
-                            <tr style="text-align: left; font-weight: normal; font-size: 12px; width: 100%; padding: 5px 5px;">
-                                <th style="width: 30px; white-space: nowrap;">No.</th>
-                                <th style="white-space: nowrap;">Product Code</th>
-                                <th style="white-space: nowrap;">Product Name</th>
-                                <th style="white-space: nowrap;">Quantity</th>
-                                <th style="white-space: nowrap;">Unit Price({$currency})</th>
-                                <th style="white-space: nowrap;">Taxable Amount({$currency})</th>
-                                <th style="white-space: nowrap;">VAT Rate</th>
-                                <th style="white-space: nowrap;">VAT Amount({$currency})</th>
-                                <th style="white-space: nowrap;">Total({$currency})</th>
+                        
+                        <table border="1" width="100%" style="table-layout: auto;">
+                            <tr style="text-align: left; font-weight: normal; font-size: 12px;">
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">No.</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">Product Code</th>
+                                <th style="white-space: normal; word-break: break-word; width: auto;">Product Name</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">Quantity</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">Unit Price({$currency})</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">Taxable Amount({$currency})</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">VAT Rate</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">VAT Amount({$currency})</th>
+                                <th style="white-space: nowrap; word-break: keep-all; width: auto;">Total({$currency})</th>
                             </tr>
                             {$orderDetails}
                         </table>