añadidas tarifas encuadernacion por horas para los cosidos

This commit is contained in:
Jaime Jiménez Ortega
2023-11-30 23:19:45 +01:00
parent f1eb8f6808
commit 67e12c8eff
24 changed files with 1369 additions and 131 deletions

View File

@ -68,13 +68,14 @@ class Tarifaencuadernaciontiradas extends \App\Controllers\GoBaseResourceControl
$lineaModel = new TarifaEncuadernacionLineaModel();
$lineaResult = $lineaModel->removeAllEncuadernacionLineas($id, $datetime, $this->delete_flag);
$lineaResult2 = $lineaModel->removeAllEncuadernacionLineasHoras($id, $datetime, $this->delete_flag);
$rawResult = $this->model->where('id',$id)
->set(['deleted_at' => $datetime->format('Y-m-d H:i:s'),
'is_deleted' => $this->delete_flag])
->update();
if (!$rawResult && !$lineaResult) {
if (!$rawResult && !$lineaResult && !$lineaResult2) {
return $this->failNotFound(lang('Basic.global.deleteError', [$objName]));
}