Skip to content

Commit

Permalink
- Added missing maxlength.
Browse files Browse the repository at this point in the history
- Hide customer identifier when cifnif is empty.
  • Loading branch information
NeoRazorX committed Sep 25, 2020
1 parent 5fbe0a1 commit 91432ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Core/Lib/PDF/PDFDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ protected function insertBusinessDocHeader($model)
['key' => $tipoidfiscal, 'value' => $model->cifnif],
['key' => $this->i18n->trans('serie'), 'value' => $model->codserie]
];
if (empty($model->cifnif)) {
unset($tableData[3]);
}

if (!empty($model->direccion)) {
$tableData[] = ['key' => $this->i18n->trans('address'), 'value' => $this->combineAddress($model)];
Expand Down
2 changes: 1 addition & 1 deletion Core/XMLView/EditFormatoDocumento.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<widget type="text" fieldname="id" onclick="EditFormatoDocumento" />
</column>
<column name="name" order="100">
<widget type="text" fieldname="nombre" />
<widget type="text" fieldname="nombre" maxlength="30" />
</column>
<column name="doc-type" order="110">
<widget type="select" fieldname="tipodoc" translate="true">
Expand Down

0 comments on commit 91432ec

Please sign in to comment.