Added VAT number manager for shop admins.
This commit is contained in:
parent
802713092f
commit
56ec560255
2 changed files with 196 additions and 27 deletions
|
|
@ -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 --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue