Conversation
|
✅ Valid PR for ActionPack Thank you for your contribution. This PR complies with the CONTRIBUTING.md. |
|
Thanks for your submission. It appears that this pull request contains more files than described in the title. Please review and update the pull request to either remove the extra/unintended files or to update the description to be more comprehensive. Ensure your contributions are meaningful and adhere to the project’s standards. [If applicable: You can create a new branch on your forked repository to avoid accidental inclusions of new commits in the future.]. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one. |
ravichandra1998g
left a comment
There was a problem hiding this comment.
Please remove the extra/unintended files.
Calculates a salesperson’s commission and total pay from their sales and commission rate.
Inputs:
salesAmount (Number) – Total sales made (e.g., 5000)
commissionRate (Number) – Commission percentage (e.g., 10 = 10%)
baseSalary (Number, optional) – Fixed base salary (default = 0)
Outputs:
commission – Amount earned from commission
totalPay – Base salary + commission
(Optional) error – Message if invalid inputs are detected