A couple of changes towards fixing Bug 1165 (GST in PROG templates)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2007-11-26 14:59:11 -06:00 committed by Joshua Ferraro
parent 9db489fa0f
commit 1fb6279ddd
3 changed files with 4 additions and 3 deletions

View File

@ -162,6 +162,7 @@ $template->param(orderby=>$order, filter=>$code, datefrom=>$datefrom,dateto=>$da
$template->param(
name => $booksellers[0]->{'name'},
supplierid => $supplierid,
GST => C4::Context->preference("gist"),
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -112,7 +112,7 @@
<label for="gst">GST:</label>
<input type="text" size="20" id="gst" name="gst" />
</li>
<!-- /TMPL_IF -->
<!--/TMPL_IF-->
<li>
<label for="freight">Freight:</label>
<input type="text" size="20" id="freight" name="freight" />

View File

@ -184,12 +184,12 @@ function confirm_deletion() {
<!-- TMPL_VAR NAME="specialty" --></p>
<p><strong>List Prices are: </strong><!--TMPL_VAR Name="listprice"--></p>
<p><strong>Invoice Prices are: </strong><!--TMPL_VAR Name="invoiceprice"--></p>
<p><strong>GST Registered: </strong>
<!-- TMPL_IF NAME="GST" --><p><strong>GST Registered: </strong>
<!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
<p><strong>List Item Price Includes GST: </strong>
<!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
<p><strong>Invoice Item Price Includes GST: </strong>
<!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
<!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p><!-- /TMPL_IF -->
<p><strong>Discount: </strong>
<!-- TMPL_VAR NAME="discount" --> %</p>
<!-- TMPL_IF NAME="notes" --><p><strong>Notes: </strong>