Bug 20253: Add po_is_basketname field to vendor_edi_accounts table
This patch adds a new boolean field 'po_is_basketname' to the vendor_edi_accounts table to allow configuration of how basket names are used in EDIFACT. Changes: - Added atomicupdate for existing installations - Updated kohastructure.sql for new installations Signed-off-by: Hannah Dunne-Howrie <hdunne-howrie@westminster.gov.uk> Sponsored-by: Westminster City Council <https://www.westminster.gov.uk/> Sponsored-by: Royal Borough of Kensington and Chelsea <https://www.rbkc.gov.uk/> Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f6964f2ffa
commit
168a5a9107
|
|
@ -0,0 +1,22 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "20253",
|
||||
description => "Add purchase order number configuration option to vendor_edi_accounts",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
unless ( column_exists( 'vendor_edi_accounts', 'po_is_basketname' ) ) {
|
||||
$dbh->do(
|
||||
q{
|
||||
ALTER TABLE vendor_edi_accounts
|
||||
ADD COLUMN `po_is_basketname` tinyint(1) NOT NULL DEFAULT 0
|
||||
AFTER `plugin`
|
||||
}
|
||||
);
|
||||
say_success( $out, "Added column 'vendor_edi_accounts.po_is_basketname'" );
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
@ -6738,6 +6738,7 @@ CREATE TABLE `vendor_edi_accounts` (
|
|||
`shipment_budget` int(11) DEFAULT NULL,
|
||||
`plugin` varchar(256) NOT NULL DEFAULT '',
|
||||
`file_transport_id` int(11) DEFAULT NULL,
|
||||
`po_is_basketname` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `vendorid` (`vendor_id`),
|
||||
KEY `shipmentbudget` (`shipment_budget`),
|
||||
|
|
|
|||
Loading…
Reference in New Issue