@extends('layouts.app') @section('title', __( 'lang_v1.sales_order')) @section('css') @endsection @section('content') @php $totalIva = 0; if($transaction->type == 'purchase'){ foreach ($transaction->purchase_lines as $value) { $totalIva = $totalIva + $value->item_tax; } } @endphp
Cargando...

Generar Retención

Procesando solicitud, por favor espera...
@component('components.widget', ['class' => 'box-primary', 'title' => 'Información Documentos'])
Numero
{{$transaction->ref_no}}
Proveedor
{{$transaction->contact->contact_id}} - {{$transaction->contact->name}}
Total Fuente
@if($transaction->type == 'purchase') {{ number_format($transaction->total_before_tax-$totalIva,2,'.','')}} @else {{ number_format($transaction->total_before_tax,2,'.','')}} @endif
Total Iva
@if($transaction->type == 'purchase') {{ number_format($totalIva,2,'.','')}} @else {{ number_format($transaction->tax_amount,2,'.','') }} @endif
Total General
{{ number_format($transaction->final_total,2,'.','') }}

@component('components.widget', ['class' => 'box-primary', 'title' => 'Aplicar Retencion sobre la Fuente'])
@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => 'Aplicar Retencion sobre el iva'])
@endcomponent
Descripción Porcentaje Monto Retención Acciones

Total Retenido: $0.00

@php //dd($transaction) @endphp
@endcomponent @php //dd($transaction ) @endphp
@stop @section('javascript') @endsection