mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadidas tarifas encuadernacion por horas para los cosidos
This commit is contained in:
@ -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]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user