'decimal:6', 'discount_percentage' => 'decimal:2', 'final_price' => 'decimal:6', 'taxes_transferred' => 'decimal:6', 'taxes_retained' => 'decimal:6', 'total_amount' => 'decimal:6', 'valid_from' => 'date', 'valid_to' => 'date', 'min_quantity' => 'integer', 'max_quantity' => 'integer', ]; /** * Relación con el producto. */ public function product(): BelongsTo { return $this->belongsTo(Product::class, 'product_id'); } /** * Relación con la lista de precios. */ public function priceList(): BelongsTo { return $this->belongsTo(PriceList::class, 'pricelist_id'); } }