modified restrictions to acept 0 in numAcount

This commit is contained in:
2026-02-24 17:24:48 -06:00
parent 0d37fb3536
commit 01eafd4038
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export default function AddTime({
const maxFecha = new Date(year, month, today).toISOString().split("T")[0];
const handleSaveReceipt = async () => {
if (!numAcount) {
if (numAcount == null) {
Swal.fire({
title: "Busca de nuevo al estudiante!",
+1 -2
View File
@@ -21,7 +21,6 @@ function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) {
const [cost, setCost] = useState(String(costs[0].value));
const router = useRouter();
const handleLogout = () => {
Cookies.remove("token");
Cookies.remove("session");
@@ -29,7 +28,7 @@ function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) {
};
const handlePayment = async () => {
if (!numAcount) {
if (numAcount == null) {
Swal.fire({
title: "busca de nuevo al estudiante!",
+2 -2
View File
@@ -50,7 +50,7 @@ export default function Inscripcion({
//restrict this month//
const handleSaveReceipt = async () => {
if (!numAcount) {
if (numAcount == null) {
Swal.fire({
title: "busca de nuevo al estudiante!",
@@ -143,7 +143,7 @@ export default function Inscripcion({
};
const handleInscripcionSinPago = async () => {
if (!numAcount) {
if (numAcount == null) {
Swal.fire({
title: "busca de nuevo al estudiante!",
+1 -1
View File
@@ -31,7 +31,7 @@ export default function Receipt({ numAcount }: ReceiptsProps) {
//restrict this month//
const handleSaveReceipt = async () => {
if (!numAcount) {
if (numAcount == null) {
Swal.fire({
title: "busca de nuevo al estudiante!",