viaone-report-statement
Version:
A React component that sums two number.
343 lines (316 loc) • 9.42 kB
JavaScript
export default function TemplatesHeadDetails(idproduct,t) {
let head=[];
if(idproduct ==="3")
{
console.log("Money Transfer");
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.sender"),
class:"detail-export-c",
},
{
title: t("statementReport.country"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.fees"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.viatasa"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="6")
{
console.log("Money Orders");
head=[
{
title: t("statementReport.number"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c",
},
{
title: t("statementReport.charges"),
class:"detail-export-c",
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="5")
{
console.log("Billpayment");
head=[
{
title: "No. Bill",
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.sender"),
class:"detail-export-c",
},
{
title: t("statementReport.company"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.fees"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="4")
{
console.log("TopUp");
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.operator"),
class:"detail-export-c",
},
{
title: t("statementReport.country"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.fees"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="10")
{
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.description"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.credits"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.viatasa"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if((idproduct ==="15")||(idproduct ==="8"))
{
console.log("entre a head 10");
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.description"),
class:"detail-export-c",
},
{
title: t("statementReport.credits"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.viatasa"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="1")
{
head=[
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.description"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
},
{
title: t("statementReport.credits"),
class:"detail-export-c"
}
];
}
else if(idproduct ==="2")
{
console.log("entre 2y1");
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.description"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
else
{
console.log("entre else");
head=[
{
title: t("statementReport.transaction"),
class:"detail-export-c",
},
{
title: t("statementReport.date"),
class:"detail-export-c",
},
{
title: t("statementReport.sender"),
class:"detail-export-c",
},
{
title: t("statementReport.country"),
class:"detail-export-c",
},
{
title: t("statementReport.amount"),
class:"detail-export-c"
},
{
title: t("statementReport.fees"),
class:"detail-export-c"
},
{
title: t("statementReport.charges"),
class:"detail-export-c"
},
{
title: t("statementReport.viatasa"),
class:"detail-export-c"
},
{
title: t("statementReport.toBeDeposit"),
class:"detail-export-c"
}
];
}
return head;
};