mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'mod/reimpresion_mensaje_duplicado' into 'main'
añadido mensaje cuando es un duplicado See merge request jjimenez/safekat!836
This commit is contained in:
@ -2131,7 +2131,17 @@ class PresupuestoService extends BaseService
|
|||||||
if($pedido_linea){
|
if($pedido_linea){
|
||||||
$text = "REIMPRESION [" . date('Y-m-d H:i:s') . "] - PEDIDO: " . $pedido_linea->pedido_id .
|
$text = "REIMPRESION [" . date('Y-m-d H:i:s') . "] - PEDIDO: " . $pedido_linea->pedido_id .
|
||||||
"\n================================================\n";
|
"\n================================================\n";
|
||||||
$presupuesto->comentarios_safekat = $presupuesto->comentarios_safekat . $text;
|
$presupuesto->comentarios_safekat = $text . $presupuesto->comentarios_safekat ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if($is_reimpresion){
|
||||||
|
$presupuesto->inc_rei = null;
|
||||||
|
$modelPedidoLinea = model('App\Models\Pedidos\PedidoLineaModel');
|
||||||
|
$pedido_linea = $modelPedidoLinea->where('presupuesto_id', $id)->first();
|
||||||
|
if($pedido_linea){
|
||||||
|
$text = "DUPLICADO [" . date('Y-m-d H:i:s') . "] - PEDIDO: " . $pedido_linea->pedido_id .
|
||||||
|
"\n================================================\n";
|
||||||
|
$presupuesto->comentarios_safekat = $text . $presupuesto->comentarios_safekat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user