Bugzilla – Attachment 21267 Details for
Bug 9410
Formatting of the discount field when doing a new order from new empty record is not correct
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[ALT] Bug 9410: Draft: TT Plugin for formatting prices, etc.
Bug-9410-Draft-TT-Plugin-for-formatting-prices-etc.patch (text/plain), 22.26 KB, created by
Jonathan Druart
on 2013-09-20 07:45:46 UTC
(
hide
)
Description:
[ALT] Bug 9410: Draft: TT Plugin for formatting prices, etc.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-09-20 07:45:46 UTC
Size:
22.26 KB
patch
obsolete
>From e365ab856b73ef541262bcb2b9ddae60255e973a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 19 Jul 2013 12:50:03 +0200 >Subject: [PATCH] Bug 9410: Draft: TT Plugin for formatting prices, etc. > >--- > Koha/Prices.pm | 8 ++++ > acqui/basket.pl | 44 ++++++++++---------- > acqui/basketgroup.pl | 36 ++++++++-------- > acqui/neworderempty.pl | 10 ++--- > .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 35 ++++++++-------- > .../prog/en/modules/acqui/neworderempty.tt | 33 ++++++++------- > 6 files changed, 87 insertions(+), 79 deletions(-) > create mode 100644 Koha/Prices.pm > >diff --git a/Koha/Prices.pm b/Koha/Prices.pm >new file mode 100644 >index 0000000..654dd98 >--- /dev/null >+++ b/Koha/Prices.pm >@@ -0,0 +1,8 @@ >+package Koha::Prices; >+ >+use Modern::Perl; >+ >+sub format { >+ my ( $value ) = @_; >+ return sprintf( "%.2f", $value ); # Should be in a syspref >+} >diff --git a/acqui/basket.pl b/acqui/basket.pl >index 06d4d1a..5f8a408 100755 >--- a/acqui/basket.pl >+++ b/acqui/basket.pl >@@ -306,7 +306,7 @@ if ( $op eq 'delete_confirm' ) { > > my @cancelledorders = GetCancelledOrders($basketno); > foreach (@cancelledorders) { >- $_->{'line_total'} = sprintf("%.2f", $_->{'ecost'} * $_->{'quantity'}); >+ $_->{'line_total'} = $_->{'ecost'} * $_->{'quantity'}; > } > > $template->param( >@@ -330,9 +330,9 @@ if ( $op eq 'delete_confirm' ) { > book_foot_loop => \@book_foot_loop, > cancelledorders_loop => \@cancelledorders, > total_quantity => $total_quantity, >- total_gste => sprintf( "%.2f", $total_gste ), >- total_gsti => sprintf( "%.2f", $total_gsti ), >- total_gstvalue => sprintf( "%.2f", $total_gstvalue ), >+ total_gste => $total_gste, >+ total_gsti => $total_gsti, >+ total_gstvalue => $total_gstvalue, > currency => $cur->{'currency'}, > listincgst => $bookseller->{listincgst}, > basketgroups => $basketgroups, >@@ -358,25 +358,25 @@ sub get_order_infos { > $line{budget_name} = $budget->{budget_name}; > $line{rrp} = ConvertCurrency( $order->{'currency'}, $line{rrp} ); # FIXME from comm > if ( $bookseller->{'listincgst'} ) { >- $line{rrpgsti} = sprintf( "%.2f", $line{rrp} ); >- $line{gstgsti} = sprintf( "%.2f", $line{gstrate} * 100 ); >- $line{rrpgste} = sprintf( "%.2f", $line{rrp} / ( 1 + ( $line{gstgsti} / 100 ) ) ); >- $line{gstgste} = sprintf( "%.2f", $line{gstgsti} / ( 1 + ( $line{gstgsti} / 100 ) ) ); >- $line{ecostgsti} = sprintf( "%.2f", $line{ecost} ); >- $line{ecostgste} = sprintf( "%.2f", $line{ecost} / ( 1 + ( $line{gstgsti} / 100 ) ) ); >- $line{gstvalue} = sprintf( "%.2f", ( $line{ecostgsti} - $line{ecostgste} ) * $line{quantity}); >- $line{totalgste} = sprintf( "%.2f", $order->{quantity} * $line{ecostgste} ); >- $line{totalgsti} = sprintf( "%.2f", $order->{quantity} * $line{ecostgsti} ); >+ $line{rrpgsti} = $line{rrp}; >+ $line{gstgsti} = $line{gstrate} * 100; >+ $line{rrpgste} = $line{rrp} / ( 1 + ( $line{gstgsti} / 100 ) ); >+ $line{gstgste} = $line{gstgsti} / ( 1 + ( $line{gstgsti} / 100 ) ); >+ $line{ecostgsti} = $line{ecost}; >+ $line{ecostgste} = $line{ecost} / ( 1 + ( $line{gstgsti} / 100 ) ); >+ $line{gstvalue} = ( $line{ecostgsti} - $line{ecostgste} ) * $line{quantity}; >+ $line{totalgste} = $order->{quantity} * $line{ecostgste}; >+ $line{totalgsti} = $order->{quantity} * $line{ecostgsti}; > } else { >- $line{rrpgsti} = sprintf( "%.2f", $line{rrp} * ( 1 + ( $line{gstrate} ) ) ); >- $line{rrpgste} = sprintf( "%.2f", $line{rrp} ); >- $line{gstgsti} = sprintf( "%.2f", $line{gstrate} * 100 ); >- $line{gstgste} = sprintf( "%.2f", $line{gstrate} * 100 ); >- $line{ecostgsti} = sprintf( "%.2f", $line{ecost} * ( 1 + ( $line{gstrate} ) ) ); >- $line{ecostgste} = sprintf( "%.2f", $line{ecost} ); >- $line{gstvalue} = sprintf( "%.2f", ( $line{ecostgsti} - $line{ecostgste} ) * $line{quantity}); >- $line{totalgste} = sprintf( "%.2f", $order->{quantity} * $line{ecostgste} ); >- $line{totalgsti} = sprintf( "%.2f", $order->{quantity} * $line{ecostgsti} ); >+ $line{rrpgsti} = $line{rrp} * ( 1 + ( $line{gstrate} ) ); >+ $line{rrpgste} = $line{rrp}; >+ $line{gstgsti} = $line{gstrate} * 100; >+ $line{gstgste} = $line{gstrate} * 100; >+ $line{ecostgsti} = $line{ecost} * ( 1 + ( $line{gstrate} ) ); >+ $line{ecostgste} = $line{ecost}; >+ $line{gstvalue} = ( $line{ecostgsti} - $line{ecostgste} ) * $line{quantity}; >+ $line{totalgste} = $order->{quantity} * $line{ecostgste}; >+ $line{totalgsti} = $order->{quantity} * $line{ecostgsti}; > } > > if ( $line{uncertainprice} ) { >diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl >index 398980c..79ca9a0 100755 >--- a/acqui/basketgroup.pl >+++ b/acqui/basketgroup.pl >@@ -233,25 +233,25 @@ sub printbasketgrouppdf{ > > $ord->{rrp} = ConvertCurrency( $ord->{'currency'}, $ord->{rrp} ); > if ( $bookseller->{'listincgst'} ) { >- $ord->{rrpgsti} = sprintf( "%.2f", $ord->{rrp} ); >- $ord->{gstgsti} = sprintf( "%.2f", $ord->{gstrate} * 100 ); >- $ord->{rrpgste} = sprintf( "%.2f", $ord->{rrp} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >- $ord->{gstgste} = sprintf( "%.2f", $ord->{gstgsti} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >- $ord->{ecostgsti} = sprintf( "%.2f", $ord->{ecost} ); >- $ord->{ecostgste} = sprintf( "%.2f", $ord->{ecost} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >- $ord->{gstvalue} = sprintf( "%.2f", ( $ord->{ecostgsti} - $ord->{ecostgste} ) * $ord->{quantity}); >- $ord->{totalgste} = sprintf( "%.2f", $ord->{quantity} * $ord->{ecostgste} ); >- $ord->{totalgsti} = sprintf( "%.2f", $ord->{quantity} * $ord->{ecostgsti} ); >+ $ord->{rrpgsti} = Koha::Prices::format( $ord->{rrp} ); >+ $ord->{gstgsti} = Koha::Prices::format( $ord->{gstrate} * 100 ); >+ $ord->{rrpgste} = Koha::Prices::format( $ord->{rrp} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >+ $ord->{gstgste} = Koha::Prices::format( $ord->{gstgsti} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >+ $ord->{ecostgsti} = Koha::Prices::format( $ord->{ecost} ); >+ $ord->{ecostgste} = Koha::Prices::format( $ord->{ecost} / ( 1 + ( $ord->{gstgsti} / 100 ) ) ); >+ $ord->{gstvalue} = Koha::Prices::format( ( $ord->{ecostgsti} - $ord->{ecostgste} ) * $ord->{quantity}); >+ $ord->{totalgste} = Koha::Prices::format( $ord->{quantity} * $ord->{ecostgste} ); >+ $ord->{totalgsti} = Koha::Prices::format( $ord->{quantity} * $ord->{ecostgsti} ); > } else { >- $ord->{rrpgsti} = sprintf( "%.2f", $ord->{rrp} * ( 1 + ( $ord->{gstrate} ) ) ); >- $ord->{rrpgste} = sprintf( "%.2f", $ord->{rrp} ); >- $ord->{gstgsti} = sprintf( "%.2f", $ord->{gstrate} * 100 ); >- $ord->{gstgste} = sprintf( "%.2f", $ord->{gstrate} * 100 ); >- $ord->{ecostgsti} = sprintf( "%.2f", $ord->{ecost} * ( 1 + ( $ord->{gstrate} ) ) ); >- $ord->{ecostgste} = sprintf( "%.2f", $ord->{ecost} ); >- $ord->{gstvalue} = sprintf( "%.2f", ( $ord->{ecostgsti} - $ord->{ecostgste} ) * $ord->{quantity}); >- $ord->{totalgste} = sprintf( "%.2f", $ord->{quantity} * $ord->{ecostgste} ); >- $ord->{totalgsti} = sprintf( "%.2f", $ord->{quantity} * $ord->{ecostgsti} ); >+ $ord->{rrpgsti} = Koha::Prices::format( $ord->{rrp} * ( 1 + ( $ord->{gstrate} ) ) ); >+ $ord->{rrpgste} = Koha::Prices::format( $ord->{rrp} ); >+ $ord->{gstgsti} = Koha::Prices::format( $ord->{gstrate} * 100 ); >+ $ord->{gstgste} = Koha::Prices::format( $ord->{gstrate} * 100 ); >+ $ord->{ecostgsti} = Koha::Prices::format( $ord->{ecost} * ( 1 + ( $ord->{gstrate} ) ) ); >+ $ord->{ecostgste} = Koha::Prices::format( $ord->{ecost} ); >+ $ord->{gstvalue} = Koha::Prices::format( ( $ord->{ecostgsti} - $ord->{ecostgste} ) * $ord->{quantity}); >+ $ord->{totalgste} = Koha::Prices::format( $ord->{quantity} * $ord->{ecostgste} ); >+ $ord->{totalgsti} = Koha::Prices::format( $ord->{quantity} * $ord->{ecostgsti} ); > } > my $bib = GetBiblioData($ord->{biblionumber}); > my $itemtypes = GetItemTypes(); >diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl >index 9c9eed3..2fc529b 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -379,9 +379,7 @@ $template->param( > biblionumber => $biblionumber, > uncertainprice => $data->{'uncertainprice'}, > authorisedbyname => $borrower->{'firstname'} . " " . $borrower->{'surname'}, >- discount_2dp => sprintf( "%.2f", $bookseller->{'discount'} ) , # for display > discount => $bookseller->{'discount'}, >- orderdiscount_2dp => sprintf( "%.2f", $data->{'discount'} || 0 ), > orderdiscount => $data->{'discount'}, > listincgst => $bookseller->{'listincgst'}, > invoiceincgst => $bookseller->{'invoiceincgst'}, >@@ -405,10 +403,10 @@ $template->param( > gst_values => \@gst_values, > gstrate => $data->{gstrate} ? $data->{gstrate}+0.0 : $bookseller->{gstrate} ? $bookseller->{gstrate}+0.0 : 0, > gstreg => $bookseller->{'gstreg'}, >- listprice => sprintf( "%.2f", $data->{listprice} || $data->{price} || $listprice), >- total => sprintf( "%.2f", ($data->{ecost} || 0) * ($data->{'quantity'} || 0) ), >- ecost => sprintf( "%.2f", $data->{ecost} || 0), >- unitprice => sprintf( "%.2f", $data->{unitprice} || 0), >+ listprice => $data->{listprice} || $data->{price} || $listprice, >+ total => ($data->{ecost} || 0) * ($data->{'quantity'} || 0), >+ ecost => $data->{ecost} || 0, >+ unitprice => $data->{unitprice} || 0, > publishercode => $data->{'publishercode'}, > barcode_subfield => $barcode_subfield, > import_batch_id => $import_batch_id, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index 84df886..60d69fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -1,4 +1,5 @@ > [% USE KohaDates %] >+[% USE FormatNum %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> >@@ -346,15 +347,15 @@ > <p>[<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]</p> > [% END %] > </td> >- <td class="number gste [% IF books_loo.rrpgste.search('^0') %]error[% END %]">[% books_loo.rrpgste %]</td> >- <td class="number gste [% IF books_loo.ecostgste.search('^0') %]error[% END %]">[% books_loo.ecostgste %]</td> >- <td class="number gsti [% IF books_loo.rrpgsti.search('^0') %]error[% END %]">[% books_loo.rrpgsti %]</td> >- <td class="number gsti [% IF books_loo.ecostgsti.search('^0') %]error[% END %]">[% books_loo.ecostgsti %]</td> >- <td class="number [% IF books_loo.quantity.search('^0') %]error[% END %]">[% books_loo.quantity %]</td> >- <td class="number gste [% IF books_loo.totalgste.search('^0') %]error[% END %]">[% books_loo.totalgste %]</td> >- <td class="number gsti [% IF books_loo.totalgsti.search('^0') %]error[% END %]">[% books_loo.totalgsti %]</td> >- <td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% books_loo.gstgsti %]</td> >- <td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% books_loo.gstvalue %]</td> >+ <td class="number gste [% IF books_loo.rrpgste.search('^0') %]error[% END %]">[% FormatNum.Price( books_loo.rrpgste ) %]</td> >+ <td class="number gste [% IF books_loo.ecostgste.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.ecostgste ) %]</td> >+ <td class="number gsti [% IF books_loo.rrpgsti.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.rrpgsti ) %]</td> >+ <td class="number gsti [% IF books_loo.ecostgsti.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.ecostgsti ) %]</td> >+ <td class="number [% IF books_loo.quantity.search('^0') %]error[% END %]">[% bbooks_loo.quantity%]</td> >+ <td class="number gste [% IF books_loo.totalgste.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.totalgste ) %]</td> >+ <td class="number gsti [% IF books_loo.totalgsti.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.totalgsti ) %]</td> >+ <td class="number [% IF books_loo.gstgsti.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.gstgsti ) %]</td> >+ <td class="number [% IF books_loo.gstvalue.search('^0') %]error[% END %]">[% FormatNum.Price( bbooks_loo.gstvalue ) %]</td> > <td>[% books_loo.budget_name %]</td> > [% IF ( active ) %] > [% UNLESS ( closedate ) %] >@@ -433,15 +434,15 @@ > [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %] > </p> > </td> >- <td class="number gste">[% order.rrpgste %]</td> >- <td class="number gste">[% order.ecostgste %]</td> >- <td class="number gsti">[% order.rrpgsti %]</td> >- <td class="number gsti">[% order.ecostgsti %]</td> >+ <td class="number gste">[% FormatNum.Price( border.rrpgste ) %]</td> >+ <td class="number gste">[% FormatNum.Price( border.ecostgste ) %]</td> >+ <td class="number gsti">[% FormatNum.Price( border.rrpgsti ) %]</td> >+ <td class="number gsti">[% FormatNum.Price( border.ecostgsti ) %]</td> > <td class="number">[% order.quantity %]</td> >- <td class="number gste">[% order.totalgste %]</td> >- <td class="number gsti">[% order.totalgsti %]</td> >- <td class="number">[% order.gstgsti %]</td> >- <td class="number">[% order.gstvalue %]</td> >+ <td class="number gste">[% FormatNum.Price( border.totalgste ) %]</td> >+ <td class="number gsti">[% FormatNum.Price( border.totalgsti ) %]</td> >+ <td class="number">[% FormatNum.Price( border.gstgsti ) %]</td> >+ <td class="number">[% FormatNum.Price( border.gstvalue ) %]</td> > <td>[% order.budget_name %] > </tr> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index bbcd4e8..c45f5a0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -1,4 +1,5 @@ > [% USE KohaDates %] >+[% USE FormatNum %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › Basket [% basketno %] › [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -450,10 +451,10 @@ $(document).ready(function() > <li> > [% IF ( close ) %] > <span class="label">Vendor price: </span> >- <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %] >+ <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% FormatNum.Price( listprice ) %] > [% ELSE %] > <label for="listprice">Vendor price: </label> >- <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" /> >+ <input type="text" size="20" name="listprice" id="listprice" value="[% FormatNum.Price( listprice ) %]" onchange="updateCosts()" /> > [% END %] > </li> > [% UNLESS ( close ) %] >@@ -476,9 +477,9 @@ $(document).ready(function() > <select name="gstrate" id="gstrate" onchange="updateCosts();"> > [% FOREACH gst IN gst_values %] > [% IF ( gst.option == gstrate ) %] >- <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format("%.1f") %]%</option> >+ <option value="[% gst.option %]" selected="selected">[% FormatNum.Rate( gst.option ) %]%</option> > [% ELSE %] >- <option value="[% gst.option %]">[% gst.option * 100 | format("%.1f") %]%</option> >+ <option value="[% gst.option %]">[% FormatNum.Rate( gst.option ) %]%</option> > [% END %] > [% END %] > </select> >@@ -491,52 +492,52 @@ $(document).ready(function() > <label for="discount">Discount: </label> > [% IF ( close ) %] > [% IF ( orderdiscount ) %] >- <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]% >+ <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% FormatNum.Percent( orderdiscount ) %]% > [% ELSE %] >- <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]% >+ <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% FormatNum.Percent( discount ) %]% > [% END %] > [% ELSE %] > [% IF ( orderdiscount ) %] >- <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />% >+ <input type="text" size="6" name="discount" id="discount" value="[% FormatNum.Percent( orderdiscount ) %]" onchange="updateCosts();" />% > [% ELSE %] >- <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />% >+ <input type="text" size="6" name="discount" id="discount" value="[% FormatNum.Percent( discount ) %]" onchange="updateCosts();" />% > [% END %] > [% END %] > </li> > <li> > [% IF ( close ) %] > <span class="label">Replacement cost: </span> >- <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %] >+ <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% FormatNum.Price( rrp ) %] > [% ELSE %] > <label for="rrp">Replacement cost: </label> >- <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %]) >+ <input type="text" size="20" name="rrp" id="rrp" value="[% FormatNum.Price( rrp ) %]" /> (adjusted for [% cur_active %]) > [% END %] > </li> > <li> > [% IF ( close ) %] > <label for="ecost">Budgeted cost: </label> >- <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly" /> >+ <input type="text" size="20" name="ecost" id="ecost" value="[% FormatNum.Price( ecost ) %]" readonly="readonly" /> > [% ELSE %] > <label for="ecost">Budgeted cost: </label> >- <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" /> >+ <input type="text" size="20" name="ecost" id="ecost" value="[% FormatNum.Price( ecost ) %]" /> > [% END %] > </li> > <li> > [% IF ( close ) %] > <label for="total">Total: </label> >- <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" /> >+ <input type="text" id="total" size="20" name="total" value="[% FormatNum.Price( total ) %]" readonly="readonly" /> > [% ELSE %] > <label for="total">Total: </label> >- <input type="text" id="total" size="20" name="total" value="[% total %]" /> (budgeted cost * quantity) >+ <input type="text" id="total" size="20" name="total" value="[% FormatNum.Price( total ) %]" /> (budgeted cost * quantity) > [% END %] > </li> > <li> > [% IF ( close ) %] > <label for="unitprice">Actual cost: </label> >- <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> >+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% FormatNum.Price( unitprice ) %]" readonly="readonly" /> > [% ELSE %] > <label for="unitprice">Actual cost: </label> >- <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> >+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% FormatNum.Price( unitprice ) %]" /> > [% END %] > </li> > <li> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9410
:
14645
|
15354
|
19792
| 21267