📄 deal_data.h
字号:
#ifndef __DEAL_DATA_H__
#define __DEAL_DATA_H__
#include "config.h"
#include "struct.h"
#define FIXED_FILE 1 //定长文件
//#define FAU_DATA_START_ADD 0X40000
uchar locate_invoice_roll(ulong invoice_no,uchar *invoice_roll_code,struct record_struct * record);
uchar calc_invoice_roll_addr(const struct invoice_roll_addr_struct InvRollAddr,
struct invoice_roll_addr_struct* newInvRollAddr);
uchar calc_record_addr(const struct record_addr_struct RecordAddr,
struct record_addr_struct* newRecordAddr,
uint record_length);
uchar get_branch(struct branch_struct * branch,uint branch_no);
uchar get_declare_addr_struct(struct delare_addr_struct *declare_addr);
uchar get_distribute_invoice(ulong start_no,struct distribute_invoice_struct* distribute_invoice,
uchar* index_no,uchar start);
uchar get_inv_roll(uint roll_no,struct invoice_roll_struct * invoice_roll);
uchar get_plu(struct plu_struct * plu,uint plu_no);
uchar get_plu_by_barcode(uint * plu_no,uchar * bar_code);
uchar get_tax_item_index(uchar tax_item);
void init_trade_info(struct trade_info_struct * trade_info);
uchar init_var(void);
uchar is_invoice_roll_over(struct invoice_roll_struct* InvoiceRoll);
uchar is_lock_mac();
uchar is_money_over(const struct menu_struct * menu,
const struct trade_info_struct* trade_info);
uchar locate_invoice(ulong invoice_no,struct record_struct * record,uchar findmode);
//uchar locate_invoice_by_date(uchar flag,uchar * start_date,uchar * end_date);
uchar save_data_DS( struct menu_struct * menu,
struct trade_info_struct * trade_info,
uchar is_trade,ulong * menu_price
);
uchar save_day_data(void);
uchar save_invoice_roll(struct invoice_roll_struct* invoice_roll);
uchar save_record_data(struct record_struct * record);
uchar search_inv_list(uchar *date,uchar start_addr_finded,ulong *addr,uchar *rcd_buf);
#define MAX_ROLL_NUM (INVOICE_ROLL_SIZE[0]*1024)/INV_ROLL_STRUCT_LENGTH+(INVOICE_ROLL_SIZE[1]*1024)/INV_ROLL_STRUCT_LENGTH
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -