{% extends "merchant_base.html" %} {% load static %} {% load crispy_forms_tags %} {% load widget_tweaks %} {% block title %} Development Preview And Finalize {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if all_item_is_costed or style.mode_of_price == "CMPTW" or style.mode_of_price == "CM" %}
{% csrf_token %}
{% if style.is_cost_submit_status == 'Not Submit' %}
{% if style.costing_rejection_comment %}

Comment: {{ style.costing_rejection_comment }}

{% endif %}
{{form.is_cost_submit_status|as_crispy_field}}
{% elif style.is_cost_submit_status == 'Rejected' or style.is_cost_submit_status == 'Approved' %}
{% if style.costing_rejection_comment %}

Comment: {{ style.costing_rejection_comment }}

{% endif %} {% if temp_obj != 'Approved' %} {% if request.user.is_superuser == True or request.user.marchant_user_type == 'merchant_team_admin' or request.user.marchant_user_type == 'merchant_sister_admin' or request.user.marchant_user_type == 'merchant_mother_admin'%}
{{form.is_cost_submit_status|as_crispy_field}}
{% endif %} {% endif %}
{% endif %}
{% endif %}
{% csrf_token %}
Style Number - {{style.style_number}} ---{{style.is_cost_submit_status}}
Fabrics $ {{fabric_description.total_fabric_cost|floatformat:3}}
Accessories $ {{fabric_description.grand_total_accessory_cost|floatformat:3}}
Washing $ {{fabric_description.total_washing_cost|floatformat:3}}
Embroidery Cost $ {{embroidery_cost_list.embroidery_cost|floatformat:3}}
Print Cost $ {{print_cost_list.print_cost|floatformat:3}}
CM $ {{fabric_description.total_cm_cost|floatformat:3}}
Commercial Cost $ {{fabric_description.commercial_cost|floatformat:3}}
Courier Cost $ {{fabric_description.courier_cost|floatformat:3}}
Test Cost $ {{fabric_description.test_cost|floatformat:3}}
{% if style.mode_of_price == "FOB" or style.mode_of_price == "CM" or style.mode_of_price == "CMPTW" or style.mode_of_price == "FOC" %} {% endif %} {% if style.mode_of_price == "CIF" %} {% endif %} {% if style.mode_of_price == "CNF" %} {% endif %}
Profit Margin $ {{fabric_description.profit_margin|floatformat:3}}
Agent Commission 1 $ {{fabric_description.agent_commision1|floatformat:3}}
Others $ {{fabric_description.others}}
Agent Commission 2 $ {{fabric_description.agent_commision2|floatformat:3}}
FOB $ {{fabric_description.fob|floatformat:8}}
CIF $ {{fabric_description.cif|floatformat:8}}
CNF $ {{fabric_description.cnf|floatformat:8}}
Landed Cost $ {{fabric_description.landed_cost|floatformat:8}}
Team {% if team %} {{team}} {% else %} N/A {% endif %}
Style Description
Style Number {{style.style_number}}
Inquiry Receive Date {{style.inquiry_recevie_date}}
Buyer {{style.buyer}}
Brand {% if style.brand %} {{style.brand}} {% else %} N/A {% endif %}
Style Description {{style.style_description}}
Approximate Quantity {{style.approx_quantity}}
Buyer target price {{style.buyer_target_price}}
Agent {% if style.agent %} {{style.agent}} {% else %} N/A {% endif %}
Season {{style.season}}
Ex Factory {% if style.ex_factory %} {{style.ex_factory}} {% else %} N/A {% endif %}
Original Sample Received Status {% if style.original_sample_recevied_status %} {{style.original_sample_recevied_status}} {% else %} N/A {% endif %}
{% if style.minimarker %} {% else %} {% endif %} {% if style.techpack %} {% else %} {% endif %} {% if style.consumption %} {% else %} {% endif %} {% if style.spec_sheet %} {% else %} {% endif %}
Beneficiary Factory {% if style.factory %} {{style.factory}} {% else %} N/A {% endif %}
MOQ {{style.moq}}
Production Factory {{style.production_factory}}
Folding Method {% if style.folding_method %} {{style.folding_method}} {% else %} N/A {% endif %}
Remarks {% if style.remarks %} {{style.remarks}} {% else %} N/A {% endif %}
Team {% if style.team %} {{style.team}} {% else %} N/A {% endif %}
Minimarker Download N/A
Techpack Download N/A
Consumption Download N/A
Spec Sheet Download N/A
{% if pending_fabric_cost %}
Pending Fabric Costing
{{fabric_cost_form_set.management_form}} {% for item1, item2 in before_fabric_costing %} {% for hidden in item2.hidden_fields %} {{ hidden }} {% endfor %} {% endfor %}
SL No Type Name Usages Unit Cost Per Unit Costing Unit
{{ forloop.counter }} {{item1.fabric_application}} {{item1.fabric.fabric_name}} {{item1.total_uses|floatformat:3}} {{item1.unit}}{{ item2.cost_per_unit }} {% render_field item2.fabric value=item1.id %} {{ item2.costing_unit }} {% render_field item2.accessory value=item1.id%}
{% endif %} {% if fabric_cost_list %}
Fabrics Costing
{% for fabric_cost in fabric_cost_list %} {% endfor %}
SL No Type Name Usages Unit Cost Per Unit Cost per gmt Action
{{ forloop.counter }} {{fabric_cost.fabric.fabric_application}} {{fabric_cost.fabric.fabric.fabric_name}} {{fabric_cost.fabric.total_uses|floatformat:3}} {{fabric_cost.fabric.unit}} {{fabric_cost.cost_per_unit|floatformat:3}} {{fabric_cost.total_cost|floatformat:3}}
    {% if style.is_cost_submit_status == "Not Submit" %}
  • {% else %}
  • {% endif %}
{% endif %} {% if pending_accessories_cost %}
Pending Accessories Costing
{{accessory_cost_form_set.management_form}} {% for item1, item2 in before_accessory_costing %} {% for hidden in item2.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% endfor %}
SL No Name Description Usage Unit Cost Per Unit Costing Unit
{{ forloop.counter }} {{item1.accesory.name}} {{item1.material_description}} {{item1.total_uses|floatformat:3}} {{item1.unit.name}}{{ item2.cost_per_unit }} {% render_field item2.accessory value=item1.id %} {{ item2.costing_unit }} {% render_field item2.accessory value=item1.id %} Fake
{% endif %} {% if accessory_cost_list %}
Accessory Costing
{% for item in accessory_cost_list %} {% endfor %}
SL No Name Description Usage Unit Cost Per Unit Cost per gmt Action
{{ forloop.counter }} {{item.accessory.accesory.name}} {{item.accessory.material_description}} {{item.accessory.total_uses|floatformat:3}} {{item.accessory.unit}} {{item.cost_per_unit|floatformat:3}} {{item.total_cost|floatformat:3}}
    {% if style.is_cost_submit_status == "Not Submit" %}
  • {% else %}
  • {% endif %}
{% endif %} {% if before_washing_cost_form %}
Washing Costing
{{before_washing_cost_form.process_cost|as_crispy_field}}
{{before_washing_cost_form.d_crinkle|as_crispy_field}}
{{before_washing_cost_form.over_dye|as_crispy_field}}
{{before_washing_cost_form.other|as_crispy_field}}
{{before_washing_cost_form.tagging|as_crispy_field}}
{{before_washing_cost_form.pp_spray|as_crispy_field}}
{{before_washing_cost_form.sand_blasting|as_crispy_field}}
{{before_washing_cost_form.destroy|as_crispy_field}}
{{before_washing_cost_form.whisker|as_crispy_field}}
{% endif %} {% if washing %}
Washing costing
{% if style.is_cost_submit_status == 'Not Submit' and style.mode_of_price != 'CMPTW' and style.mode_of_price != "CM" %} {% endif %}
Process Cost {{washing.process_cost|floatformat:3}}
3D Crinkle {{washing.d_crinkle|floatformat:3}}
Whisker {{washing.whisker|floatformat:3}}
Destroy {{washing.destroy|floatformat:3}}
Sand Blasting {{washing.sand_blasting|floatformat:3}}
PP Spray {{washing.pp_spray|floatformat:3}}
Tagging {{washing.tagging|floatformat:3}}
Other {{washing.other|floatformat:3}}
Over Dye {{washing.over_dye|floatformat:3}}
Cost per gmt {{washing.total_cost|floatformat:3}}
{% endif %} {% if before_embroidery_cost_form %}
Embroidery Costing
{{before_embroidery_cost_form.embroidery_cost|as_crispy_field}}
{% endif %} {% if embroidery_cost_list %}
Embroidery costing
{% if style.is_cost_submit_status == 'Not Submit' and style.mode_of_price != 'CMPTW' and style.mode_of_price != "CM" %}
{% endif %}
Embroidery Cost {{embroidery_cost_list.embroidery_cost|floatformat:3}}
{% endif %} {% if before_print_cost_form %}
Print Costing
{{before_print_cost_form.print_cost|as_crispy_field}}
{% endif %} {% if print_cost_list %}
Print costing
{% if style.is_cost_submit_status == 'Not Submit' and style.mode_of_price != 'CMPTW' and style.mode_of_price != "CM" %}
{% endif %}
Print Cost {{print_cost_list.print_cost|floatformat:3}}
{% endif %} {% if before_material_test_cost_form %}
Material Test Costing
{{before_material_test_cost_form.fabric_test_description|as_crispy_field}}
{{before_material_test_cost_form.fabric_test_cost|as_crispy_field}}
{{before_material_test_cost_form.trim_test_description|as_crispy_field}}
{{before_material_test_cost_form.trim_test_cost|as_crispy_field}}
{{before_material_test_cost_form.thread_test_description|as_crispy_field}}
{{before_material_test_cost_form.thread_test_cost|as_crispy_field}}
{{before_material_test_cost_form.wash_test_description|as_crispy_field}}
{{before_material_test_cost_form.wash_test_cost|as_crispy_field}}
{{before_material_test_cost_form.embroidery_test_description|as_crispy_field}}
{{before_material_test_cost_form.embroidery_test_cost|as_crispy_field}}
{{before_material_test_cost_form.print_test_description|as_crispy_field}}
{{before_material_test_cost_form.print_test_cost|as_crispy_field}}
{% endif %} {% if material_test_cost_list %}
Material Test costing
{% if style.is_cost_submit_status == 'Not Submit' and style.mode_of_price != 'CMPTW' and style.mode_of_price != "CM" %} {% endif %}
Fabric Test {{material_test_cost_list.fabric_test_description}}
Fabric Test Cost {{material_test_cost_list.fabric_test_cost|floatformat:3}}
Trim Test {{material_test_cost_list.trim_test_description}}
Trim Test Cost {{material_test_cost_list.trim_test_cost|floatformat:3}}
Thread Test {{material_test_cost_list.thread_test_description}}
Thread Test Cost {{material_test_cost_list.thread_test_cost|floatformat:3}}
Wash Test {{material_test_cost_list.wash_test_description}}
Wash Test Cost {{material_test_cost_list.wash_test_cost|floatformat:3}}
Embroidery Test {{material_test_cost_list.embroidery_test_description}}
Embroidery Test Cost {{material_test_cost_list.embroidery_test_cost|floatformat:3}}
Print Test {{material_test_cost_list.print_test_description}}
Print Test Cost {{material_test_cost_list.print_test_cost|floatformat:3}}
Total Cost Per Gmt ($) {{material_test_cost_list.total_cost_per_gmts|floatformat:3}}
{% endif %} {% if before_cm_cost_form %}
CM Costing
{{before_cm_cost_form.smv|as_crispy_field}}
{{before_cm_cost_form.efficiency|as_crispy_field}}
{{before_cm_cost_form.number_of_machine|as_crispy_field}}
{{before_cm_cost_form.target_production_per_minute|as_crispy_field}}
{{before_cm_cost_form.machine_cost_per_minute|as_crispy_field}}
{{before_cm_cost_form.man_power|as_crispy_field}}
{{before_cm_cost_form.others|as_crispy_field}}
{% endif %} {% if cm_cost %}
CM costing
{% if style.is_cost_submit_status == 'Not Submit' %} {% endif %}
SMV {{cm_cost.smv|floatformat:3}}
Efficiency {{cm_cost.efficiency|floatformat:3}}
Number Of Machine {{cm_cost.number_of_machine|floatformat:3}}
Man Power {{cm_cost.man_power|floatformat:3}}
Target Production Per Minute {{cm_cost.target_production_per_minute|floatformat:3}}
Machine Cost Per Minute {{cm_cost.machine_cost_per_minute|floatformat:3}}
Others Cost {{cm_cost.others|floatformat:3}}
Cost per gmt Per GMTS {{cm_cost.total_cost_per_gmts|floatformat:3}}
{% endif %} {% if before_commercial_cost_form %}
Commercial and Other Costing
{{ before_commercial_cost_form.agent_commision1|as_crispy_field }}
{{ before_commercial_cost_form.agent_commision2|as_crispy_field }}
{{ before_commercial_cost_form.commercial_cost|as_crispy_field }}
{{ before_commercial_cost_form.profit_margin|as_crispy_field }}
{{ before_commercial_cost_form.duty|as_crispy_field }}
{{ before_commercial_cost_form.freight|as_crispy_field }}
{{ before_commercial_cost_form.insurance|as_crispy_field }}
{{ before_commercial_cost_form.agent_commision1_is_percent|as_crispy_field }}
{{ before_commercial_cost_form.agent_commision2_is_percent|as_crispy_field }}
{{ before_commercial_cost_form.commercial_cost_is_percent|as_crispy_field }}
{{ before_commercial_cost_form.profit_margin_is_percent|as_crispy_field }}
{{ before_commercial_cost_form.duty_is_percent|as_crispy_field }}
{{ before_commercial_cost_form.remarks|as_crispy_field }}
{{ before_commercial_cost_form.courier_cost|as_crispy_field }}
{{ before_commercial_cost_form.others|as_crispy_field }}
{% endif %} {% if fabric_description.commercial_and_other_cost %}
Commercial and Other Costing
{% if style.is_cost_submit_status == 'Not Submit' %} {% endif %}
Agent Commision 1 $ {{ fabric_description.agent_commision1|floatformat:3 }}
Agent Commision 2 $ {{ fabric_description.agent_commision2|floatformat:3 }}
Commercial cost $ {{ fabric_description.commercial_cost|floatformat:3 }}
Profit margin $ {{ fabric_description.profit_margin|floatformat:3 }}
Freight $ {{ fabric_description.commercial_and_other_cost.freight|floatformat:3 }}
Insurance $ {{ fabric_description.commercial_and_other_cost.insurance|floatformat:3 }}
Duty $ {{ fabric_description.duty|floatformat:3 }}
Courier Cost $ {{ fabric_description.commercial_and_other_cost.courier_cost }}
Others $ {{ fabric_description.commercial_and_other_cost.others|floatformat:3 }}
Remarks {% if fabric_description.commercial_and_other_cost.remarks %} {{ fabric_description.commercial_and_other_cost.remarks }} {% else %} N/A {% endif %}
{% endif %} {% if style.is_cost_submit_status == 'Not Submit' %}
{% endif %}
{% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}