You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create service logic to autofill certain fields when creating a new item, specifically handling the autofill functionality for discounted price, discounted, and free issued fields.
Details
Discounted Price Autofill: When creating a new item, if the discounted percentage is provided, calculate and autofill the discounted price based on the selling price and discounted percentage.
Discounted Autofill: If a discounted percentage is provided, automatically set the discounted field to true; otherwise, set it to false.
Free Issued Autofill: If the discounted percentage is 100 (indicating a free item), set the free issued field to true; otherwise, set it to false.
Logic Steps
Listen for changes in the discounted percentage field.
If a discounted percentage is provided:
Calculate the discounted price based on the selling price and discounted percentage.
Set the discounted field to true.
If the discounted percentage is 100, set the free issued field to true; otherwise, set it to false.
Example
If the user enters a discounted percentage of 20%, the discounted price should be calculated and filled automatically. The discounted field should be set to true. If the discounted percentage is 100%, indicating a free item, the free issued field should also be set to true.
Acceptance Criteria
The discounted price field should be automatically filled when a discounted percentage is provided.
The discounted field should be set to true if a discounted percentage is provided.
The free issued field should be set to true if the discounted percentage is 100; otherwise, set it to false.
Notes
Ensure that the autofill logic is implemented securely to handle edge cases and validations appropriately.
Test the autofill functionality thoroughly to validate its accuracy and reliability.
The text was updated successfully, but these errors were encountered:
Issue Description
Objective
Create service logic to autofill certain fields when creating a new item, specifically handling the autofill functionality for discounted price, discounted, and free issued fields.
Details
Logic Steps
Example
If the user enters a discounted percentage of 20%, the discounted price should be calculated and filled automatically. The discounted field should be set to true. If the discounted percentage is 100%, indicating a free item, the free issued field should also be set to true.
Acceptance Criteria
Notes
The text was updated successfully, but these errors were encountered: