{{-- UBLExtensions --}} @isset($healthfields) @include('xml._ubl_extensions_health') @else @include('xml._ubl_extensions') @endisset UBL 2.1 {{preg_replace("/[\r\n|\n|\r]+/", "", $typeoperation->code)}} @if($typeDocument->code == 93) DIAN 2.1: Nota de ajuste débito al documento equivalente @else DIAN 2.1: Nota Débito de Factura Electrónica de Venta @endif {{preg_replace("/[\r\n|\n|\r]+/", "", $company->type_environment->code)}} {{preg_replace("/[\r\n|\n|\r]+/", "", $resolution->next_consecutive)}} type_environment->code)}}" schemeName="{{preg_replace("/[\r\n|\n|\r]+/", "", $typeDocument->cufe_algorithm)}}"/> {{preg_replace("/[\r\n|\n|\r]+/", "", $date ?? Carbon\Carbon::now()->format('Y-m-d'))}} {{preg_replace("/[\r\n|\n|\r]+/", "", $time ?? Carbon\Carbon::now()->format('H:i:s'))}}-05:00 @isset($notes) {{preg_replace("/[\r\n|\n|\r]+/", "", $notes)}} @endisset @if(isset($idcurrency)) {{preg_replace("/[\r\n|\n|\r]+/", "", $idcurrency->code)}} @else {{preg_replace("/[\r\n|\n|\r]+/", "", $company->type_currency->code)}} @endif {{preg_replace("/[\r\n|\n|\r]+/", "", $debitNoteLines->count())}} {{-- HealthFields --}} @isset($healthfields) @include('xml._invoice_period', ['node' => 'InvoicePeriod']) @endisset {{-- InvoicePeriod --}} @isset($invoice_period) @include('xml._invoice_period', ['node' => 'InvoicePeriod']) @endisset {{-- OrderReference --}} @isset($orderreference) @include('xml._order_reference', ['node' => 'OrderReference']) @endisset {{-- DiscrepancyResponse --}} @if($typeDocument->id != 25) @isset($discrepancycode) @include('xml._discrepancy_response') @endisset @endif {{-- BillingReference --}} @isset($request['billing_reference']) @include('xml._billing_reference') @endisset {{-- AccountingSupplierParty --}} @include('xml._accounting', ['node' => 'AccountingSupplierParty', 'supplier' => true]) {{-- AccountingCustomerParty --}} @include('xml._accounting', ['node' => 'AccountingCustomerParty', 'user' => $customer]) {{-- AllowanceCharges --}} @include('xml._allowance_charges') {{-- PaymentMeans --}} @include('xml._payment_means') {{-- PaymentExchangeRate --}} @if($idcurrency !== null && $calculationrate !== null && $calculationratedate !== null) @include('xml._payment_exchange_rate') @endif {{-- TaxTotals --}} @include('xml._tax_totals', ['generalView' => true]) {{-- HoldingTaxTotals --}} @include('xml._with_holding_tax_totals', ['generalView' => true]) {{-- RequestedMonetaryTotal --}} @include('xml._legal_monetary_total', ['node' => 'RequestedMonetaryTotal', 'legalMonetaryTotals' => $requestedMonetaryTotals]) {{-- DebitNoteLine --}} @include('xml._debit_note_lines')