Let quick sale quantities be typed and specify quick sale production
Each line on the quick sale page gets a quantity field beside the minus and plus buttons: the typed quantity is saved on change or Enter, 0 removes the line and an invalid value keeps the old one with an error. The specification gets section 19.7 for phase 5: products with a production process are sold as orders that go to a machine's work list, are marked made at the machine (booking material and hours) and are then paid in cash or by card. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -44,9 +44,14 @@ it('adds products with their buttons and announces the sale', function () {
|
||||
->assertSee('Yhteensä 45,00')
|
||||
->assertSee('3 × 15,00')
|
||||
->assertNoAccessibilityIssues(level: 2)
|
||||
->fill('#quantity-'.$this->photos->id, '4')
|
||||
->keys('#quantity-'.$this->photos->id, 'Enter')
|
||||
->assertSee('4 × 15,00')
|
||||
->assertSee('Yhteensä 60,00')
|
||||
->assertNoAccessibilityIssues(level: 2)
|
||||
->click('Kirjaa myynti')
|
||||
->assertSee('kirjattu: 45,00')
|
||||
->assertSee('Tunneillesi kirjattiin 0,75 h.')
|
||||
->assertSee('kirjattu: 60,00')
|
||||
->assertSee('Tunneillesi kirjattiin 1 h.')
|
||||
->assertSee('Avaa kuitti')
|
||||
->assertNoAccessibilityIssues(level: 2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user