fix(web): local default dates, styled selects and currency on the new capture screens
Build and Push Images / Build jorgecuadros-web (push) Successful in 2m6s
Build and Push Images / Build jorgecuadros-api (push) Successful in 2m16s

Found driving /clientes/alta and /efectivo in the browser: the default date
was UTC's (tomorrow, every evening), selects lacked the input style, the
service rows stretched one input per line, and the printed receipt showed a
bare $ with no currency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rmancinasandClaude Opus 5.5 committed 2026-10-12 19:30:37 -07:00
1 parent 6468811955
commit c239c1a866
3 files changed
+13 -9

No files matched your search

+3 -2
View File
@@ -27,7 +27,8 @@ export default function EfectivoPage() {
);
}
const today = () => new Date().toISOString().slice(0, 10);
// The office's calendar day, not UTC's — in the evening UTC is already tomorrow.
const today = () => new Date().toLocaleDateString("en-CA");
function CashBook() {
const canCapture = useCan("ledger:create");
@@ -204,7 +205,7 @@ function ReceiptForm({ onIssued }: { onIssued: () => void }) {
</label>
<label className="field">
<span className="field-label">Moneda</span>
<select className="select" value={currency}
<select className="input select" value={currency}
onChange={(e) => setCurrency(e.target.value as Currency)}>
<option value="MXN">MXN</option>
<option value="USD">USD</option>