Skip to content

Commit 6deef64

Browse files
authored
Merge branch 'develop' into add/payment-method-promotions
2 parents d0c743f + fd439a6 commit 6deef64

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: dev
3+
Comment: E2E test-only change, no production code affected.
4+
5+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Fix number format when converting order prices.

includes/multi-currency/Compatibility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function convert_order_prices( $results ) {
212212
}
213213

214214
$exchange_rate = $order->get_meta( '_wcpay_multi_currency_order_exchange_rate', true );
215-
$order->set_total( number_format( $order->get_total() * ( 1 / $exchange_rate ), wc_get_price_decimals() ) );
215+
$order->set_total( wc_format_decimal( $order->get_total() * ( 1 / $exchange_rate ), wc_get_price_decimals() ) );
216216
}
217217

218218
remove_filter( 'woocommerce_order_query', [ $this, 'convert_order_prices' ] );

tests/e2e/specs/wcpay/merchant/merchant-disputes-respond.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,6 @@ test.describe( 'Disputes > Respond to a dispute', () => {
643643
hasText: 'Evidence saved!',
644644
} )
645645
).toBeVisible( { timeout: 10000 } );
646-
647-
// Sanity-check the field didn't reset visually before leaving the page
648-
await expect(
649-
merchantPage.getByLabel( 'PRODUCT DESCRIPTION' )
650-
).toHaveValue( 'my product description' );
651646
} );
652647

653648
await test.step( 'Go back to the payment details page', async () => {

0 commit comments

Comments
 (0)