This commit is contained in:
2021-08-18 19:03:58 -04:00
parent b58cda3e4e
commit 4f7241e146
12 changed files with 143 additions and 25 deletions

View File

@ -83,6 +83,10 @@ class FacturaProyectoOperador extends Model {
];
return $output;
}
public function addVenta($data) {
$data['factura_id'] = $this->id;
return FacturaVenta::add($data);
}
public function as_array() {
$arr = parent::as_array();