Bugzilla – Attachment 96994 Details for
Bug 24277
Date Received in acquisitions cannot be changed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24277: Fix date received editing when receiving an order
Bug-24277-Fix-date-received-editing-when-receiving.patch (text/plain), 2.59 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-01-08 13:58:49 UTC
(
hide
)
Description:
Bug 24277: Fix date received editing when receiving an order
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-01-08 13:58:49 UTC
Size:
2.59 KB
patch
obsolete
>From 7f1197e78f7b21c22b096705e473369f1b30d077 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 23 Dec 2019 16:19:47 +0100 >Subject: [PATCH] Bug 24277: Fix date received editing when receiving an order > >Bug 8417 added the ability to edit the date received, but a merge >conflict was wrongly resolved during a rebase of > commit 20d9ed618fbe3cdcb9c04444a1f8a584b0364069 > Bug 13321: Rename variables > >Test plan: >Create an order >Receive it >Set a date (different from today) >=> The date you picked should have been set in DB for the order > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Acquisition.pm | 12 ++++++++++-- > acqui/finishreceive.pl | 1 + > 2 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index fcd590df79..f21334b05f 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1395,8 +1395,8 @@ sub ModItemOrder { > user => $user, > invoice => $invoice, > budget_id => $budget_id, >+ datereceived => $datereceived, > received_itemnumbers => \@received_itemnumbers, >- order_internalnote => $order_internalnote, > } > ); > >@@ -1419,10 +1419,18 @@ sub ModReceiveOrder { > my $quantrec = $params->{quantityreceived}; > my $user = $params->{user}; > my $budget_id = $params->{budget_id}; >+ my $datereceived = $params->{datereceived}; > my $received_items = $params->{received_items}; > > my $dbh = C4::Context->dbh; >- my $datereceived = ( $invoice and $invoice->{datereceived} ) ? $invoice->{datereceived} : dt_from_string; >+ $datereceived = output_pref( >+ { >+ dt => ( $datereceived ? dt_from_string( $datereceived ) : dt_from_string ), >+ dateformat => 'iso', >+ dateonly => 1, >+ } >+ ); >+ > my $suggestionid = GetSuggestionFromBiblionumber( $biblionumber ); > if ($suggestionid) { > ModSuggestion( {suggestionid=>$suggestionid, >diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl >index 64aa9f5ad4..0c127b0f19 100755 >--- a/acqui/finishreceive.pl >+++ b/acqui/finishreceive.pl >@@ -123,6 +123,7 @@ if ($quantityrec > $origquantityrec ) { > user => $user, > invoice => $invoice, > budget_id => $bookfund, >+ datereceived => $datereceived, > received_items => \@received_items, > } > ); >-- >2.24.1
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 24277
:
96611
|
96614
|
96993
| 96994