{% extends "marchant_base.html" %} {% load static %} {% load crispy_forms_tags %} {% load widget_tweaks %} {% block title %} Preview And Finalize {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if all_item_is_costed %}
{% 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 request.user.is_superuser == True or request.user.marchant_user_type == 'admin'%}
{{form.is_cost_submit_status|as_crispy_field}}
{% endif %}
{% endif %}
{% endif %}
{% csrf_token %}
Style Number - {{style.style_number}}
Fabrics $ {{fabric_description.total_fabric_cost|floatformat:3}}
Trims $ {{fabric_description.total_trim_cost|floatformat:3}}
Threads $ {{fabric_description.total_thread_cost|floatformat:3}}
Washing $ {{fabric_description.total_washing_cost|floatformat:3}}
Embroidery Cost $ {{embroidery_cost_list.embroidery_cost|floatformat:3}}
CM $ {{fabric_description.total_cm_cost|floatformat:3}}
Commercial Cost $ {{fabric_description.commercial_cost|floatformat:3}}
Profit Margin $ {{fabric_description.profit_margin|floatformat:3}}
Agent Commission 1 $ {{fabric_description.agent_commision1|floatformat:3}}
Agent Commission 2 $ {{fabric_description.agent_commision2|floatformat:3}}
FOB $ {{fabric_description.fob|floatformat:3}}
CIF $ {{fabric_description.cif|floatformat:3}}
CNF $ {{fabric_description.cnf|floatformat:3}}
Landed Cost $ {{fabric_description.landed_cost|floatformat:3}}
Team {% if team %} {{team}} {% else %} N/A {% endif %}
Style Description
Style Number {{style.style_number}}
Style Description {{style.style_description}}
Create Date {{style.created_date}}
Season {{style.season}}
Brand {% if style.brand %} {{style.brand}} {% else %} N/A {% endif %}
Buyer {{style.buyer}}
Ex Factory Date {% if style.ex_factory %} {{style.ex_factory}} {% else %} N/A {% endif %}
Revised Date {% if style.revised_date %} {{style.revised_date}} {% else %} N/A {% endif %}
Vendor {% if style.vendor %} {{style.vendor}} {% else %} N/A {% endif %}
{% if style.consumption %} {% else %} {% endif %} {% if style.minimarker %} {% else %} {% endif %} {% if style.techpack%} {% else %} {% endif %}
Coo {{style.coo}}
Retail {% if style.vendor %} {{style.vendor}} {% else %} N/A {% endif %}
Remarks {% if style.remarks %} {{style.remarks}} {% else %} N/A {% endif %}
Agent {% if style.agent %} {{style.agent}} {% else %} N/A {% endif %}
Consumption Download N/A
Minimarker Download N/A
Techpack Download N/A
User Lock {% if style.is_user_lock %} {{style.is_user_lock}} {% else %} N/A {% endif %}
Production Factory {% if style.production_factory %} {{style.production_factory}} {% else %} N/A {% endif %}
Approximate Quantity {% if style.approx_quantity %} {{style.approx_quantity}} Gmts {% else %} N/A {% endif %}
{% 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 Uages Unit Cost Per Unit
{{ forloop.counter }} {{item1.fabric.fabric_type}} {{item1.fabric.fabric_name}} {{item1.total_uses|floatformat:3}} {{item1.unit}}{{ item2.cost_per_unit }} {% render_field item2.fabric value=item1.id %}
{% endif %} {% if fabric_cost_list %}
Fabrics Costing
{% for fabric_cost in fabric_cost_list %} {% endfor %}
SL No Type Name Uages Unit Cost Per Unit Cost per gmt Action
{{ forloop.counter }} {{fabric_cost.fabric.fabric.fabric_type}} {{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_trim_cost %}
Pending Trim Costing
{{trim_cost_form_set.management_form}} {% for item1, item2 in before_trim_costing %} {% for hidden in item2.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% endfor %}
SL No Name Description Uages Unit Cost Per Unit
{{ forloop.counter }} {{item1.trim.name}} {{item1.description}} {{item1.total_uses|floatformat:3}} {{item1.unit.name}}{{ item2.cost_per_unit }} {% render_field item2.trim value=item1.id %} Fake
{% endif %} {% if trim_cost_list %}
Trims Costing
{% for trim_cost in trim_cost_list %} {% endfor %}
SL No Name Description Uages Unit Cost Per Unit Cost per gmt Action
{{ forloop.counter }} {{trim_cost.trim.trim.name}} {{trim_cost.trim.trim.description}} {{trim_cost.trim.total_uses|floatformat:3}} {{trim_cost.trim.unit}} {{trim_cost.cost_per_unit|floatformat:3}} {{trim_cost.total_cost|floatformat:3}}
    {% if style.is_cost_submit_status == "Not Submit" %}
  • {% else %}
  • {% endif %}
{% endif %} {% if pending_thread_cost %}
Pending Thread Costing
{{thread_cost_form_set.management_form}} {% for item1, item2 in before_thread_costing %} {% for hidden in item2.hidden_fields %} {{ hidden }} {% endfor %} {% endfor %}
SL No Count Description Uages Unit Cost Per Unit
{{ forloop.counter }} {{item1.thread.count}} {{item1.thread.description}} {{item1.total_uses|floatformat:3}} {{item1.unit.name}}{{ item2.cost_per_unit }} {% render_field item2.thread value=item1.id %}
{% endif %} {% if thread_cost_list %}
Thread Costing
{% for thread_cost in thread_cost_list %} {% endfor %}
SL No Count Description Uages Unit Cost Per Unit Cost per gmt Action
{{ forloop.counter }} {{thread_cost.thread.thread.count}} {{thread_cost.thread.thread.description}} {{thread_cost.thread.total_uses|floatformat:3}} {{thread_cost.thread.unit}} {{thread_cost.cost_per_unit|floatformat:3}} {{thread_cost.total_cost|floatformat:3}}
    {% if style.is_cost_submit_status == "Not Submit" %}
  • {% else %}
  • {% endif %}
{% endif %} {% if before_washing_cost_form %}
Before 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' %} {% 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 %}
Before 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' %}
{% endif %}
Embroidery Cost {{embroidery_cost_list.embroidery_cost|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 %}
Before 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.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.commercial_and_other_cost.duty|floatformat:3 }}
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 %}
{% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}