📄 xzreport.c
字号:
if( CurrMode == ZREPORT )
{errorType(ERR_Z_MODE);continue;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Idx = Get_Dept_PLU_Group_Num(DEPT_GROUP);
if(Idx == NOTOK)
{rpt_type = 0xff;continue;}
Lcd_Disp_Dept_Group_Rpt(PTD, Idx);
break;
}
else if( lnum == 4 ) /* 7.Daily PLU sales report */
{
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_Daily_PLU_Rpt();
break;
}
#ifdef PLU_PTD_RPT
else if( lnum == 14 ) /* 8.Period to date PLU sales report */
{
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_PTD_PLU_Rpt();
break;
}
#endif
else if( lnum == 5 ) /* 9.Daily PLU group sales report */
{
if(CurrMode == ZREPORT)
{errorType(ERR_Z_MODE);continue;}
rpt_type = (byte)lnum;
Idx = Get_Dept_PLU_Group_Num(PLU_GROUP);
if(Idx == NOTOK)
{rpt_type = 0xff; continue;}
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_PLU_Group_Rpt(DAILY, Idx);
break;
}
#ifdef PLU_PTD_RPT
else if( lnum == 15 ) /* 10.Period to date PLU group sales report */
{
if( (CurrMode == ZREPORT) )
{errorType(ERR_Z_MODE);continue;}
rpt_type = (byte)lnum;
Idx = Get_Dept_PLU_Group_Num(PLU_GROUP);
if(Idx == NOTOK)
{rpt_type = 0xff; continue;}
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_PLU_Group_Rpt(PTD, Idx);
break;
}
#endif
else if( lnum == 6 ) /* 11.Daily clerk sales report */
{
if(sysflag->clerk_mode == 0)
{errorType(ERR_CLERK_INHT);continue;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_Daily_Clerk_Rpt();
break;
}
else if( lnum == 16 ) /* 12.Period to date clerk sales report */
{
if(sysflag->clerk_mode == 0)
{errorType(ERR_CLERK_INHT);continue;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_PTD_Clerk_Rpt();
break;
}
else if( lnum == 7 ) /* 13.Hourly activity sales report */
{
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_Hourly_Rpt();
break;
}
#ifdef VER_RSNT /* Support the restaurant function */
else if( lnum == 51 )
{
if(work_mode == RETAIL)
{errorType(ERR_RSNT_MODE);continue;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
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;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
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;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Lcd_Disp_PLU_Stock_Rpt();
}
#endif /* End STOCK */
#ifdef ELEC_JRNL /* Support the Electronic journal function */
else if( lnum == 201 )
{
if(!(sysflag->Log_Atv_Flag))
{errorType(ERR_EJ_ATV);continue;}
rpt_type = (byte)lnum;
Rpt_Disp_Roll_flag = 1;
Do_Elec_Jrnl_Rpt(1, 1);
break;
}
#endif /* End ELEC_JRNL */
else
{
errorType(ERR_DIGIT_ILLEGAL);
rpt_type = 0xff;
Rpt_Disp_Roll_flag = 0;
}
break;
case KD_RPT_PRINT:
if(rpt_type == 0xff)
{
errorType(ERR_NO_RPT_DISP);
break;
}
if( rpt_type == 1 ) /* 1.Daily terminal report */
{
if(Do_Daily_Rpt() == NG) /* When the return is NG, not to print the stamp */
continue;
}
else if( rpt_type == 11 ) /* 2.Period to date report */
{
if(Do_PTD_Rpt() == NG) /* When the return is NG, not to print the stamp */
continue;
}
else if( rpt_type == 2 ) /* 3.Daily department sales report */
{
Do_Daily_Dept_Rpt();
}
else if( rpt_type == 12 ) /* 4.Period to date department sales report */
{
Do_PTD_Dept_Rpt();
}
else if( rpt_type == 3 ) /* 5.Daily department group sales report */
{
Do_Dept_Group_Rep(Idx, DAILY);
}
else if( rpt_type == 13 ) /* 6.Period to date department group sales report */
{
Do_Dept_Group_Rep(Idx, PTD);
}
else if( rpt_type == 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( rpt_type == 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( rpt_type == 5 ) /* 9.Daily PLU group sales report */
{
Do_PLU_Group_Rep(Idx, DAILY);
}
#ifdef PLU_PTD_RPT
else if( rpt_type == 15 ) /* 10.Period to date PLU group sales report */
{
Do_PLU_Group_Rep(Idx, PTD);
}
#endif
else if( rpt_type == 6 ) /* 11.Daily clerk sales report */
{
Do_Daily_Clerk_Rpt();
}
else if( rpt_type == 16 ) /* 12.Period to date clerk sales report */
{
Do_PTD_Clerk_Rpt();
}
else if( rpt_type == 7 ) /* 13.Hourly activity sales report */
{
Do_Hourly_Rpt();
}
#ifdef VER_RSNT /* Support the restaurant function */
else if( rpt_type == 51 )
{
if(Do_Table_Rpt() == NG) /* Print the table report of the total check-out amount */
continue;
}
else if( rpt_type == 52 )
{
Do_Active_Rpt(); /* Print the active table report */
}
#endif /* End VER_RSNT */
#ifdef STOCK /* Support the stock function */
else if( rpt_type == 101 )
{
Do_PLU_Stock_Rpt();
}
#endif /* End STOCK */
#ifdef ELEC_JRNL /* Support the Electronic journal function */
else if( rpt_type == 201 )
{
Do_Elec_Jrnl_Rpt(1, 1);
}
#endif /* End ELEC_JRNL */
else
{
Rpt_Disp_Roll_flag = 0;
rpt_type = 0xff;
errorType(ERR_DIGIT_ILLEGAL);
Get_Full_XZRep_List();
continue;
}
Lcd_Disp_Text(Disp_Successful);
prn_Stamp();
if( CurrMode == ZREPORT)
{
Rpt_Disp_Roll_flag = 0;
rpt_type = 0xff;
Get_Full_XZRep_List();
}
break;
case KD_RPT_CLR:
if(rpt_type == 0xff)
{
errorType(ERR_NO_RPT_DISP);
break;
}
if( rpt_type == 1 ) /* 1.Daily terminal report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Full_Rpt(&report,DAILY);
}
else if( rpt_type == 11 ) /* 2.Period to date report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Full_Rpt(&PTD_report,PTD);
}
else if( rpt_type == 4 ) /* 7.Daily PLU sales report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_PLU_Rpt(DAILY);
}
#ifdef PLU_PTD_RPT
else if( rpt_type == 14 ) /* 8.Period to date PLU sales report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_PLU_Rpt(PTD);
}
#endif
else if( rpt_type == 6 ) /* 11.Daily clerk sales report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Clerk_Rpt(DAILY);
}
else if( rpt_type == 16 ) /* 12.Period to date clerk sales report */
{
if (!Chk_Clr_Rpt_Sure() )
break;
Lcd_ClrText();
Lcd_Disp_Text(Disp_Clearing);
Clr_Clerk_Rpt(PTD);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -