Skip to content

Commit b9c85f9

Browse files
committed
Clarify that refunds are split evenly between partial and full
1 parent 080ee99 commit b9c85f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Generate orders with a specific status.
3737
Apply coupons to a percentage of generated orders (0.0-1.0). If no coupons exist, 6 will be created automatically (3 fixed cart, 3 percentage).
3838
- `wp wc generate orders <nr of orders> --coupon-ratio=0.5`
3939

40-
Refund a percentage of completed orders (0.0-1.0). Refunds can be full or partial, and 25% of partial refunds will receive a second partial refund.
40+
Refund a percentage of completed orders (0.0-1.0). Refunds will be split evenly between partial and full, and 25% of partial refunds will receive a second partial refund.
4141
- `wp wc generate orders <nr of orders> --status=completed --refund-ratio=0.3`
4242

4343
#### Order Attribution

includes/Generator/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ protected static function create_refund( $order, $force_partial = false ) {
360360
$force_partial = true;
361361
}
362362

363-
// 50% chance of full refund, 50% chance of partial refund (unless forced)
363+
// Refunds will be split evenly between partial and full (unless forced)
364364
$is_full_refund = $force_partial ? false : (bool) wp_rand( 0, 1 );
365365

366366
$line_items = array();

0 commit comments

Comments
 (0)