number; $company = $document->getCompany(); $address = $company->getAddress(); $address_lines = explode("\n", (string) $address); $aru = $document->getRelatedDocument(); $goods_in_documents = $aru->getGoodsInDocuments(); $sale_orders = $aru->getSalesOrders(); $charges = "0.00"; foreach($sale_orders as $sale_order) { $charges = bcadd($charges, $sale_order->getSubtotal(), 2); } $formatter = new NumberFormatter("en_GB", NumberFormatter::CURRENCY); $render_card = static function(string $title, ?string $content): void { $content = trim($content) ? htmlspecialchars($content) : " "; ?>
<?=htmlspecialchars($core->getSiteName())?>
Advance Replacement Unit
Logo
ARU DN
No.
Company, Name and Address
getBillingAddressHtml()?>
Cost / Charge of Repairs
formatCurrency($charges, $aru->currency))?>
Deliver To
getDeliveryAddressHtml()?>
Delivery Cost
formatCurrency($document->delivery_cost, $aru->currency))?>

IMPORTANT INFORMATION ON RETURNS OF ARUs
ON LOAN FOR A MAXIMUM OF 14 DAYS

The FAULTY UNIT must be returned to us (if the item has been tampered warranty will be void and the full charge may be applied) at the address below within 14 days by Recorded Delivery Carriage / Insurance to be pre-paid. (WARNING) If not received back within 14 days you will be invoiced at the FULL COST and ADVANCE REPLACEMENT UNIT FACILITIES will be WITHDRAWN for any future requirements.

Failure to return the faulty part(s) within 28 days will incur a 20% HANDLING CHARGE
AFTER 60 DAYS NO CREDIT WILL BE ISSUED

contact_name); ?>
date)->format("d/m/Y")); ?>
Contact Details
contact_phone) { ?>
contact_phone)?>
contact_email) { ?>
contact_email)?>
contact_phone && !$document->contact_email) { ?>  
po_number); ?>
Help Us To Help Yourselves
Please return the Faulty Unit with a DUPLICATE COPY of the ARU Delivery Note, completing details of the fault - i.e. what the fault is; not needed; incorrect, to the address below.
getItems() as $item) { ?>
Requested Items Serial Numbers Insurance Value
description)?> getSerialNumberHtml()?> formatCurrency($item->insurance_value, $aru->currency))?>
The goods should be examined immediately on arrival and any apparent damage, shortage or misdescription notified at once to us, quoting this ARU DN number within 3 days.
Description of Fault / Additional Comments
TO BE COMPLETED BY CUSTOMER
getNotesHtml()?>
Items must be returned to the address below:
name)?>,
Tel: phone)?> Email: email)?>
Received Goods-In
No Goods-Ins
GIN number?> getDisplayDate())?>
Sales Orders
No Sales Orders
INV number?> getDisplayDate())?> formatCurrency($sale_order->getSubtotal(), $aru->currency))?>
ARU Parts
getItems(); if(!$aru_items) { ?> No Items
  • description)?> × quantity?> serial_number) { ?> (S/N: getSerialNumberHtml()?>)