{"publisher":"WESWOO","id":"order-csv-three-amounts","scope":{"zh":"独立演练数据，商家原帖用于说明问题","en":"Independent illustrative records. The forum post supplies the question."},"inputs":{"units":"minor currency units","csv_fields":[6500,6500,6500],"payment_columns":["transaction_id","order","currency","kind","status","amount"],"payment_rows":[["C1","A","USD","capture","success",13500],["R1","A","USD","refund","success",6500],["R1","A","USD","refund","success",6500],["R2","A","USD","refund","failed",6500],["C1","B","CAD","sale","success",2000]]},"checks":[{"condition":"adding the three CSV display values","expected":19500,"observed":19500},{"condition":"without complete payment records","expected":null,"observed":null},{"condition":"captured less successful refunds and refund subtotal","expected":[7000,6500],"observed":[7000,6500]},{"condition":"second independent refund with same amount","expected":[500,13000],"observed":[500,13000]}]}