Invoice print table value not showing or captured in sales invoice and in print format

Hi we have Item Manufacturer as compulsory field and invoice print format customised as well but it used to earlier getting captured item manufacturer in print as well in sales invoice format but for last we days its not getting captured not in print its appearing it is showing blank field.
sample html code for your ref.

{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%} {% if letter_head and not no_letterhead %}
{{ letter_head }}
{% endif %} {%- if doc.meta.is_submittable and doc.docstatus==2-%}

{{ _("CANCELLED") }}

{%- endif -%} {% if max_pages > 1 %}

{{ _("Page #{0} of {1}").format(page_num, max_pages) }}

{% endif %} {%- endmacro -%} {{ add_header(0,1,doc,letter_head, no_letterhead) }}

{{ doc.company }}
{{ doc.company_address_display }}

GST INVOICE
{% if doc.invoice_copy -%} {{ doc.invoice_copy }} {% endif -%}

{{ doc.customer_name }}
{{ doc.address_display }}

Order {{ doc.po_no or '' }}
Order Date {{ doc.po_date or '' }}
Transporter {{ doc.transporter_name or '' }}
Invoice# {% if doc.amended_from %} {{doc.name[:doc.name|length - 2]}} {% else %} {{doc.name}} {% endif %}
Invoice Date {{frappe.format(doc.posting_date, {'fieldtype': 'Date'})}}
Sales Man {%if not doc.internal_sales_team_med: %} - {%else%} {{doc.internal_sales_team_med[0].sales_person}}{%endif%}
Prescribing Doctor {%if not doc.prescribing_doctor_commission_med: %} - {%else%} {{doc.prescribing_doctor_commission_med[0].sales_partner}} {%endif%}
{%- for row in doc.items -%} {%- endfor -%}
Sr Description HSN MF Batch Exp Pack Qty MRP Rate GST% Amount
{{ row.idx }} {{ row.item_name or '' }} {{ row.gst_hsn_code or '' }} {{ row.item_manufacturer_med or ''}} {{ row.batch_no or ''}} {% if row.expiry_date_med %} {{frappe.utils.formatdate(row.expiry_date_med,"MM-YY")}} {% else %} {% endif %} {{ row.uom or ''}} {{ row.qty or '' }} {{ row.mrp_med or ''}} {{ row.rate or ''}} {% if row.item_tax_template %} {% if row.item_tax_template.split("GST")[1][0:3].endswith('%') %} {{row.item_tax_template.split("GST")[1][0:3]}} {% else %} {{row.item_tax_template.split("GST")[1][0:3] + '%' }} {% endif %} {% else %} {% endif %} {{ row.amount or ''}}
	<div class="print-footer">
    	<table class="tblth total-table" style="width:100%;">
        	<tr>
            	<td colspan="2" style="border: none !important;">
                	<table class="tblth total-table" style="width:100%;">
                        <tr>
                            <th style="width: 20%;">Total Quantity</th>
                            <td>{{ doc.total_qty or '' }}</td>
                        </tr>
                        <tr>
                            <th>Remarks</th>
                            <td>{{ doc.print_remarks_med  or '' }}</td>
                        </tr>
                        <tr>
                            <th>Terms and Conditions</th>
                            <td>{{ doc.terms or '' }}</td>
                            <tr>
                            <th>In Words </th>
                            <td colspan="2" style="text-align: left;">{{ doc.in_words }}</td>
                        </tr>
                        </tr>
                    </table>
                </td>
                <td style="width:28%;" rowspan="2">
                	<table class="tblth total-table" style="width:100%; ">
                        <tr>
                            <th>Total</th>
                            <td style="width: 12%; text-align: right;">{{ doc.net_total }}</td>
                        </tr>
                        <tr>
                            <th>Discount</th>
                            <td style="width: 12%; text-align: right;">{{ doc.discount_amount }}</td>
                        </tr>
                        {%- for row in doc.taxes -%} 
                        <tr> 
                            <th> {{ row.description }} </th>
                            <td style="width: 12%; text-align: right;"> {{ row.tax_amount }} </td>
                        </tr>
                        {%- endfor -%}	
                        <tr>
                            <th>Total  Tax </th>
                            <td style="width: 12%; text-align: right;">{{ doc.total_taxes_and_charges }}</td>
                        </tr>
                         <tr>
                            <th>Grand Total </th>
                            <td style="width: 12%; text-align: right;">{{ doc.grand_total }}</td>
                        </tr>
                         <tr>
                            <th>Rounded Total </th>
                            <td style="width: 12%; text-align: right;">{{ doc.rounded_total }}</td>
                        </tr>
                    </table>
                    <table class="tblth total-table" style="width:100%;">
                        <tr>
                           
                        </tr>
                    </table>
                </td>
            </tr>
        	<tr>
            	<td style="width:45%; border: none !important; " rowspan="2" > 
                	<table class="tblth" style="width:100%; margin-top:12px">
                        <tr>
                            <th style="border: none !important;">HSN/GST% wise breakup</th>
                        </tr>
                        <tr>
                            <td style="border: none !important;">{{ doc.gst_rate_wise_calculation_med or doc.other_charges_calculation }}</td>
                        </tr>
                      
                    </table>
                </td>
                <td style="width:30%; border: none !important; height:80px " > </td>
             </tr>
             <tr>   
                <td colspan="2" style="text-align:right; border: none !important; vertical-align: bottom !important;">
                	 <table class="tblth " style="display:inline-block; width: 100%;">
						 <tbody style="display:inline;">
								<tr>
									
									<th style=" border-bottom:none !important; width:40%;">
									    <th style="height:80px; left; width:85%;">
											<strong>For <span style="display: inline-block;"> {{doc.company}} </span> </strong>
									</th>
								</tr>
								<tr>
								    <th style="height:80px; right; width:25%;">Checked By</th>
									<th style="height:80px;centre; width: 60%;">Packed By</th>
								    <th style="height:80px;left; width: 100%;"> Authorized Signatory
											<br>E&O.E.</br>
													</th>
									
									 <th style="vertical-align: bottom !important; border-top: none !important;">
										
									</th>
								</tr>
							 </tbody>
                    </table>    
                </td>
            </tr>
        </table>
    	
        
    </div>
</section>
</footer>

Reported here Invoice Print format - Manufacturer name not appearing · Issue #21140 · frappe/erpnext · GitHub