mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-05-19 08:48:48 +02:00
Add Electronics category and fix DEPOSITO shown as expense
All checks were successful
Deploy to VPS / deploy (push) Successful in 24s
All checks were successful
Deploy to VPS / deploy (push) Successful in 24s
DEPOSITO transactions (salaries) were displaying with negative sign and red styling. Flipped logic so only COMPRA is negative; DEPOSITO and DEVOLUCION both show as positive income. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ DEFAULT_CATEGORIES = [
|
|||||||
("Food & Delivery", "utensils", "uber eats,rappi,mcdonalds,subway,pizza,restaurant,soda,cafe,coyote ugly,el rodeo,steak house"),
|
("Food & Delivery", "utensils", "uber eats,rappi,mcdonalds,subway,pizza,restaurant,soda,cafe,coyote ugly,el rodeo,steak house"),
|
||||||
("Utilities", "zap", "c.n.f.l,cnfl,ice,aya,claro cr telecomunicaciones"),
|
("Utilities", "zap", "c.n.f.l,cnfl,ice,aya,claro cr telecomunicaciones"),
|
||||||
("Transportation", "car", "gasolina,gasolinera,uber rides,didi,parqueo,parking,peaje,estacion de servicio,estac.de serv"),
|
("Transportation", "car", "gasolina,gasolinera,uber rides,didi,parqueo,parking,peaje,estacion de servicio,estac.de serv"),
|
||||||
("Shopping", "shopping-bag", "amazon,ebay,ticotek,construplaza,epa,novex,novedades chayfer,total imports,tiendalaliga,gnc live well"),
|
("Shopping", "shopping-bag", "amazon,ebay,construplaza,epa,novex,novedades chayfer,total imports,tiendalaliga,gnc live well"),
|
||||||
("Entertainment", "film", "netflix,disney,cine,steam,playstation,blizzard,diablo"),
|
("Entertainment", "film", "netflix,disney,cine,steam,playstation,blizzard,diablo"),
|
||||||
("Health", "heart-pulse", "farmacia,hospital,clinica,laboratorio,optica,medicina regenerativa,neumi,doer fitness,kettlebell,lacrosse"),
|
("Health", "heart-pulse", "farmacia,hospital,clinica,laboratorio,optica,medicina regenerativa,neumi,doer fitness,kettlebell,lacrosse"),
|
||||||
("Education", "graduation-cap", "universidad,udemy,coursera,libro"),
|
("Education", "graduation-cap", "universidad,udemy,coursera,libro"),
|
||||||
@@ -27,6 +27,7 @@ DEFAULT_CATEGORIES = [
|
|||||||
("Telecom", "phone", "liberty,tigo,kolbi"),
|
("Telecom", "phone", "liberty,tigo,kolbi"),
|
||||||
("Parking & Fees", "circle-parking", "centro comercial curridabat,debito compass,cobro administr,compass"),
|
("Parking & Fees", "circle-parking", "centro comercial curridabat,debito compass,cobro administr,compass"),
|
||||||
("Auto", "car-front", "auto lavado,lavado"),
|
("Auto", "car-front", "auto lavado,lavado"),
|
||||||
|
("Electronics", "cpu", "extremetechcr,extreme tech,ticotek,ishop,gollo,radioshack"),
|
||||||
("Lab & Medical", "microscope", "laboratorio echandi"),
|
("Lab & Medical", "microscope", "laboratorio echandi"),
|
||||||
("Other", "tag", ""),
|
("Other", "tag", ""),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -43,15 +43,15 @@ export function getTransactionColumns({
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'w-6 h-6 rounded flex items-center justify-center shrink-0',
|
'w-6 h-6 rounded flex items-center justify-center shrink-0',
|
||||||
tx.transaction_type === 'DEVOLUCION'
|
tx.transaction_type === 'COMPRA'
|
||||||
? 'bg-primary/10 text-primary'
|
? 'bg-destructive/10 text-destructive'
|
||||||
: 'bg-destructive/10 text-destructive',
|
: 'bg-primary/10 text-primary',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{tx.transaction_type === 'DEVOLUCION' ? (
|
{tx.transaction_type === 'COMPRA' ? (
|
||||||
<TrendingUp className="w-3 h-3" />
|
|
||||||
) : (
|
|
||||||
<TrendingDown className="w-3 h-3" />
|
<TrendingDown className="w-3 h-3" />
|
||||||
|
) : (
|
||||||
|
<TrendingUp className="w-3 h-3" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<span className="truncate">{tx.merchant}</span>
|
<span className="truncate">{tx.merchant}</span>
|
||||||
@@ -90,10 +90,10 @@ export function getTransactionColumns({
|
|||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
'font-mono font-medium',
|
'font-mono font-medium',
|
||||||
tx.transaction_type === 'DEVOLUCION' && 'text-primary',
|
tx.transaction_type !== 'COMPRA' && 'text-primary',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{tx.transaction_type === 'DEVOLUCION' ? '+' : '-'}
|
{tx.transaction_type === 'COMPRA' ? '-' : '+'}
|
||||||
{formatAmount(tx.amount, tx.currency)}
|
{formatAmount(tx.amount, tx.currency)}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user