@lang('sales/customer_credit_note.document_title')
@include('flash::message')
@php
//Obtiene datos del Cfdi33
$cfdi33 = !empty($data['cfdi33']) ? $data['cfdi33'] : [];
@endphp
{{ $customer_credit_note->documentType->name }}
{{ mb_strtoupper($customer_credit_note->company->name) }}
{{ $data['tax_regimen'] ?? ($customer_credit_note->taxRegimen->name_sat ?? $customer_credit_note->company->taxRegimen->name_sat) }}
{{ $customer_credit_note->company->address_1 ?? '' }} {{ $customer_credit_note->company->address_2 ?? '' }} {{ $customer_credit_note->company->address_3 ?? '' }} {{ $customer_credit_note->company->address_4 ?? '' }}
{{ $customer_credit_note->company->city->name ?? '' }} , {{ ($customer_credit_note->company->state->name ?? '') }}
{{ $customer_credit_note->company->country->name ?? '' }}{!! ($customer_credit_note->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_credit_note->company->postcode : '') !!}
{{ mb_strtoupper($customer_credit_note->company->taxid) }}
---
{{ $customer_credit_note->company->phone ?? ' ' }}
{{ $customer_credit_note->company->email ?? ' ' }}
{{ $data['tax_regimen'] ?? ($customer_credit_note->taxRegimen->name_sat ?? $customer_credit_note->company->taxRegimen->name_sat) }}
{{ $customer_credit_note->company->address_1 ?? '' }} {{ $customer_credit_note->company->address_2 ?? '' }} {{ $customer_credit_note->company->address_3 ?? '' }} {{ $customer_credit_note->company->address_4 ?? '' }}
{{ $customer_credit_note->company->city->name ?? '' }} , {{ ($customer_credit_note->company->state->name ?? '') }}
{{ $customer_credit_note->company->country->name ?? '' }}{!! ($customer_credit_note->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_credit_note->company->postcode : '') !!}
{{ mb_strtoupper($customer_credit_note->company->taxid) }}
---
{{ $customer_credit_note->company->phone ?? ' ' }}
{{ $customer_credit_note->company->email ?? ' ' }}
# {{ $customer_credit_note->name }} {!! \App\Helpers\SalesHelper::statusCustomerCreditNoteHtml($customer_credit_note->status) !!}
@lang('general.text_cfdi_uuid') : {{ $customer_credit_note->customerInvoiceCfdi->uuid ?? '' }}@lang('base/document_type.entry_cfdi_type_id') : {{ $customer_credit_note->documentType->cfdiType->name_sat ?? '' }}
@lang('sales/customer_credit_note.entry_date') : {{ \App\Helpers\Helper::convertSqlToDateTime($customer_credit_note->date) }}
@lang('sales/customer_credit_note.entry_payment_term_id') : {{ $customer_credit_note->paymentTerm->name }}
@lang('sales/customer_credit_note.entry_cfdi_use_id') : {{ $customer_credit_note->cfdiUse->name_sat }}
@lang('general.text_issued_in') : {{ $customer_credit_note->branchOffice->name ?? '' }} {!! ($customer_credit_note->branchOffice->postcode ? ' ' . __('base/branch_office.entry_postcode') . ': ' . ($cfdi33['LugarExpedicion'] ?? $customer_credit_note->branchOffice->postcode) : '') !!}
{{ mb_strtoupper(__('general.text_customer')) }}
{{ mb_strtoupper(!empty($cfdi33->Receptor['Nombre']) ? $cfdi33->Receptor['Nombre'] : $customer_credit_note->customer->name) }}{{ $customer_credit_note->customer->address_1 ?? '' }} {{ $customer_credit_note->customer->address_2 ?? '' }} {{ $customer_credit_note->customer->address_3 ?? '' }} {{ $customer_credit_note->customer->address_4 ?? '' }}
{{ $customer_credit_note->customer->city->name ?? '' }} , {{ $customer_credit_note->customer->state->name ?? '' }}
{{ $customer_credit_note->customer->country->name ?? '' }}{!! ($customer_credit_note->customer->postcode ? ' ' . __('sales/customer.entry_postcode') . ': ' . $customer_credit_note->customer->postcode : '') !!}
{{ mb_strtoupper($cfdi33->Receptor['Rfc'] ?? $customer_credit_note->customer->taxid) }}
@lang('sales/customer_credit_note.entry_tax_regimen_customer_id2') : {{ $data['tax_regimen_customer'] ?? ($customer_credit_note->taxRegimenCustomer->name_sat ?? ($customer_credit_note->customer->taxRegimen->name_sat ?? '')) }}
| {{ mb_strtoupper(__('sales/customer_credit_note.column_line_name')) }} | {{ mb_strtoupper(__('sales/customer_credit_note.column_line_sat_product_id')) }} | {{ mb_strtoupper(__('sales/customer_credit_note.column_line_unit_measure_id')) }} | {{ mb_strtoupper(__('sales/customer_credit_note.column_line_quantity')) }} | {{ mb_strtoupper(__('sales/customer_credit_note.column_line_price_unit')) }} | {{ mb_strtoupper(__('sales/customer_credit_note.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_credit_note->company_id)) }} | {{ money($result->amount_untaxed,$customer_credit_note->currency->code,true) }} |
@lang('sales/customer_credit_note.entry_payment_way_id')
: {{ $customer_credit_note->paymentWay->name_sat }}
@lang('sales/customer_credit_note.entry_payment_method_id') : {{ $customer_credit_note->paymentMethod->name_sat }}
@lang('sales/customer_credit_note.entry_currency_id') : {{ $customer_credit_note->currency->code }}{!! ($customer_credit_note->currency->code!='MXN' ? ' '.__('sales/customer_credit_note.entry_currency_value').': '.round($customer_credit_note->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_credit_note.entry_payment_method_id') : {{ $customer_credit_note->paymentMethod->name_sat }}
@lang('sales/customer_credit_note.entry_currency_id') : {{ $customer_credit_note->currency->code }}{!! ($customer_credit_note->currency->code!='MXN' ? ' '.__('sales/customer_credit_note.entry_currency_value').': '.round($customer_credit_note->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('general.text_amount_untaxed') | {{ money($customer_credit_note->amount_untaxed,$customer_credit_note->currency->code,true) }} |
|---|---|
| {{$result->name}} | {{ money(abs($result->amount_tax),$customer_credit_note->currency->code,true) }} |
| {{ mb_strtoupper(__('general.text_amount_total')) }} | {{ money($customer_credit_note->amount_total,$customer_credit_note->currency->code,true) }} |
@if(!empty($customer_credit_note->cfdi_relation_id))
@endif
@lang('sales/customer_credit_note.tab_relations') - {{ $customer_credit_note->cfdiRelation->name_sat }}
|
@if($customer_credit_note->customerInvoiceRelations->isNotEmpty())
@foreach($customer_credit_note->customerInvoiceRelations as $result)
{{$result->relation->name ?? ''}} @endforeach @endif |
@if($customer_credit_note->customerInvoiceRelations->isNotEmpty())
@foreach($customer_credit_note->customerInvoiceRelations as $result)
{{$result->uuid_related}} @endforeach @endif |
@if(!empty($customer_credit_note->comment))
@endif
@lang('sales/customer_credit_note.entry_comment')
| {{ $customer_credit_note->comment }} |
@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'] }} |