@lang('sales/customer_transfer.document_title')
@include('flash::message')
@php
//Obtiene datos del Cfdi33
$cfdi33 = !empty($data['cfdi33']) ? $data['cfdi33'] : [];
@endphp
{{ $list_document_type2[$customer_transfer->document_type2] }}
{{ mb_strtoupper($customer_transfer->company->name) }}
{{ $data['tax_regimen'] ?? ($customer_transfer->taxRegimen->name_sat ?? $customer_transfer->company->taxRegimen->name_sat) }}
{{ $customer_transfer->company->address_1 ?? '' }} {{ $customer_transfer->company->address_2 ?? '' }} {{ $customer_transfer->company->address_3 ?? '' }} {{ $customer_transfer->company->address_4 ?? '' }}
{{ $customer_transfer->company->city->name ?? '' }} , {{ ($customer_transfer->company->state->name ?? '') }}
{{ $customer_transfer->company->country->name ?? '' }}{!! ($customer_transfer->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_transfer->company->postcode : '') !!}
{{ mb_strtoupper($customer_transfer->company->taxid) }}
---
{{ $customer_transfer->company->phone ?? ' ' }}
{{ $customer_transfer->company->email ?? ' ' }}
{{ $data['tax_regimen'] ?? ($customer_transfer->taxRegimen->name_sat ?? $customer_transfer->company->taxRegimen->name_sat) }}
{{ $customer_transfer->company->address_1 ?? '' }} {{ $customer_transfer->company->address_2 ?? '' }} {{ $customer_transfer->company->address_3 ?? '' }} {{ $customer_transfer->company->address_4 ?? '' }}
{{ $customer_transfer->company->city->name ?? '' }} , {{ ($customer_transfer->company->state->name ?? '') }}
{{ $customer_transfer->company->country->name ?? '' }}{!! ($customer_transfer->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_transfer->company->postcode : '') !!}
{{ mb_strtoupper($customer_transfer->company->taxid) }}
---
{{ $customer_transfer->company->phone ?? ' ' }}
{{ $customer_transfer->company->email ?? ' ' }}
# {{ $customer_transfer->name }} @if($customer_transfer->document_type2 == 'invoice') {!! \App\Helpers\SalesHelper::statusCustomerInvoiceHtml($customer_transfer->status) !!} @else {!! \App\Helpers\SalesHelper::statusCustomerTransferHtml($customer_transfer->status) !!} @endif
@lang('general.text_cfdi_uuid') : {{ $customer_transfer->customerInvoiceCfdi->uuid ?? '' }}@lang('base/document_type.entry_cfdi_type_id') : {{ $customer_transfer->documentType->cfdiType->name_sat ?? '' }}
@lang('sales/customer_transfer.entry_date') : {{ \App\Helpers\Helper::convertSqlToDateTime($customer_transfer->date) }}
@if($customer_transfer->document_type2 == 'invoice') @lang('sales/customer_transfer.entry_date_due') : {{ $customer_transfer->date_due ? \App\Helpers\Helper::convertSqlToDate($customer_transfer->date_due) : '' }}
@endif @lang('sales/customer_transfer.entry_payment_term_id') : {{ $customer_transfer->paymentTerm->name ?? '' }}
@lang('sales/customer_transfer.entry_cfdi_use_id') : {{ $customer_transfer->cfdiUse->name_sat ?? '' }}
@lang('general.text_issued_in') : {{ $customer_transfer->branchOffice->name ?? '' }} {!! ($customer_transfer->branchOffice->postcode ? ' ' . __('base/branch_office.entry_postcode') . ': ' . $customer_transfer->branchOffice->postcode : '') !!}
{{ mb_strtoupper(__('general.text_customer')) }}
{{ mb_strtoupper($customer_transfer->customer->name) }}{{ $customer_transfer->customer->address_1 ?? '' }} {{ $customer_transfer->customer->address_2 ?? '' }} {{ $customer_transfer->customer->address_3 ?? '' }} {{ $customer_transfer->customer->address_4 ?? '' }}
{{ $customer_transfer->customer->city->name ?? '' }} , {{ $customer_transfer->customer->state->name ?? '' }}
{{ $customer_transfer->customer->country->name ?? '' }}{!! ($customer_transfer->customer->postcode ? ' ' . __('sales/customer.entry_postcode') . ': ' . $customer_transfer->customer->postcode : '') !!}
{{ mb_strtoupper($cfdi33->Receptor['Rfc'] ?? $customer_transfer->customer->taxid) }}
@lang('sales/customer_transfer.entry_tax_regimen_customer_id2') : {{ $data['tax_regimen_customer'] ?? ($customer_transfer->taxRegimenCustomer->name_sat ?? ($customer_transfer->customer->taxRegimen->name_sat ?? '')) }}
| {{ mb_strtoupper(__('sales/customer_transfer.column_line_transfer_name')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_transfer_weight')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_transfer_m3')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_transfer_liters')) }} |
|---|---|---|---|
| {!! nl2br($result->name) !!} | {{ $result->weight ?? '-' }} | {{ $result->m3>0 ? \App\Helpers\Helper::numberFormat($result->m3,0) : '-' }} | {{ $result->liters>0 ? \App\Helpers\Helper::numberFormat($result->liters,0) : '-' }} |
| @lang('sales/customer_transfer.entry_date_delivery') : {{ $customer_transfer->date_delivery ? \App\Helpers\Helper::convertSqlToDate($customer_transfer->date_delivery) : '' }} | @lang('sales/customer_transfer.entry_valid_amount') : {{ money($customer_transfer->valid_amount,$customer_transfer->currency->code,true) }} | @lang('sales/customer_transfer.entry_dangerous_material') : {{ $customer_transfer->dangerous_material ? __('general.text_yes') : __('general.text_no') }} |
| {{ mb_strtoupper(__('sales/customer_transfer.column_line_name')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_sat_product_id')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_unit_measure_id')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_quantity')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_price_unit')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_discount')) }} | {{ mb_strtoupper(__('sales/customer_transfer.column_line_amount_untaxed')) }} |
|---|---|---|---|---|---|---|
| {{ $result->name }} | {{ $result->satProduct->code }} | {{ $result->unitMeasure->name_sat }} | {{ \App\Helpers\Helper::numberFormat($result->quantity,$result->unitMeasure->decimal_place) }} | {{ \App\Helpers\Helper::numberFormatMoney($result->price_unit,\App\Helpers\Helper::companyProductPriceDecimalPlace($customer_transfer->company_id)) }} | {{ \App\Helpers\Helper::numberFormat($result->discount,2) }} | {{ money($result->amount_untaxed,$customer_transfer->currency->code,true) }} |
@if($customer_transfer->document_type2 == 'invoice')
@lang('sales/customer_transfer.entry_payment_way_id')
: {{ $customer_transfer->paymentWay->name_sat ?? '' }}
@lang('sales/customer_transfer.entry_payment_method_id') : {{ $customer_transfer->paymentMethod->name_sat ?? '' }}
@endif @lang('sales/customer_transfer.entry_currency_id') : {{ $customer_transfer->currency->code }}{!! ($customer_transfer->currency->code!='MXN' ? ' '.__('sales/customer_transfer.entry_currency_value').': '.round($customer_transfer->currency_value,4) :'') !!}
@if(!empty($cfdi33)) @lang('general.text_cfdi_certificado'): {{ $cfdi33['NoCertificado'] }}
@lang('general.text_cfdi_tfd_no_certificado_sat'): {{ $cfdi33->complemento->timbreFiscalDigital['NoCertificadoSAT'] }}
@lang('general.text_cfdi_tfd_fecha_timbrado'): {{ \App\Helpers\Helper::convertSqlToDateTime(str_replace('T',' ',$cfdi33->complemento->timbreFiscalDigital['FechaTimbrado'])) }}
@endif
@lang('sales/customer_transfer.entry_payment_method_id') : {{ $customer_transfer->paymentMethod->name_sat ?? '' }}
@endif @lang('sales/customer_transfer.entry_currency_id') : {{ $customer_transfer->currency->code }}{!! ($customer_transfer->currency->code!='MXN' ? ' '.__('sales/customer_transfer.entry_currency_value').': '.round($customer_transfer->currency_value,4) :'') !!}
@if(!empty($cfdi33)) @lang('general.text_cfdi_certificado'): {{ $cfdi33['NoCertificado'] }}
@lang('general.text_cfdi_tfd_no_certificado_sat'): {{ $cfdi33->complemento->timbreFiscalDigital['NoCertificadoSAT'] }}
@lang('general.text_cfdi_tfd_fecha_timbrado'): {{ \App\Helpers\Helper::convertSqlToDateTime(str_replace('T',' ',$cfdi33->complemento->timbreFiscalDigital['FechaTimbrado'])) }}
@endif
@if($customer_transfer->document_type2 == 'invoice')
@endif
| @lang('general.text_amount_untaxed') | {{ money($customer_transfer->amount_untaxed,$customer_transfer->currency->code,true) }} |
|---|---|
| {{$result->name}} | {{ money(abs($result->amount_tax),$customer_transfer->currency->code,true) }} |
| {{ mb_strtoupper(__('general.text_amount_total')) }} | {{ money($customer_transfer->amount_total,$customer_transfer->currency->code,true) }} |
@if(!empty($customer_transfer->cfdi_relation_id))
@endif
@lang('sales/customer_transfer.tab_relations') - {{ $customer_transfer->cfdiRelation->name_sat }}
|
@if($customer_transfer->customerInvoiceRelations->isNotEmpty())
@foreach($customer_transfer->customerInvoiceRelations as $result)
{{$result->relation->name}} @endforeach @endif |
@if($customer_transfer->customerInvoiceRelations->isNotEmpty())
@foreach($customer_transfer->customerInvoiceRelations as $result)
{{$result->relation->customerInvoiceCfdi->uuid}} @endforeach @endif |
@if(!empty($customer_transfer->comment))
@endif
@lang('sales/customer_transfer.entry_comment')
| {{ $customer_transfer->comment }} |
@if(!empty($customer_transfer->compensation))
@endif
@lang('sales/customer_transfer.entry_compensation')
| {{ $customer_transfer->compensation }} |
| @lang('sales/customer_transfer.entry_driver') : {{ $customer_transfer->driver }} | @lang('sales/customer_transfer.entry_vehicle') : {{ $customer_transfer->vehicle }} | @lang('sales/customer_transfer.entry_vehicle_number') : {{ $customer_transfer->vehicle_number }} | @lang('sales/customer_transfer.entry_vehicle_counter') : {{ $customer_transfer->vehicle_counter }} |
@if(!empty($cfdi33))
@endif
|
|
@lang('general.text_cfdi_tfd_cadena_origen') {{ $data['tfd_cadena_origen'] }} @lang('general.text_cfdi_tfd_sello_cfdi') {{ $cfdi33->complemento->timbreFiscalDigital['SelloCFD'] }} @lang('general.text_cfdi_tfd_sello_sat') {{ $cfdi33->complemento->timbreFiscalDigital['SelloSAT'] }} |