pass currency flag with voids and refunds too, for Canadian Moneris, RT#18684
authorIvan Kohler <ivan@freeside.biz>
Sat, 20 Oct 2012 10:31:00 +0000 (03:31 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sat, 20 Oct 2012 10:31:00 +0000 (03:31 -0700)
FS/FS/cust_main/Billing_Realtime.pm

index f9f90a7..ad2bdf9 100644 (file)
@@ -1444,6 +1444,10 @@ sub realtime_refund_bop {
     if length($auth); #echeck/ACH transactions have an order # but no auth
                       #(at least with authorize.net)
 
+  my $currency =    $conf->exists('business-onlinepayment-currency')
+                 && $conf->config('business-onlinepayment-currency');
+  $content{currency} = $currency if $currency;
+
   my $disable_void_after;
   if ($conf->exists('disable_void_after')
       && $conf->config('disable_void_after') =~ /^(\d+)$/) {