fixed refunds button with the corrent total when using commas instead of decimals
This commit is contained in:
parent
01950bebdc
commit
aae1dbbe2e
|
@ -619,7 +619,9 @@ jQuery( function ( $ ) {
|
||||||
// Refund actions
|
// Refund actions
|
||||||
$( 'body' )
|
$( 'body' )
|
||||||
.on( 'change', '.wc-order-refund-items #refund_amount', function () {
|
.on( 'change', '.wc-order-refund-items #refund_amount', function () {
|
||||||
$( 'button .wc-order-refund-amount .amount' ).text( accounting.formatMoney( $( this ).val(), {
|
var total = accounting.unformat( $( this ).val(), woocommerce_admin.mon_decimal_point );
|
||||||
|
|
||||||
|
$( 'button .wc-order-refund-amount .amount' ).text( accounting.formatMoney( total, {
|
||||||
symbol: woocommerce_admin_meta_boxes.currency_format_symbol,
|
symbol: woocommerce_admin_meta_boxes.currency_format_symbol,
|
||||||
decimal: woocommerce_admin_meta_boxes.currency_format_decimal_sep,
|
decimal: woocommerce_admin_meta_boxes.currency_format_decimal_sep,
|
||||||
thousand: woocommerce_admin_meta_boxes.currency_format_thousand_sep,
|
thousand: woocommerce_admin_meta_boxes.currency_format_thousand_sep,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue