Create function check status for other system

This commit is contained in:
joseph le 2023-10-11 16:33:28 +07:00
parent 5f13f63532
commit 9669eab569
1 changed files with 17 additions and 16 deletions

View File

@ -180,7 +180,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate Fedex", name: "Shipping rate Fedex",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -245,7 +245,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate DHL", name: "Shipping rate DHL",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -310,7 +310,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate Transdirect", name: "Shipping rate Transdirect",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -375,7 +375,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate Courier Please", name: "Shipping rate Courier Please",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -440,7 +440,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate Auspost", name: "Shipping rate Auspost",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -504,7 +504,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate FRF", name: "Shipping rate FRF",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -568,7 +568,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Shipping rate Sendle", name: "Shipping rate Sendle",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -585,7 +585,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking Fedex", name: "Tracking Fedex",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -602,7 +602,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking TNT", name: "Tracking TNT",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -619,7 +619,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking UPS", name: "Tracking UPS",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -636,7 +636,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking Auspost", name: "Tracking Auspost",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -653,7 +653,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking USPS", name: "Tracking USPS",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -670,7 +670,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking StarTrack", name: "Tracking StarTrack",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -687,7 +687,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking Sendle", name: "Tracking Sendle",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -704,7 +704,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking DHL", name: "Tracking DHL",
group: "ERP Systems", group: "Shipping System",
}, },
{ {
url: "https://int.ipsupply.com.au/api/transferPostData", url: "https://int.ipsupply.com.au/api/transferPostData",
@ -721,7 +721,7 @@ const checkMultipleRequest = async () => {
}, },
}, },
name: "Tracking CouriersPlease", name: "Tracking CouriersPlease",
group: "ERP Systems", group: "Shipping System",
}, },
//Other system //Other system
{ {
@ -1014,6 +1014,7 @@ const checkMultipleRequest = async () => {
}); });
await Promise.all(promises); await Promise.all(promises);
let groupName = report?.sort((a, b) => a.group.localeCompare(b.group))[0] let groupName = report?.sort((a, b) => a.group.localeCompare(b.group))[0]
?.group; ?.group;
let no = 0; let no = 0;