Skip to content

Commit 2628e60

Browse files
author
Your Name
committed
Swap charges/payments rows and reduce PDF padding
1 parent f183876 commit 2628e60

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.29.9
1+
1.29.10

index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
9292
</main>
9393

9494
<div id="modalRoot"></div>
95-
<footer>New Serchhip North Village Council · v1.29.9</footer>
95+
<footer>New Serchhip North Village Council · v1.29.10</footer>
9696

9797
<script type="module">
9898
/* ============================================================
@@ -2850,33 +2850,33 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
28502850
doc.setTextColor(180, 40, 40);
28512851
doc.text(r.amount, rightX - amountW, y);
28522852

2853-
// Row 2: job card (left) and payment history (right)
2854-
y += nameLines.length * 4.5 + 1;
2853+
// Row 2: job card (left) and charges (right, red)
2854+
y += nameLines.length * 3.8 + 1;
28552855
doc.setFont(undefined, "normal");
28562856
doc.setTextColor(120, 120, 120);
28572857
doc.setFontSize(9);
28582858
doc.text(r.jobCard, margin, y);
28592859

2860-
if(r.payments){
2861-
const payMaxW = 70;
2862-
const payLines = doc.splitTextToSize(r.payments, payMaxW);
2863-
doc.setTextColor(26, 125, 66);
2864-
doc.text(payLines, rightX, y, { align: "right" });
2865-
}
2866-
2867-
// Row 3: charges (right, red)
28682860
if(r.charges){
2869-
y += 4.5;
28702861
const chargeMaxW = 70;
28712862
const chargeLines = doc.splitTextToSize(r.charges, chargeMaxW);
28722863
doc.setTextColor(180, 40, 40);
28732864
doc.text(chargeLines, rightX, y, { align: "right" });
28742865
}
28752866

2867+
// Row 3: payments (right, green)
2868+
if(r.payments){
2869+
y += 3.8;
2870+
const payMaxW = 70;
2871+
const payLines = doc.splitTextToSize(r.payments, payMaxW);
2872+
doc.setTextColor(26, 125, 66);
2873+
doc.text(payLines, rightX, y, { align: "right" });
2874+
}
2875+
28762876
doc.setFontSize(11);
2877-
y += 6;
2877+
y += 4;
28782878
doc.line(margin, y, pageW - margin, y);
2879-
y += 8;
2879+
y += 6;
28802880
}
28812881

28822882
doc.save(`owing_${todayISO()}.pdf`);

0 commit comments

Comments
 (0)