diff --git a/app/Printer/PrinterHandler.php b/app/Printer/PrinterHandler.php index 5a9b588..25d789e 100644 --- a/app/Printer/PrinterHandler.php +++ b/app/Printer/PrinterHandler.php @@ -123,10 +123,10 @@ class PrinterHandler{ $this->text(str_pad(substr($producto->codigo ,0,10),11)."".str_pad($producto->linea,6)."".str_pad($producto->ruta->prefijo,5)."".str_pad(substr($producto->descripcion,0,11),12)."".str_pad(intval($producto->pivot->unidades),5)."".round($producto->pivot->precio_unitario,8)); } // $this->text(str_pad(substr($producto->codigo,0,9),10)."".str_pad($producto->prefijo,6)."".str_pad(substr($producto->descripcion,0,14),15)."".str_pad($producto->pivot->unidades,10)."".round($producto->pivot->unidades*$producto->pivot->precio_unitario/1.16,2)); - $subTotal+=$producto->pivot->unidades*$producto->pivot->precio_unitario/1.16; + $subTotal+=$producto->pivot->unidades*$producto->pivot->precio_unitario/1.08; } $this->text("________________________________________________"); - $IVA = $subTotal*0.16; + $IVA = $subTotal*0.08; $total = round($subTotal+$IVA,2); $this->feed(1); $this->printer->setJustification(Printer::JUSTIFY_RIGHT);