Open Smanmos opened 2 years ago
This is incorrect because addProduct
can indeed be used after the addJob
command is issued without a PRODUCT_INDEX. This is in accordance with the behaviour described in the UG (especially section outlined in red).
Here is an example
First if the command addJob d/Change CPU fee/$50 by/13/11/2021
is executed you should see (Note: the expected completion date had to be changed to 13/11/2021 from 10/11/2021 because expected completion date has to be on or after the received date. And if received date (which is an optional parameter in the command) is not provided, by default it is the date the job is being added on (also stated in the UG above). Remember to change the date accordingly based on when you decide to try this command. )
Next if you issue the command addContact n/Jack Ryan c/94678954 a/Blk 65 Tampines Ave 1 e/jryan@gmail.com
, you should see:
Lastly if you issue addProduct n/Asus DUAL-GTX1060-O6G t/GPU m/Asus d/DisplayPort, HDMI
, which is what this issue is talking about, you see that it is indeed executed successfully and both the product and the job have been added successfully.
Team chose [response.Rejected
]
Reason for disagreement: [replace this with your explanation]
Team chose [severity.Low
]
Originally [severity.Medium
]
Reason for disagreement: [replace this with your explanation]
addProduct is not allowed when performing addJob, contrary to the UG