FIX:Unavailable value for tipocambio crashed the loading of values
This commit is contained in:
@ -26,7 +26,7 @@ class Moneda extends Model {
|
||||
$cambio = $this->factory->find(TipoCambio::class)
|
||||
->where([['desde_id', $this->id], ['hasta_id', 1], ['fecha', $fecha->format('Y-m-d H:i:s')]])
|
||||
->one();
|
||||
if (!$cambio) {
|
||||
if ($cambio === null) {
|
||||
$cambio = $this->factory->find(TipoCambio::class)
|
||||
->where([['hasta_id', $this->id], ['desde_id', 1], ['fecha', $fecha->format('Y-m-d H:i:s')]])
|
||||
->one();
|
||||
|
Reference in New Issue
Block a user