Ndryshime

This commit is contained in:
2022-09-28 19:14:31 +02:00
parent c75d4768de
commit 4258755f0a
2 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -28,6 +28,7 @@ const recordsToJson = () => {
let shtrimiNr = 0;
let trajtimiNr = 0;
let errorNr = 0;
let bariNr = 0;
let records: any[] = [];
excelFiles.every((file) => {
@@ -56,8 +57,6 @@ const recordsToJson = () => {
record["TRAJTIMI SPITALOR Pavion"];
if (emer.trim() !== "" && mbiemer.trim() !== "") {
pacientiNr++;
// console.log(trajtimiRaw);
try {
datelindja = getJsDateFromExcel(datelindja);
data_shtrimit = getJsDateFromExcel(data_shtrimit);
@@ -75,6 +74,7 @@ const recordsToJson = () => {
let obj: any = {};
let bariRaw = bar.split(",");
if (
bariRaw[0] === "" ||
bariRaw[0] === "??" ||
bariRaw[0] === "???" ||
bariRaw[0] === "????" ||
@@ -84,13 +84,15 @@ const recordsToJson = () => {
) {
return;
} else {
bariNr++;
obj.bari = bariRaw[0];
obj.sasia = null;
obj.nr = bariNr;
console.log(obj.bari);
return obj;
}
});
trajtimiNr++;
console.log(barnatArr);
trajtimi = {
nr: trajtimiNr,
trajtimi: barnatArr,