https://panel.prod.ccc.enp.pl/media/cache/resolve/filemanager_original/images/A5_poziom_210222_v2_2.jpg
{% extends "EnpAdminWebBundle::Default/clearpage_content.html.twig" %}
{% block stylesheets %}
{% stylesheets
'@EnpCoreBundle/Resources/public/js/libs/querybuilder/query-builder.css'
'@EnpAdminDataTableBundle/Resources/public/css/temp.css'
'@EnpAdminWebBundle/Resources/public/js/libs/bootstrap/bootstrap-editable.css' %}
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}">
{% endstylesheets %}
{% endblock %}
{% import "EnpAdminWebBundle::elements/formElements/submit_button.html.twig" as setSubmitButton %}
{% set yesButton = "enp.order.edit.yes"|trans %}
{% set cancelButton = "enp.order.edit.cancel"|trans %}
{% block page_content %}
{% include "EnpOrderBundle::Modals/modals.html.twig" %}
{#
@MSG TO GFX FROM AŚ:
Nadpisane ponieważ jest tam klasa "newinput" - trzeba jakoś to połonaczyć żeby stary "input" dobrze wyglądał
#}
{% import "EnpOrderBundle::Order/input.html.twig" as formInput %}
{% trans_default_domain 'EnpOrderBundle' %}
<div class="order-edit-block clearfix2">
<div class="col-lg-6">
{{ alert_show_order(entity) }}
</div>
<div class="col-lg-6">
{{ alert_apply_manual(entity) }}
</div>
</div>
{% include "EnpOrderBundle::Order/elements/nav.html.twig" %}
<div class="order-edit-block">
<div class="edit-container clearfix2 g-mb10">
{% include "EnpOrderBundle::Order/action/statusButtons.html.twig" %}
{% if is_granted('ORDER_EDIT_RETURN') %}
{% include "EnpOrderBundle::Order/elements/return.html.twig" %}
{% endif %}
{% if is_granted('ORDER_EDIT_COMPLAINT') %}
{% include "EnpOrderBundle::Order/elements/complaint.html.twig" %}
{% endif %}
<div class="clearfix2 g-mt20 edit-container-data">
{% include "EnpOrderBundle::Order/action/topDetailsLeft.html.twig" %}
{% include "EnpOrderBundle::Order/action/topDetailsRight.html.twig" %}
{% include "EnpOrderBundle::Order/action/comments.html.twig" ignore missing %}
{% if is_granted('CC_TICKET_LIST', entity) %}
{% include "EnpOrderBundle::Order/elements/notes.html.twig" %}
{% endif %}
{% include "EnpOrderBundle::Order/elements/note-modal.html.twig" %}
{% set hasPinCodeConfirm = (entity.getPinPersonalReception|length > 0 and (entity.getPinPersonalReception|first).confirmVersion > 0) %}
{% if hasPinCodeConfirm or is_granted('PIN_PERSONAL_RECEPTION_REGENERATE') %}
{% include "EnpOrderBundle::Order/elements/pin-personal.html.twig" %}
{% endif %}
{% include "EnpOrderBundle::Order/elements/additionalInfo.html.twig" %}
{% if is_granted('ORDER_EDIT_CONSENT_LIST') %}
{% include "EnpOrderBundle::Consent/orderConsentContent.html.twig" %}
{% endif %}
{% include "EnpENP0026OrderBundle:Order/IntenseInvoice:intenseInvoiceOrder.html.twig" %}
{% if (is_granted('PROFORMA_INVOICE_ORDER_GENERATE_PDF')) %}
{% include "EnpENP0026OrderBundle:Order/OrderTransaction:proFormaSend.html.twig" with {id: entity.id} only %}
{% endif %}
{% if is_granted('ORDER_INVOICE_COMMENT_VIEW') or is_granted('ORDER_INVOICE_COMMENT_EDIT') %}
{% include "@EnpOrder/Order/action/invoiceComment.html.twig" ignore missing %}
{% endif %}
</div>
{% include "EnpOrderBundle::Order/action/confirm_phone_number.html.twig" %}
{% include "EnpOrderBundle::Order/action/customer.html.twig" %}
{% if hasOperatorMode %}
{% include "EnpOrderBundle::Order/action/operator.html.twig" %}
{% endif %}
{% if (is_granted('ORDER_EDIT_OPERATOR_EXEC_SHOW', entity)
or is_granted('ORDER_EDIT_OPERATOR_EXEC_ASSIGN_ME', entity)
or is_granted('ORDER_EDIT_OPERATOR_EXEC_ASSIGN_OTHERS', entity)
)
and (operatorExec is defined and operatorExec is not null)
%}
{% include "EnpOrderBundle::Order/action/operator_exec.html.twig" %}
{% endif %}
</div>
<div class="col-lg-12 js-orderDetails">
{% include "EnpOrderBundle::Order/action/formItems.html.twig" %}
</div>
<div class="js-validateForm">
<div class="col-lg-4 order-form-view">
{% if is_granted('ORDER_EDIT_TRANSPORT_PAYMENT') %}
{% include "EnpOrderBundle::Order/action/transportPayment.html.twig" %}
{% endif %}
{% include "EnpOrderBundle::Order/action/addressAccount.html.twig" %}
</div>
<div class="col-lg-4 order-form-view">
{% include "EnpOrderBundle::Order/action/pricesDetails.html.twig" %}
{% include "EnpOrderBundle::Order/action/inquiries.html.twig" %}
{% include "EnpOrderBundle::Order/action/addressBilling.html.twig" %}
</div>
<div class="col-lg-4 order-form-view">
{% include "EnpOrderBundle::Order/action/uploadFiles.html.twig" %}
</div>
<div class="col-lg-4 order-form-view">
{% include "EnpOrderBundle::Order/action/addressTransport.html.twig" %}
</div>
{% include "EnpOrderBundle::Order/action/order_separate_modal.html.twig" %}
</div>
</div>
{{ EnpDatatable_init({
collectDataLink: collectDataLink
}) }}
{{ EnpDatatatableStartPicker() }}
{{ EnpDatatableModalMultiPicker('groupOfferPickerInModal', collectDataLink) }}
{{ EnpDatatableModalMultiPicker('enpCustomerPicker', customerPickerCollectDataLink) }}
{{ EnpDatatatableEndPicker() }}
{% endblock page_content %}
{% block javascripts %}
{% trans_default_domain 'EnpOrderBundle' %}
<div id="js-order-customer-bind"
data-add-button-msg='{{ 'enp.payment.transaction_details.relate_new_order'|trans }}'
data-delete-button-msg='{{ 'enp.payment.transaction_details.order_delete'|trans }}'
data-add-link='{{ path('enp_order_bind_customer') }}'
data-order-id='{{ entity.id }}'
data-mapping-granted='{{ (is_granted('ORDER_BIND_CUSTOMER')) }}'
>
</div>
<div id="js-order-formItem"
data-action-update='{{ path('enp_order_update_items', { id: entity.id }) }}'
data-action-delete='{{ path('enp_order_delete_items', { id: entity.id }) }}'
data-action-add="{{ path('enp_order_add_items', { id: entity.id }) }}"
data-action-copy="{{ path('enp_order_copy_items', { id: entity.id }) }}"
data-action-separate="{{ path('enp_order_separate_items', { id: entity.id }) }}"
data-action-offer-change="{{ path('enp_order_change_offer', { id: entity.id }) }}"
data-action-add-service="{{ path('enp_order_add_service_item', { id: entity.id }) }}"
data-actionCommitSoItems="{{ path('enp_order_commit_supplier_items', { id: entity.id }) }}"
data-action-separate-qty="{{ path('enp_order_separate_item_qty', { id: entity.id }) }}"
data-action-split-order-qty="{{ path('enp_order_separate_qty', { id: entity.id }) }}"
data-action-serial-number="{{ path('enp_order_serial_number_items', { id: entity.id }) }}"
>
</div>
<div id="js-order-transportPayment"
data-inposts-id="{{ transportInpostsJson }}"
data-pos-id="{{ posJson }}"
data-delivery-point-id="{{ deliveryPointTypeJson }}"
>
</div>
<div id="js-address-data"
data-action="{{ path('enp_customer_address_realation') }}"
>
</div>
<div id="js-order-status"
data-status-check-url="{{ path('enp_order_update_status_transition', {id: entity.id}) }}"
data-msg-status-note-required="{{ 'enp.order.edit.status_note_is_required'|trans }}"
data-error-status-label="{{ 'enp.order.edit.error_status_change'|trans }}"
>
</div>
<div id="js-order-payment"></div>
<div id="js-order-transport"></div>
<div id="js-order-currency"></div>
<div id="js-forward-cosi"
data-forward-action="{{ path('enp_order_forward', { id: entity.id }) }}"
>
</div>
<div id="js-regenerate-pin"
data-regenerate-action="{{ path('enp_pin_personal_reception_regenerate', {id: entity.id}) }}"
></div>
<div id="js-order-consent-data"
data-refresh-translate="{{ 'enp_order_consent.list.refresh'|trans({}, 'EnpOrderConsent') }}"
>
</div>
{{ parent() }}
{% javascripts
'@EnpOrderBundle/Resources/public/js/action/enp.order_change_delivery_day.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_formItem.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_transportPayment.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_delete_return_data.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_address.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_address_book.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_invoice.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_blacklist.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_promotion_code.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_operator.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_status.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_payment.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_transport.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_currency.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_nav.js'
'@EnpAdminWebBundle/Resources/public/js/app/global/enp.pickerDialog.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_forward.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_flags.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_regenerate_pin.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_copy_address.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_customerPicker.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_warehouse_reservations.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_order_consent_list.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_total_change.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_payment_deadline.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_resend_invoice.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_invoice_comment.js'
'@EnpOrderBundle/Resources/public/js/action/enp.order_action_payment_document_number.js'
'@EnpOrderBundle/Resources/public/js/enp.order_note.js'
'@EnpAdminWebBundle/Resources/public/js/libs/angular/angular-sanitize.min.js'
'@EnpAdminWebBundle/Resources/public/js/libs/angular/angular-cookies.min.js'
'@EnpAdminWebBundle/Resources/public/js/libs/angular/angular-route.min.js'
'@EnpAdminWebBundle/Resources/public/smart/js/plugin/x-editable/x-editable.min.js'
'@EnpAdminWebBundle/Resources/public/smart/js/plugin/x-editable/moment.min.js'
'@EnpAdminWebBundle/Resources/public/smart/js/plugin/x-editable/jquery.mockjax.min.js'
'@EnpAdminDataTableBundle/Resources/public/js/libs/jQuery.extendext.min.js'
'@EnpAdminDataTableBundle/Resources/public/js/libs/querybuilder/js/query-builder.min.js'
'@EnpAdminDataTableBundle/Resources/public/js/libs/querybuilder/i18n/pl.js'
'@EnpAdminDataTableBundle/Resources/public/js/libs/querybuilder/i18n/en.js'
'@EnpAdminWebBundle/Resources/public/js/libs/dragtable/jquery.dragtable.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/functions/functions.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/app.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/filters/filters.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/services/pagination.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/services/configuration.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/services/translation.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/controllers/Pagination.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/controllers/MassActions.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/controllers/DataTables.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/controllers/Filters.js'
'@EnpAdminDataTableBundle/Resources/public/js/app/modules/DataTables/tables.js'
'@EnpContactCenterBundle/Resources/public/js/ticket/ticket.js'
'@EnpContactCenterBundle/Resources/public/js/ticket/ticketCategoryChange.js'
'@EnpAllegroOrderBundle/Resources/public/js/enp.order_commission.js'
'@EnpPromotionActionBundle/Resources/public/js/app/promotion-code.js'
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
{% include 'EnpOrderBundle::Order/editComments.html.twig' ignore missing %}
{% include 'EnpOrderBundle::Order/scriptExt.html.twig' ignore missing %}
<script>
Enp_ContactCenter.init();
var accordionIcons = {
header: "fa fa-plus",
activeHeader: "fa fa-minus"
};
$("#return-data-accordion").accordion({
autoHeight : false,
heightStyle : "content",
animate : 300,
icons: accordionIcons,
header : "h4"
});
$("#complaint-data-accordion").accordion({
autoHeight : false,
heightStyle : "content",
animate : 300,
icons: accordionIcons,
header : "h4"
});
</script>
{% endblock %}