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:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user