{{-- UBLExtensions --}}
@include('xml._ubl_extensions')
UBL 2.1
{{preg_replace("/[\r\n|\n|\r]+/", "", $typeoperation->code)}}
DIAN 2.1: Factura Electrónica de Venta
{{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
{{preg_replace("/[\r\n|\n|\r]+/", "", $typeDocument->code)}}
@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]+/", "", $invoiceLines->count())}}
{{-- OrderReference --}}
@isset($orderreference)
@include('xml._order_reference', ['node' => 'OrderReference'])
@endisset
{{-- AccountingSupplierParty --}}
@include('xml._accounting', ['node' => 'AccountingSupplierParty', 'supplier' => true])
{{-- AccountingCustomerParty --}}
@include('xml._accounting', ['node' => 'AccountingCustomerParty', 'user' => $customer])
{{preg_replace("/[\r\n|\n|\r]+/", "", $deliveryterms->special_terms)}}
{{preg_replace("/[\r\n|\n|\r]+/", "", $deliveryterms->loss_risk_responsibility_code)}}
{{preg_replace("/[\r\n|\n|\r]+/", "", $deliveryterms->loss_risk)}}
{{-- Delivery --}}
@isset($delivery)
@include('xml._delivery')
@endisset
{{-- PaymentMeans --}}
@include('xml._payment_means')
{{-- PaymentTerms --}}
{{-- @include('xml._payment_terms') --}}
@isset($prepaidpayment)
{{-- PrepaidPayment --}}
@include('xml._prepaid_payment', ['node' => 'PrepaidPayment'])
@endisset
{{-- AllowanceCharges --}}
@include('xml._allowance_charges')
{{-- 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])
{{-- LegalMonetaryTotal --}}
@include('xml._legal_monetary_total', ['node' => 'LegalMonetaryTotal'])
{{-- InvoiceLines --}}
@include('xml._invoice_lines')