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 Discount(%) Discount Total
% $ $
1): ?>
EMI Payment Plan
EMI No. EMI Date Payment Date EMI Amount Outstanding Status
$ $ Paid' : 'Pending' ?>
Additional Payment Details:
0) { ?>
Payment Amount Payment Date Payment Source Transaction ID Remarks

Admin Note:

Invoice Generate Date: