AI-assisted engineering/Review the AI's PR

Review PR #529: refund a typed amount in any currency

Review the AI's PRMedium30 min
Refund a typed amount in the order's currencyOpen

Support wants to type a refund as it appears on the receipt, so an assistant added a conversion to minor units. Three defects are planted in it.

AIOpened by the assistantrefunds.py

Your task

Review PR #529. Find the defects, place them on their lines, and rank them.

  • read pr.diff, then file one entry in FINDINGS for each defect you find
  • line is the line number in the NEW file, the numbers down the left of the diff
  • severity is one of blocker, major, minor
  • a finding filed against code this PR did not change is a false alarm

At submit, your findings are matched against the planted defects by file and line.