<commit_before><h2 class="text-center">{%= __(report.report_name) %}</h2>
<h4 class="text-center">{%= filters.customer || filters.supplier %} </h4>
<h5 class="text-center">
	{%= __(filters.ageing_based_on) %}
	{%= __("Until") %}
	{%= dateutil.str_to_user(filters.report_date) %}
</h5>
<hr>
<table class="table table-bordered">
	<thead>
		<tr>
			{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
				<th style="width: 14%">{%= __("Date") %}</th>
				<th style="width: 16%">{%= __("Ref") %}</th>
				<th style="width: 30%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
				<th style="width: 10%">{%= __("Invoiced Amount") %}</th>
				<th style="width: 10%">{%= __("Paid Amount") %}</th>
				<th style="width: 10%">{%= report.report_name === "Accounts Receivable" ? __('Credit Note') : __('Debit Note') %}</th>
				<th style="width: 10%">{%= __("Outstanding Amount") %}</th>
			{% } else { %}
				<th style="width: 40%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
				<th style="width: 15%">{%= __("Total Invoiced Amount") %}</th>
				<th style="width: 15%">{%= __("Total Paid Amount") %}</th>
				<th style="width: 15%">{%= report.report_name === "Accounts Receivable Summary" ? __('Credit Note Amount') : __('Debit Note Amount') %}</th>
				<th style="width: 15%">{%= __("Total Outstanding Amount") %}</th>
			{% } %}
		</tr>
	</thead>
	<tbody>
		{% for(var i=0, l=data.length; i<l; i++) { %}
			<tr>
			{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
				{% if(data[i][__("Customer")] || data[i][__("Supplier")]) { %}
					<td>{%= dateutil.str_to_user(data[i][__("Posting Date")]) %}</td>
					<td>{%= data[i][__("Voucher Type")] %}
						<br>{%= data[i][__("Voucher No")] %}</td>
					<td>
						{% if(!(filters.customer || filters.supplier)) { %}
							{%= data[i][__("Customer Name")] || data[i][__("Customer")] || data[i][__("Supplier Name")] || data[i][__("Supplier")] %}<br>{%= __("Remarks") %}: 
						{% } %}
						{%= data[i][__("Remarks")] %}
					</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">
						{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"])  %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
				{% } else { %}
					<td></td>
					<td></td>
					<td><b>{%= __("Total") %}</b></td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"] ) %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"])  : format_currency(data[i]["Debit Note"], data[i]["currency"])  %} </td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
				{% } %}
			{% } else { %}
				{% if(data[i][__("Customer")] || data[i][__("Supplier")]|| "&nbsp;") { %}
					{% if((data[i][__("Customer")] || data[i][__("Supplier")]) != __("'Total'")) { %}
						<td>
							{% if(!(filters.customer || filters.supplier)) { %}
								{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
								<br>{%= __("Remarks") %}: 
							{% } %}
							{%= data[i][__("Remarks")] %}
						</td>
					{% } else { %}
						<td><b>{%= __("Total") %}</b></td>
					{% } %}
					<td style="text-align: right">{%= format_currency(data[i][__("Total Invoiced Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= format_currency(data[i][__("Total Paid Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= report.report_name === "Accounts Receivable Summary" ? format_currency(data[i][__("Credit Note Amt")], data[i]["currency"]) : format_currency(data[i][__("Debit Note Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= format_currency(data[i][__("Total Outstanding Amt")], data[i]["currency"]) %}</td>
				{% } %}
			{% } %}
			</tr><commit_msg>Added party name in accounts receivable/payable report (#11656)<commit_after><h2 class="text-center">{%= __(report.report_name) %}</h2>
<h4 class="text-center">{%= filters.customer || filters.supplier %} </h4>
<h5 class="text-center">
	{%= __(filters.ageing_based_on) %}
	{%= __("Until") %}
	{%= dateutil.str_to_user(filters.report_date) %}
</h5>
<hr>
<table class="table table-bordered">
	<thead>
		<tr>
			{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
				<th style="width: 14%">{%= __("Date") %}</th>
				<th style="width: 16%">{%= __("Ref") %}</th>
				<th style="width: 30%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
				<th style="width: 10%">{%= __("Invoiced Amount") %}</th>
				<th style="width: 10%">{%= __("Paid Amount") %}</th>
				<th style="width: 10%">{%= report.report_name === "Accounts Receivable" ? __('Credit Note') : __('Debit Note') %}</th>
				<th style="width: 10%">{%= __("Outstanding Amount") %}</th>
			{% } else { %}
				<th style="width: 40%">{%= (filters.customer || filters.supplier) ? __("Remarks"): __("Party") %}</th>
				<th style="width: 15%">{%= __("Total Invoiced Amount") %}</th>
				<th style="width: 15%">{%= __("Total Paid Amount") %}</th>
				<th style="width: 15%">{%= report.report_name === "Accounts Receivable Summary" ? __('Credit Note Amount') : __('Debit Note Amount') %}</th>
				<th style="width: 15%">{%= __("Total Outstanding Amount") %}</th>
			{% } %}
		</tr>
	</thead>
	<tbody>
		{% for(var i=0, l=data.length; i<l; i++) { %}
			<tr>
			{% if(report.report_name === "Accounts Receivable" || report.report_name === "Accounts Payable") { %}
				{% if(data[i][__("Customer")] || data[i][__("Supplier")]) { %}
					<td>{%= dateutil.str_to_user(data[i][__("Posting Date")]) %}</td>
					<td>{%= data[i][__("Voucher Type")] %}
						<br>{%= data[i][__("Voucher No")] %}</td>
					<td>
						{% if(!(filters.customer || filters.supplier)) { %}
							{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
							{% if(data[i][__("Customer Name")] && data[i][__("Customer Name")] != data[i][__("Customer")]) { %}
								<br> {%= data[i][__("Customer Name")] %}
							{% } else if(data[i][__("Supplier Name")] != data[i][__("Supplier")]) { %}
								<br> {%= data[i][__("Supplier Name")] %}
							{% } %}
						{% } %}
						<br>{%= __("Remarks") %}:
						{%= data[i][__("Remarks")] %}
					</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">
						{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"]) : format_currency(data[i]["Debit Note"], data[i]["currency"])  %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
				{% } else { %}
					<td></td>
					<td></td>
					<td><b>{%= __("Total") %}</b></td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Invoiced Amount"], data[i]["currency"] ) %}</td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Paid Amount"], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= report.report_name === "Accounts Receivable" ? format_currency(data[i]["Credit Note"], data[i]["currency"])  : format_currency(data[i]["Debit Note"], data[i]["currency"])  %} </td>
					<td style="text-align: right">
						{%= format_currency(data[i]["Outstanding Amount"], data[i]["currency"]) %}</td>
				{% } %}
			{% } else { %}
				{% if(data[i][__("Customer")] || data[i][__("Supplier")]|| "&nbsp;") { %}
					{% if((data[i][__("Customer")] || data[i][__("Supplier")]) != __("'Total'")) { %}
						<td>
							{% if(!(filters.customer || filters.supplier)) { %}
								{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
								{% if(data[i][__("Customer Name")] && data[i][__("Customer Name")] != data[i][__("Customer")]) { %}
									<br> {%= data[i][__("Customer Name")] %}
								{% } else if(data[i][__("Supplier Name")] != data[i][__("Supplier")]) { %}
									<br> {%= data[i][__("Supplier Name")] %}
								{% } %} 
							{% } %}
							<br>{%= __("Remarks") %}:
							{%= data[i][__("Remarks")] %}
						</td>
					{% } else { %}
						<td><b>{%= __("Total") %}</b></td>
					{% } %}
					<td style="text-align: right">{%= format_currency(data[i][__("Total Invoiced Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= format_currency(data[i][__("Total Paid Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= report.report_name === "Accounts Receivable Summary" ? format_currency(data[i][__("Credit Note Amt")], data[i]["currency"]) : format_currency(data[i][__("Debit Note Amt")], data[i]["currency"]) %}</td>
					<td style="text-align: right">{%= format_currency(data[i][__("Total Outstanding Amt")], data[i]["currency"]) %}</td>
				{% } %}
			{% } %}
			</tr>
{'fraction_non_alphanumeric': 0.2824332712600869, 'fraction_numerical': 0.006931512518104697, 'mean_word_length': 4.256661228928766, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1219427', 'n_tokens_mistral': 4428, 'n_tokens_neox': 3540, 'n_words': 620}