Fix: Gewicht-Eintrag schlug fehl (bezeichnung Pflichtfeld + Komma-Dezimal)
- health.py: bezeichnung Optional statt required (Gewicht braucht keinen Titel) - _buildPayload: Komma → Punkt bei wert und kosten (deutsche Lokalisierung) - Gewicht-Einträge setzen automatisch bezeichnung = "9.9 kg" - SW-Cache → by-v10
This commit is contained in:
parent
75529cbdab
commit
1a5f1f7ee2
3 changed files with 7 additions and 4 deletions
|
|
@ -840,8 +840,11 @@ window.Page_health = (() => {
|
|||
schweregrad: fd.schweregrad || null,
|
||||
reaktion: fd.reaktion || null,
|
||||
};
|
||||
if (fd.wert) p.wert = parseFloat(fd.wert);
|
||||
if (fd.kosten) p.kosten = parseFloat(fd.kosten);
|
||||
if (fd.wert) {
|
||||
p.wert = parseFloat(fd.wert.replace(',', '.'));
|
||||
if (typ === 'gewicht') p.bezeichnung = `${p.wert} kg`;
|
||||
}
|
||||
if (fd.kosten) p.kosten = parseFloat(fd.kosten.toString().replace(',', '.'));
|
||||
if (fd.tierarzt_id) p.tierarzt_id = parseInt(fd.tierarzt_id);
|
||||
if (typ === 'medikament') {
|
||||
p.aktiv = 'aktiv' in fd ? 1 : 0;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v9';
|
||||
const CACHE_VERSION = 'by-v10';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
|
||||
// Diese Dateien werden beim Install gecacht (App Shell)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue