Jump to content

Waybill - cash on delivery


Recommended Posts

Hello,

Does anyone know the way I can modify the PDF bill of lading template so that I can display the amount of the amount to be collected at the courier? or what amount remained to be paid in the case of an incomplete list of payments?
 

<table id="payment-tab" width="100%" cellpadding="4" cellspacing="0">
	<tr>
		<td class="payment center small grey bold" width="44%">{l s='Payment Method' d='Shop.Pdf' pdf='true'}</td>
		<td class="payment left white" width="56%">
			<table width="100%" border="0">
				{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
					<tr>
						<td class="right small">{$payment->payment_method}</td>
						<td class="right small">{displayPrice currency=$payment->id_currency price=$payment->amount}</td>
					</tr>
				{foreachelse}
					<tr>
						<td>{l s='No payment' d='Shop.Pdf' pdf='true'}</td>
					</tr>
				{/foreach}
			</table>
		</td>
	</tr>
</table>

The problem is that the current fragment prints a list of payments that have been made, but in a situation where no payment is made, I get information about the lack of payment, and I would like to display in the absence of payment the amount to be paid by the courier or the final amount of the order I tried to pat my invoices, but it did not work out.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...