{% extends 'base.html' %} {% load static %} {% load crispy_forms_tags %} {% block title %}Blend Detail | IQBlending{% endblock %} {% block content %}

BLENDING PLATFORM

Blend Details


{% if d1 %}

BLEND DETAILS

BLEND NUMBER : {{ d.blend_number }}   {% if d.result == 'PASS' %}{{d.result}}{% elif d.result == 'FAIL' %}{{d.result}}{% endif %} {% if d.status == 'APPROVED' %} & APPROVED{% endif %}
PRODUCT : {{ d.product }}
TANK NUMBER : {{ d.tank_number }}
DATE BLENDING STARTED : {{ d.date_blending_started }}
DATE BLENDING ENDED : {{ d.date_blending_ended }}
VOLUME : {{ d.volume_in_ltr }} Litres
STATUS : {{ d.status }}
DESPATCH REPORT DISPUTE {% if tasting %}{% else %} ADD TASTING {% endif %}

WORKFLOW

BLENDING INSPECTOR : {{ d.blending_inspector }}

RECORDED BY : {{d.formatted_username}} at {{d.datetime}}

BMO COMMENT : {{ d.comment }}

{% if d.is_checked %}

CHECKED BY CBMO : {{ d.formatted_checked_by }} at {{d.checked_by_date}}

CBMO COMMENT : {{ d.checked_comment }}

{% endif %} {% if d.is_approved %}

APPROVED BY : {{ d.formatted_approved_by }} at {{d.approval_date}}

APPROVER COMMENT : {{ d.approver_comment }}

{% endif %}
{% if d.status == "BLENDED" %} {% if 'user_can_unit_head_check_blend' in user_data.permissions or user_data.role == 'SUPERADMIN' or user_data.role == 'ADMIN' %} {% else %}

Awaiting CBMO Comfirmation

Loading...
{% endif %} {% elif d.status == "CHECKED" %} {% if 'user_can_approve_blend' in user_data.permissions or user_data.role == 'SUPERADMIN' or user_data.role == 'MANAGER-ADMIN' %} {% else %}

Awaiting Approval

Loading...
{% endif %} {% else %}
{% if d.result == 'PASS' %}{{d.result}}{% elif d.result == 'FAIL' %}{{d.result}}{% endif %} {% if d.status == 'APPROVED' %} & APPROVED{% endif %}
{% endif %}

ALCOHOL

ALCOHOL STRENGTH : {{ d.alcohol_strength }} %

ALCOHOL SOURCE : {{ d.alcohol_source }}

ALCOHOL TASTING SCORE : {{ d.alcohol_tasting_score }}


DEMIN WATER

DEMIN WATER PLANT : {{ d.demin_water_plant }}

DEMIN WATER DATE REGENERATED : {{ d.demin_water_date_generated }}

DEMIN WATER PH : {{ d.demin_water_ph }}

DEMIN WATER CONDUCTIVITY (µS) : {{ d.demin_water_conductivity }}

DEMIN WATER CHLORINE (ppm) : {{ d.demin_water_chlorine }}

DEMIN WATER IRON (Fe3+ ppm) : {{ d.demin_water_iron }}

DEMIN WATER CALCIUM (Ca+ mg/L) : {{ d.demin_water_calcium }}

DEMIN WATER CAUSTIC CODE : {{ d.demin_water_caustic_code }}

DEMIN WATER HCL CODE : {{ d.demin_water_hcl_code }}


SUGAR SYRUP

SUGAR BRIX : {{ d.sugar_brix }}

SUGAR PH : {{ d.sugar_ph }}

SUGAR CONDUCTIVITY (µS) : {{ d.sugar_conductivity }}

SUGAR TEMPERATURE (oC) : {{ d.sugar_temperature }}

SUGAR PASS OR FAIL : {{ d.sugar_pass_or_fail }}


PRODUCT

PRODUCT ALCOHOLIC STRENGTH : {{ d.product_alcoholic_strength }} %

PRODUCT COLOR (%T) : {{ d.product_color }}

PRODUCT PH : {{ d.product_ph }}

PRODUCT CONDUCTIVITY (µS) : {{ d.product_conductivity }}

PRODUCT TASTING RESULT : {{ d.product_tasting_result }}

PRODUCT BRIX (o) : {{ d.product_brix }}

RESULT : {{ d.result }}

STATUS : {{ d.status }}

HYGIENE : {{ d.hygiene }}

COMMENT : {{ d.comment }}

FORMS IMAGES UPLOADED : {{ d.forms_images_uploaded }}



{% endif %}
{% if disputes|length > 0 %}
DISPUTES
    {% for d in disputes %}
  1. {{d.dispute|upper}}

    Created by {{d.created_by}} at {{d.datetime_created}}

    {% if d.status == 'OPEN' %}CLOSE{% else %}STATUS : {{d.status}}{% endif %}

  2. {% endfor %}

{% else %}
NO DISPUTES FOUND

{% endif %}
{% if d2 %}
INGREDIENTS
{% for r in d2 %} {% endfor %}
INGREDIENT QUANTITY SUPPLIER CODE SUPPLY DATE RECORDED BY DATE RECORDED
{{ forloop.counter }} {{r.ingredient}} {{r.quantity}} {{r.supplier}} {{r.ingredient_code}} {{r.date_of_supply}} {{r.formatted_username}} {{r.datetime}}

{% else %}
No Ingredients have been added to this Blend
{% endif %} {% if tasting %}

TRIANGLE TEST SUMMARYTASTER{% if tasting_form and user_data.role != 'USER' %}{% endif %}

TRIANGULATION DATE : {{tasting.triangulation_date}}

TRIANGULATION CODE : {{tasting.triangulation_code}}

SINGLE SAMPLE : {{tasting.single_sample}}

RESULT : {{tasting.result}}

SIGNIFICANCE : {% if tasting.significant %}SIGNIFICANT{% else %}NOT SIGNIFICANT{% endif %}

    {% for t in tasting.tasters %}
  1. {{ t.taster }} : {{t.score}}
  2. {% endfor %}
{% endif %} {% if d.status == 'BLENDED' %}
{% csrf_token %}
CBMO CHECK FORM


{% endif %} {% if d.status == 'CHECKED' %}
{% csrf_token %}
BLEND BOTTLED FORM


{% endif %} {% if d.status == 'CHECKED' %}
{% csrf_token %}

QAM APPROVAL FORM



QAM APPROVAL
{% endif %}
{% if d.status != 'BLENDED' %} {% if user_data.role == 'SUPERADMIN' or user_data.role == 'ADMIN' %} ADD INGREDIENT {% endif %} {% else %} ADD INGREDIENT UPDATE {% endif %} {% if d.status != 'BOTTLED' %} JOIN BLEND {% endif %} {% if user_data.role == 'SUPERADMIN' or user_data.role == 'ADMIN' %} {% if d.status == 'BLENDED' %} {% endif %} {% if d.status == 'CHECKED' %} UPDATE {% endif %} {% endif %} {% if user_data.role == 'SUPERADMIN' or user_data.role == 'MANAGER-ADMIN' %} {% if d.status == 'CHECKED' %} {% endif %} {% endif %}

{% endblock %}