Update quantity field to show sum of all inventory types

- Remove "količina" from Refill, Vakuum, and Otvoreno labels
- Move Količina field to end of form as "Ukupna količina" (Total quantity)
- Make Količina field read-only and calculate sum of all inventory types
- Update form submission to calculate total quantity automatically
- Update tests to reflect new label changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: DaX <noreply@anthropic.com>
This commit is contained in:
DaX
2025-06-27 01:42:11 +02:00
parent fa59df4c3d
commit 06025623ff
2 changed files with 37 additions and 21 deletions

View File

@@ -29,9 +29,10 @@ describe('UI Features Tests', () => {
expect(adminContent).toMatch(/type="number"[\s\S]*?name="refill"/);
expect(adminContent).toMatch(/type="number"[\s\S]*?name="vakum"/);
expect(adminContent).toMatch(/type="number"[\s\S]*?name="otvoreno"/);
expect(adminContent).toContain('Refill količina');
expect(adminContent).toContain('Vakuum količina');
expect(adminContent).toContain('Otvoreno količina');
expect(adminContent).toContain('Refill');
expect(adminContent).toContain('Vakuum');
expect(adminContent).toContain('Otvoreno');
expect(adminContent).toContain('Ukupna količina');
});
it('should have number input for quantity', () => {