Float management: bagged coins, history nav fix, change order sheet, upload 500 fix
- Fix history nav: type underscore → hyphen for route match - Change tin: Bags + Loose inputs per denomination with UK bag values - Change tin target: per-denomination bag count in Settings - Change order sheet: inline table showing bags to order vs counted - db: bag_quantity column on float_denominations - api.ts: put text fields before file in FormData so busboy doesn't drain file stream early - db.js: additive migration for uploaded_by column on cash_count_attachments Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d03371dca1
commit
5623f64732
6 changed files with 182 additions and 39 deletions
|
|
@ -28,9 +28,9 @@ export async function uploadAttachment(
|
|||
label?: string,
|
||||
) {
|
||||
const fd = new FormData()
|
||||
fd.append('file', file)
|
||||
fd.append('attachment_type', attachmentType)
|
||||
if (label) fd.append('label', label)
|
||||
fd.append('file', file)
|
||||
const res = await fetch(`${BASE}/attachments/upload/${cashUpId}`, {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue