refs #5347
This commit is contained in:
parent
203e80afa8
commit
6e52b3b968
|
@ -37,18 +37,18 @@ BEGIN
|
||||||
DECLARE vHasCoreVnl BOOLEAN;
|
DECLARE vHasCoreVnl BOOLEAN;
|
||||||
DECLARE vMandateTypeFk INT;
|
DECLARE vMandateTypeFk INT;
|
||||||
|
|
||||||
SELECT dafaultPayMethodFk,
|
SELECT defaultPayMethodFk,
|
||||||
defaultDueDay,
|
defaultDueDay,
|
||||||
defaultCredit,
|
defaultCredit,
|
||||||
defaultIsTaxDataChecked,
|
defaultIsTaxDataChecked,
|
||||||
defaultHasCoreVnl,
|
defaultHasCoreVnl,
|
||||||
defaultMandateTypeFk
|
defaultMandateTypeFk
|
||||||
INTO vPayMethodFk,
|
INTO vPayMethodFk,
|
||||||
vDueDay,
|
vDueDay,
|
||||||
vDefaultCredit,
|
vDefaultCredit,
|
||||||
vIsTaxDataChecked,
|
vIsTaxDataChecked,
|
||||||
vHasCoreVnl,
|
vHasCoreVnl,
|
||||||
vMandateTypeFk
|
vMandateTypeFk
|
||||||
FROM clientConfig;
|
FROM clientConfig;
|
||||||
|
|
||||||
INSERT INTO `client`
|
INSERT INTO `client`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
DROP PROCEDURE IF EXISTS vn.clientCreate;
|
DROP PROCEDURE IF EXISTS vn.clientCreate;
|
||||||
|
|
||||||
ALTER TABLE vn.clientConfig ADD dafaultPayMethodFk tinyint(3) unsigned NULL;
|
ALTER TABLE vn.clientConfig ADD defaultPayMethodFk tinyint(3) unsigned NULL;
|
||||||
ALTER TABLE vn.clientConfig ADD defaultDueDay int unsigned NULL;
|
ALTER TABLE vn.clientConfig ADD defaultDueDay int unsigned NULL;
|
||||||
ALTER TABLE vn.clientConfig ADD defaultCredit decimal(10, 2) NULL;
|
ALTER TABLE vn.clientConfig ADD defaultCredit decimal(10, 2) NULL;
|
||||||
ALTER TABLE vn.clientConfig ADD defaultIsTaxDataChecked tinyint(1) NULL;
|
ALTER TABLE vn.clientConfig ADD defaultIsTaxDataChecked tinyint(1) NULL;
|
||||||
|
@ -10,7 +10,7 @@ ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigPayMethod_FK FOREIGN K
|
||||||
ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigMandateType_FK FOREIGN KEY (defaultMandateTypeFk) REFERENCES vn.mandateType(id);
|
ALTER TABLE vn.clientConfig ADD CONSTRAINT clientNewConfigMandateType_FK FOREIGN KEY (defaultMandateTypeFk) REFERENCES vn.mandateType(id);
|
||||||
|
|
||||||
UPDATE vn.clientConfig
|
UPDATE vn.clientConfig
|
||||||
SET dafaultPayMethodFk = 4,
|
SET defaultPayMethodFk = 4,
|
||||||
defaultDueDay = 5,
|
defaultDueDay = 5,
|
||||||
defaultCredit = 300.0,
|
defaultCredit = 300.0,
|
||||||
defaultIsTaxDataChecked = 1,
|
defaultIsTaxDataChecked = 1,
|
||||||
|
|
Loading…
Reference in New Issue