| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- class RecordRow extends Model
- {
- use HasFactory;
- protected $table = 'records_rows';
- protected $fillable = [
- 'record_id',
- 'causal_id',
- 'when',
- 'amount',
- 'vat_id',
- 'note',
- 'commercial',
- 'aliquota_iva',
- 'imponibile',
- 'imposta',
- 'divisa',
- 'quantita',
- 'numero_linea',
- 'sconto',
- 'prediscount_amount',
- ];
- public function causal()
- {
- return $this->belongsTo(Causal::class);
- }
- }
|