feat: return barcodes to a document
This commit is contained in:
		@@ -159,12 +159,25 @@ table tfoot {
 | 
				
			|||||||
.barcode-container-table {
 | 
					.barcode-container-table {
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    white-space: nowrap;
 | 
					    white-space: nowrap;
 | 
				
			||||||
 | 
					    flex-direction: column;
 | 
				
			||||||
 | 
					    margin-top: 5px;
 | 
				
			||||||
 | 
					    margin-bottom: -10px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.barcode-container {
 | 
					.barcode-container {
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    white-space: nowrap;
 | 
					    white-space: nowrap;
 | 
				
			||||||
    justify-content: right;
 | 
					    flex-direction: column;
 | 
				
			||||||
 | 
					    margin-top: 15px;
 | 
				
			||||||
 | 
					    margin-bottom: 0;
 | 
				
			||||||
 | 
					    text-align: center;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.barcode {
 | 
				
			||||||
 | 
					    font-family: "Libre Barcode 128", cursive;
 | 
				
			||||||
 | 
					    font-size: 25pt;
 | 
				
			||||||
 | 
					    transform: scale(1, 1.5);
 | 
				
			||||||
 | 
					    margin-bottom: -10px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.barcode-text-bigger-part {
 | 
					.barcode-text-bigger-part {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,14 +59,17 @@
 | 
				
			|||||||
            {% if product_data.deal_products|length > 1 %}
 | 
					            {% if product_data.deal_products|length > 1 %}
 | 
				
			||||||
                <div style="margin-bottom: 40px"></div>
 | 
					                <div style="margin-bottom: 40px"></div>
 | 
				
			||||||
            {% else %}
 | 
					            {% else %}
 | 
				
			||||||
                <div style="text-align: right">
 | 
					                <div style="display: flex; justify-content: right">
 | 
				
			||||||
                    <div class="barcode-container">
 | 
					                    <div class="barcode-container">
 | 
				
			||||||
                        {% if product_data.deal_products[0].product.barcodes|length > 0 %}
 | 
					                        {% if product_data.deal_products[0].product.barcodes|length > 0 %}
 | 
				
			||||||
                            {% with barcode=product_data.deal_products[0].product.barcodes[0].barcode %}
 | 
					                            {% with barcode=product_data.deal_products[0].product.barcodes[0].barcode %}
 | 
				
			||||||
                                <p>
 | 
					                                <div class="barcode">
 | 
				
			||||||
                                    ШК: {{ barcode[:-5] }}
 | 
					                                    {{ encode128(barcode, "A") }}
 | 
				
			||||||
 | 
					                                </div>
 | 
				
			||||||
 | 
					                                <span class="barcode-text">
 | 
				
			||||||
 | 
					                                    {{ barcode[:-5] }}
 | 
				
			||||||
                                    <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
					                                    <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
				
			||||||
                                </p>
 | 
					                                </span>
 | 
				
			||||||
                            {% endwith %}
 | 
					                            {% endwith %}
 | 
				
			||||||
                        {% else %}
 | 
					                        {% else %}
 | 
				
			||||||
                            <div style="margin-bottom: 40px"></div>
 | 
					                            <div style="margin-bottom: 40px"></div>
 | 
				
			||||||
@@ -126,6 +129,9 @@
 | 
				
			|||||||
                            <div class="barcode-container-table">
 | 
					                            <div class="barcode-container-table">
 | 
				
			||||||
                                {% if deal_product.product.barcodes|length > 0 %}
 | 
					                                {% if deal_product.product.barcodes|length > 0 %}
 | 
				
			||||||
                                    {% with barcode=deal_product.product.barcodes[0].barcode %}
 | 
					                                    {% with barcode=deal_product.product.barcodes[0].barcode %}
 | 
				
			||||||
 | 
					                                        <div class="barcode">
 | 
				
			||||||
 | 
					                                            {{ encode128(barcode, "A") }}
 | 
				
			||||||
 | 
					                                        </div>
 | 
				
			||||||
                                        <div>
 | 
					                                        <div>
 | 
				
			||||||
                                            {{ barcode[:-5] }}
 | 
					                                            {{ barcode[:-5] }}
 | 
				
			||||||
                                            <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
					                                            <span class="barcode-text-bigger-part bold">{{ barcode[-5:] }}</span>
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user