{% extends "marchant_base.html" %} {% load static %} {% load widget_tweaks %} {% load crispy_forms_tags %} {% block title %} Budget Preview and Finalize {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if all_items_are_budgeted %}
{% csrf_token %}
{% if budget_name.is_cost_submit_status == 'Not Submit' %}
{% if budget_name.costing_rejection_comment %}

Comment: {{ budget_name.costing_rejection_comment }}

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

Comment: {{ budget_name.costing_rejection_comment }}

{% endif %} {% if request.user.is_superuser == True or request.user.marchant_user_type == 'admin'%}
{{formss.is_cost_submit_status|as_crispy_field}}
{% endif %}
{% endif %}
{% endif %}
Budget Name - {{budget_name}}
Fabrics $ {{grand_total_fabric_cost|floatformat:3}}
Trims $ {{grand_total_trims_cost|floatformat:3}}
Threads $ {{grand_total_thread_cost|floatformat:3}}
Washing $ {{washing_budget_total_cost|floatformat:3}}
Embroidery $ {{embroidery_budget_total_cost|floatformat:3}}
CM $ {{cm_budget_total_cost|floatformat:3}}
Agent Commission 1 $ {{grand_style_wise_agent1_cost|floatformat:3}}
Agent Commission 2 $ {{grand_style_wise_agent2_cost|floatformat:3}}
Commercial Cost $ {{grand_style_wise_commercial_cost|floatformat:3}}
Profit Margin $ {{grand_style_wise_profit_margin_cost|floatformat:3}} + ( {{temp_profit_margin_budget_cost|floatformat:3}})
Current Profit Margin $ {{new_profit_margin_budget_cost|floatformat:3}}
FOB $ {{grand_style_wise_fob_cost|floatformat:3}}
CIF $ {{cif|floatformat:3}}
CNF $ {{grand_style_wise_cnf_cost|floatformat:3}}
Landed Cost $ {{landed_cost|floatformat:3}}
Total Quantity {{lot_number_quantity}}
Team {% if style.team %} {{style.team}} {% else %} N/A {% endif %}
{% csrf_token %} {% if before_fabric_budget_list %}
Pending Fabric Budget Details
{{pending_fabric_material_formset.management_form}} {{pending_fabric_cost_formset.management_form}} {{supplier_formset.management_form}} {% for item in before_fabric_budget_list %} {% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.2.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.3.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.4.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% comment %} {% endcomment %} {% endfor %}
{{ item.0.style}} #{{ item.0.fabric.fabric.fabric_name }}
Style Number: {{ item.0.style}}
Fabric Name: {{ item.0.fabric.fabric.fabric_name }} Composition: {{ item.0.fabric.fabric.composition }}
Usage: {{ item.0.fabric.total_uses|floatformat:3 }} Unit: {{ item.0.fabric.unit.name }}
Unit Price: {{ item.0.cost_per_unit|floatformat:3 }} Cost per gmt: {{ item.0.total_cost|floatformat:3 }}
Consumption: {{ item.0.fabric.consumption|floatformat:3 }} Revised Consumption: {{ item.1.consumption }}
Wastage: {{ item.0.fabric.wastage|floatformat:3 }} Revised Wastage: {{ item.1.wastage }}
Mill: {% if item.0.fabric.mill_name %} {{ item.0.fabric.mill_name}} {% else %} N/A {% endif %} Supplier : {{ item.0.fabric.fabric.supplier }}Revised Mill {{ item.3.supplier }}
Negotiated Unit Price: {{ item3.cost_per_unit }}
{% endif %} {% if fabirc_budget_list %}
Fabric Budget Details
{% for fabric_budget in fabirc_budget_list %} {% comment %} {% endcomment %} {% endfor %}
SL Style Fabric Name Composition Supplier Total Uses Unit Revised Price Quantity Total Cost Action
{{forloop.counter}} {{fabric_budget.0}} {{ fabric_budget.1.fabric.fabric.fabric.fabric_name }} {{ fabric_budget.1.fabric.fabric.fabric.composition }} {{ fabric_budget.1.supplier }} {{ fabric_budget.1.negotiated_usage|floatformat:3 }} {{ fabric_budget.1.fabric.fabric.unit}} {{ fabric_budget.1.neotiated_price|floatformat:3}} {{ fabric_budget.2 }}{% widthratio fabric_budget.1.total_cost 1 fabric_budget.2 %}{{fabric_budget.3 |floatformat:3}}
{% endif %} {% if before_trim_budget_list %}
Pending Trim Budget Details
{{pending_trim_material_formset.management_form}} {{pending_trim_cost_formset.management_form}} {% for item in before_trim_budget_list %} {% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.2.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.3.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% comment %} {% endcomment %} {% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.2.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% endfor %}
{{ item.0.style}} # {{ item.0.trim.trim.name }}
Style Number: {{ item1.style}}
Trim Name: {{ item.0.trim.trim.name }} Description: {{ item.0.trim.description }}
Usage: {{ item.0.trim.total_uses|floatformat:3 }} Unit: {{ item.0.trim.unit.name }}
Unit Price: {{ item.0.cost_per_unit|floatformat:3 }} Cost per gmt: {{ item.0.total_cost }}
Consumption: {{ item.0.trim.consumption|floatformat:3 }} Revised Consumption: {{ item.1.consumption }}
Wastage: {{ item.0.trim.wastage|floatformat:3 }} Revised Wastage: {{ item.1.wastage }}
Negotiated Unit Price: {{ item3.cost_per_unit }}
Supplier: {% if item.0.trim.supplier %} {{ item.0.trim.supplier }} {% else %} N/A {% endif %} Revised Supplier: {{ item.1.supplier }}
Total Cost: Fake
{% endif %} {% if trims_budget_list %}
Trims Budget Details
{% for trim_budget in trims_budget_list %} {% comment %} {% endcomment %} {% endfor %}
SL Style Item Description Supplier Total Uses Unit Revised Price Quantity Total Cost Action
{{forloop.counter}} {{trim_budget.0}} {{ trim_budget.1.trim.trim.trim.name }} {{ trim_budget.1.trim.trim.description }} {{ trim_budget.1.supplier }} {{ trim_budget.1.negotiated_usage|floatformat:3 }} {{ trim_budget.1.trim.trim.unit}} {{ trim_budget.1.negotiated_price|floatformat:3}} {{ trim_budget.2 }} {{ trim_budget.3 |floatformat:3}}{% widthratio trim_budget.1.total_cost 1 trim_budget.2 %}
{% endif %} {% if before_thread_budget_list %}
Pending Thread Budget Details
{{pending_thread_material_formset.management_form}} {{pending_thread_cost_formset.management_form}} {% for item in before_thread_budget_list %} {% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %} {% for hidden in item.2.hidden_fields %} {{ hidden }} {% endfor %} {% comment %} {% endcomment %} {% endfor %}
{{ item.0.style }} {{ item.0.thread.thread.count }}
Thread Count: {{ item.0.thread.thread.count }} Description: {{ item.0.thread.thread.description }}
Usage: {{ item.0.thread.total_uses|floatformat:3 }} Unit: {{ item.0.thread.unit.name }}
Unit Price: {{ item.0.cost_per_unit|floatformat:3 }} Cost per gmt: {{ item.0.total_cost|floatformat:3 }}
Previous Consumption: {{ item.0.thread.consumption|floatformat:3 }} Revised Consumption: {{ item.1.consumption}}
Previous Wastage: {{ item.0.thread.wastage|floatformat:3 }} Revised Wastage: {{ item.1.wastage }}
Previous Supplier: {% if item.0.thread.supplier %} {{ item.0.thread.supplier }} {% else %} N/A {% endif %} Revised Supplier: {{ item.1.supplier }}
Previous Usage: {{ item.0.thread.total_uses|floatformat:3 }}
Negotiated Consumption: {{ item.1.consumption }} Negotiated Usage: Fake
Unit: {{ item1.thread.unit.name }} Previous Unit Price: {{ item.0.cost_per_unit|floatformat:3 }}
Negotiated Unit Price: {{ item.2.cost_per_unit }} Quantity: {{ lot_number_quantity }}
{% endif %} {% if thread_budget_list %}
Thread Budget Details
{% for thread_budget in thread_budget_list %} {% endfor %}
SL Style Count Description Supplier Total Uses Unit Revised Price Quantity Total Cost Action
{{forloop.counter}} {{thread_budget.0}} {{ thread_budget.1.thread.thread.thread.count }} {{ thread_budget.1.thread.thread.thread.description }} {{ thread_budget.1.supplier }} {{ thread_budget.1.negotiated_usage|floatformat:3 }} {{ thread_budget.1.thread.thread.unit}} {{ thread_budget.1.negotiated_price|floatformat:3}} {{ thread_budget.2 }} {{thread_budget.3|floatformat:3}}
{% endif %} {% if before_thread_budget_list or before_fabric_budget_list or before_trim_budget_list %}
{% endif %} {% if before_thread_budget_list or before_fabric_budget_list or before_trim_budget_list %}

