📄 xzreport.c
字号:
else if( rpt_type == 7 ) /* 13.Hourly activity sales report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Hourly_Rpt();
}
#ifdef VER_RSNT /* Support the restaurant function */
else if( rpt_type == 51 )
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Table_Rpt();
}
#endif /* End VER_RSNT */
#ifdef ELEC_JRNL /* Support the Electronic journal function */
else if( rpt_type == 201 )
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Elec_Jrnl(1);
}
#endif /* End ELEC_JRNL */
else
{
errorType(ERR_KEY_ILLEGAL);
continue;
}
Lcd_Disp_Text(Disp_Successful);
Rpt_Disp_Roll_flag = 0;
rpt_type = 0xff;
prn_Stamp();
Get_Full_XZRep_List();
break;
case KD_CANCEL: //退出当前报表的显示
rpt_type = 0xff;
Rpt_Disp_Roll_flag = 0;
Lcd_ClrText();
Get_Full_XZRep_List();
break;
case KD_CASH:
#ifdef STOCK /* Support the PLU stock function */
Clr_PLU_Stock_Flag = 0;
#endif /* End STOCK */
if( Idvul_Head_Prn_Flag == NOTPRINTD )
{
if( lnum == 1 ) /* 1.Daily terminal report */
{
if(Do_Daily_Rpt() == NG) /* When the return is NG, not to print the stamp */
continue;
}
else if( lnum == 11 ) /* 2.Period to date report */
{
if(Do_PTD_Rpt() == NG) /* When the return is NG, not to print the stamp */
continue;
}
else if( lnum == 2 ) /* 3.Daily department sales report */
{
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
Do_Daily_Dept_Rpt();
}
else if( lnum == 12 ) /* 4.Period to date department sales report */
{
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
Do_PTD_Dept_Rpt();
}
else if( lnum == 3 ) /* 5.Daily department group sales report */
{
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
if( (Do_Daily_Dept_Group_Rpt()) == NG)
continue;
}
else if( lnum == 13 ) /* 6.Period to date department group sales report */
{
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
if( (Do_PTD_Dept_Group_Rpt()) ==NG )
continue;
}
else if( lnum == 4 ) /* 7.Daily PLU sales report */
{
if(Do_Daily_PLU_Rpt() == NG) /* When the return is NG, not to print the stamp */
continue;
}
#ifdef PLU_PTD_RPT
else if( lnum == 14 ) /* 8.Period to date PLU sales report */
{
if(Do_PTD_PLU_Rpt() == NG) /* When the reutrn is NG, not to print the stamp */
continue;
}
#endif
else if( lnum == 5 ) /* 9.Daily PLU group sales report */
{
if( (CurrMode == ZREPORT) )
{errorType(ERR_Z_MODE);continue;}
if( (Do_Daily_PLU_Group_Rpt()) == NG )
continue;
}
#ifdef PLU_PTD_RPT
else if( lnum == 15 ) /* 10.Period to date PLU group sales report */
{
if( (CurrMode == ZREPORT) )
{errorType(ERR_Z_MODE);continue;}
if( (Do_PTD_PLU_Group_Rpt()) == NG)
continue;
}
#endif
else if( lnum == 6 ) /* 11.Daily clerk sales report */
{
if(sysflag->clerk_mode)
Do_Daily_Clerk_Rpt();
else
{
errorType(ERR_CLERK_INHT);
continue;
}
}
else if( lnum == 16 ) /* 12.Period to date clerk sales report */
{
if(sysflag->clerk_mode)
Do_PTD_Clerk_Rpt();
else
{
errorType(ERR_CLERK_INHT);
continue;
}
}
else if( lnum == 7 ) /* 13.Hourly activity sales report */
Do_Hourly_Rpt();
else if( lnum == 8 ) /* PLU area report */
{
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
Do_PLU_Area_Rpt();
continue;
}
#ifdef VER_RSNT /* Support the restaurant function */
else if(lnum == 9) /* Waiter sales report */
{
if(work_mode == RETAIL)
{errorType(ERR_RSNT_MODE);continue;}
if(Do_Waiter_Rpt() == NG)
continue;
}
#ifdef REST_PLU_FUNC
else if(lnum==21)
{
Do_Daily_MENU_Rep();
}
else if(lnum==31)
{
Do_PTD_MENU_Rep();
}
#endif
else if( lnum == 51 )
{
if(work_mode == RETAIL)
{errorType(ERR_RSNT_MODE);continue;}
if(Do_Table_Rpt() == NG) /* Print the table report of the total check-out amount */
continue;
}
else if( lnum == 52 )
{
if(work_mode == RETAIL)
{errorType(ERR_RSNT_MODE);continue;}
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
Do_Active_Rpt(); /* Print the active table report */
}
#endif /* End VER_RSNT */
#ifdef STOCK /* Support the stock function */
else if( lnum == 101 )
{
if(sysflag->PLU_Stock_Flag == 0)
{
errorType(ERR_DIGIT_ILLEGAL);
continue;
}
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
Do_PLU_Stock_Rpt();
}
#endif /* End STOCK */
else if(( lnum == 102 )
#ifdef PLU_PTD_RPT
|| ( lnum == 103 )
#endif
)
{
if(CurrMode == ZREPORT)
{errorType(ERR_Z_MODE);continue;}
if(lnum == 102) /* Do the top 50 PLUs amount daily report */
Do_Top_PLU_Amt(DAILY);
else // lnum == 103 /* Do the top 50 plus amont PTD report */
Do_Top_PLU_Amt(PTD);
continue;
}
else if(( lnum == 104 )
#ifdef PLU_PTD_RPT
|| ( lnum == 105 )
#endif
)
{
if(CurrMode == ZREPORT)
{errorType(ERR_Z_MODE);continue;}
if(lnum == 104) /* Do the top 50 PLUs quantity daily report */
Do_Top_PLU_Qty(DAILY);
else // lnum == 105 /* Do the top 50 plus quantity PTD report */
Do_Top_PLU_Qty(PTD);
continue;
}
#ifdef ELEC_JRNL /* Support the Electronic journal function */
else if(( lnum >= 201 ) && ( lnum <= 205 ))
{
if(sysflag->Log_Atv_Flag)
Do_Elec_Jrnl_Rpt(1, lnum-200);
else
errorType(ERR_EJ_ATV);
continue;
}
else if(( lnum >= 211 ) && ( lnum <= 215 ))
{
if(sysflag->Log_Atv_Flag)
Do_Elec_Jrnl_Rpt(2, lnum-210);
else
errorType(ERR_EJ_ATV);
continue;
}
else if(( lnum >= 221 ) && ( lnum <= 225 ))
{
if(sysflag->Log_Atv_Flag)
Do_Elec_Jrnl_Rpt(3, lnum-220);
else
errorType(ERR_EJ_ATV);
continue;
}
#endif /* End ELEC_JRNL */
else if( lnum == 2003 ) /* Clear the Daily and PTD reports GrandTotal, when want to
change the decimal point position or the VAT/TAX mode */
{
Do_ClrGndTtl(1);
continue;
}
else if((lnum >= 26064550) && (lnum <= 26064559))
{
if(CurrMode != ZREPORT)
{
errorType(ERR_DIGIT_ILLEGAL);
continue;
}
Do_ClrRpt(lnum); /* Clear the report */
continue;
}
else if((lnum >= 26068660) && (lnum <= 26068669))
{
if(CurrMode != ZREPORT)
{
errorType(ERR_DIGIT_ILLEGAL);
continue;
}
Do_ClrProg(lnum); /* Clear the programming parameter */
continue;
}
else
{
errorType(ERR_DIGIT_ILLEGAL);
continue;
}
prn_Stamp();
}
else
{
if( (!numcnt) && (Idvul_Tail_Prn_Flag == NOTPRINTD) )
{
prn_Idvul_Tail(Idvul_Flag);
Idvul_Tail_Prn_Flag = PRINTD;
Idvul_Head_Prn_Flag = NOTPRINTD; /* If print the tail, indicate the head print is the new, so did't print the head. */
Idvul_Flag = 0;
}
else
errorType(ERR_DIGIT_ILLEGAL);
}
break;
case KD_CLEAR :
#ifdef STOCK /* Support the PLU stock function */
Clr_PLU_Stock_Flag = 0;
#endif /* End STOCK */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -