mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
todo okgit pullgit pull
This commit is contained in:
@ -3068,16 +3068,18 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
return;
|
||||
$totalPapel += round($linea['precio_pedido'], 2);
|
||||
$totalPapel -= round($linea['margen_papel_pedido'], 2);
|
||||
$sumForFactor += round($linea['precio_pedido'], 2)
|
||||
- round($linea['margen_papel_pedido'], 2);
|
||||
$margenPapel += round($linea['margen_papel_pedido'], 2);
|
||||
$sumForFactor += round($linea['precio_pedido'], 2);
|
||||
$sumForFactor -= round($linea['precio_pedido'], 2);
|
||||
|
||||
|
||||
$totalImpresion += round($linea['precio_click_pedido'], 2);
|
||||
$totalImpresion -= round($linea['margen_click_pedido'], 2);
|
||||
$sumForFactor += round($linea['precio_click_pedido'], 2);
|
||||
$sumForFactor += round($linea['precio_click_pedido'], 2)
|
||||
- round($linea['margen_click_pedido'], 2);
|
||||
|
||||
if ($linea['tipo_maquina'] == 'inkjet') {
|
||||
$totalImpresion += round($linea['precio_tinta'], 2);
|
||||
$sumForFactor += round($linea['precio_tinta'], 2);
|
||||
if (array_key_exists('total_corte', $linea)) {
|
||||
$totalImpresion += round($linea['total_corte'], 2);
|
||||
$sumForFactor += round($linea['total_corte'], 2);
|
||||
|
||||
@ -484,7 +484,9 @@ class PresupuestoModel extends \App\Models\BaseModel
|
||||
'total_margenes' => round($totalMargenes, 2),
|
||||
|
||||
'total_antes_descuento' => round(
|
||||
$totalCostes + $totalMargenes + $data['envio_base'], 2),
|
||||
$totalCostes + $totalMargenes +
|
||||
$resumen_totales['coste_envio']+$resumen_totales['margen_envio'] +
|
||||
$data['envio_base'], 2),
|
||||
'total_descuento' => 0,
|
||||
'total_descuentoPercent' => 0,
|
||||
|
||||
@ -492,11 +494,15 @@ class PresupuestoModel extends \App\Models\BaseModel
|
||||
'total_presupuesto' => round(
|
||||
$totalCostes + $totalMargenes +
|
||||
$resumen_totales['coste_envio']+$resumen_totales['margen_envio'] +
|
||||
$resumen_totales['envio_base_coste']+$resumen_totales['envio_base_margen'], 2),
|
||||
$data['envio_base'], 2),
|
||||
'total_aceptado' => round($totalCostes + $totalMargenes + $resumen_totales['coste_envio']+$resumen_totales['margen_envio'], 2),
|
||||
|
||||
'total_factor' => round(($totalCostes + $totalMargenes - $resumen_totales['coste_envio'] - $resumen_totales['margen_envio']) / $resumen_totales['sumForFactor'], 2),
|
||||
'total_factor_ponderado' => round(($totalCostes + $totalMargenes - $resumen_totales['coste_envio'] - $resumen_totales['margen_envio']) / $resumen_totales['sumForFactorPonderado'], 2),
|
||||
'total_factor' => round(
|
||||
($totalCostes + $totalMargenes ) /
|
||||
$resumen_totales['sumForFactor'], 2),
|
||||
'total_factor_ponderado' => round(
|
||||
($totalCostes + $totalMargenes ) /
|
||||
$resumen_totales['sumForFactorPonderado'], 2),
|
||||
|
||||
'iva_reducido' => $iva_reducido,
|
||||
'excluir_rotativa' => $excluir_rotativa,
|
||||
|
||||
Reference in New Issue
Block a user