feat: refs #8381 add agencyModeFk to thermograph and insert agencyIncoming records
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
8e21ca5293
commit
a46ec1bc8d
|
@ -321,6 +321,11 @@ UPDATE `vn`.`agencyMode` SET `web` = 1, `reportMail` = 'no-reply@gothamcity.com'
|
||||||
|
|
||||||
UPDATE `vn`.`agencyMode` SET `code` = 'refund' WHERE `id` = 23;
|
UPDATE `vn`.`agencyMode` SET `code` = 'refund' WHERE `id` = 23;
|
||||||
|
|
||||||
|
INSERT INTO `vn`.`agencyIncoming`(`agencyModeFk`)
|
||||||
|
VALUES
|
||||||
|
(1),
|
||||||
|
(2);
|
||||||
|
|
||||||
INSERT INTO `vn`.`payMethod`(`id`,`code`, `name`, `graceDays`, `outstandingDebt`, `isIbanRequiredForClients`, `isIbanRequiredForSuppliers`, `hasVerified`)
|
INSERT INTO `vn`.`payMethod`(`id`,`code`, `name`, `graceDays`, `outstandingDebt`, `isIbanRequiredForClients`, `isIbanRequiredForSuppliers`, `hasVerified`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, NULL, 'PayMethod one', 0, 001, 0, 0, 0),
|
(1, NULL, 'PayMethod one', 0, 001, 0, 0, 0),
|
||||||
|
|
|
@ -9,6 +9,7 @@ describe('Thermograph saveThermograph()', () => {
|
||||||
const maxTemperature = 30;
|
const maxTemperature = 30;
|
||||||
const minTemperature = 10;
|
const minTemperature = 10;
|
||||||
const temperatureFk = 'COOL';
|
const temperatureFk = 'COOL';
|
||||||
|
const agencyModeFk = 1;
|
||||||
let tx;
|
let tx;
|
||||||
let options;
|
let options;
|
||||||
|
|
||||||
|
@ -46,13 +47,16 @@ describe('Thermograph saveThermograph()', () => {
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null, options
|
null,
|
||||||
|
agencyModeFk,
|
||||||
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(updatedThermograph.result).toEqual(state);
|
expect(updatedThermograph.result).toEqual(state);
|
||||||
expect(updatedThermograph.maxTemperature).toEqual(maxTemperature);
|
expect(updatedThermograph.maxTemperature).toEqual(maxTemperature);
|
||||||
expect(updatedThermograph.minTemperature).toEqual(minTemperature);
|
expect(updatedThermograph.minTemperature).toEqual(minTemperature);
|
||||||
expect(updatedThermograph.temperatureFk).toEqual(temperatureFk);
|
expect(updatedThermograph.temperatureFk).toEqual(temperatureFk);
|
||||||
|
expect(updatedThermograph.agencyModeFk).toEqual(agencyModeFk);
|
||||||
expect(updatedThermograph.dmsFk).toEqual(dmsFk);
|
expect(updatedThermograph.dmsFk).toEqual(dmsFk);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue