feat: refs #8381 add agencyModeFk to travel thermograph and create AgencyModeIncoming model #3369

Merged
jgallego merged 4 commits from 8381-thermographTravel into dev 2025-01-27 15:12:53 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit a46ec1bc8d - Show all commits

View File

@ -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),

View File

@ -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);
}); });