}
my( $apply, $ext ) = ( '', '', '', '' );
-my $credit = mt("Credit by [_1]", $cust_credit->otaker );
+my $credit = emt("Credit by [_1]", $cust_credit->otaker );
if ( scalar(@cust_credit_bill) == 0
&& scalar(@cust_credit_refund) == 0 ) {
#completely unapplied
$credit = '<B><FONT COLOR="#FF0000">'
- . mt("Unapplied Credit by [_1]", $cust_credit->otaker )
+ . emt("Unapplied Credit by [_1]", $cust_credit->otaker )
. '</FONT></B>';
if ( $curuser->access_right('Apply credit') ) {
if ( $cust_credit->cust_main->total_owed > 0 ) {
$apply = ' ('.
include( '/elements/popup_link.html',
- 'label' => mt('apply'),
+ 'label' => emt('apply'),
'action' => "${p}edit/cust_credit_bill.cgi?".
$cust_credit->crednum,
- 'actionlabel' => mt('Apply credit'),
+ 'actionlabel' => emt('Apply credit'),
%cust_credit_bill_width,
%cust_credit_bill_height,
).
if ( $cust_credit->cust_main->total_unapplied_refunds > 0 ) {
$apply.= ' ('.
include( '/elements/popup_link.html',
- 'label' => mt('apply to refund'),
+ 'label' => emt('apply to refund'),
'action' => "${p}edit/cust_credit_refund.cgi?".
$cust_credit->crednum,
- 'actionlabel' => mt('Apply credit to refund'),
+ 'actionlabel' => emt('Apply credit to refund'),
'width' => 392,
).
')';
&& scalar(@cust_credit_refund) == 1
&& $cust_credit->credited == 0 ) {
#applied to one refund
- $desc .= mt(" refunded on [_1]", time2str($date_format, $cust_credit_refund[0]->_date) );
+ $desc .= emt(" refunded on [_1]", time2str($date_format, $cust_credit_refund[0]->_date) );
} else {
#complicated
$desc .= '<BR>';
. $app->applied_to_invoice . '<BR>';
} elsif ( $app->isa('FS::cust_credit_refund') ) {
$desc .= ' ' .
- mt("[_1][_2] refunded on [_3]", $money_char, $app->amount,
+ emt("[_1][_2] refunded on [_3]", $money_char, $app->amount,
time2str($date_format, $app->_date) ) . '<BR>';
} else {
die "$app is not a FS::cust_credit_bill or a FS::cust_credit_refund";
}
if ( $cust_credit->credited > 0 ) {
$desc .= ' <B><FONT COLOR="#FF0000">' .
- mt("[_1][_2] unapplied", $money_char, $cust_credit->credited) .
+ emt("[_1][_2] unapplied", $money_char, $cust_credit->credited) .
'</FONT></B>';
if ( $curuser->access_right('Apply credit') ) {
if ( $cust_credit->cust_main->total_owed > 0 ) {
$apply = ' ('.
include( '/elements/popup_link.html',
- 'label' => mt('apply'),
+ 'label' => emt('apply'),
'action' => "${p}edit/cust_credit_bill.cgi?".
$cust_credit->crednum,
- 'actionlabel' => mt('Apply credit'),
+ 'actionlabel' => emt('Apply credit'),
%cust_credit_bill_width,
%cust_credit_bill_height,
).
if ( $cust_credit->cust_main->total_unapplied_refunds > 0 ) {
$apply.= ' ('.
include( '/elements/popup_link.html',
- 'label' => mt('apply to refund'),
+ 'label' => emt('apply to refund'),
'action' => "${p}edit/cust_credit_refund.cgi?".
$cust_credit->crednum,
- 'actionlabel' => mt('Apply credit to refund'),
+ 'actionlabel' => emt('Apply credit to refund'),
'width' => 392,
).
')';
#
my $delete = '';
$delete = areyousure_link("${p}misc/delete-cust_credit.cgi?".$cust_credit->crednum,
- mt('Are you sure you want to delete this credit?'),
+ emt('Are you sure you want to delete this credit?'),
'',
- mt('delete')
+ emt('delete')
)
if ( $cust_credit->closed !~ /^Y/i && $curuser->access_right('Delete credit') );
my $unapply = '';
$unapply = areyousure_link("${p}misc/unapply-cust_credit.cgi?".$cust_credit->crednum,
- mt('Are you sure you want to unapply this credit?'),
+ emt('Are you sure you want to unapply this credit?'),
'',
- mt('unapply')
+ emt('unapply')
)
if ( $cust_credit->closed !~ /^Y/i && scalar(@cust_credit_bill)
&& $curuser->access_right('Unapply credit') );