Added VAT number manager for shop admins.

This commit is contained in:
Martin Kamerbeek 2009-05-15 16:32:24 +00:00
parent 802713092f
commit 56ec560255
2 changed files with 196 additions and 27 deletions

View file

@ -31,6 +31,7 @@ my $session = start(); # this line required
addOgoneToConfig( $session );
addUseEmailAsUsernameToSettings( $session );
alterVATNumberTable( $session );
finish($session); # this line required
@ -55,6 +56,16 @@ sub addUseEmailAsUsernameToSettings {
print "Done.\n" unless $quiet;
}
sub alterVATNumberTable {
my $session = shift;
print "\tAdapting VAT Number table..." unless $quiet;
$session->db->write('alter table tax_eu_vatNumbers change column approved viesValidated tinyint(1)');
$session->db->write('alter table tax_eu_vatNumbers add column approved tinyint(1)');
print "Done\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
#----------------------------------------------------------------------------