fix(web): local default dates, styled selects and currency on the new capture screens
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:
1 parent
6468811955
commit
c239c1a866
3 files changed
+13
-9
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user