Update EIB merchant mappings/template and payslip tool styling
New merchant_lookup.csv entries and template updates from ongoing EIB tool usage; payslip gets select-field styling, a removed footer, and the default company name switched to Planeterra Foundation. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HToTtpxzoxeugsa1Ve61gn
This commit is contained in:
parent
6d0e07ae78
commit
fc9d8f816d
Binary file not shown.
|
|
@ -53,3 +53,121 @@ EMIRATES LEISURE RETAI,EMIRATES LEISURE RETAI
|
||||||
MUGG AND BEAN ROSEBANK,MUGG AND BEAN ROSEBANK
|
MUGG AND BEAN ROSEBANK,MUGG AND BEAN ROSEBANK
|
||||||
WWW.GRAB.COM,Grab
|
WWW.GRAB.COM,Grab
|
||||||
Uber,Uber
|
Uber,Uber
|
||||||
|
TRIP.COM,Trip.COM
|
||||||
|
Aegean Airlines,Aegean Airlines
|
||||||
|
Trip.com,Trip.com
|
||||||
|
CHUBB SAMAGGI INSURANC,CHUBB SAMAGGI INSURANC
|
||||||
|
DEAN 12 SVB-SAT1,DEAN 12 SVB-SAT1
|
||||||
|
NIZA NITA,NIZA NITA
|
||||||
|
M9 KIRIROM MART,M9 KIRIROM MART
|
||||||
|
Tribe Express,Tribe Express
|
||||||
|
Don Vino,Don Vino
|
||||||
|
Romduol Khmer Restaurant,Romduol Khmer Restaurant
|
||||||
|
Sombok Restaurant,Sombok Restaurant
|
||||||
|
Wat Chocolate Riversid,Wat Chocolate Riversid
|
||||||
|
DLC*DIDI (INTERNACIONA,DIDI INTERNACIONAL
|
||||||
|
DLC*UBER RIDES,UBER RIDES
|
||||||
|
KRAVANH RESTAURANT 1,KRAVANH RESTAURANT 1
|
||||||
|
DFI LUCKY SORYA,DFI LUCKY SORYA
|
||||||
|
TEMPO,TEMPO
|
||||||
|
MALIS RESTAURANT PP1,MALIS RESTAURANT PP1
|
||||||
|
AVECIM,AVECIM
|
||||||
|
H-ELARTE MIRAFLORES,H-ELARTE MIRAFLORES
|
||||||
|
REST MANGOS CAFE,REST MANGOS CAFE
|
||||||
|
Ibis Hotels,Ibis Hotels
|
||||||
|
SELVATIKA COMIDA AMAZO,SELVATIKA COMIDA AMAZO
|
||||||
|
IZI*AMARU COMIDA CRIOL,IZI AMARU COMIDA CRIOL
|
||||||
|
NASHMY S,NASHMY S
|
||||||
|
VEM*TIO CUCHO,VEMTIO CUCHO
|
||||||
|
7MAKARA BBQ 1,7MAKARA BBQ 1
|
||||||
|
Angkor Market Damnak 2,Angkor Market Damnak 2
|
||||||
|
CORPORACION SALTAO,CORPORACION SALTAO
|
||||||
|
PUCUSANA,PUCUSANA
|
||||||
|
Grab* A-9ORLBEXGWGDEAV,Grab
|
||||||
|
Grab* A-9ORN8NCWWAAFAV,Grab
|
||||||
|
7 SOPAS KENNEDY,7 SOPAS KENNEDY
|
||||||
|
SPOONS Café Restaurant,SPOONS Cafe Restaurant
|
||||||
|
NEW HOPE RESTAURANT,NEW HOPE RESTAURANT
|
||||||
|
ANGKOR MARKET 2,ANGKOR MARKET 2
|
||||||
|
CEVICHERIA PURO MAR,CEVICHERIA PURO MAR
|
||||||
|
IZI*COUNTDOWN PERU,IZI COUNTDOWN PERU
|
||||||
|
MOLLYS IRISH BAR,MOLLYS IRISH BAR
|
||||||
|
MARUM RESTAURANT,MARUM RESTAURANT
|
||||||
|
BO003 ARMENDARIZ,BO003 ARMENDARIZ
|
||||||
|
IZI*TIENDECITA BLANCA,IZI TIENDECITA BLANCA
|
||||||
|
DLC*UBER*RIDES,UBER
|
||||||
|
UE *COSTA RICA,UE COSTA RICA
|
||||||
|
Printify,Printify
|
||||||
|
Kgp Travelzeed,Kgp Travelzeed
|
||||||
|
Centrum O.p.r. Ewa Do,Centrum O.p.r. Ewa Do
|
||||||
|
Lotus Blanc Resort,Lotus Blanc Resort
|
||||||
|
Brown R Siem Reap,Brown R Siem Reap
|
||||||
|
Vodafone,Vodafone
|
||||||
|
Udemy,Udemy
|
||||||
|
Anthropic Claude Subscription,Anthropic
|
||||||
|
Anthropic,Anthropic
|
||||||
|
International Medical Group,International Medical Group
|
||||||
|
Supersim,Supersim
|
||||||
|
Faturamati Payrota T,Faturamati Payrota T
|
||||||
|
Zachos Estiash,Zachos Estiash
|
||||||
|
Manos Magoulis,Manos Magoulis
|
||||||
|
Daskalaki Iwanna,Daskalaki Iwanna
|
||||||
|
Sofas,Sofas
|
||||||
|
Taxi,Taxi
|
||||||
|
Kidonias Michail,Kidonias Michail
|
||||||
|
Mt Cozy Corner,Mt Cozy Corner
|
||||||
|
Proud Mary,Proud Mary
|
||||||
|
Taxi Services,Taxi Services
|
||||||
|
Olympic Catering,Olympic Catering
|
||||||
|
Sipay Elek Sitaxi,Sipay Elek Sitaxi
|
||||||
|
Airlink,Airlink
|
||||||
|
NightsBridge,NightsBridge
|
||||||
|
Vilakazi African H - Ikhokha,Vilakazi African H - Ikhokha
|
||||||
|
Chicken Licken,Chicken Licken
|
||||||
|
Interglobe Aviation Lt,Interglobe Aviation Lt
|
||||||
|
Bench Warmers - Yoco,Bench Warmers - Yoco
|
||||||
|
Kotinos S A,Kotinos S A
|
||||||
|
Vomba Tours and Safari,Vomba Tours and Safari
|
||||||
|
Ste Hoteliere Oudaya,Ste Hoteliere Oudaya
|
||||||
|
Starbucks,Starbucks
|
||||||
|
Krishnarpan Hospitalit,Krishnarpan Hospitalit
|
||||||
|
The Other Space,The Other Space
|
||||||
|
Ralenale - Yoco,Ralenale - Yoco
|
||||||
|
Itc Fortune Park Pala,Itc Fortune Park Pala
|
||||||
|
Gloria Jean's Coffees,Gloria Jean's Coffees
|
||||||
|
Smart,Smart
|
||||||
|
Mugg & Bean,Mugg & Bean
|
||||||
|
Unlimited Shop,Unlimited Shop
|
||||||
|
The Tea Room Palampur,The Tea Room Palampur
|
||||||
|
KFC,KFC
|
||||||
|
Norling Restaurant,Norling Restaurant
|
||||||
|
TGI Fridays,TGI Fridays
|
||||||
|
Glovo,Glovo
|
||||||
|
Lotus Silk Farm,Lotus Silk Farm
|
||||||
|
Airalo,Airalo
|
||||||
|
Savidans the Local Sto,Savidans the Local Sto
|
||||||
|
Centrocopie E Servizi,Centrocopie E Servizi
|
||||||
|
Punto Perlage,Punto Perlage
|
||||||
|
T-Mobile,T-Mobile
|
||||||
|
Muc Airport Gastro,Muc Airport Gastro
|
||||||
|
Plato Hazyview - Yoco,Plato Hazyview - Yoco
|
||||||
|
Bolt,Bolt
|
||||||
|
Mart,Mart
|
||||||
|
Smr Khjol,Smr Khjol
|
||||||
|
Seorae Korean BBQ,Seorae Korean BBQ
|
||||||
|
126 Restaurant,126 Restaurant
|
||||||
|
Coffee Concepts Cambod,Coffee Concepts Cambodia
|
||||||
|
Coffee Plus Skun,Coffee Plus Skun
|
||||||
|
Top Pub T,Top Pub T
|
||||||
|
Angkor Market 2,Angkor Market
|
||||||
|
Pago Tiquete Bus Gp,Pago Tiquete Bus Gp
|
||||||
|
Temple Group,Temple Group
|
||||||
|
Phsar Khmer,Phsar Khmer
|
||||||
|
Le Blanc by Lotus,Le Blanc by Lotus
|
||||||
|
Banco de Costa Rica Centro Comercial Del Sur,Banco de Costa Rica Centro Comercial Del Sur
|
||||||
|
Angkor Enterprise,Angkor Enterprise
|
||||||
|
Angkor Enterprise Pavi,Angkor Enterprise Pavi
|
||||||
|
Norm In,Norm In
|
||||||
|
Spoons Cafe Restaurant,Spoons Cafe Restaurant
|
||||||
|
Aka,Aka
|
||||||
|
Restaurante El Gran P,Restaurante El Gran P
|
||||||
|
|
|
||||||
|
|
|
@ -145,13 +145,15 @@ main {
|
||||||
.field input[type="text"],
|
.field input[type="text"],
|
||||||
.field input[type="date"],
|
.field input[type="date"],
|
||||||
.field input[type="number"],
|
.field input[type="number"],
|
||||||
|
.field select,
|
||||||
.field textarea {
|
.field textarea {
|
||||||
width: 100%; background: var(--navy-4); border: 1px solid var(--border);
|
width: 100%; background: var(--navy-4); border: 1px solid var(--border);
|
||||||
border-radius: 6px; padding: 9px 11px; color: var(--w1);
|
border-radius: 6px; padding: 9px 11px; color: var(--w1);
|
||||||
font-family: var(--body); font-size: 13px; transition: border-color .15s;
|
font-family: var(--body); font-size: 13px; transition: border-color .15s;
|
||||||
}
|
}
|
||||||
.field textarea { resize: vertical; min-height: 52px; font-family: var(--body); }
|
.field textarea { resize: vertical; min-height: 52px; font-family: var(--body); }
|
||||||
.field input:focus, .field textarea:focus {
|
.field select { cursor: pointer; }
|
||||||
|
.field input:focus, .field select:focus, .field textarea:focus {
|
||||||
outline: none; border-color: var(--cyan); background: var(--cyan-glow);
|
outline: none; border-color: var(--cyan); background: var(--cyan-glow);
|
||||||
}
|
}
|
||||||
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||||
|
|
@ -259,7 +261,7 @@ main {
|
||||||
}
|
}
|
||||||
.ps-meta-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #eee; }
|
.ps-meta-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #eee; }
|
||||||
.ps-meta-item span:first-child { color: #666; }
|
.ps-meta-item span:first-child { color: #666; }
|
||||||
.ps-meta-item span:last-child { font-weight: 500; color: #111; }
|
.ps-meta-item span:last-child { font-weight: 500; color: #111; text-align: right; }
|
||||||
|
|
||||||
.ps-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
|
.ps-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
|
||||||
.ps-table-title {
|
.ps-table-title {
|
||||||
|
|
@ -289,11 +291,6 @@ main {
|
||||||
margin-top: 10px; font-size: 11px; color: #666; font-style: italic;
|
margin-top: 10px; font-size: 11px; color: #666; font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ps-footer {
|
|
||||||
margin-top: 28px; padding-top: 14px; border-top: 1px solid #eee;
|
|
||||||
font-size: 10px; color: #999; text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer.app-footer {
|
footer.app-footer {
|
||||||
position: relative; z-index: 1; text-align: center; padding: 24px;
|
position: relative; z-index: 1; text-align: center; padding: 24px;
|
||||||
font-size: 11px; color: var(--w3); border-top: 1px solid var(--border);
|
font-size: 11px; color: var(--w3); border-top: 1px solid var(--border);
|
||||||
|
|
@ -356,7 +353,7 @@ footer.app-footer a { color: var(--cyan); text-decoration: none; }
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Company name</label>
|
<label>Company name</label>
|
||||||
<input type="text" id="companyName" value="Undo Designs">
|
<input type="text" id="companyName" value="Planeterra Foundation">
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Company address</label>
|
<label>Company address</label>
|
||||||
|
|
@ -373,7 +370,7 @@ footer.app-footer a { color: var(--cyan); text-decoration: none; }
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Contractor ID</label>
|
<label>Contractor ID</label>
|
||||||
<input type="text" id="empId" value="EMP-0142">
|
<input type="text" id="empId" value="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field-row">
|
<div class="field-row">
|
||||||
|
|
@ -407,8 +404,13 @@ footer.app-footer a { color: var(--cyan); text-decoration: none; }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Currency symbol</label>
|
<label>Currency</label>
|
||||||
<input type="text" id="currency" value="$" maxlength="4" style="max-width:80px">
|
<select id="currency" style="max-width:160px">
|
||||||
|
<option value="USD">USD — US Dollar</option>
|
||||||
|
<option value="CAD">CAD — Canadian Dollar</option>
|
||||||
|
<option value="GBP">GBP — British Pound</option>
|
||||||
|
<option value="EUR">EUR — Euro</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -451,7 +453,7 @@ footer.app-footer a { color: var(--cyan); text-decoration: none; }
|
||||||
<div class="ps-company-block">
|
<div class="ps-company-block">
|
||||||
<img id="psLogo" class="ps-logo-img" style="display:none" alt="">
|
<img id="psLogo" class="ps-logo-img" style="display:none" alt="">
|
||||||
<div>
|
<div>
|
||||||
<div class="ps-company-name" id="psCompanyName">Undo Designs</div>
|
<div class="ps-company-name" id="psCompanyName">Planeterra</div>
|
||||||
<div class="ps-company-address" id="psCompanyAddress">19 Charlotte Street
|
<div class="ps-company-address" id="psCompanyAddress">19 Charlotte Street
|
||||||
Toronto, ON M5V 2H5</div>
|
Toronto, ON M5V 2H5</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -464,7 +466,7 @@ Toronto, ON M5V 2H5</div>
|
||||||
|
|
||||||
<div class="ps-meta-grid">
|
<div class="ps-meta-grid">
|
||||||
<div class="ps-meta-item"><span>Contractor name</span><span id="psEmpName">Jordan Rivers</span></div>
|
<div class="ps-meta-item"><span>Contractor name</span><span id="psEmpName">Jordan Rivers</span></div>
|
||||||
<div class="ps-meta-item"><span>Contractor ID</span><span id="psEmpId">EMP-0142</span></div>
|
<div class="ps-meta-item"><span>Contractor ID</span><span id="psEmpId"></span></div>
|
||||||
<div class="ps-meta-item"><span>Designation</span><span id="psEmpTitle">Software Engineer</span></div>
|
<div class="ps-meta-item"><span>Designation</span><span id="psEmpTitle">Software Engineer</span></div>
|
||||||
<div class="ps-meta-item"><span>Department</span><span id="psEmpDept">Engineering</span></div>
|
<div class="ps-meta-item"><span>Department</span><span id="psEmpDept">Engineering</span></div>
|
||||||
<div class="ps-meta-item"><span>Pay date</span><span id="psPayDate">—</span></div>
|
<div class="ps-meta-item"><span>Pay date</span><span id="psPayDate">—</span></div>
|
||||||
|
|
@ -491,7 +493,6 @@ Toronto, ON M5V 2H5</div>
|
||||||
<div class="ps-words" id="psWords">Zero only</div>
|
<div class="ps-words" id="psWords">Zero only</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ps-footer">This payslip is computer-generated and does not require a signature.</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
@ -549,7 +550,6 @@ function numberToWords(num) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatWords(num) {
|
function formatWords(num) {
|
||||||
const cur = $('currency').value.trim() || '$';
|
|
||||||
const intPart = Math.floor(Math.abs(num));
|
const intPart = Math.floor(Math.abs(num));
|
||||||
const cents = Math.round((Math.abs(num) - intPart) * 100);
|
const cents = Math.round((Math.abs(num) - intPart) * 100);
|
||||||
let words = numberToWords(intPart);
|
let words = numberToWords(intPart);
|
||||||
|
|
@ -561,7 +561,7 @@ function formatWords(num) {
|
||||||
|
|
||||||
// ── Formatting ──────────────────────────────────────────────────────────────
|
// ── Formatting ──────────────────────────────────────────────────────────────
|
||||||
function fmt(n) {
|
function fmt(n) {
|
||||||
const cur = $('currency').value.trim() || '$';
|
const cur = $('currency').value.trim() || 'USD';
|
||||||
return cur + ' ' + (n || 0).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
return cur + ' ' + (n || 0).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -722,7 +722,7 @@ $('resetBtn').addEventListener('click', () => {
|
||||||
if (!confirm('Clear all fields and start over?')) return;
|
if (!confirm('Clear all fields and start over?')) return;
|
||||||
['companyName','companyAddress','empName','empId','empTitle','empDept','payPeriod',
|
['companyName','companyAddress','empName','empId','empTitle','empDept','payPeriod',
|
||||||
'bankName','bankAcct'].forEach(id => $(id).value = '');
|
'bankName','bankAcct'].forEach(id => $(id).value = '');
|
||||||
$('currency').value = '$';
|
$('currency').value = 'USD';
|
||||||
$('payDate').value = '';
|
$('payDate').value = '';
|
||||||
earnings = [{ desc: '', amount: 0 }];
|
earnings = [{ desc: '', amount: 0 }];
|
||||||
deductions = [{ desc: '', amount: 0 }];
|
deductions = [{ desc: '', amount: 0 }];
|
||||||
|
|
@ -766,7 +766,7 @@ function loadDraft() {
|
||||||
$('payDate').value = d.payDate ?? '';
|
$('payDate').value = d.payDate ?? '';
|
||||||
$('bankName').value = d.bankName ?? '';
|
$('bankName').value = d.bankName ?? '';
|
||||||
$('bankAcct').value = d.bankAcct ?? '';
|
$('bankAcct').value = d.bankAcct ?? '';
|
||||||
$('currency').value = d.currency ?? '$';
|
$('currency').value = d.currency ?? 'USD';
|
||||||
if (Array.isArray(d.earnings) && d.earnings.length) earnings = d.earnings;
|
if (Array.isArray(d.earnings) && d.earnings.length) earnings = d.earnings;
|
||||||
if (Array.isArray(d.deductions) && d.deductions.length) deductions = d.deductions;
|
if (Array.isArray(d.deductions) && d.deductions.length) deductions = d.deductions;
|
||||||
if (d.logoDataUrl) {
|
if (d.logoDataUrl) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue