terminados albaranes

This commit is contained in:
2025-04-22 10:26:33 +02:00
parent 2050f0ae1e
commit 6450231b53
6 changed files with 56 additions and 4 deletions

View File

@ -175,6 +175,13 @@ class Albaran extends \App\Controllers\BaseResourceController
return $this->respond($data);
}
if($fieldName == 'fecha_albaran'){
if($fieldValue == null || $fieldValue == '')
$fieldValue = null;
else
$fieldValue = date('Y-m-d H:i:s', strtotime($fieldValue));
}
$albaranEntity->fill([
$fieldName => $fieldValue,
'user_updated_id' => auth()->user()->id,