X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fdid_order_item.html;h=d1f90f33898c720d2e75fa5ed28aee285dfba4fd;hp=00668f94f1abdd188472f96bacbaf30b49942655;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/httemplate/elements/did_order_item.html b/httemplate/elements/did_order_item.html index 00668f94f..d1f90f338 100644 --- a/httemplate/elements/did_order_item.html +++ b/httemplate/elements/did_order_item.html @@ -14,6 +14,7 @@ SIZE = "3" VALUE = "<% scalar($cgi->param($name."_quantity")) || $value |h %>" + <% $onchange %> >
Quantity @@ -26,6 +27,7 @@ SIZE = "3" VALUE = "<% scalar($cgi->param($name."_npa")) || $value |h %>" + <% $onchange %> >
NPA @@ -96,6 +98,18 @@
State +% $value = $item->get('custnum'); + " + <% $onchange %> + > +
Customer # + + @@ -109,6 +123,15 @@ my $id = $opt{'id'} || 'orderitemnum'; my $curr_value = $opt{'curr_value'} || $opt{'value'}; +my $onchange = ''; +if ( $opt{'onchange'} ) { + $onchange = $opt{'onchange'}; + $onchange .= '(this)' unless $onchange =~ /\(\w*\);?$/; + $onchange =~ s/\(what\);/\(this\);/g; #ugh, terrible hack. all onchange + #callbacks should act the same + $onchange = 'onChange="'. $onchange. '"'; +} + my $item; if ( $curr_value ) { $item = qsearchs('did_order_item', { 'orderitemnum' => $curr_value } );