feat: podpora ručního generování QR kódů pro platby
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
2026-02-20 14:17:39 +01:00
parent a849f4e922
commit cc98c2be0d
15 changed files with 935 additions and 7 deletions

View File

@@ -277,6 +277,7 @@ export async function finishPizzaDelivery(login: string, bankAccount?: string, b
date: today,
creator: login,
totalPrice: order.totalPrice,
purpose: message,
});
}
}
@@ -356,7 +357,7 @@ function getPendingQrKey(login: string): string {
/**
* Přidá nevyřízený QR kód pro uživatele.
*/
async function addPendingQr(login: string, pendingQr: PendingQr): Promise<void> {
export async function addPendingQr(login: string, pendingQr: PendingQr): Promise<void> {
const key = getPendingQrKey(login);
const existing = await storage.getData<PendingQr[]>(key) ?? [];
// Nepřidáváme duplicity pro stejný den