projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eliminate leading whitespace
[freeside.git]
/
httemplate
/
edit
/
elements
/
ApplicationCommon.html
diff --git
a/httemplate/edit/elements/ApplicationCommon.html
b/httemplate/edit/elements/ApplicationCommon.html
index
ba352fd
..
acc3368
100644
(file)
--- a/
httemplate/edit/elements/ApplicationCommon.html
+++ b/
httemplate/edit/elements/ApplicationCommon.html
@@
-54,7
+54,7
@@
Examples:
<TR>
<TD ALIGN="right">Date: </TD>
<TR>
<TD ALIGN="right">Date: </TD>
- <TD><B><% time2str(
"%D"
, $src->_date) %></B></TD>
+ <TD><B><% time2str(
$date_format
, $src->_date) %></B></TD>
</TR>
<TR>
</TR>
<TR>
@@
-105,7
+105,7
@@
function changed(what) {
if ( dst == '' ) {
what.form.submit.disabled=true;
if ( dst == '' ) {
what.form.submit.disabled=true;
-%if ($src_pkey eq 'crednum') {
+%if ($
use_sub_dst_thing && $
src_pkey eq 'crednum') {
what.form.tax_button.disabled=true;
what.form.clear_button.disabled=true;
%}
what.form.tax_button.disabled=true;
what.form.clear_button.disabled=true;
%}
@@
-113,7
+113,7
@@
function changed(what) {
}
what.form.submit.disabled=false;
}
what.form.submit.disabled=false;
-%if ($src_pkey eq 'crednum') {
+%if ($
use_sub_dst_thing && $
src_pkey eq 'crednum') {
what.form.tax_button.disabled=false;
what.form.clear_button.disabled=false;
%}
what.form.tax_button.disabled=false;
what.form.clear_button.disabled=false;
%}
@@
-354,7
+354,7
@@
function src_amount_changed () {
<OPTION VALUE="">Select <% $dst_thing %>
% foreach my $dst ( @dst ) {
<OPTION VALUE="">Select <% $dst_thing %>
% foreach my $dst ( @dst ) {
- <OPTION<% $dst->$dst_pkey eq $dst_pkeyvalue ? ' SELECTED' : '' %> VALUE="<% $dst->$dst_pkey %>">#<% $dst->$dst_pkey %> - <% time2str(
"%D"
, $dst->_date) %> - $<% $dst->$dst_unapplied %>
+ <OPTION<% $dst->$dst_pkey eq $dst_pkeyvalue ? ' SELECTED' : '' %> VALUE="<% $dst->$dst_pkey %>">#<% $dst->$dst_pkey %> - <% time2str(
$date_format
, $dst->_date) %> - $<% $dst->$dst_unapplied %>
% }
</SELECT>
% }
</SELECT>
@@
-399,7
+399,8
@@
function myOnLoadFunction () {
my %opt = @_;
my $conf = new FS::Conf;
my %opt = @_;
my $conf = new FS::Conf;
-my $money_char = $conf->config('money_char') || '$';
+my $money_char = $conf->config('money_char') || '$';
+my $date_format = $conf->config('date_format') || '%m/%d/%Y';
my $src_thing = ucfirst($opt{'src_thing'});
my $src_table = $opt{'src_table'};
my $src_thing = ucfirst($opt{'src_thing'});
my $src_table = $opt{'src_table'};
@@
-440,8
+441,6
@@
if ( $cgi->param('error') ) {
$dst_pkeyvalue = '';
}
$dst_pkeyvalue = '';
}
-my $otaker = getotaker;
-
my $p1 = popurl(1);
my $src = qsearchs($src_table, { $src_pkey => $src_pkeyvalue } );
my $p1 = popurl(1);
my $src = qsearchs($src_table, { $src_pkey => $src_pkeyvalue } );