Skip to content

Commit fabaf9b

Browse files
authored
Merge pull request NeoRazorX#1880 from daniel89fg/optional-codpais-sales
fix: los documentos de venta deben soportar codpais vacío, ya que si …
2 parents 20dcc7f + 750aaf7 commit fabaf9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Lib/AjaxForms/SalesHeaderHTML.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of FacturaScripts
4-
* Copyright (C) 2021-2024 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2021-2026 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -304,7 +304,7 @@ private static function codigoenv(SalesDocument $model): string
304304

305305
private static function codpais(SalesDocument $model): string
306306
{
307-
$options = [];
307+
$options = ['<option value="">------</option>'];
308308
foreach (Paises::all() as $pais) {
309309
$options[] = ($pais->codpais === $model->codpais) ?
310310
'<option value="' . $pais->codpais . '" selected>' . $pais->nombre . '</option>' :

0 commit comments

Comments
 (0)