feat: barcodes removal in deal document
This commit is contained in:
		@@ -157,27 +157,17 @@ table tfoot {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.barcode-container-table {
 | 
			
		||||
    margin: 10px 0 -15px -25px;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.barcode-container {
 | 
			
		||||
    margin: 15px 0 -5px 375px;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    justify-content: right;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.barcode {
 | 
			
		||||
    font-family: "Libre Barcode 128", cursive;
 | 
			
		||||
    font-size: 25pt;
 | 
			
		||||
    transform: scale(1, 1.5);
 | 
			
		||||
.barcode-text-bigger-part {
 | 
			
		||||
    font-size: medium;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.barcode-text {
 | 
			
		||||
    margin-top: -10px;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                                {% if common_product.size %}
 | 
			
		||||
                                    <div class="small-text">Размер: {{ common_product.size }}</div>
 | 
			
		||||
                                    <div class="small-text bold">Размер: {{ common_product.size }}</div>
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                                {% if common_deal_product.quantity %}
 | 
			
		||||
                                    <div class="small-text">Количество: {{ common_deal_product.quantity }}</div>
 | 
			
		||||
@@ -62,12 +62,12 @@
 | 
			
		||||
                <div style="text-align: right">
 | 
			
		||||
                    <div class="barcode-container">
 | 
			
		||||
                        {% if product_data.deal_products[0].product.barcodes|length > 0 %}
 | 
			
		||||
                            <div class="barcode">
 | 
			
		||||
                                {{ encode128(product_data.deal_products[0].product.barcodes[0].barcode, "A") }}
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <div class="barcode-text">
 | 
			
		||||
                                {{ product_data.deal_products[0].product.barcodes[0].barcode }}
 | 
			
		||||
                            </div>
 | 
			
		||||
                            {% with barcode=product_data.deal_products[0].product.barcodes[0].barcode %}
 | 
			
		||||
                                <p>
 | 
			
		||||
                                    ШК: {{ barcode[:-5] }}
 | 
			
		||||
                                    <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
			
		||||
                                </p>
 | 
			
		||||
                            {% endwith %}
 | 
			
		||||
                        {% else %}
 | 
			
		||||
                            <div style="margin-bottom: 40px"></div>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
@@ -125,18 +125,18 @@
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <div class="barcode-container-table">
 | 
			
		||||
                                {% if deal_product.product.barcodes|length > 0 %}
 | 
			
		||||
                                    <div class="barcode">
 | 
			
		||||
                                        {{ encode128(deal_product.product.barcodes[0].barcode, "A") }}
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="barcode-text">
 | 
			
		||||
                                        {{ deal_product.product.barcodes[0].barcode }}
 | 
			
		||||
                                    {% with barcode=deal_product.product.barcodes[0].barcode %}
 | 
			
		||||
                                        <div>
 | 
			
		||||
                                            {{ barcode[:-5] }}
 | 
			
		||||
                                            <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                    {% endwith %}
 | 
			
		||||
                                {% else %}
 | 
			
		||||
                                    <div style="margin-bottom: 40px"></div>
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
                        <td style="text-align: center">
 | 
			
		||||
                        <td class="bold" style="text-align: center">
 | 
			
		||||
                            {% if deal_product.product.size %}
 | 
			
		||||
                                {{ deal_product.product.size }}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user