setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $db->prepare("SELECT * FROM invoice WHERE customerId = :customerId AND invoiceId = :invoiceId"); $stmt->bindParam(':customerId', $_GET['customerId']); $stmt->bindParam(':invoiceId', $_GET['invoiceId']); $stmt->execute(); $invoiceInfo = $stmt->fetch(PDO::FETCH_ASSOC); $emiPlans = []; if ($invoiceInfo['tenure'] > 1) { $stmt = $db->prepare("SELECT * FROM emi WHERE customerId = :customerId AND invoiceId = :invoiceId ORDER BY emiDate ASC"); $stmt->bindParam(':customerId', $_GET['customerId']); $stmt->bindParam(':invoiceId', $_GET['invoiceId']); $stmt->execute(); $emiPlans = $stmt->fetchAll(PDO::FETCH_ASSOC); } ?>

Invoice


Invoice ID:
Customer:

Address:

Invoice Date:
Payment Mode:

Agent:

Item Description Qty Rate Tax(%) Tax Total
% $ $
1): ?>

EMI Payment Plan

EMI No. EMI Date EMI Amount Outstanding Status
$ $ Paid' : 'Pending' ?>

Admin Note: