mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en guardar linea
This commit is contained in:
17
.vscode/settings.json
vendored
17
.vscode/settings.json
vendored
@ -1,3 +1,18 @@
|
||||
{
|
||||
"clockify.tracking.workspaceId": "6464949facab6237e1538c14"
|
||||
"clockify.tracking.workspaceId": "6464949facab6237e1538c14",
|
||||
"sqltools.connections": [
|
||||
{
|
||||
"mysqlOptions": {
|
||||
"authProtocol": "default",
|
||||
"enableSsl": "Disabled"
|
||||
},
|
||||
"previewLimit": 50,
|
||||
"server": "localhost",
|
||||
"port": 3306,
|
||||
"driver": "MariaDB",
|
||||
"name": "sk-local",
|
||||
"database": "sk_imn",
|
||||
"username": "sk_imn"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -17,8 +17,9 @@ class Test extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
$status = PresupuestoService::checkMaquina(1995);
|
||||
var_dump($status);
|
||||
/*$status = PresupuestoService::checkMaquina(1995);
|
||||
var_dump($status);*/
|
||||
echo xdebug_info();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -337,6 +337,23 @@ class PresupuestoLineaModel extends \App\Models\GoBaseModel
|
||||
return $builder->orderBy("t1.id", "asc")->get()->getResultObject();
|
||||
}
|
||||
|
||||
public function updatePreciosLineasPresupuesto($id_linea, $new_linea)
|
||||
{
|
||||
$data = [
|
||||
"pliegos_precio" => $new_linea['precios_pliegos'],
|
||||
"libro" => $new_linea['precio_libro'],
|
||||
"total_papel_pedido" => round($new_linea['precio_pedido'], 2),
|
||||
"margen_papel_pedido" => round($new_linea['margen_papel_pedido'], 2),
|
||||
"mano" => $new_linea['mano'],wsdasdasd
|
||||
];
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->where('id', $id_linea)
|
||||
->update($new_linea);
|
||||
|
||||
return $builder->orderBy("t1.id", "asc")->get()->getResultObject();
|
||||
}
|
||||
|
||||
public function deleteLineasPresupuesto($presupuesto_id)
|
||||
{
|
||||
$this->db
|
||||
|
||||
Reference in New Issue
Block a user