Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Validate/Common/BaseCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ private function validateNode(NodeInterface $node, Asserts $asserts, string $loc
{
$currencyExists = $node->attributes()->exists('Moneda');
$currency = $node['Moneda'];
$currencyExplanation = $currencyExists ? $currency ?: '(vacía)' : '(ninguna)';
$currencyExplanation = $currencyExists ? ($currency ?: '(vacía)') : '(ninguna)';

$asserts->put(
$this->getAssertCode(sprintf('-%03d', $count)),
'La moneda solo se especifica en caso de que sea diferente a moneda nacional',
Expand Down
2 changes: 1 addition & 1 deletion src/Validate/Common/BaseExchangeRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function validateNode(NodeInterface $node, Asserts $asserts, string $loc
{
$currencyExists = $node->attributes()->exists('Moneda');
$currency = $node['Moneda'];
$currencyExplanation = $currencyExists ? $currency ?: '(vacía)' : '(ninguna)';
$currencyExplanation = $currencyExists ? ($currency ?: '(vacía)') : '(ninguna)';

$exchangeRate = $node['TipCamb'];
$asserts->put(
Expand Down
Loading