pen one
05/06/2022, 6:52 PMautoStd.autoStd();
riatTAS.riatTAS();
Right now the riatTAS
is firing first. I tried switching the order and it is still firing first.battk
05/06/2022, 6:56 PMautoStd.autoStd();
should run firstbattk
05/06/2022, 6:57 PMpen one
05/06/2022, 6:58 PMbattk
05/06/2022, 7:00 PMpen one
05/06/2022, 7:04 PMdefine(['N/currentRecord', 'N/search', 'N/ui/dialog', './export_AirStdRates.js', './addRiatRates.js', './export_AirStdRatesFAS.js'], (currentRecord, search, dialog, autoStd, riatTAS, autoStdFAS) => {
function pageInit(context) {}
function selectTariffType(context) {
const options = {
title: 'Select import Type',
message: 'Select import type.',
buttons: [{
label: 'Std TAS',
value: 1
},
{
label: 'STD FAS',
value: 2
}
]
};
function success(result) {
if (result == 1) {
autoStd.autoStd();
riatTAS.riatTAS();
} else if (result == 2) {
autoStdFAS.autoStdFAS();
}
}
function failure(reason) {
console.log(Failure: ${reason})
}
dialog.create(options).then(success).catch(failure);
}
return {
selectTariffType,
pageInit
};
});
battk
05/06/2022, 7:06 PMbattk
05/06/2022, 7:06 PMpen one
05/06/2022, 7:06 PMbattk
05/06/2022, 7:15 PMpen one
05/06/2022, 7:16 PM