@@ -, +, @@ --- acqui/basketgroup.pl | 4 ++++ installer/data/mysql/atomicupdate/addedifactsyspref.sql | 2 ++ installer/data/mysql/sysprefs.sql | 2 ++ koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt | 2 ++ .../prog/en/modules/admin/preferences/acquisitions.pref | 7 +++++++ 7 files changed, 21 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/addedifactsyspref.sql --- a/acqui/basketgroup.pl +++ a/acqui/basketgroup.pl @@ -232,6 +232,10 @@ my $op = $input->param('op') || 'display'; # - display : display the list of all basketgroups for a vendor my $booksellerid = $input->param('booksellerid'); $template->param(booksellerid => $booksellerid); +my $schema = Koha::Database->new()->schema(); +my $rs = $schema->resultset('VendorEdiAccount')->search( + { vendor_id => $booksellerid, } ); +$template->param( ediaccount => ($rs->count > 0)); if ( $op eq "add" ) { # --- a/installer/data/mysql/atomicupdate/addedifactsyspref.sql +++ a/installer/data/mysql/atomicupdate/addedifactsyspref.sql @@ -0,0 +1,2 @@ +INSERT IGNORE INTO systempreferences VALUES( 'Edifact', '0', 'Enable Edifact Electronic Ordering', 'Enables use of Edifact electronic ordering', 'YesNo'); + --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -132,6 +132,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('DumpTemplateVarsIntranet', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.', 'YesNo'), ('DumpTemplateVarsOpac', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.', 'YesNo'), ('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'), +('Edifact','0','Enable Edifact Electronic Ordering','Enables use of Edifact electronic ordering','YesNo'), + ('EDIInvoicesShippingBudget',NULL,NULL,'The budget code used to allocate shipping charges to when processing EDI Invoice messages','free'), ('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'), ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc @@ -9,7 +9,9 @@ [% IF ( CAN_user_parameters ) %]