mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminado
This commit is contained in:
@ -340,6 +340,10 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
if ($tirada[0] <= $POD && $cliente->forzar_rotativa_pod) {
|
||||
$forzarRotativa = true;
|
||||
}
|
||||
else if ($tirada[0] <= $POD && !$cliente->forzar_rotativa_pod) {
|
||||
$excluirRotativa = true;
|
||||
}
|
||||
|
||||
|
||||
$input_data = array(
|
||||
'uso' => 'interior',
|
||||
@ -768,6 +772,9 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
if ($tirada[0] <= $POD && $cliente->forzar_rotativa_pod) {
|
||||
$forzarRotativa = true;
|
||||
}
|
||||
else if ($tirada[0] <= $POD && !$cliente->forzar_rotativa_pod) {
|
||||
$excluirRotativa = true;
|
||||
}
|
||||
|
||||
$input_data = array(
|
||||
'uso' => 'interior',
|
||||
@ -2088,6 +2095,9 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
if ($tirada[$t] <= $POD && $cliente->forzar_rotativa_pod) {
|
||||
$forzarRotativa = true;
|
||||
}
|
||||
else if ($tirada[0] <= $POD && !$cliente->forzar_rotativa_pod) {
|
||||
$excluirRotativa = true;
|
||||
}
|
||||
|
||||
$input_data = array(
|
||||
'uso' => 'interior',
|
||||
|
||||
@ -13,11 +13,15 @@ class PresupuestoClienteService extends BaseService
|
||||
{
|
||||
public static function obtenerInterior($data)
|
||||
{
|
||||
$POD = model('App\Models\Configuracion\ConfigVariableModel')->getVariable('POD')->value;
|
||||
$tirada = $data['datosPedido']->tirada;
|
||||
|
||||
$isPoD = $POD >= $tirada;
|
||||
|
||||
$rotativa = [];
|
||||
$plana = [];
|
||||
// no se busca en plana cuando es estándar (no Premium)
|
||||
if ($data['isHq'])
|
||||
// no se busca en plana cuando es estándar (no Premium) excepto cuando es PoD
|
||||
if ($data['isHq'] || $isPoD)
|
||||
$plana = PresupuestoClienteService::obtenerPresupuestoClienteInterior($data);
|
||||
if (!$data['excluirRotativa'] && !$data['isHq'])
|
||||
$rotativa = PresupuestoClienteService::obtenerPresupuestoClienteInteriorRotativa($data);
|
||||
|
||||
Reference in New Issue
Block a user