2019-11-22 15:23:20 +01:00
|
|
|
<?php
|
|
|
|
|
2019-12-03 20:27:22 +01:00
|
|
|
namespace Update\v2_4_10\Components;
|
2019-11-22 15:23:20 +01:00
|
|
|
|
2019-12-03 20:27:22 +01:00
|
|
|
use Common\Components\Discount;
|
|
|
|
use Update\v2_4_10\Fattura;
|
2019-11-22 15:23:20 +01:00
|
|
|
|
2019-12-03 20:27:22 +01:00
|
|
|
class Sconto extends Discount
|
2019-11-22 15:23:20 +01:00
|
|
|
{
|
|
|
|
use RelationTrait;
|
|
|
|
|
|
|
|
protected $table = 'co_righe_documenti';
|
|
|
|
|
|
|
|
/**
|
2019-12-03 20:27:22 +01:00
|
|
|
* Crea un nuovo sconto collegato ad una fattura.
|
2019-11-22 15:23:20 +01:00
|
|
|
*
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public static function build(Fattura $fattura)
|
|
|
|
{
|
|
|
|
$model = parent::build($fattura);
|
|
|
|
|
|
|
|
return $model;
|
|
|
|
}
|
|
|
|
}
|