'date', 'data_vencimento' => 'date', 'data_pagamento' => 'date', 'valor_fatura' => 'decimal:2', 'valor_pago' => 'decimal:2', 'desconto_obtido' => 'decimal:2', 'iva_valor' => 'decimal:2', 'taxa_cambio' => 'decimal:6', 'sgf_sync_timestamp' => 'datetime', ]; public function ordemCompra(): BelongsTo { return $this->belongsTo(OrdemCompra::class); } public function fornecedor(): BelongsTo { return $this->belongsTo(Fornecedor::class); } public function scopeConformes($query) { return $this->where('status_3_way_match', 'Conforme'); } public function scopePagas($query) { return $this->where('status_pagamento', 'Pago'); } public function scopeComExcecao($query) { return $this->where('status_3_way_match', 'Com Excecao'); } }