Bugzilla – Attachment 81917 Details for
Bug 21387
Receive items from - form should include tax hints the same as the ordering form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21387: Receive items from - form should include tax hints
Bug-21387-Receive-items-from---form-should-include.patch (text/plain), 3.56 KB, created by
Caroline Cyr La Rose
on 2018-11-02 18:38:53 UTC
(
hide
)
Description:
Bug 21387: Receive items from - form should include tax hints
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2018-11-02 18:38:53 UTC
Size:
3.56 KB
patch
obsolete
>From 90c719781a2f3106750cb4638d028ee7fdeec922 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 21 Sep 2018 11:42:28 +0100 >Subject: [PATCH] Bug 21387: Receive items from - form should include tax hints > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >--- > acqui/orderreceive.pl | 6 ++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 6 +++--- > 2 files changed, 9 insertions(+), 3 deletions(-) > >diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl >index 91c6e35..4ce2dd0 100755 >--- a/acqui/orderreceive.pl >+++ b/acqui/orderreceive.pl >@@ -73,6 +73,7 @@ use C4::Suggestions; > use C4::Koha; > > use Koha::Acquisition::Booksellers; >+use Koha::Acquisition::Currencies; > use Koha::Acquisition::Orders; > use Koha::DateUtils qw( dt_from_string ); > use Koha::ItemTypes; >@@ -112,6 +113,7 @@ unless ( $results and @$results) { > # prepare the form for receiving > my $order = $results->[0]; > my $basket = Koha::Acquisition::Orders->find( $ordernumber )->basket; >+my $active_currency = Koha::Acquisition::Currencies->get_active; > > # Check if ACQ framework exists > my $acq_fw = GetMarcStructure( 1, 'ACQ', { unsafe => 1 } ); >@@ -203,6 +205,10 @@ $template->param( > booksellerid => $order->{'booksellerid'}, > freight => $freight, > name => $bookseller->name, >+ cur_active_sym => $active_currency->symbol, >+ cur_active => $active_currency->currency, >+ listincgst => $bookseller->listincgst, >+ invoiceincgst => $bookseller->invoiceincgst, > title => $order->{'title'}, > author => $order->{'author'}, > copyrightdate => $order->{'copyrightdate'}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index fc2ff7e..64ed991 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -239,15 +239,15 @@ > <input type="hidden" name="tax_rate" value="0" /> > [% END %] > >- <li><label for="rrp">Retail price: </label>[% rrp | $Price %]</li> >+ <li><label for="rrp">Retail price: </label>[% rrp | $Price %] <span class="hint">(adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])</span></li> > <li> > <label for="replacementprice">Replacement price:</label> > <input type="text" size="20" name="replacementprice" id="replacementprice" value="[% replacementprice | $Price %]" /> > </li> >- <li><label for="ecost">Budgeted cost: </label>[% ecost | $Price %]</li> >+ <li><label for="ecost">Budgeted cost: </label>[% ecost | $Price %] <span class="hint">[% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]</span></li> > <li> > <label for="unitprice">Actual cost:</label> >- <input type="text" size="20" name="unitprice" id="unitprice" value="[% unitprice | $Price on_editing => 1 | html %]" /> >+ <input type="text" size="20" name="unitprice" id="unitprice" value="[% unitprice | $Price on_editing => 1 | html %]" /> <span lass="hint">[% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]</span> > </li> > <li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote | html %]</textarea></li> > [% IF order_vendornote %] >-- >2.7.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 21387
:
79212
|
79751
|
79753
|
80930
|
81639
|
81917
|
81999