Complete the Consumption Section

{%else%}
{% csrf_token %} {% if before_wash_budget_list %}
Pending Wash Budget Details
{{wash_budget_form.management_form}} {% for item in before_wash_budget_list %}
{% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %}
Wash Budget of {{ item.0.style.style_number }}
{{ item.1.process_cost|as_crispy_field }} {{ item.1.d_crinkle|as_crispy_field }}
{{ item.1.whisker|as_crispy_field }} {{ item.1.destroy|as_crispy_field }}
{{ item.1.sand_blasting|as_crispy_field }} {{ item.1.pp_spray|as_crispy_field }}
{{ item.1.tagging|as_crispy_field }} {{ item.1.other|as_crispy_field }}
{{ item.1.over_dye|as_crispy_field }}
{% endfor %}
{% endif %} {% if washing_budget_list %}
{% for item in washing_budget_list %}
Wash Budget Details of -- {{ item.0 }}
{% if budget_name.is_cost_submit_status == 'Not Submit' %} {% endif %}
Process Cost {{item.1.process_cost|floatformat:3}}
3D Crinkle {{item.1.d_crinkle|floatformat:3}}
Whisker {{item.1.whisker|floatformat:3}}
Destroy {{item.1.destroy|floatformat:3}}
Sand Blasting {{item.1.sand_blasting|floatformat:3}}
PP Spray {{item.1.pp_spray|floatformat:3}}
Tagging {{item.1.tagging|floatformat:3}}
Other {{item.1.other|floatformat:3}}
Over Dye {{item.1.over_dye|floatformat:3}}
Total Washing Cost {{item.1.total_cost|floatformat:3}}
{% endfor %}
{% endif %} {% if before_embroidery_budget_list %}
Pending Embroidery Budget Details
{{embroidery_budget_form.management_form}} {% for item in before_embroidery_budget_list %}
{% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %}
Embroidery Budget of {{ item.0.style.style_number }}
{{ item.1.embroidery_cost|as_crispy_field }}
{% endfor %}
{% endif %} {% if embroidery_budget_list %}
{% for item in embroidery_budget_list %}
Embroidery Budget Details of {{ item.0 }}
{% if budget_name.is_cost_submit_status == 'Not Submit' %} {% endif %}
Embroidery Cost {{item.1.embroidery_cost|floatformat:3}}
{% endfor %}
{% endif %} {% if before_cm_budget_list %}
Pending CM Budget Details
{{cm_budget_form.management_form}} {% for item in before_cm_budget_list %}
{% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %}
CM Budget of {{ item.0.style.style_number }}
{{ item.1.smv|as_crispy_field }} {{ item.1.efficiency|as_crispy_field }}
{{ item.1.number_of_machine|as_crispy_field }} {{ item.1.man_power|as_crispy_field }}
{{ item.1.target_production_per_minute|as_crispy_field }} {{ item.1.machine_cost_per_minute|as_crispy_field }}
{{ item.1.others|as_crispy_field }}
{% endfor %}
{% endif %} {% if cm_budget_list%}
{% for item in cm_budget_list %}
CM Budget Details of {{ item.0}} ID {{item.1}}
{% if budget_name.is_cost_submit_status == 'Not Submit' %} {% endif %}
SMV {{item.1.smv|floatformat:3}}
Efficiency {{item.1.efficiency|floatformat:3}}
Number of Machine {{item.1.number_of_machine|floatformat:3}}
Man Power {{item.1.man_power|floatformat:3}}
Target Production Per Minute {{item.1.target_production_per_minute|floatformat:3}}
Machine Cost Per Minute {{item.1.machine_cost_per_minute|floatformat:3}}
Others {{item.1.others|floatformat:3}}
Cost per gmt Per GMTS {{item.1.total_cost_per_gmts|floatformat:3}}
{% endfor %}
{% endif %} {% if before_commercial_budget_list %}
Pending Commercial and Others Budget Details
{{commercial_budget_form.management_form}} {% for item in before_commercial_budget_list %}
{% for hidden in item.1.hidden_fields %} {{ hidden }} {% endfor %}
Commercial Budget of {{ item.0.style.style_number }}
{{ item.1.agent_commision1|as_crispy_field }} {{ item.1.agent_commision1_is_percent|as_crispy_field }}
{{ item.1.agent_commision2|as_crispy_field }} {{ item.1.agent_commision2_is_percent|as_crispy_field }}
{{ item.1.commercial_cost|as_crispy_field }} {{ item.1.commercial_cost_is_percent|as_crispy_field }}
{{ item.1.profit_margin|as_crispy_field }} {{ item.1.profit_margin_is_percent|as_crispy_field }}
{{ item.1.freight|as_crispy_field }} {{ item.1.insurance|as_crispy_field }}
{{ item.1.duty|as_crispy_field }} {{ item.1.duty_is_percent|as_crispy_field }}
{{ item.1.remarks|as_crispy_field }} {{ item.1.others|as_crispy_field }}
{% endfor %}
{% endif %} {% if commercial_budget_list %}
{% for item in commercial_budget_list %}
Commercial Budget Details of {{ item.0}} {{item.1}}
{% if budget_name.is_cost_submit_status == 'Not Submit' %} {% endif %}
Agent Commision 1 $ {{item.1.agent_commision1|floatformat:3 }} {% if item.agent_commision1_is_percent == True %} % {% else %}   {% endif %}
Agent Commision 2 $ {{ item.1.agent_commision2 |floatformat:3 }}{% if item.agent_commision2_is_percent == True %} % {% else %}   {% endif %}
Commercial cost $ {{ item.1.commercial_cost|floatformat:3 }}{% if item.commercial_cost_is_percent == True %} % {% else %}   {% endif %}
Profit margin $ {{ item.1.profit_margin|floatformat:3 }}{% if item.profit_margin_is_percent == True %} % {% else %}   {% endif %}
Freight $ {{ item.1.freight|floatformat:3 }}
Insurance $ {{ item.1.insurance|floatformat:3 }}
Duty $ {{ item.1.duty|floatformat:3 }}{% if item.duty_is_percent == True %} % {% else %}   {% endif %}
Others $ {{ item.1.others|floatformat:3 }}
Remarks {{ item.1.remarks}}
{% endfor %}
{% endif %}
{% if all_items_are_budgeted == False %} {% comment %} tanmoy_bhai_4 {% endcomment %}
Fabric Budget Details
{% for fabric in fabric_costing_list %} {% endfor %}
SL Fabric Name Unit Revised Price Previous Costings
{{forloop.counter}} {{ fabric.0}} {% for costing in fabric.1 %} {{costing.style}} : ${{costing.cost_per_unit}}/{{costing.fabric.unit}}
{% endfor %}
{% comment %} tanmoy_bhai_4 {% endcomment %} {% comment %} tanmoy_bhai_4 {% endcomment %}
Trim Budget Details
{% for trim in trim_costing_list %} {% endfor %}
SL Trim Name Unit Revised Price Previous Costings
{{forloop.counter}} {{ trim.0}} {% for costing in trim.1 %} {{costing.style}} : ${{costing.cost_per_unit}}/{{costing.trim.unit}}
{% endfor %}
{% comment %} tanmoy_bhai_4 {% endcomment %} {% comment %} tanmoy_bhai_4 {% endcomment %}
Thread Budget Details
{% for thread in thread_costing_list %} {% endfor %}
SL Thread Name Unit Revised Price Previous Costings
{{forloop.counter}} {{ thread.0}} {% for costing in thread.1 %} {{costing.style}} : ${{costing.cost_per_unit}}/{{costing.thread.unit}}
{% endfor %}
{% endif %}
{% endif %} {% comment %} tanmoy_bhai_4 {% endcomment %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}