Bug 22533: Fix manual invoices from patron accounting
To test: Attempt to create a manual fine from the patron accounting page, it should fail. Apply this patch, restart the things Attempt to create a manual fine from the patron accounting page, it should succeed. Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
a0b81b906d
commit
478f2392ce
|
|
@ -78,7 +78,7 @@ if ($add){
|
|||
my $amount=$input->param('amount');
|
||||
my $type=$input->param('type');
|
||||
my $note = $input->param('note');
|
||||
my $error = manualinvoice( $borrowernumber, $itemnum, $desc, $type, $amount, $note );
|
||||
my $error = C4::Accounts::manualinvoice( $borrowernumber, $itemnum, $desc, $type, $amount, $note );
|
||||
if ($error) {
|
||||
if ( $error =~ /FOREIGN KEY/ && $error =~ /itemnumber/ ) {
|
||||
$template->param( 'ITEMNUMBER' => 1 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue