CN110473078A - Information processing method, device, gateway server and medium in invoice issuing - Google Patents

Information processing method, device, gateway server and medium in invoice issuing Download PDF

Info

Publication number
CN110473078A
CN110473078A CN201910687456.2A CN201910687456A CN110473078A CN 110473078 A CN110473078 A CN 110473078A CN 201910687456 A CN201910687456 A CN 201910687456A CN 110473078 A CN110473078 A CN 110473078A
Authority
CN
China
Prior art keywords
invoice
event
information
block
transinformation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910687456.2A
Other languages
Chinese (zh)
Other versions
CN110473078B (en
Inventor
郭锐
李茂材
蔡弋戈
张建俊
秦青
卢吉光
郑罗海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Intellectual Tax Chain Technology Co Ltd
Original Assignee
Shenzhen Intellectual Tax Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Intellectual Tax Chain Technology Co Ltd filed Critical Shenzhen Intellectual Tax Chain Technology Co Ltd
Priority to CN201910687456.2A priority Critical patent/CN110473078B/en
Publication of CN110473078A publication Critical patent/CN110473078A/en
Application granted granted Critical
Publication of CN110473078B publication Critical patent/CN110473078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

Present disclose provides information processing method, device, gateway server and the media in a kind of invoice issuing.This method comprises: invoicing request is received, mark, invoice information, the distribution event invoice transinformation of the event block of the invoicing request comprising the distribution invoice recorded on block chain;According to the mark of the event block of the distribution invoice, the event block of the distribution invoice recorded on the block chain is searched;In the event block found invoice information, distribution event invoice transinformation respectively with the invoice information and consistent distribution event invoice transinformation in the invoicing request when, send the response that allows to make out an invoice.The disclosure can prevent issuing for false invoice, improve the safety for information processing of making out an invoice.

Description

Information processing method, device, gateway server and medium in invoice issuing
The application be the applying date be September in 2018 7, application No. is 201811045443.7, entitled " invoice reports The divisional application of the application of information processing method, device, gateway server and medium in pin ".
Technical field
This disclosure relates to block chain field, and in particular to information processing method, device, gateway clothes in a kind of invoice issuing Business device and medium.
Background technique
There are two types of submit an expense account process for current invoice reimbursement.One is submitting an expense account under line, one is submit an expense account on line.Online lower reimbursement In the case where, the employee of unit is that unit buys article in businessman, the electronic invoice of businessman obtained, electronic invoice is printed, Take unit reimbursement.If before printing, to printing again after electronic invoice modification, reimbursement unit can not investigate employee, cause big Measure false invoice reimbursement.In the case where submitting an expense account on line, employee equally can also be after modifying electronic invoice on computers, In The financial equipment that unit is given on line is submitted an expense account, and virtual invoice is caused to submit an expense account.Existing invoice reimbursement mechanism can not monitor report Whether the invoice of pin is consistent with when outputing.
In addition, the case where also having repetition reimbursement appearance.In the case where online lower reimbursement, employee can print electronic invoice Afterwards, new line is altered, is submitted an expense account respectively in multiple units, multiple units are also difficult to verify out.The case where submitting an expense account on line Under, also there is advanced technological means to modify the new line of electronic invoice in computer, to submit an expense account respectively in not commensurate. Existing invoice reimbursement mechanism also lacks the monitoring for repeating reimbursement.
Summary of the invention
One purpose of the disclosure is to propose the information processing technology in a kind of invoice issuing, it can prevent false hair Ticket is issued, that is, when the invoice when invoice outputed and distribution is inconsistent can not invoicing, improve the peace for information processing of making out an invoice Quan Xing.
According to the one side of the embodiment of the present disclosure, the information processing method in a kind of invoice issuing is disclosed, comprising:
Receive invoicing request, the event of the invoicing request comprising the distribution invoice recorded on block chain Mark, invoice information, the distribution event invoice transinformation of block;
According to the mark of the event block of the distribution invoice, the distribution hair recorded on the block chain is searched The event block of ticket;
Invoice information in the event block found, distribution event invoice transinformation respectively with the invoicing When invoice information in request and consistent distribution event invoice transinformation, the response for allowing to make out an invoice is sent.
According to the one side of the embodiment of the present disclosure, the information processing unit in a kind of invoice issuing is disclosed, feature exists In, comprising:
Second receiving unit, for receiving invoicing request, the invoicing request includes to record on block chain Issue the mark, invoice information, distribution event invoice transinformation of the event block of the invoice;
Second searching unit searches the block chain for the mark of the event block according to the distribution invoice The event block of the distribution invoice of upper record;
Second transmission unit, for invoice information, the distribution event invoice transinformation in the event block found When respectively with the invoice information and consistent distribution event invoice transinformation in invoicing request, transmission allows out The response of ticket.
According to the one side of the embodiment of the present disclosure, a kind of block chain gateway server is disclosed, comprising: memory, storage There is computer-readable instruction;Processor reads the computer-readable instruction of memory storage, to execute the process described above.
According to the one side of the embodiment of the present disclosure, a kind of computer program medium is disclosed, being stored thereon with computer can Reading instruction makes computer execute method as described above when the computer-readable instruction is executed by the processor of computer.
In the embodiment of the present disclosure, invoice information when issuing invoice, invoice are issued into event invoice transinformation as hair At least part of the block main body of the event block of row invoice, is recorded on block chain, generates a mark for the block.In When invoice issuing, invoice information and invoice distribution event invoice transinformation are provided.Due to the common recognition mechanism of block chain, hair Invoice information that ticket writes on block chain when issuing, invoice distribution event invoice transinformation are can not to be tampered and block chain On all nodes can see, therefore, thing can be issued by the invoice information and invoice that will provide in invoice issuing Invoice information and invoice distribution event invoice transfer when the invoice recorded in part invoice transinformation and block chain is issued are believed Manner of breathing compares, and judges whether the invoice is false invoice, so as to avoid issuing for false invoice, improves safety.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the disclosure will It becomes more fully apparent.
Figure 1A -1O is shown according to the information processing method application in the reimbursement of the invoice of an embodiment of the present disclosure on line When submitting an expense account application scenarios, the schematic diagram that invoice submits an expense account related various interfaces is issued to from invoice.
Fig. 2A -2G is shown according under the information processing method application online in the reimbursement of the invoice of an embodiment of the present disclosure Submit an expense account the schematic diagram at related various interfaces when application scenarios.
Fig. 3 A shows the system being applied to according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure Framework map.
Fig. 3 B shows the complete flow process chart of invoice in architecture shown in Fig. 3 A.
Fig. 4 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Fig. 5 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Fig. 6 shows the specific flow chart of step 450 in Fig. 5 according to an embodiment of the present disclosure.
Fig. 7 shows the specific flow chart of step 430 in Fig. 4 according to an embodiment of the present disclosure.
Fig. 8 shows the specific flow chart of step 4301 in Fig. 7 according to an embodiment of the present disclosure.
Fig. 9 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Figure 10 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Figure 11 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Figure 12 shows the flow chart according to the information processing method in the reimbursement of the invoice of an embodiment of the present disclosure.
Figure 13 A shows employee's terminal, reimbursement unit in the case where the reimbursement on line according to an embodiment of the present disclosure The interaction diagrams of terminal, block chain gateway server.
Figure 13 B shows employee's terminal, reimbursement unit in the case where the online lower reimbursement according to an embodiment of the present disclosure The interaction diagrams of terminal, block chain gateway server.
Figure 14 shows the block diagram according to the information processing unit in the reimbursement of the invoice of an embodiment of the present disclosure.
Figure 15 shows the hardware structure diagram of the block chain gateway server according to an embodiment of the present disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, providing these example embodiments makes the disclosure Description will be more full and complete, and the design of example embodiment is comprehensively communicated to those skilled in the art.Attached drawing The only schematic illustrations of the disclosure are not necessarily drawn to scale.Identical appended drawing reference indicates same or like in figure Part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more examples in any suitable manner In embodiment.In the following description, many details are provided to provide filling to the example embodiment of the disclosure Sub-argument solution.It will be appreciated, however, by one skilled in the art that the specific detail can be omitted with technical solution of the disclosure In it is one or more, or can be using other methods, constituent element, step etc..In other cases, it is not shown in detail or retouches Known features, method, realization or operation are stated to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is made to thicken.
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device Body.
Architecture applied by the embodiment of the present disclosure once and overall flow are described with initial reference to Fig. 3 A-3B below.
Fig. 3 A shows a kind of architectural framework applied by the embodiment of the present disclosure.The architecture includes block chain invoice pipe Reason system 4, positioned at the invoice issue terminal 301 of industrial and commercial organ 3, positioned at the terminal of making out an invoice of unit of making out an invoice (claim invoice unit) 2 201, positioned at the invoice reimbursement unit terminal 101 and employee's terminal 102 of invoice reimbursement unit 1.Block chain managing bill system 4 Including block chain gateway server 401, block chain server 402 and banking system server 404.Block chain managing bill system Generally there are multiple block chain servers 402 in 4.Multiple block chain server 402 is based on each user of block chain technical management The electronic invoice of (including invoice issue terminal 301, terminal of making out an invoice 201, reimbursement unit terminal 101 and employee's terminal 102).Block Chain gateway server 401 is used to provide the access service between user and block chain managing bill system 4, can also be used as this reality Apply the accounting nodes in environment.Banking system server 404 is for the problems such as handling banker's payment involved in invoice.
Invoice issue terminal 301, terminal of making out an invoice 201, reimbursement unit terminal 101 and employee's terminal 102 can be dedicated end End, the general purpose terminal, such as desktop computer, mobile phone, PDA, laptop etc. being also possible to after being mounted with to apply.Block chain Each of gateway server 401, block chain server 402 and banking system server 404 can by single computer or A part (as virtual machine) in single computer realizes that the computer that can also be networked by more is realized, can also be by more The computer of platform networking respectively realize by a part joint.For example, it can use the form of cluster virtual machine, i.e., from more physics A part is respectively divided out on machine as virtual machine, its function is exercised by collective.It, can also be by cloud environment under cloud environment More distributive computing facility joints are realized.
Each user (including invoice issue terminal of block chain managing bill system 4 and the block chain managing bill system 4 301, terminal of making out an invoice 201, reimbursement unit terminal 101 and employee's terminal 102) it can all be a block chain node, that is, record institute There is the invoice information of upper block chained record.Each user of block chain managing bill system 4 and the block chain managing bill system 4 On can store an identical block chain respectively, which is made of multiple blocks, and each block is stored with different letters It ceases, the block on block chain is stored sequentially in time.Each equipment of block chain identical for storage, referred to as one Block chain node.In embodiments of the present invention, each block can recorde the information that an event in invoice circulation is related to.Example Such as, for issuing invoice event, a block is recorded on block chain, record issues the information that invoice event is related to, including Invoice information, distribution invoice event invoice transinformation;For the event of making out an invoice, a block, record are recorded on block chain The information that the event of making out an invoice is related to, including invoice information, event of making out an invoice invoice transinformation;Event is submitted an expense account for invoice, in block A block, the information that record invoice reimbursement event is related to, including invoice information, invoice reimbursement event invoice is recorded on chain to turn Move information.Identical one can be stored respectively on the user of the block chain managing bill system 4 and the block chain managing bill system 4 Therefore block chain plays common supervisory role, any information recorded on the block chain cannot distort.Therefore, the disclosure In embodiment, the characteristic that the data on block chain cannot distort can use, submit an expense account link in invoice, invoice reimbursement request is contained Some invoice informations, event of making out an invoice invoice transinformation and the invoice information for link record of accordingly making out an invoice, event of making out an invoice invoice turn It moves information to compare, comparison unanimously just allows to submit an expense account, it is therefore prevented that false invoice reimbursement.
As shown in Figure 3B, in the embodiment of the present disclosure, the distribution of invoice, the events such as output, submit an expense account all can be by block chain gateway Server 401 is recorded on each block chain node, other nodes in implementation environment is allowed to share invoice information, thus Allow each node to provide compliance check for invoice information, improves the safety of invoice information.The embodiment of the present disclosure It is issued invoice as a kind of assets, an event is all regarded in the transfer each time of assets as, is remembered by block chain gateway server 401 It records on block chain node.Specifically, invoice issue terminal 301 issues invoice to terminal 201 of making out an invoice, while will issue invoice Event is recorded in each block chain node by block chain gateway server 401.Terminal of making out an invoice 201 is by invoice open expense report The employee of position, therefore, electronic invoice is transferred in employee's terminal 102 when making out an invoice, while event of making out an invoice is by block chain gateway service Device 401 is recorded on block chain node.When invoice is taken the reimbursement reimbursement of unit terminal 101 by employee, submit an expense account on unit terminal 101 Block chain gateway server 401 is reported, is recorded on block chain when transferring the bill billing by block chain gateway server 401 It makes out an invoice event, the invoice information of reimbursement and the information in the event of making out an invoice is checked, if errorless, it is empty for illustrating the invoice not False invoice.Meanwhile the claimer of invoice can also be transferred to by block chain gateway server 401 with the invoice that at present record People checks, if errorless, illustrating the invoice not is to repeat to submit an expense account.It is not false invoice in invoice, and is not to repeat to submit an expense account In the case where, allow invoice to submit an expense account.After reimbursement, invoice submits an expense account unit terminal 101 and invoice reimbursement event is passed through block chain gateway Server 401 is recorded on block chain node.
Below with reference to Figure 1A -1O and Fig. 2A -2G, description is according to the letter in the reimbursement of the invoice of an embodiment of the present disclosure Processing method is ceased using simplified process when reimbursement application scenarios on line and under line when reimbursement application scenarios.From retouching for these figures In stating, a complete process of the invoice from all links for being issued to reimbursement can be understood.
Figure 1A -1O is shown according to the information processing method application in the reimbursement of the invoice of an embodiment of the present disclosure on line When submitting an expense account application scenarios, the schematic diagram that invoice submits an expense account related various interfaces is issued to from invoice.
The unit (including enterprise, cause, government offices, social team) of invoice is needed to claim send out in industrial and commercial organ first Ticket.Then, industrial and commercial organ issues invoice to the unit, the interface that invoice publishing system when issuing invoice in industrial and commercial organ is shown As shown in Figure 1A.On interface shown in figure 1A, the staff of industrial and commercial organ, which needs to fill in, to be claimed invoice unit, claims invoice Unit Taxpayer Identification Number, the invoice codes for being intended to be application invoice unit distribution, invoice number, the use rule of invoice, hair Row organ.Wherein, invoice codes and invoice number are combined composition invoice mark, are uniquely to distinguish the invoice and other invoices Different marks.Invoice codes are the marks of the batch of unique identification invoice distribution.One for application invoice unit granting is wholesale Ticket, invoice codes are all identical.By invoice codes, the batch of invoice granting can be distinguished.Invoice number is at one Unique mark of specific invoice is identified in batch.In same batch, the invoice number of different invoices is different.Utilize hair Ticket code adds invoice number, so that it may the unique identification invoice.In distribution, issuing house generally will not be only to application invoice Unit issues an invoice, and therefore, invoice number often fills in a range.It the use of rule is that invoice must be abided by when outputing The rule followed.For example, it can be stated that the amount of filling in of every invoice must not exceed 100,000 yuan, weekly invoice output total value must not More than 1,000,000 yuan, invoice new line must be subordinate unit, Shenzhen, etc..Industrial and commercial organ is to claim invoice unit to set rule Afterwards, invoice unit is claimed in invoicing, and system will verify whether the invoice meets use rule automatically.For example, inspection That looks into invoice fills in whether amount is not above 100,000 yuan, calculates the invoice gross outputed in this week of system, audits the total value 1,000,000 yuan whether are not above after the invoice is outputed, whether the new line of the invoice is subordinate unit, Shenzhen, etc..It is filling out After writing, staff's point " confirmation " button of industrial and commercial organ, invoice publishing system is generated according to the information filled on interface To the electronic invoice of application invoice unit granting, these electronic invoices are automatically sent to the invoice issuing system of application invoice unit In.Meanwhile invoice publishing system issues event using the distribution behavior of this invoice as an invoice, is recorded on block chain, makees The event block of invoice is issued for one, record is just like Figure 1A invoice information filled in and distribution invoice event in the block Invoice transinformation.Invoice transinformation includes the side's of producing information of invoice, the side's of being transferred to information, transfer time.In distribution invoice In event, the side of producing is industrial and commercial organ, " industrial and commercial bureau, Shenzhen " as shown in Figure 1A, and the side of being transferred to is to claim invoice unit, is such as schemed " green field Co., Ltd, Shenzhen " shown in 1A, transfer time are got off the ground after clicking Figure 1A " confirmation " button The time of invoice, the time are self registering by invoice publishing system.
When making out an invoice, interface as shown in Figure 1B is shown in the invoice issuing system for unit of making out an invoice.It opens at left side interface Ticket people, drawer's Taxpayer Identification Number, invoice codes, invoice number, using rule, address, phone, bank of deposit and account be hair It is good that ticket issues system Auto-writing, wherein can be in the range of the invoice number shown in figure 1A for the unit granting of making out an invoice Middle sequence chooses the invoice number Auto-writing that do not provide at left side interface, such as selects according to the ascending sequence of invoice number It takes.Information in the interface of right side, which needs to make out an invoice when the responsible employee to make out an invoice of unit makes out an invoice, fills in, mainly have invoice new line title, Invoice new line Taxpayer Identification Number, receiptor, receiptor's phone, address, phone, bank of deposit and account, the amount of money, purposes etc..It fills out After writing, employee's point " confirmation " button for unit of making out an invoice.Invoice issuing system is outputed according to the information filled on interface and is made out an invoice The electronic invoice that unit is outputed, these electronic invoices, which by wechat described below the modes such as scan and are transferred to receiptor, (to be sent out Ticket reimbursement unit employee) card packet in.Meanwhile the behavior that this is made out an invoice of invoice issuing system is as an event of making out an invoice, Be recorded on block chain, the event block made out an invoice as one, in the block record just like Figure 1B invoice information filled in and Event of making out an invoice invoice transinformation.Invoice transinformation includes the side's of producing information of invoice, the side's of being transferred to information, transfer time.In In event of making out an invoice, the side of producing is unit of making out an invoice, " green field Co., Ltd, Shenzhen " as shown in Figure 1B, the side of the being transferred to person of being Work, as shown in Figure 1B " Zhang Xin ", transfer time is to start the time made out an invoice after clicking Figure 1B " confirmation " button, this when Between be self registering by invoice issuing system.
In fig. ib, after employee's point " confirmation " button for unit of making out an invoice, occurs two dimensional code shown in Fig. 1 C on interface. Oneself mobile phone of employee, i.e., after employee's terminal 102 scans the two dimensional code, electronic invoice can be automatically credited employee's mobile phone, such as There are in the wechat card packet of mobile phone.
After two dimensional code of the employee in mobile phone scanning figure 1C, occurs prompt " your successful scan on the interface of Fig. 1 D Two dimensional code, electronic invoice have been stored in the Ka Bao " of wechat.
After employee sees the interface of Fig. 1 D, open wechat, touch " I " option in the lower right corner, occur on screen " wallet ", The options such as " collection ", " photograph album ", " Ka Bao ", as referring to figure 1E.
Employee selects " Ka Bao " option shown on Fig. 1 E, interface shown in Fig. 1 F occurs.Employee is listed on the interface Card packet in content, including " card ", " discount coupon of friend ", " my ticket " etc..Electronic invoice is at " my ticket " In.
Employee selects " my ticket " on the interface shown in Fig. 1 F, shows that is stored on employee's mobile phone owns on screen Ticket is identified with invoice and is distinguished wherein there is three invoices, and invoice mark is made of invoice codes-invoice number, such as Fig. 1 G institute Show.
Employee selects the invoice shown on the interface of Fig. 1 G, occurs interface as shown in fig. 1H on screen.The interface On list the Action option that can be carried out to the invoice, including " browsing ", " printing ", " being sent to "." printing " option is generally used for Electronic invoice is printed as the case where submitting an expense account under paper line." being sent to " option is generally used for sending expense report for electronic invoice The case where in the terminal of position to carry out electronic invoice reimbursement." browsing " option, which is for general on, to be printed as paper or is sent to report The invoice is checked before pin unit.
Employee inputs the registration I D of reimbursement unit terminal on the interface shown in Fig. 1 H, send reimbursement for electronic invoice Unit terminal reimbursement.At this moment, on the screen of reimbursement unit terminal, interface as shown in Figure 1 I is automatically generated.The showing interface Information include invoice information and make out an invoice event invoice transinformation.Wherein, invoice information is that basis passes to reimbursement unit terminal Electronic invoice on Automatic generation of information, it is basically the same with the information in Figure 1B.And event invoice of making out an invoice turns Moving information then is the invoice reimbursement system automatically generated for submitting an expense account unit terminal.It includes the side's of producing information, the side's of being transferred to information, turns The side's of entering phone, transfer time (not shown) etc., wherein the side's of producing information is generated according to drawer's information in invoice information, with Drawer's information is consistent, such as " green field Co., Ltd, Shenzhen " in Figure 1B;The side's of being transferred to information is believed according to invoice What receiptor's information in breath generated, it is consistent with receiptor's information, such as " Zhang Xin " in Figure 1B;The side's of being transferred to phone is according to hair What receiptor's phone in ticket information generated, such as " 13550422355 " in Figure 1B.
The financial staff of reimbursement unit audits the interface of Fig. 1 I, it is believed that after errorless, need to check this invoice whether be Whether false and this invoice is to repeat situations such as submitting an expense account, but submit an expense account unit itself and not can be carried out this inspection, need by Request is sent to block chain managing bill system 4, and block chain managing bill system 4 is allowed to carry out this inspection, then will check and ties Fruit returns to reimbursement unit terminal, decides whether or not to submit an expense account this invoice to submit an expense account the financial staff of unit.At this moment, expense report The financial staff of position selects " sending invoice reimbursement request " button at the interface Fig. 1 I, in this way, reimbursement unit terminal is sent out to block chain Ticket management system 4 sends invoice reimbursement request, contains information as shown in Figure 1 I in the invoice reimbursement request.Block chain hair Ticket management system 4, which starts to submit an expense account the invoice, to be requested to audit, and determines whether to submit an expense account.
After the financial staff of reimbursement unit selects " the sending invoice reimbursement request " of Fig. 1 I, there is the interface of Fig. 1 J.It should Display " platform is auditing your invoice reimbursement request, please bear with " in interface.
When block chain managing bill system 4 audits the invoice, production when making out an invoice of the invoice stored in block chain is searched Invoice information, event of making out an invoice invoice transinformation in raw event block.If invoice is submitted an expense account the invoice information in requesting, is opened Ticket event invoice transinformation in the event block generated when making out an invoice of the invoice stored in block chain invoice information, Event of making out an invoice invoice transinformation is inconsistent, then the invoice is invoice distort or false.At this point, showing as shown in figure iK Interface is shown " your invoice information is not inconsistent with the invoice information put on record, therefore has tampering, and the audit fails ".
If the invoice information, event of making out an invoice invoice transinformation in invoice reimbursement request are somebody's turn to do with what is stored in block chain Invoice information, event of making out an invoice invoice transinformation in the event block of invoice generated when making out an invoice is consistent, then the invoice is not Invoice distort or false.In one embodiment of the present disclosure, also to verify whether the invoice is the invoice for repeating reimbursement. Due to after invoice is submitted an expense account, the case where for submitting an expense account on line, after completing primary reimbursement, invoice is as a kind of assets, by institute It has the right to go to reimbursement unit from employee, at this point, not being if block chain managing bill system 4 checks the current invoice owner The employee of reimbursement, it is likely that illustrate that the invoice had submitted an expense account the transfer for once having been completed ownership, at this point, also not permitting Perhaps invoice is submitted an expense account.The case where for submitting an expense account under line, may inquire to block chain managing bill system 4 when reimbursement unit is submitted an expense account be It is no the invoice to be submitted an expense account, but after submitting an expense account due to the reimbursement unit not on line, be indifferent to and be also not desired to whereabouts block chain hair Ticket management system 4 goes to implement the transfer of the invoice ownership.Therefore, in the case where online lower reimbursement, in the embodiment of the present disclosure, Electronic invoice is just being printed to the link for reimbursement, lock state is arranged to invoice.In the locked state, only allow to report Pin is primary.It is in the lock state if it is invoice and second is requested reimbursement, in this case, do not allow for submitting an expense account the hair Ticket.In this way, it is prevented that repeating to submit an expense account.Therefore, the risk of invoice reimbursement is greatly reduced.Fig. 1 L shows display " your hair Ticket information had been submitted an expense account, therefore the audit fails " interface.
Since the embodiment of the present disclosure had not only prevented the reimbursement of false invoice, but also repetition is prevented to submit an expense account, if verified both Without the reimbursement of false invoice, also it is not related to repeating to submit an expense account, then allows to submit an expense account, show interface shown in Fig. 1 M at this time, display is " flat Platform has audited the invoice reimbursement request by you, if needs to complete invoice transfer ".
The financial staff interface shown in Fig. 1 M for submitting an expense account unit selects "Yes", occurs invoice information and reimbursement event at this time The confirmation page of invoice transinformation, such as Fig. 1 N.Invoice information in the interface is to send according to employee to reimbursement unit terminal Electronic invoice in Automatic generation of information, correspond essentially to the invoice information in interface shown in Fig. 1 I.In the interface Reimbursement event invoice transinformation include the side's of producing information, the side's of being transferred to information, the side's of producing phone etc..The side's of producing information be according to For receiptor's information in invoice information come what is generated, the side's of being transferred to information is generated according to the invoice new line title in invoice information , the side's of producing phone is generated according to receiptor's phone in invoice information.
The financial staff of reimbursement unit verify the information it is errorless after, select " send reimbursement invoice transfer request " in Fig. 1 N Button sends reimbursement invoice transfer request to block chain managing bill system 4.The reimbursement invoice transfer request includes invoice letter Breath, reimbursement event invoice transinformation.Block chain managing bill system 4 believes the invoice information, reimbursement event invoice transfer It ceases as the event block for submitting an expense account the invoice, is recorded on block chain.In this way, be achieved that the ownership of invoice from employee to The transfer for submitting an expense account unit shows the interface of " being successfully completed invoice transfer " to the financial staff of reimbursement unit, as shown in Fig. 1 O.
Fig. 2A -2G is shown according under the information processing method application online in the reimbursement of the invoice of an embodiment of the present disclosure Submit an expense account the schematic diagram at related various interfaces when application scenarios.
If employee selects " printing " submit an expense account under line in the processing selection interface of invoice as shown in fig. 1H, such as The terminal of fruit employee at this time shows " please connect data line to print to printer ", as shown in Figure 2 A.Meanwhile it being sent out to block chain Ticket management system 4 sends print request under invoice line, and the invoice is recorded as lock state by block chain managing bill system 4. The characteristics of lock state be only allow it is primary to the invoice reimbursement being in the lock state, in other words, from the terminal of reimbursement unit to Block chain managing bill system 4 sends invoice reimbursement request once, not submits an expense account more than primary, thus reimbursement under realizing online In the case where avoid repeat submit an expense account purpose.
Assuming that terminal is connected to printer by connecting line by employee, selected on the interface shown in Fig. 2A " it has connected, Start to print ", at this moment printer starts to print electronic invoice.There is a two dimensional code on the invoice printed, represents block chain The block main body digest value of the event block for outputing the invoice of upper record, the digest value are equivalent to the thing for outputing the invoice The mark of part block is that uniquely, can be found by it and output the invoice for the event block for outputing the invoice Event block.
When online lower reimbursement, employee is taken the electronic invoice printed at the financial staff of reimbursement unit.Financial staff " reimbursement " is selected in invoice reimbursement system, interface shown in Fig. 2 B occurs, display " please needs to submit an expense account with the scanner scanning of connection Two dimensional code on invoice ".At this moment, financial staff's scanner scanning two dimensional code identifies the event block for outputing the invoice The block main body digest value.
Then, in the interface of Fig. 2 C, the financial staff for submitting an expense account unit fills in invoice information, event of making out an invoice invoice transfer letter Breath.Invoice information is according to the information solicitation on the invoice printed, and event of making out an invoice invoice transinformation produces people's information It is according to drawer's information solicitation in the invoice printed, the side's of being transferred to information is according to the receiptor in the invoice printed Information solicitation, the side's of being transferred to phone is filled according to receiptor's phone in the invoice printed.Then financial staff selects " sending invoice reimbursement request " on interface sends invoice reimbursement request, the invoice reimbursement to block chain managing bill system 4 Request includes the block main body digest value scanned the two-dimensional code, the invoice information filled on the interface of Fig. 2 C, event of making out an invoice Invoice transinformation.
Then, reimbursement unit terminal shows interface as shown in Figure 2 D, and " the invoice reimbursement that platform is auditing you is asked for display It asks, please bear with ".
If block chain managing bill system 4 finds that invoice submits an expense account the invoice information in request, the transfer of event of making out an invoice invoice Information turns with the invoice information in the event block of the invoice stored in block chain generated when making out an invoice, event of making out an invoice invoice Shifting information is inconsistent, then the invoice is invoice distort or false.At this point, the interface that display is as shown in Figure 2 E, display " you Invoice information is not inconsistent with the invoice information put on record, therefore has tampering, and the audit fails ".
If the invoice information, event of making out an invoice invoice transinformation in invoice reimbursement request are somebody's turn to do with what is stored in block chain Invoice information, event of making out an invoice invoice transinformation in the event block of invoice generated when making out an invoice is consistent, then the invoice is not Invoice distort or false.In one embodiment of the present disclosure, also to verify whether the invoice is the invoice for repeating reimbursement. Verify whether that the method for repeating to submit an expense account may include whether the owner for judging that invoice is current is the employee (receiptor of invoice), Though and judging whether the invoice is in unlocked state or to be in the lock state but request reimbursement for the first time.If invoice The current owner is the employee, though and the invoice be in unlocked state or be in the lock state for the first time request Reimbursement is not then to repeat to submit an expense account.If the current owner of invoice is not the employee or the invoice is in the lock state and not It is request reimbursement for the first time, then is to repeat to submit an expense account, shows the boundary of " your invoice information had been submitted an expense account, therefore the audit fails " Face, as shown in Figure 2 F.
If verified both without the reimbursement of false invoice, also it is not related to repeating to submit an expense account, then allows to submit an expense account, show figure at this time Interface shown in 2G, display " platform has audited the invoice reimbursement request by you ".
As shown in figure 4, according to one embodiment of the disclosure, the information processing method in a kind of invoice reimbursement is provided. This method is executed by block chain gateway server (such as block chain gateway server 401 in Fig. 3 A).This method comprises:
Step 410 receives invoice reimbursement request, and the invoice reimbursement request outputs the hair comprising what is recorded on block chain Mark, invoice information, event of the making out an invoice invoice transinformation of the event block of ticket;
Step 420, according to the mark of the event block for outputing the invoice, search opening of recording on the block chain The event block of the invoice out;
Step 430, the invoice information in the event block found, event of making out an invoice invoice transinformation respectively with it is described When invoice submits an expense account the invoice information and consistent event invoice transinformation of making out an invoice in request, sending allows the invoice to submit an expense account Response.
These steps are described in detail separately below.
In step 410, invoice reimbursement request is received, the invoice reimbursement request outputs institute comprising what is recorded on block chain State the mark, invoice information, event of making out an invoice invoice transinformation of the event block of invoice.
Invoice reimbursement request be invoice reimbursement unit terminal 101 is sent to block chain gateway server 401 be used for verify The request whether invoice can be submitted an expense account.
In the application scenarios submitted an expense account on invoice line, invoice reimbursement request is in response to scheming in the financial staff of reimbursement unit Selection " send invoice reimbursement request " on the interface of 1I and send.
The mark of event block is to discriminate between unique symbol of event block, and the mark of different event blocks is different.
In one embodiment, the mark of event block is to carry out abstract operation to the block main body of event block and obtain Digest value.Output the event block of the invoice mark be exactly to the block main body of the event block for outputing the invoice into Digest value obtained from row abstract operation.It, should since the digest value that different character strings obtains after operation of making a summary is different Digest value can be as the mark of event block.
In another embodiment, the mark of event block is to carry out abstract obtained from abstract operation to event block Value carries out digest value obtained from abstract operation to the whole event block for including block head and block main body.It outputs described The mark of the event block of invoice is exactly to pluck to the event block (including block main body and block head) for outputing the invoice Want digest value obtained from operation.
In another embodiment, the mark of event block is height of the event block on block chain.Output the hair The mark of the event block of ticket is the height for outputing the event block of the invoice on block chain.It is understood that event The mark of block can also obtain by other means, and the embodiment of the present invention does not limit this.
Invoice information is the invoice information in Fig. 1 I, and event of making out an invoice invoice transinformation is such as the event hair of making out an invoice in Fig. 1 I Ticket transinformation.Invoice information is read in the electronic invoice for be forwarded to invoice reimbursement unit terminal 101 from employee's terminal 102, And verified by the financial staff of invoice reimbursement unit.Electronic invoice is placed on the Ka Bao of employee's terminal 102 by terminal of making out an invoice 201 In, contain invoice information in the electronic invoice.If employee does not distort but is forwarded directly to invoice reimbursement unit terminal 101, invoice information can be directly read from the electronic invoice.Event of making out an invoice invoice transinformation is then reimbursement unit terminal Invoice reimbursement system automatically generated.It includes the side's of producing information, the side's of being transferred to information, the side's of being transferred to phone etc., wherein the side of producing Information is generated according to drawer's information in invoice information, consistent with drawer's information;The side's of being transferred to information is according to hair What receiptor's information in ticket information generated, it is consistent with receiptor's information;The side's of being transferred to phone is according to getting in invoice information What people's phone generated.The block main body digest value for outputing the event block of the invoice is to make out an invoice in terminal 201 of making out an invoice to reimbursement What member's utilization of hour digest algorithm (such as hash algorithm etc.) of unit generated, it is that event block is different from other event blocks , mark that represent the event block.The block main body digest value can be printed directly on electronic invoice, in this way, reimbursement unit Terminal 101 can directly read the block main body digest value and be placed in invoice reimbursement request.The block main body digest value can also It is imprinted on electronic invoice with being converted to two dimensional code.In this way, electronic invoice is transmitted in reimbursement unit terminal 101, unit is submitted an expense account The block main body digest value that two dimensional code represents is placed on invoice reimbursement by the two dimensional code on 101 automatic identification electronic invoice of terminal Block chain gateway server 401 is sent in request.
In the application scenarios submitted an expense account under invoice line, invoice reimbursement request is in response to scheming in the financial staff of reimbursement unit Selection " send invoice reimbursement request " on the interface of 2C and send.Invoice information and event invoice transinformation of making out an invoice are Fig. 2 C The information that middle financial staff fills according to the invoice information printed.Event of making out an invoice invoice transinformation includes the side's of producing letter It ceases, the side's of being transferred to information, the side's of being transferred to phone etc., wherein the side's of producing information is generated according to drawer's information in the invoice printed , it is consistent with drawer's information;The side's of being transferred to information is generated according to receiptor's information in the invoice printed, and is got People's information is consistent;The side's of being transferred to phone is generated according to receiptor's phone in the invoice printed.Output the thing of the invoice The block main body digest value of part block be terminal 201 of making out an invoice make out an invoice unit to reimbursement member's utilization of hour digest algorithm (such as Hash algorithm etc.) generate, it is the mark that event block is different from other event blocks, represents the event block.The area Block main body digest value is also translated into two dimensional code and is imprinted on electronic invoice.In this way, after employee prints the electronic invoice, the two dimensional code It is just imprinted on the invoice printed.As shown in Figure 2 B, the financial staff for submitting an expense account unit is with two on scanner scanning printed invoice After tieing up code, the two dimensional code on 101 automatic identification electronic invoice of unit terminal is submitted an expense account, the block main body that two dimensional code is represented is made a summary Value is placed in invoice reimbursement request and is sent to block chain gateway server 401.
At step 420, it according to the mark of the event block for outputing the invoice, searches and is recorded on the block chain The event block for outputing the invoice.
As described above, the event block that the mark for outputing the event block of the invoice is the invoicing be different from it is other The symbol of event block, therefore, block chain gateway server 401 can find outputing of recording on block chain according to the mark The event block of the invoice.
Specifically, when the mark of the event block for outputing the invoice is to output the area of the event block of the invoice When block main body digest value, the block main body digest value of the event block for outputing the invoice is to comprising invoice information and opening The block main body of ticket event invoice transinformation carries out what abstract operation generated.One example of the abstract operation is Hash fortune It calculates.In the link for outputing the invoice, increase the event block of an invoicing on block chain.The event block includes area Build and block main body.By the invoice information, event of making out an invoice invoice transinformation, as the event for outputing the invoice At least part of the block main body of block is recorded on block chain.The block main body can also include other parts, such as report Pin terminal signing messages, remark information when generating the block etc..In one embodiment, calculated described to output the hair The digest value of the block main body of the event block of ticket and with the event for outputing the invoice is not recorded on the block chain The digest value of the last one block before block, at least one of the block head as the event block for outputing the invoice Part.The block head can also include other parts, such as parity check code etc..In another embodiment, calculated The digest value of the block main body of the event block for outputing the invoice and with described output is not recorded on the block chain The digest value of the block main body of the last one block before the event block of the invoice outputs the invoice as described At least part of the block head of event block.In another embodiment, the calculated event for outputing the invoice The digest value of block and with the last one before the event block for outputing the invoice is not recorded on the block chain The digest value of block, at least part of the block head as the event block for outputing the invoice.In another implementation In example, the digest value of the calculated event block for outputing the invoice and with described open is not recorded on the block chain The digest value of the block main body of the last one block before the event block of the invoice out outputs the invoice as described Event block block head at least part.
Since the event of all invoices on block chain chronologically records, and multiple invoices may be recorded on a block chain Event, therefore, the last one block before not recording the event block for outputing the invoice on block chain is different It surely is current invoice, it may be possible to other invoices.For example, block chain has been recorded with 6 blocks, it is respectively according to timing:
1) distribution of invoice 1;
2) distribution of invoice 2;
3) invoice 1 is made out an invoice:
4) distribution of invoice 3;
5) reimbursement of invoice 1;
6) invoice 2 is made out an invoice.
Current invoice is invoice 3.When invoice 3 is made out an invoice, need to increase block on block chain, i.e. invoice 3 is opened The block of ticket event, as the 7th block, and the last one block before not recording the 7th block on block chain is 6 blocks are about the 2nd invoice.Just because of regardless of do not record on block chain the event block for outputing the invoice it Whether the last one preceding block is about current invoice, in one embodiment, all by its digest value (or its block main body Digest value) be recorded in the digest value (or digest value of current block) of the block main body of current block together as working as proparea At least part of the block head of block, therefore, letter of each block all containing the upper block in block chain on block chain Breath, itself information are also recorded by next block on block chain, and close verifying relationship is formed between block, therefore, The block of block chained record is difficult to be tampered, and substantially increases the safety that invoice information is stored and verified on block chain.It presses According to the block main body digest value of the event block for outputing the invoice, so that it may find opening of recording on the block chain The event block of the invoice out.
In step 430, the invoice information in the event block found, event of making out an invoice invoice transinformation respectively with When the invoice submits an expense account the invoice information and consistent event invoice transinformation of making out an invoice in request, sending allows the invoice The response of reimbursement.
If invoice information, event of making out an invoice invoice transinformation in the event block found respectively with the invoice report Invoice information and event invoice transinformation of making out an invoice in pin request is consistent, in the case of just illustrating that employee submits an expense account on line There is no to distort invoice information when making out an invoice on line, is somebody's turn to do after electronic invoice is printed in the case of reimbursement under line without manually altering The invoice of printing, otherwise will cause the information in the event block found and the information in invoice reimbursement request is different It causes.Under the two unanimous circumstances, the response for allowing invoice to submit an expense account is issued to reimbursement unit terminal 101.In this way, just verifying The case where invoice is distorted avoids the case where submitting an expense account after invoice is distorted.
As shown in figure 5, the method is after step 430 according to one embodiment of the disclosure, further includes:
Step 440 receives reimbursement invoice transfer request, and the reimbursement invoice transfer request includes invoice information, reimbursement thing Part invoice transinformation;
Step 450, the reimbursement hair that the invoice information, reimbursement event invoice transinformation are recorded on block chain In the event block of ticket.
The event block of the reimbursement invoice has to including the invoice information, reimbursement event invoice transinformation Block main body carry out the reimbursement invoice that abstract operation obtains event block block main body digest value.
Step 440-450 is described in detail below.
In step 440, reimbursement invoice transfer request is received, the reimbursement invoice transfer request includes invoice information, report Pin event invoice transinformation.
Reimbursement unit terminal 101 is after the response for whether invoice being allowed to submit an expense account, also by invoice reimbursement event as schemed Timely cochain shown in 3B.If not cochain, invoice circulation follow-up link can not just learn whole letters in the invoice intermediate links Breath, when follow-up link needs to verify since loss of learning will lead to the conclusion of mistake.Therefore, reimbursement unit terminal 101 needs Reimbursement invoice transfer request is issued to block chain gateway server 401.
In the case where submitting an expense account on line, which is in response in financial staff on the interface of Fig. 1 M "Yes" is selected to carry out.In the case where online lower reimbursement, since reimbursement unit does not have online, it, which will not also be indifferent to, will submit an expense account thing Part is to block chained record.Whether whether it be tampered to verify invoice or repeat to submit an expense account, and may utilize the embodiment of the present disclosure Method to block chain gateway server 401 inquiry whether allow to submit an expense account, but not to block chained record submit an expense account event.
The reimbursement invoice transfer request includes invoice information, reimbursement event invoice transinformation.It, should as shown in Fig. 1 N Invoice information is the Automatic generation of information in the electronic invoice sent according to employee to reimbursement unit terminal.Report in the interface Pin event invoice transinformation includes the side's of producing information, the side's of being transferred to information, the side's of producing phone etc..The side's of producing information is according to invoice For receiptor's information in information come what is generated, the side's of being transferred to information is generated according to the invoice new line title in invoice information, The side's of producing phone is generated according to receiptor's phone in invoice information.Invoice information, reimbursement event invoice transinformation Cochain for follow-up link (such as audit link, support tax link, repeat reimbursement link) verifying play a significant role.Invoice letter The cochain of breath ensure that whether the invoice that follow-up link is able to verify that follow-up link is related to is that nothing distorts invoice, and invoice transfer is believed Breath, which repeats reimbursement for verifying, has important information, and this point can be in subsequent detailed description.
In step 450, the invoice information, reimbursement event invoice transinformation are recorded on block chain described in reimbursement In the event block of invoice, the event block of the reimbursement invoice has to including the invoice information, reimbursement event hair The block main body of ticket transinformation carries out the abstract of the block main body of the event block for the reimbursement invoice that abstract operation obtains Value.
As shown in fig. 6, in one embodiment, step 450 may include:
Step 4501 carries out abstract fortune to the block main body for including the invoice information, reimbursement event invoice transinformation It calculates, generates the digest value for submitting an expense account the block main body of event block of the invoice;
Step 4502, digest value and the block chain by the block main body of the event block for submitting an expense account the invoice On do not record the reimbursement invoice event block before the last one block digest value together, as the reimbursement At least part of the block head of the event block of the invoice;
Step 4503, the thing by the invoice information, reimbursement event invoice transinformation, as the reimbursement invoice At least part of the block main body of part block;
Step 4504 connects the block head and the block main body, as the event block for submitting an expense account the invoice, with It is recorded in block chain.
These steps are described in detail below.
Abstract operation in step 4501 can be hash algorithm etc..It, which can be, believes invoice with link of making out an invoice above It ceases, the abstract operation that event of making out an invoice invoice transinformation carries out is the same operation.It in one embodiment, can also be for not Different digest algorithms are directed to invoice, same digest algorithm is arranged in distribution, the links such as make out an invoice, submit an expense account in the same invoice. Block chain gateway server 401 can safeguard an invoice mark and digest algorithm mapping table.When needed in 4501 into When row abstract operation, which is searched according to the invoice mark (invoice codes+invoice number) in invoice information, is obtained Digest algorithm carries out abstract operation.Benefit for different invoices for different digest algorithms is, so that digest value is difficult to be broken Solution further increases the safety of block record information.
In step 4502, similar to the situation of above-mentioned event block record of making out an invoice, by the event of the reimbursement invoice The digest value of the block main body of block, with the reimbursement invoice is not recorded on the block chain event block before most Together, the meaning being recorded in the block head of the event block of the reimbursement invoice is the digest value of the latter block, Information of each block all containing the upper block in block chain on block chain, the block information of itself is also by block chain On next block recorded, close verifying relationship is formed between block, therefore, the block of block chained record is difficult to be usurped Change, substantially increases the safety that invoice information is stored and verified on block chain.
The digest value and the block of the block main body of event block of the block head in addition to recording the reimbursement invoice Except the digest value for not recording the last one block before the event block of the reimbursement invoice on chain, when also store Between stamp, check code etc..Timestamp record generate the block time, be automatically logged into when generating the block block head when Between stab field.Check code is utilized to the position (except the position of the check code) for the other parts for including block head and the position of block main body The position that parity arithmetic generates, the position is for verifying whether the block is changed, and if the block is changed, utilizes Parity arithmetic carries out operation to the position (except the position of the check code) of other parts and the position of block main body, and obtained result is just It can be different from the check code.In this way, the block has been further prevented to be tampered.
The feelings of the generation type and above-mentioned event block record of making out an invoice of block main body and block head in step 4503 and 4504 Shape is also similar, therefore does not repeat.
Above-described embodiment only avoids the case where virtual invoice reimbursement, in a further embodiment, additionally it is possible to Invoice is avoided to repeat to submit an expense account.It is by not only judging when block chain gateway server 401 determines whether invoice reimbursement The invoice information in event block, event of the making out an invoice invoice transinformation that find submit an expense account the hair in request with the invoice respectively Whether ticket information and event invoice transinformation of making out an invoice are consistent, also judge the invoice ownership side information registered at present and reality What whether claimer's information unanimously carried out.
In the embodiment, the invoice reimbursement request can also contain claimer's information.In this way, Fig. 1 I and Fig. 2 C's On interface, the frame (not shown) for filling in " claimer's information " may be had more.The financial staff for submitting an expense account unit needs will be real The employee information of border request reimbursement fills in the frame of " claimer's information ".In this way, sent to block chain gateway server 401 Invoice reimbursement request just contains claimer's information.
In this way, as shown in fig. 7, step 430 may include:
Step 4301, the invoice information in the event block found, event of making out an invoice invoice transinformation respectively with institute When stating the invoice information and consistent event invoice transinformation of making out an invoice in invoice reimbursement request, the ownership of the invoice is inquired Square information;
Step 4302, when the ownership side's information inquired is consistent with claimer's information, sending allows the invoice The response of reimbursement.
Ownership side's information of the inquiry invoice in step 4301 can be there are many implementation.
In one embodiment, the ownership side's information for inquiring the invoice can be by inquiring the hair recorded in block chain The invoice side of the being transferred to information realization of a block the latest in the event block of ticket.As described above, invoice distribution, make out an invoice, report The links such as pin, require by event cochain, and not only by invoice information cochain when cochain, but also will be in invoice transinformation Chain.It is identified in invoice information containing invoice.As described above, containing the invoice side of producing information and can be transferred in invoice transinformation Square information etc..Those of the mark of the invoice in requesting block is submitted an expense account with the invoice in invoice information on entire block chain, just It is all event blocks that the invoice is currently recorded on block chain.The thing of record time the latest is found in these event blocks Part block, the invoice side of the being transferred to information in invoice transinformation therein are exactly ownership side's information of current invoice.
Therefore, such as Fig. 8, in this embodiment, step 4301 includes:
Step 43011 determines and remembers in the event block identified on block chain with the invoice in invoice reimbursement request Record the event block of time the latest;
Step 43012, ownership side's letter by the invoice side of the being transferred to information in definite event block, as the invoice Breath.
The embodiment utilizes the invoice side of being transferred to of a block the latest in the event block of the invoice recorded in block chain Information realizes ownership side's information without record outside additional chain to search ownership side's information of invoice Determination, be conducive to optimize the level of resources utilization.
In addition, in other embodiments, also can use and record the mode of invoice ownership side outside block chain to realize invoice The lookup of ownership side's information.
In one embodiment, it can be recorded using the invoice ownership table outside chain.In invoice ownership table, each hair The invoice mark of ticket is correspondingly recorded with ownership side's information.This requires invoice is issued, is made out an invoice, submitting an expense account the same of event cochain When, also to update the invoice ownership table.At this moment, when requiring to look up current invoice ownership side, due to invoice ownership table Record identifies the invoice ownership side of corresponding update with each invoice, therefore, table can be belonged to from the invoice and is directly read and hair Ticket identifies ownership side's information to one.
In this embodiment, the method is after step 440, further includes: with the reimbursement event invoice transinformation In the invoice ownership table corresponding with invoice mark that is arranged except the block chain of the invoice side of being transferred to information replacement in Ownership side's information.
The invoice side of the being transferred to information generation when invoice reimbursement event occurs, in the reimbursement event invoice transinformation The table newest side to circulate of invoice submits an expense account the terminal of unit, therefore, with the side of being transferred to, information is replaced in invoice ownership table Ownership side's information corresponding with corresponding invoice mark, so that it may achieve the purpose that ownership side's information update.
Correspondingly, ownership side's information of the inquiry invoice includes: to identify according to the invoice, inquires the invoice Belong to table, to obtain ownership side's information.In this way, if employee with same invoice repeat submit an expense account when, if preceding primary reimbursement Be to be carried out on line, that is, complete the transfer of invoice ownership, in other words, will in previous reimbursement will with the invoice identify pair The ownership side's information in invoice ownership table answered has been changed to reimbursement unit rather than employee itself, and in this reimbursement, report Selling people is still the employee, will result in claimer in this way and invoice ownership side is inconsistent, thus is not submitted an expense account.In this way Primary reimbursement is the repetition reimbursement in the case where carrying out on line before avoiding.It is the case where reimbursement under line as preceding primary reimbursement, How to avoid repeating to submit an expense account, describe below.
How the foregoing describe link is submitted an expense account in invoice, invoice is updated while event cochain and belong to table.It is sent out in invoice Row and the link made out an invoice, it is also the same to require to update invoice ownership table while event cochain.
The process that invoice ownership table is updated while the link event cochain made out an invoice is as shown in Figure 9.Step 410 it Before, which comprises
Step 404 receives invoicing request, and the invoicing request includes the distribution hair recorded on block chain Mark, invoice information, the distribution event invoice transinformation of the event block of ticket;
Step 405, according to the distribution invoice event block mark, search the hair recorded on the block chain The event block of the row invoice;
Step 406, the invoice information in the event block found, distribution event invoice transinformation respectively with it is described When invoice information and consistent distribution event invoice transinformation in invoicing request, the response that allows to make out an invoice is sent;
Step 407 receives invoicing transfer request, and the invoicing transfer request includes invoice information, thing of making out an invoice Part invoice transinformation, the event invoice transinformation of making out an invoice includes the invoice side of being transferred to information;
Step 408, using the invoice information, event of making out an invoice invoice transinformation as the event block for outputing the invoice At least part of block main body be recorded on block chain, the event block for outputing the invoice, which has, outputs the hair The block main body digest value of the event block of ticket, it is described to output the hair as the mark for the event block for outputing the invoice The block main body digest value of the event block of ticket passes through to the block for including the invoice information, event of making out an invoice invoice transinformation Main body carries out abstract operation and obtains;
Step 409 is replaced and invoice mark pair with the invoice side of the being transferred to information in the event invoice transinformation of making out an invoice The ownership side's information in invoice ownership table answered.
These steps are described in detail below.
Invoicing request is received in step 404 is in response to employee in unit of making out an invoice in terminal 201 of making out an invoice such as figure " confirmation " button is selected on interface shown in 1B and is realized.Since when issuing invoice, industrial and commercial organ disposably provides invoice Multiple continuous invoices of number are to unit of making out an invoice.Make out an invoice in terminal 201 be usually according to this multiple invoice sequence by it is small to It successively outputs greatly, i.e., by the invoice number for the smallest invoice of invoice number that do not outputed also at present in this multiple continuous invoice Code is shown on the interface of Figure 1B.Content on the left of Figure 1B is invoice issuing system according to letter intrinsic in invoice issuing system What breath automatically generated, the content on right side is that the employee to draw a bill fills according to actual needs when drawing a bill.When selection is " true Recognize " after button, the content of Figure 1B will act as invoice information and be sent to block chain gateway server 401.
In one embodiment, the mark for issuing the event block of the invoice is exactly to the event zone for issuing the invoice The block main body of block carries out digest value obtained from abstract operation.
In another embodiment, the mark for issuing the event block of the invoice is exactly to the event for issuing the invoice Block (including block main body and block head) carries out digest value obtained from abstract operation.
In another embodiment, the mark for issuing the event block of the invoice is to issue the event block of the invoice Height on block chain.
Distribution event invoice transinformation includes the invoice side of producing information, the invoice side of being transferred to information etc., and wherein invoice produces Square information is generated according to the title of industrial and commercial organ, consistent with the title of industrial and commercial organ;The invoice side of being transferred to information is according to neck People (drawer) is taken to generate, it is consistent with receiptor (drawer).Issue the block main body abstract of the event block of the invoice Value is as described above, be to carry out abstract operation to the block main body for including invoice information, distribution event invoice transinformation and generate 's.
In step 405, since block main body digest value energy unique identification goes out to issue the event block of the invoice, because This, according to the block main body digest value, so that it may find the event block of the distribution invoice recorded on the block chain.
In a step 406, the invoice information in the event block found, distribution event invoice transinformation respectively with When invoice information and consistent distribution event invoice transinformation in invoicing request, answering of allowing to make out an invoice is sent It answers.
If the invoice information, distribution event invoice transinformation in the event block found output hair with described respectively Invoice information and distribution event invoice transinformation in ticket request is consistent, and the unit that illustrates to make out an invoice does not forge adulterium invoice Behavior, the invoice be it is legal, allow to output.
In step 407, invoicing transfer request is received, the invoicing transfer request includes invoice information, opens Ticket event invoice transinformation, the event invoice transinformation of making out an invoice includes the invoice side of being transferred to information.
Invoice transfer request is the request of chained record in the event by invoicing.What is issued in step 404 outputs hair Ticket request, which is only whether request is problematic to invoice, to be verified, and there is no problem then allows to output.But it is not in block chain On record this invoice transfer process.If not recording this process, it is subsequent reimbursement, audit etc. links if can lack comparison, The basis of verification is unfavorable for the progress of follow-up link.Therefore, terminal of making out an invoice 201 can be issued to block chain gateway server 401 and be sent out Invoice information and event invoice transinformation of making out an invoice are recorded on block chain on a block by ticket transfer request.Invoice information It can be generated according to the information on interface shown in Figure 1B.Event of making out an invoice invoice transinformation includes the invoice side of producing information, turns The side's of entering information, the side's of being transferred to phone etc..The invoice side of producing information is the invoice issuing system as terminal 201 of making out an invoice according to Figure 1B Drawer automatically generate.The invoice side of being transferred to information is the invoice issuing system as terminal 201 of making out an invoice according to shown in Figure 1B What receiptor automatically generated.The side's of being transferred to phone is as the invoice issuing system receiptor according to shown in Figure 1B for terminal 201 of making out an invoice What phone automatically generated.
In a step 408, using the invoice information, event of making out an invoice invoice transinformation as the event for outputing the invoice At least part of the block main body of block, is recorded on block chain, and the event block for outputing the invoice, which has, to be outputed The digest value of the block main body of the event block of the invoice, it is described to open as the mark for the event block for outputing the invoice The block main body digest value of the event block of the invoice passes through to including the invoice information, event of making out an invoice invoice transfer letter out The block main body of breath carries out abstract operation and obtains.
It in one embodiment, can will include the invoice information, the block main body of event of making out an invoice invoice transinformation Abstract operation is carried out, block main body digest value is obtained.Then, a newly-generated block on block chain.The block that this is obtained At least part of the digest value of previous block as the block head of new block on main body digest value and block chain.By the hair At least part of ticket information, event of making out an invoice invoice transinformation as the block main body of new block.
In step 409, it is replaced and invoice mark with the invoice side of the being transferred to information in the event invoice transinformation of making out an invoice Know ownership side's information in corresponding invoice ownership table.
Record invoice mark and the newest ownership side's information of invoice in invoice ownership table.Before making out an invoice, which returns Ownership side's information of the corresponding invoice mark recorded in category table is unit of making out an invoice, but after making out an invoice, and the ownership side of invoice occurs Variation, becomes invoice receiptor, that is, the invoice side of the being transferred to information in event of making out an invoice invoice transinformation.Therefore, bill after date, Other than the event of making out an invoice needs cochain, it is also necessary to the invoice side of the being transferred to information replacement in event of making out an invoice described in invoice transinformation Ownership side's information in corresponding invoice ownership table is identified with invoice, invoice ownership side is completed and updates.In this way, being subsequent verifying It needs to provide convenience when the ownership side of checking of invoice in link.
The process that invoice ownership table is updated while issuing the link event cochain of invoice is as shown in Figure 9.In step 404 Before, which comprises
Step 401 receives distribution invoice request, and the distribution invoice request turns comprising invoice information, distribution event invoice Move information;
Step 402, using the invoice information, distribution event invoice transinformation as the event block of the distribution invoice Block main body at least part, be recorded in block chain, wherein issue the invoice event block have distribution described in The digest value of the block main body of the event block of invoice, as the mark for the event block for issuing the invoice, the sale room The block main body digest value of the event block of invoice is stated by including the invoice information, distribution event invoice transinformation Block main body carries out abstract operation and obtains;
The invoice side of being transferred to information in the distribution event invoice transinformation is written and invoice mark pair step 403 Ownership side's information is used as in the invoice ownership table answered.
Step 401-403 is described in detail below.
Distribution invoice is received in step 401 to request to be in response to staff's hair shown in Figure 1A in industrial and commercial organ The interface of ticket issuing system selects " confirmation " button and carries out.The boundary of the invoice information such as Figure 1A contained in distribution invoice request Information shown in face.Distribution event invoice transinformation includes the invoice side of producing information, the invoice side of being transferred to information etc..Invoice produces Square information is that the make out an invoice invoice publishing system of terminal 301 is generated automatically according to the issuing house information in Figure 1A.Invoice is transferred to Square information is that the make out an invoice invoice publishing system of terminal 301 is generated automatically according to the application invoice unit information in Figure 1A.
It in step 402, in one embodiment, can will include the invoice information, distribution event invoice transfer letter The block main body of breath carries out abstract operation, obtains block main body digest value.Then, a block, the area are generated on block chain Block is first block that the invoice records on block chain.In one embodiment, the block main body digest value this obtained In the block head for being placed on the block together with the digest value of the block main body of block previous on block chain.In another embodiment In, it can also be by previous block on block main body digest value that this is obtained and block chain (including block main body and block head) Digest value is placed on together in the block head of the block.The invoice information, distribution event invoice transinformation are placed on the block Block main body in.
Record invoice mark and the newest ownership side's information of invoice in invoice ownership table.Before invoice distribution, the hair The corresponding relationship record that the invoice identifies corresponding any invoice mark and ownership side's information is not recorded in ticket ownership table.It is sending out The invoice distribution event block that ticket records when issuing is first record in invoice ownership table of invoice mark.In invoice Before distribution, invoice owner is industrial and commercial organ.After invoice distribution, becomes and claim invoice unit, that is, unit of making out an invoice. Therefore, after invoice distribution, other than the authenticity of the link checking of invoice after invoice distribution event needs cochain to be convenient for, also Need by the invoice issue event invoice transinformation in the invoice side of being transferred to information write-in invoice ownership table in, as with hair Ticket identifies corresponding ownership side's information.In this way, the side of providing when to need the ownership side of checking of invoice in subsequent verifying link Just.
In one embodiment, it in addition to using invoice to belong to off-balancesheet other than chain, can also be stepped on using the invoice transfer outside chain Remember table.In invoice transfer registration table, ownership side's information of current invoice can be equally got.
In this embodiment, after step 440, the method also includes: by the reimbursement event invoice transinformation It is recorded in the invoice transfer registration table corresponding with invoice mark being arranged except the block chain.Invoice transfer registration table record Identified with invoice corresponding generation each event invoice transinformation.Each invoice mark corresponds to an invoice transfer Registration form.For example, corresponding with an invoice mark issue, make out an invoice, submitting an expense account event invoice transinformation, it is recorded in this invoice It identifies in corresponding invoice transfer registration table.Invoice transinformation includes the invoice side of producing information, the side's of being transferred to information etc..Work as hair After ticket distribution, invoice transfer registration table records the invoice and identifies corresponding distribution event invoice transinformation.Work as bill after date, sends out Ticket transfer registration table not only records the invoice and identifies corresponding distribution event invoice transinformation, also records invoice mark Corresponding event invoice transinformation of making out an invoice.After reimbursement, it is corresponding that invoice transfer registration table not only records invoice mark Distribution event invoice transinformation, event of making out an invoice invoice transinformation also record the invoice and identify corresponding reimbursement event hair Ticket transinformation.Its benefit is not only to record the static information of a current point in time, also record invoice and entirely shifted The history of journey.
In this embodiment, the method is after step 440, further includes: by the reimbursement event invoice transinformation It is recorded in the invoice transfer registration table corresponding with invoice mark being arranged except the block chain.It, can be by institute in record It states reimbursement event invoice transinformation and invoice identifies corresponding record.
Correspondingly, ownership side's information of the inquiry invoice includes: to identify according to the invoice, inquires the invoice Transfer registration table, each invoice transinformation in the invoice transfer registration table has the invoice side of being transferred to information, by the hair The invoice side of being transferred to information in the last one invoice transinformation of ticket transfer registration table, as ownership side's information.Invoice turns It moves the last one invoice transinformation of registration form and represents the last one event occurred at present about the invoice, sent out in the event The ticket side of being transferred to information is exactly ownership issue side's information of current invoice.
The foregoing describe link is submitted an expense account in invoice, how invoice transfer registration table is updated while event cochain.It is sending out The link that ticket is issued and makes out an invoice, it is also the same to require to update invoice transfer registration table while event cochain.
The process that invoice transfer registration table is updated while the link event cochain made out an invoice is as shown in Figure 10.In step Before 410, which comprises
Step 404 ', receive invoicing request, invoicing request is comprising described in the distribution that records on block chain Mark, invoice information, the distribution event invoice transinformation of the event block of invoice;
Step 405 ', according to the distribution invoice event block mark, search and recorded on the block chain Issue the event block of the invoice;
Step 406 ', the invoice information in the event block found, distribution event invoice transinformation respectively with institute When stating the invoice information and consistent distribution event invoice transinformation in invoice reimbursement request, the response for allowing to make out an invoice is sent;
Step 407 ', receive invoicing transfer request, the invoicing transfer request includes invoice information, thing of making out an invoice Part invoice transinformation, the event invoice transinformation of making out an invoice includes the invoice side of being transferred to information;
Step 408 ', using the invoice information, event of making out an invoice invoice transinformation as the event zone for outputing the invoice At least part of the block main body of block, is recorded on block chain, and the event block for outputing the invoice, which has, outputs institute The block main body digest value of the event block of invoice is stated, it is described to output institute as the mark for the event block for outputing the invoice The block main body digest value of the event block of invoice is stated by including the invoice information, event of making out an invoice invoice transinformation Block main body carries out abstract operation and obtains;
Step 409 ', the event invoice transinformation of making out an invoice is recorded in invoice transfer registration corresponding with invoice mark In table.
Step 404 ' -408 ' are almost the same with step 404-408 respectively, therefore do not repeat.In step 409 ' in, it will be described Event of making out an invoice invoice transinformation is recorded in invoice transfer registration table corresponding with invoice mark.It occurs in the event of making out an invoice Before, invoice information, the distribution event invoice that corresponding distribution event is identified with the invoice are record in the invoice transfer registration table Transinformation.After event of making out an invoice occurs, it will increase in the invoice transfer registration table and record open corresponding with invoice mark The invoice information of ticket event, event of making out an invoice invoice transinformation.In this way, needing the ownership of checking of invoice for subsequent verifying link Information in the overall process of side or even checking of invoice transfer both provides conveniently.
The process of invoice transfer registration table is updated while issuing the link event cochain of invoice as shown in Figure 10.In Step 404 ' before, which comprises
Step 401 ', receive distribution invoice request, distribution invoice request includes invoice information, event of making out an invoice invoice turn Move information;
Step 402 ', using the invoice information, event of making out an invoice invoice transinformation as the event zone for issuing the invoice At least part of the block main body of block, is recorded on block chain, wherein the event block for issuing the invoice has sale room The block main body digest value for stating the event block of invoice, as the mark for the event block for issuing the invoice, the sale room The block main body digest value of the event block of invoice is stated by including the invoice information, distribution event invoice transinformation Block main body carries out abstract operation and obtains;
Step 403 ', the distribution event invoice transinformation is recorded in invoice transfer registration corresponding with invoice mark In table.
Below to step 401, ' -403 ' are described in detail.
Step 401 ' -402 ' are similar with step 401-402, therefore do not repeat.In step 403 ' in, the distribution event is sent out Ticket transinformation is recorded in invoice transfer registration table corresponding with invoice mark.Before invoice distribution, without invoice, also have There is no corresponding invoice to identify, therefore does not create invoice transfer registration table corresponding with invoice mark.After invoice distribution, Each invoice of creation and distribution identifies corresponding invoice transfer registration table, will remember the distribution event invoice transinformation Record is in invoice transfer registration table corresponding with invoice mark.As shown in Figure 1A, may issue together invoice codes is 2873ERST2,100 invoices that invoice number is 100001-100100, establish corresponding invoice for this 100 invoices respectively Transfer registration table, and will include that the invoice transfer registration is written in the invoice side of producing and the distribution event invoice transinformation for the side of being transferred to Table.
In one embodiment, the reimbursement event invoice transinformation has the invoice side of producing information and the invoice side of being transferred to Information.Such as Figure 11, after step 450, the method also includes:
Step 460 receives and submits an expense account request of making loans, and has in the request of making loans and asks money people's information;
If containing report in the event block of record time the latest with invoice mark in step 470, block chain Pin event invoice transinformation, the invoice side of producing information in the reimbursement event invoice transinformation and asks money people information one It causing, the invoice side of the being transferred to information in the reimbursement event invoice transinformation is consistent with the caller information of request of making loans is submitted an expense account, Then issue the response for allowing to make loans.
In the embodiment, submits an expense account the processing made loans and occur to shift in the invoice ownership of reimbursement event cochain, registration Afterwards, this is it is advantageously ensured that invoice has been completed the transfer of ownership as a kind of assets when making loans, i.e., after assets transfer, Wealth transfer is just carried out, the safety made loans is improved.
After the invoice ownership of reimbursement event cochain, registration shifts, employee can operate in employee's terminal 102 Request is made loans, such as certain operation can be carried out on the display interface of the electronic invoice in card packet (such as on touch interface One " request is made loans " button), it requests to make loans to reimbursement unit terminal 101.After being connected to the request of the employee, reimbursement unit is whole End 101 sends one to block chain gateway server 401 and submits an expense account request of making loans, the employee to make loans automatically according to request in the request Money people's information is asked in (owner of employee's terminal), addition one.It is asked when block chain gateway server 401 receives the reimbursement and makes loans After asking, the last one block with invoice mark recorded on verification block chain first is a reimbursement event block (this point from whether can judge containing reimbursement event invoice transinformation).If not reimbursement event block, then say The bright transfer without completing invoice ownership in reimbursement, not can be carried out and makes loans.If it is reimbursement event block, also to check described The invoice side of producing information in reimbursement event invoice transinformation whether with ask money people information (employee) unanimously, the reimbursement event The invoice side of being transferred to information in invoice transinformation whether with reimbursement make loans request sender's (reimbursement unit) it is consistent.If all Unanimously, it can just make loans.If inconsistent, refusal is made loans.
The above process embodies to become apparent in the interaction diagrams of Figure 13 A.When employee needs to submit an expense account on line, by electronics Invoice is transmitted to reimbursement unit terminal 101 by electronic invoice system.Unit terminal 101 is submitted an expense account to block chain gateway server 401 send invoice reimbursement request, for allowing block chain gateway server 401 to examine true from false of bills, while determining whether invoice belongs to It is submitted an expense account in repetition.If invoice is true, and is not belonging to repeat to submit an expense account, then block chain gateway server 401 is to reimbursement unit terminal 101 send the response for allowing to submit an expense account.It submits an expense account unit terminal 101 and sends the response that reimbursement is completed to employee's terminal 102.Submit an expense account unit Terminal 101 also sends reimbursement invoice transfer request to block chain gateway server 401.Block chain gateway server 401 receives After the request, invoice is submitted an expense account into event cochain, and updates relevant invoice attaching information (such as invoice outside chain belongs to table, invoice Transfer registration table etc.).When employee's terminal 102 requests to make loans, reimbursement unit terminal 101 is looked into block chain gateway server 401 It askes whether invoice has been carried out ownership transfer, i.e., cochain and carries out attaching information update.If so, then block chain gateway server 401 send the response that transfer is completed to reimbursement unit terminal 101.Then, reimbursement unit terminal 101 is put to employee's terminal 102 Money, such as transferred accounts by wechat.
As described above, if employee with same invoice repeat submit an expense account when, if it is preceding it is primary reimbursement be to be carried out on line, due to Must carry out reimbursement event cochain in reimbursement on line, and invoice ownership transfer is to reimbursement unit, in this way, this claimer and It invoice ownership side will be inconsistent.Primary reimbursement is the repetition report in the case where carrying out on line before avoiding in this way Pin.But it if preceding primary reimbursement is submitted an expense account under line, is submitted an expense account under line not and will do it reimbursement event cochain and the registration of invoice ownership It is transferred to reimbursement unit, can not just find and whether repeat the case where submitting an expense account.In order to which the reimbursement in the case where preceding primary reimbursement is line (will be electric Unit reimbursement after sub- printing invoice some without online condition) in the case where, repetition reimbursement can be also found, in a reality It applies in example, primary reimbursement is the repetition reimbursement in the case where submitting an expense account under line before preventing in this way: once electronic invoice It is printed, electronic invoice is just recorded as lock state, and invoice only allows reimbursement one after being registered as lock state Secondary, i.e., to being connected to for the first time after locking the reception invoice reimbursement request with invoice mark, sending allows the invoice report The response of pin.In this way, do not allow then to submit an expense account if it is invoice reimbursement request is received after electronic invoice printing for the second time, thus Primary reimbursement is the repetition reimbursement in the case where submitting an expense account under line before preventing.
As shown in figure 12, in one embodiment, before step 410, the method also includes:
Step 4001 receives print request under invoice line, and print request is identified with invoice under the invoice line;
The invoice is identified corresponding invoice and is recorded as lock state by step 4002, and the lock state only allows pair The invoice is being identified to the reception hair with invoice mark being connected to for the first time after corresponding invoice is recorded as lock state Ticket reimbursement request, sends the response for allowing the invoice to submit an expense account;
Step 4003 prints the invoice, and the opening with invoice mark recorded on block chain is printed on the invoice The corresponding graphic code of mark of the event block of the invoice out.
In step 4001, employee is as shown in Figure 2 A in employee's terminal 102, after selecting " having connected, start to print ", to area Block chain gateway server 401 issues print request under invoice line.It is identified due to being stored in the wechat card packet of Fig. 1 H comprising invoice Invoice information, the wechat card packet can automatically by the invoice mark be added to print request under invoice line.Block chain gateway service Device 401 receives under the invoice line after print request, is identified according to invoice therein, and corresponding invoice is recorded as locking shape State.The method of record locking state is described below.Then, start printed invoice, be printed on the invoice printed for example two-dimentional The graphic code of code, the graphic code correspond to event zone recording on block chain, with invoice mark, outputing the invoice The mark of block, the event block of the mark unique identification invoicing.
In this way, when being submitted an expense account at the financial staff that the invoice printed is taken reimbursement unit by employee, financial staff With the scanner scanning graphic code, the mark of the event block for outputing the invoice will be obtained.In this case, it walks Rapid 4302 include: when the ownership side's information inquired is consistent with claimer's information, if it is determined that the invoice mark pair Though the invoice answered be not in lock state or be in the lock state receive invoice reimbursement request be to identify the invoice Corresponding invoice is recorded as the reception invoice reimbursement request with invoice mark being connected to for the first time after lock state, then sends Allow the response of the invoice reimbursement.
That is, the ownership side's information inquired is consistent with claimer's information can only prevent before primary reimbursement be line Repetition reimbursement when upper reimbursement.It, can be by determining whether that the invoice mark corresponds to if preceding primary reimbursement is submitted an expense account under line Though invoice be not in lock state or be in the lock state receive invoice reimbursement request be by the invoice mark pair The reception invoice reimbursement request with invoice mark that the invoice answered is recorded as being connected to for the first time after lock state is to prevent.Such as Invoice described in fruit identifies corresponding invoice and is not in lock state, illustrates to submit an expense account under no printed invoice line, therefore be safe. If be in the lock state, it at this moment will judge that the reception invoice reimbursement request with invoice mark is which time is received. It is still safe if it is first time.It is then to repeat to submit an expense account if it is number later.In this way, it is therefore prevented that preceding Primary reimbursement is the repetition reimbursement submitted an expense account under line.
In one embodiment, determine the invoice identify corresponding invoice be not in lock state in the following way into Row:
Locking information table corresponding with invoice mark is set, is recorded as locking wherein the invoice is identified corresponding invoice When state, lock state record is that invoice identifies in corresponding locking information table;
According to the invoice mark in the invoice reimbursement request received, locking information corresponding with invoice mark is searched Table;
If non-record locking state in locking information table, it is determined that the invoice identifies corresponding invoice and is not in locking State.
In one embodiment, one corresponding locking information table of setting is identified for each invoice.If the invoice does not have It is registered as lock state, which does not store any information.Alternatively, the locking information table is only recorded for invoice It is just generated after lock state.After having recorded lock state for invoice, lock state record is invoice mark pair In the locking information table answered.For example, the specific fields of locking information table are set 1.At this moment, when it needs to be determined that invoice mark pair When whether the invoice answered is in the lock state, it is only necessary to according to receive invoice reimbursement request in invoice identify, search with The invoice identifies corresponding locking information table, and judges whether respective field sets 1 in locking information table.If setting 1 to illustrate to lock It is fixed, if it is unlocked not set 1 explanation.
In addition, in this embodiment, received though determining that the invoice identifies corresponding invoice and is in the lock state Invoice reimbursement request be the invoice identifies to corresponding invoice is recorded as being connected to for the first time after lock state there is the invoice The reception invoice reimbursement request of mark can also carry out in the following way:
Locking information table corresponding with invoice mark is set, is recorded as locking wherein the invoice is identified corresponding invoice When state, lock state record is that invoice identifies in corresponding locking information table, and be somebody's turn to do in response to receiving to have The invoice of invoice mark submits an expense account request, and invoice reimbursement request is recorded in the locking information table;
According to the invoice mark in the invoice reimbursement request received, locking information corresponding with invoice mark is searched Table;
If record locking state in locking information table, and invoice reimbursement request has not been recorded in the locking information table, Though then determining that the invoice identifies corresponding invoice and is in the lock state, the invoice reimbursement request received is by the invoice It identifies corresponding invoice and is recorded as the reception invoice reimbursement request with invoice mark being connected to for the first time after lock state.
That is, locking information table not only records whether invoice is in the lock state, also it is recorded in and is in the lock state The invoice reimbursement request received later.In this way, if record locking state in locking information table, but in the locking information table Invoice reimbursement request has not been recorded, illustrates that the invoice of invoice mark was not submitted an expense account after locking.It such as submitted an expense account, the locking information Invoice reimbursement request is had in table.In this way, determining that out such case not is to repeat to submit an expense account, reimbursement can permit.
The above process embodies to become apparent in the interaction diagrams of Figure 13 B.When employee needs to submit an expense account under line, by electronics Before printing invoice, print request under invoice line is sent to block chain gateway server 401.Block chain gateway server 401 receives To after the request, invoice is recorded as lock state.102 printed invoice of employee's terminal.The invoice printed is taken report by employee It sells and is submitted an expense account at the financial staff of unit.It submits an expense account unit terminal 101 and sends invoice reimbursement request to block chain gateway server 401. Block chain gateway server 401 will examine true from false of bills, determine whether the invoice is to repeat reimbursement (including to judge that invoice is currently It is no to belong to the employee, though judge whether the invoice is in the lock state or is in the lock state request reimbursement for the first time).Such as Fruit invoice is true, and is not belonging to repeat to submit an expense account, and sends the response for allowing to submit an expense account to reimbursement unit terminal 101.Submit an expense account unit terminal 101 send the response that reimbursement is completed to employee's terminal 102.Due to being submitted an expense account under line, reimbursement unit terminal 101 is not necessarily to and generally Reimbursement invoice transfer request will not be sent to block chain gateway server 401.
Invoice issue terminal 301, terminal of making out an invoice 201, invoice reimbursement terminal 101 are to invoice distribution event, event of making out an invoice, hair Invoice information and invoice transinformation in ticket reimbursement event carry out cochain.But in some cases, due to invoice issue terminal 301, terminal of making out an invoice 201, invoice reimbursement terminal 101 lack the reasons such as record, may in the future its to being recorded at that time on block chain The data of their cochains are queried, it is believed that inconsistent with the data of its cochain.In order to improve them to uplink data authenticity Trust, in one embodiment, by the way of transmitting signature simultaneously when cochain.
In one embodiment, it in each endpoint to register, (including invoice issue terminal 301, makes out an invoice end for each terminal End 201, invoice submit an expense account terminal 101, employee's terminal 102) the unique signature algorithm of distribution stores respectively in respective terminal.Each The signature algorithm of terminal can be different.In this embodiment, the reimbursement invoice transfer request is in addition to invoice information, reimbursement It further include the reimbursement terminal signing messages to invoice information, reimbursement event invoice transinformation except event invoice transinformation. Reimbursement terminal signing messages is that invoice submits an expense account terminal 101 with the signature algorithm oneself distributed to invoice information, reimbursement event invoice Obtained from transinformation is signed electronically.
In this embodiment, step 450 includes: by the invoice information, reimbursement event invoice transinformation, the reimbursement Terminal signing messages, at least part of the block main body as the event block for submitting an expense account the invoice, is recorded on block chain, Wherein, the event block of the reimbursement invoice has to including the invoice information, reimbursement event invoice transinformation, institute The block main body for stating reimbursement terminal signing messages carries out the block master for the event block for submitting an expense account the invoice that abstract operation obtains Body digest value, the mark as the event block for submitting an expense account the invoice.That is, in this case, being recorded on block chain Reimbursement event block block main body include the invoice information, reimbursement event invoice transinformation, the reimbursement terminal label Name information, rather than only include the above two.The block main body for the current block main body for including in the block head of the event block is plucked It is worth, abstract operation only is not carried out to invoice information, reimbursement event invoice transinformation and obtained, be to including invoice Information, reimbursement event invoice transinformation, the entire block main body of the reimbursement terminal signing messages three carry out abstract operation It obtains.
Equally, in the link of making out an invoice of the embodiment, it is also desirable to the cochain side of making out an invoice signing messages.In this embodiment, described Output the event block of the invoice block main body digest value be to include invoice information, event of making out an invoice invoice transinformation, And terminal of making out an invoice carries out the entire block main body of the side's of making out an invoice signing messages of invoice information, event of making out an invoice invoice transinformation Make a summary what operation generated.The event block for outputing the invoice includes:
At least part of as the block head in the event block for outputing the invoice described outputs the hair The block main body digest value of the event block of ticket and with the event zone for outputing the invoice is not recorded on the block chain The digest value of the last one block before block, the block main body digest value of the event block for outputing the invoice by pair Block main body including the invoice information, event of making out an invoice invoice transinformation, the side's of making out an invoice signing messages carries out abstract fortune It obtains;
At least part of invoice information of block main body as the event block for outputing the invoice is opened Ticket event invoice transinformation, the side's of making out an invoice signing messages.
That is, the block main body of the event block of making out an invoice of the embodiment not only includes the invoice information, thing of making out an invoice Part invoice transinformation, further includes the side of making out an invoice signing messages, and block head includes not only to invoice information, event of making out an invoice invoice Transinformation, but also the block main body digest value that abstract operation obtains is carried out to the side's of making out an invoice signing messages.The side's of making out an invoice A.L.S. Breath is to utilize the signature algorithm progress specific to terminal of making out an invoice to invoice information, event of making out an invoice invoice transinformation by making out an invoice terminal What signature obtained.
Equally, link is issued in the invoice of the embodiment, it is also desirable to cochain publisher's signing messages.In this embodiment, The block main body digest value for issuing the event block of the invoice is to including invoice information, invoice distribution event invoice transfer letter Breath and issue terminal issue invoice information, invoice the block main body of publisher's signing messages of event invoice transinformation Carry out what abstract operation generated.The event block of the distribution invoice includes:
At least part of distribution invoice of the block head of event block as the distribution invoice Event block block main body digest value and with the event block that does not record the distribution invoice on the block chain The block main body digest value of the digest value of the last one block before, the event block of the distribution invoice passes through to packet The invoice information, invoice distribution event invoice transinformation, the block main body of the issue terminal signing messages is included to be plucked Operation is wanted to obtain, wherein the issue terminal signing messages is that issue terminal utilizes the signature algorithm pair specific to issue terminal Obtained from the invoice information, invoice distribution event invoice transinformation are signed electronically;
At least part of invoice information of block main body as the event block for outputing the invoice is opened Ticket event invoice transinformation, the side's of making out an invoice signing messages.
Block main body abstract by increasing signing messages in the block main body of the block of block chain above, in block head Value also according to including that invoice information, invoice transinformation, the entire block main body of signing messages generate, improves in block chain Invoice relative recording information non repudiation.
According to one embodiment of the disclosure, as shown in figure 14, the information processing apparatus in a kind of reimbursement of invoice is additionally provided It sets, comprising:
First receiving unit 510, for receiving invoice reimbursement request, the invoice reimbursement request on block chain comprising recording The event block for outputing the invoice mark, invoice information, event of making out an invoice invoice transinformation;
First searching unit 520 searches the block for the mark according to the event block for outputing the invoice The event block for outputing the invoice recorded on chain;
First transmission unit 530, for the invoice information in the event block found, event of making out an invoice invoice transfer letter When breath submits an expense account the invoice information and consistent event invoice transinformation of making out an invoice in request with the invoice respectively, sending allows The response of the invoice reimbursement.
In one embodiment, described device further include:
Second receiving unit (not shown), for receiving reimbursement invoice transfer request, the reimbursement invoice transfer request includes Invoice information, reimbursement event invoice transinformation;
First recording unit (not shown), for using the invoice information, reimbursement event invoice transinformation as reimbursement institute At least part for stating the event block of invoice, is recorded on block chain, and the event block of the reimbursement invoice has pair Abstract main body including the invoice information, reimbursement event invoice transinformation carries out the reimbursement invoice that abstract operation obtains Event block block main body digest value.
In one embodiment, the first recording unit is further used for:
Abstract operation is carried out to the block main body for including the invoice information, reimbursement event invoice transinformation, generates report Sell the block main body digest value of the event block of the invoice;
It is described by not recorded on the block main body digest value and the block chain of the event block of the reimbursement invoice Submit an expense account the digest value of the last one block before the event block of the invoice together, the thing as the reimbursement invoice At least part of the block head of part block;
By the invoice information, reimbursement event invoice transinformation, as the event block for submitting an expense account the invoice At least part of block main body;
The block head and the block main body are connected, as the event block for submitting an expense account the invoice, to be recorded in area Block chain.
In one embodiment, the block main body digest value of the event block for outputing the invoice is to including invoice Information, the block main body of event of making out an invoice invoice transinformation carry out what abstract operation generated.The event for outputing the invoice Block includes:
At least part of of block head as the event block for outputing the invoice described outputs the invoice Event block block main body digest value and with the event block for outputing the invoice is not recorded on the block chain The digest value of the last one block before;
At least part of invoice information of block main body as the event block for outputing the invoice is opened Ticket event invoice transinformation.
In one embodiment, the invoice reimbursement request also contains claimer's information.First transmission unit 530 is further For:
Invoice information, event of making out an invoice invoice transinformation in the event block found are submitted an expense account with the invoice respectively When invoice information and consistent event invoice transinformation of making out an invoice in request, ownership side's information of the invoice is inquired;
When the ownership side's information inquired is consistent with claimer's information, sending allows answering for the invoice reimbursement It answers.
In one embodiment, the invoice information includes invoice mark, and the reimbursement event invoice transinformation includes The invoice side of being transferred to information.Ownership side's information of the inquiry invoice includes:
Determine that the record time is the latest in the event block with the invoice mark in invoice reimbursement request on block chain An event block;
Ownership side's information by the invoice side of the being transferred to information in definite event block, as the invoice.
In one embodiment, the invoice information includes invoice mark, and the reimbursement event invoice transinformation includes The invoice side of being transferred to information.Described device further include: the first replacement unit (not shown) is believed for being shifted with the reimbursement event invoice The invoice side of being transferred to information in breath replaces the invoice ownership table corresponding with invoice mark being arranged except the block chain In ownership side's information.Ownership side's information of the inquiry invoice includes: to identify according to the invoice, inquires the invoice Belong to table, to obtain ownership side's information.
In one embodiment, described device further include:
Third receiving unit (not shown), for receiving invoicing request, the invoicing request is comprising on block chain Mark, invoice information, the distribution event invoice transinformation of the event block of the distribution invoice of record;
Second searching unit (not shown), for the mark of the event block according to the distribution invoice, described in lookup The event block of the distribution invoice recorded on block chain;
Second transmission unit (not shown) turns for the invoice information in the event block found, distribution event invoice When shifting information submits an expense account invoice information and consistent distribution event invoice transinformation in request with the invoice respectively, send The response for allowing to make out an invoice;
4th receiving unit (not shown), for receiving invoicing transfer request, the invoicing transfer request includes Invoice information, event of making out an invoice invoice transinformation, the event invoice transinformation of making out an invoice includes the invoice side of being transferred to information;
Second recording unit (not shown), for using the invoice information, event of making out an invoice invoice transinformation as outputing The event block for stating invoice, is recorded on block chain, and the event block for outputing the invoice, which has, outputs the invoice The block main body digest value of event block, it is described to output the invoice as the mark for the event block for outputing the invoice The block main body digest value of event block passes through to including the invoice information, the block main body of event of making out an invoice invoice transinformation Abstract operation is carried out to obtain;
Second replacement unit (not shown) is replaced for the invoice side of the being transferred to information in event invoice transinformation of making out an invoice described in Change the ownership side's information identified in corresponding invoice ownership table with invoice.
In one embodiment, described device further include:
5th receiving unit (not shown), for receiving distribution invoice request, distribution invoice request include invoice information, Distribution event invoice transinformation;
Third recording unit (not shown), for using the invoice information, distribution event invoice transinformation as sale room At least part for stating the block main body of the event block of invoice, is recorded on block chain, wherein issues the event of the invoice Block has the block main body digest value for the event block for issuing the invoice, the mark as the event block for issuing the invoice Know, the block main body digest value of the event block of the distribution invoice passes through to including the invoice information, distribution event The block main body of invoice transinformation carries out abstract operation and obtains;
Writing unit (not shown), for hair to be written in the invoice side of the being transferred to information in the distribution event invoice transinformation Ticket belongs in table as ownership side's information corresponding with invoice mark.
In one embodiment, the reimbursement event invoice transinformation has the invoice side of producing information and the invoice side of being transferred to Information.Described device further include:
6th receiving unit (not shown) submits an expense account request of making loans for receiving, and has in the request of making loans and asks money people's information;
Response unit (not shown), if for the event zone of record time the latest with invoice mark in block chain Contain reimbursement event invoice transinformation in block, the invoice side of producing information in the reimbursement event invoice transinformation and asks money People's information is consistent, and the invoice side of the being transferred to information in the reimbursement event invoice transinformation and the sender for submitting an expense account request of making loans believe Breath is consistent, then issues the response for allowing to make loans.
In one embodiment, described device further include:
7th receiving unit, for receiving print request under invoice line, print request has invoice mark under the invoice line Know;
Lock state recording unit is recorded as lock state, the locking for the invoice to be identified corresponding invoice State only allow to the invoice is identified be connected to for the first time after corresponding invoice is recorded as lock state have the invoice The reception invoice of mark submits an expense account request, sends the response for allowing the invoice to submit an expense account;
Print unit, for printing the invoice, be printed on the invoice recorded on block chain have the invoice mark The event block for outputing the invoice the corresponding graphic code of mark.
Being identified by for the event block for outputing the invoice in invoice reimbursement request received scans the figure What code obtained, the invoice information in invoice reimbursement request received includes invoice mark.
It is described when the ownership side inquired information is consistent with claimer's information, sending allows the invoice to submit an expense account Response, comprising: when the ownership side's information inquired is consistent with claimer's information, if it is determined that the invoice mark corresponds to Though invoice be not in lock state or be in the lock state receive invoice reimbursement request be by the invoice mark pair The invoice answered is recorded as the reception invoice reimbursement request with invoice mark being connected to for the first time after lock state, then sends and permit Perhaps the response of the described invoice reimbursement.
In one embodiment, the reimbursement invoice transfer request further includes to invoice information, reimbursement event invoice transfer The reimbursement terminal signing messages of information.
It is described using the invoice information, reimbursement event invoice transinformation as the area of the event block of the reimbursement invoice At least part of block main body is recorded on block chain, comprising: by the invoice information, reimbursement event invoice transinformation, institute At least part of reimbursement terminal signing messages as the event block for submitting an expense account the invoice is stated, is recorded on block chain, wherein The event block of the reimbursement invoice has to including the invoice information, reimbursement event invoice transinformation, the report The block main body that the block main body of pin terminal signing messages carries out the event block for the reimbursement invoice that abstract operation obtains is plucked It is worth.
It can be real by the block chain gateway server 401 of Figure 15 according to main broadcaster's label method for building up of the embodiment of the present disclosure It is existing.Block chain gateway server 401 according to the embodiment of the present disclosure is described referring to Figure 15.The block chain that Figure 15 is shown Gateway server 401 is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 15, block chain gateway server 401 is showed in the form of universal computing device.Block chain gateway service The component of device 401 can include but is not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, Connect the bus 830 of different system components (including storage unit 820 and processing unit 810).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810 Row, so that the processing unit 810 executes described in the description section of this specification above-mentioned example method according to the present invention The step of various illustrative embodiments.For example, the processing unit 810 can execute each step as shown in Figure 4.
Storage unit 820 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 8201 and/or cache memory unit 8202, it can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205 8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Block chain gateway server 401 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, indigo plant Tooth equipment etc.) communication, it is logical that the equipment interacted with the block chain gateway server 401 can be also enabled a user to one or more Letter, and/or it is any with enabling the block chain gateway server 401 to be communicated with one or more of the other calculating equipment Equipment (such as router, modem etc.) communication.This communication can by input/output (I/O) interface 650 into Row.Also, block chain gateway server 401 can also pass through network adapter 860 and one or more network (such as local Net (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, network adapter 860 passes through Bus 830 is communicated with other modules of block chain gateway server 401.It should be understood that although not shown in the drawings, can combine Block chain gateway server 401 use other hardware and/or software module, including but not limited to: microcode, device driver, Redundant processing unit, external disk drive array, RAI d system, tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer program medium is additionally provided, computer is stored thereon with Readable instruction makes computer execute the above method and implements when the computer-readable instruction is executed by the processor of computer The method of example part description.
According to one embodiment of the disclosure, a kind of journey for realizing the method in above method embodiment is additionally provided Sequence product, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal It is standby, such as run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (15)

1. the information processing method in a kind of invoice issuing characterized by comprising
Receive invoicing request, the event block of the invoicing request comprising the distribution invoice recorded on block chain Mark, invoice information, distribution event invoice transinformation;
According to the mark of the event block of the distribution invoice, the distribution invoice recorded on the block chain is searched Event block;
Invoice information, distribution event invoice transinformation in the event block found are requested with the invoicing respectively In invoice information and consistent distribution event invoice transinformation when, send the response that allows to make out an invoice.
2. the method according to claim 1, wherein the method is also after sending the response for allowing to make out an invoice Include:
Invoicing transfer request is received, the invoicing transfer request includes invoice information, event of making out an invoice invoice transfer letter Breath, the event invoice transinformation of making out an invoice includes the invoice side of being transferred to information;
The invoice information, event of making out an invoice invoice transinformation are recorded on block chain;
Invoice ownership corresponding with invoice mark is replaced with the invoice side of the being transferred to information in the event invoice transinformation of making out an invoice Ownership side's information in table.
3. according to the method described in claim 2, it is characterized in that, described shift the invoice information, event of making out an invoice invoice Information is recorded on block chain, comprising:
Abstract operation is carried out to the invoice information, event of making out an invoice invoice transinformation, generates the block for the event block made out an invoice The digest value of main body;
The event zone made out an invoice will not be recorded on the block main body digest value of the event block made out an invoice and the block chain The digest value of the last one block before block together, at least part of the block head as the event block of making out an invoice;
Block main body by the invoice information, event of making out an invoice invoice transinformation, as the event block made out an invoice;
The block head and the block main body are connected, as event block of making out an invoice, to be recorded in block chain.
4. the method according to claim 1, wherein the mark of the event block of the distribution invoice is pair Block main body including invoice information, invoice distribution event invoice transinformation carries out the block main body abstract that abstract operation generates Value, the event block for issuing the invoice include:
The thing of at least part of distribution invoice of the block head of event block as the distribution invoice The digest value of the block main body of part block and with do not recorded on the block chain distribution invoice event block it The digest value of the last one preceding block;
The invoice information of the block main body of event block as the distribution invoice, invoice distribution event invoice turn Move information.
5. the method according to claim 1, wherein invoicing request is also containing making out an invoice unit information,
The invoice information in the event block found, distribution event invoice transinformation respectively with the invoicing When invoice information in request and consistent distribution event invoice transinformation, the response for allowing to make out an invoice is sent, comprising:
Invoice information, distribution event invoice transinformation in the event block found are requested with the invoicing respectively In invoice information and distribution event invoice transinformation it is consistent when, inquire ownership side's information of the invoice;
When the ownership side's information inquired is consistent with the unit information of making out an invoice, the response for allowing to make out an invoice is sent.
6. according to the method described in claim 5, it is characterized in that, the invoice information includes invoice mark, the invoice thing Part invoice transinformation includes the invoice side of being transferred to information,
Ownership side's information of the inquiry invoice includes:
It determines in the event block with the invoice mark in invoicing request on block chain and records one of time the latest A event block;
Ownership side's information by the invoice side of the being transferred to information in definite event block, as the invoice.
7. according to the method described in claim 2, it is characterized in that, the invoice information includes invoice mark, the thing of making out an invoice Part invoice transinformation includes the invoice side of being transferred to information,
After receiving invoicing transfer request, the method also includes: in event invoice transinformation of making out an invoice described in What information replacement in the invoice side of being transferred to was arranged except the block chain identifies returning in corresponding invoice ownership table with invoice Category side's information.
8. the method according to claim 1, wherein before receiving invoicing request, which comprises
Distribution invoice request is received, the distribution invoice request includes invoice information, distribution event invoice transinformation;
The invoice information, distribution event invoice transinformation are recorded in block chain;
By in the distribution event invoice transinformation the invoice side of being transferred to information write-in invoice ownership table in as with invoice mark Know corresponding ownership side's information.
9. according to the method described in claim 5, it is characterized in that, the method is also after sending the response for allowing to make out an invoice Include:
Invoicing transfer request is received, the invoicing transfer request includes invoice information, event of making out an invoice invoice transfer letter Breath;
The invoice information, event of making out an invoice invoice transinformation are recorded on block chain;
The event invoice transinformation of making out an invoice is recorded in the invoice corresponding with invoice mark being arranged except the block chain In transfer registration table.
10. according to the method described in claim 9, it is characterized in that, the invoice information includes invoice mark, the invoice thing Part invoice transinformation includes the invoice side of being transferred to information,
Ownership side's information of the inquiry invoice includes:
It is identified according to the invoice, inquires the invoice transfer registration table, the invoice in the invoice transfer registration table is identified The last one invoice transinformation in the invoice side of being transferred to information, as ownership side's information.
11. the method according to claim 1, wherein receive invoicing request before, the method packet It includes:
Distribution invoice request is received, the distribution invoice request includes invoice information, distribution event invoice transinformation;
The invoice information, distribution event invoice transinformation are recorded in block chain;
The distribution event invoice transinformation is recorded in the invoice corresponding with invoice mark being arranged except the block chain In transfer registration table.
12. according to the method for claim 11, which is characterized in that the invoice event invoice transinformation includes that invoice turns The side's of entering information, the invoicing request also contain unit information of making out an invoice,
The invoice information in the event block found, distribution event invoice transinformation respectively with the invoicing When invoice information in request and consistent distribution event invoice transinformation, the response for allowing to make out an invoice is sent, comprising:
Invoice information, distribution event invoice transinformation in the event block found are requested with the invoicing respectively In invoice information and consistent distribution event invoice transinformation when, identified according to the invoice, inquire invoice transfer Registration form, the invoice side of the being transferred to letter in the last one invoice transinformation that the invoice in the invoice transfer registration table is identified Breath, as ownership side's information;
When the ownership side's information inquired is consistent with the unit information of making out an invoice, the response for allowing to make out an invoice is sent.
13. the information processing unit in a kind of invoice issuing characterized by comprising
Second receiving unit, for receiving invoicing request, the invoicing request includes the distribution recorded on block chain Mark, invoice information, the distribution event invoice transinformation of the event block of the invoice;
Second searching unit is searched and is remembered on the block chain for the mark of the event block according to the distribution invoice The event block of the distribution invoice of record;
Second transmission unit, for invoice information, the distribution event invoice transinformation difference in the event block found When with the invoice information and consistent distribution event invoice transinformation in invoicing request, what transmission allowed to make out an invoice Response.
14. a kind of block chain gateway server characterized by comprising
Memory is stored with computer-readable instruction;
Processor reads the computer-readable instruction of memory storage, is required described in any of 1-12 with perform claim Method.
15. a kind of computer program medium, is stored thereon with computer-readable instruction, when the computer-readable instruction is calculated When the processor of machine executes, computer perform claim is made to require method described in any of 1-12.
CN201910687456.2A 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice issuing Active CN110473078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910687456.2A CN110473078B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice issuing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910687456.2A CN110473078B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice issuing
CN201811045443.7A CN109360077B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice reimbursement

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201811045443.7A Division CN109360077B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice reimbursement

Publications (2)

Publication Number Publication Date
CN110473078A true CN110473078A (en) 2019-11-19
CN110473078B CN110473078B (en) 2023-04-07

Family

ID=65350716

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910687456.2A Active CN110473078B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice issuing
CN201811045443.7A Active CN109360077B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice reimbursement

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201811045443.7A Active CN109360077B (en) 2018-09-07 2018-09-07 Information processing method, device, gateway server and medium in invoice reimbursement

Country Status (1)

Country Link
CN (2) CN110473078B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139544A1 (en) * 2020-01-08 2021-07-15 Alipay Labs (singapore) Pte. Ltd. Methods and devices for mitigating invoice financing fraud
CN113222725A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110148046A (en) * 2019-04-16 2019-08-20 深圳市元征科技股份有限公司 A kind of payment management method and device
CN110264325A (en) * 2019-04-26 2019-09-20 国家电网有限公司 A kind of invoice checking method and device based on block chain
CN110473081A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Based on the electronic bill method of charging out and device of block chain, electronic equipment
US11250438B2 (en) 2019-07-31 2022-02-15 Advanced New Technologies Co., Ltd. Blockchain-based reimbursement splitting
CN110443612B (en) * 2019-07-31 2020-12-22 创新先进技术有限公司 Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN110458538B (en) * 2019-07-31 2021-09-24 创新先进技术有限公司 State machine maintenance method and device based on block chain, electronic equipment and storage medium
US10963854B2 (en) 2019-07-31 2021-03-30 Advanced New Technologies Co., Ltd. Blockchain-based electronic bill reimbursement method, apparatus, and electronic device
CN110503409B (en) * 2019-08-28 2022-02-15 腾讯科技(深圳)有限公司 Information processing method and related device
CN112711565B (en) * 2019-10-25 2024-04-12 航天信息股份有限公司 Bill management method, system, device and storage medium based on blockchain
CN111027972B (en) * 2019-11-25 2023-09-01 北京链化未来科技有限公司 Block chain-based data verification method and device and electronic equipment
CN111210288A (en) * 2019-12-26 2020-05-29 大象慧云信息技术有限公司 Tax control server-based invoicing batch invoicing job optimized scheduling method and system
CN111192098A (en) * 2019-12-27 2020-05-22 航天信息股份有限公司 Anti-counterfeiting tax control method and system based on value-added tax invoice format file
CN111179049A (en) * 2020-01-02 2020-05-19 航天信息股份有限公司 Electronic invoice reimbursement method and system based on invoicing behaviors
CN111507815B (en) * 2020-04-20 2021-07-27 腾讯科技(深圳)有限公司 Block chain based information acquisition method, device, equipment and storage medium
CN117273974B (en) * 2023-11-21 2024-02-06 中国人寿保险股份有限公司上海数据中心 Large enterprise expense reimbursement data generation and verification method based on block chain consensus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110038990A (en) * 2009-10-09 2011-04-15 넷매니아 주식회사 System and method for processing electronic vat invoice
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN106952153A (en) * 2017-03-13 2017-07-14 广东网金控股股份有限公司 A kind of method of charging out based on block chain
CN107451874A (en) * 2017-07-27 2017-12-08 武汉天喻信息产业股份有限公司 Electronic invoice integrated conduct method and system based on block chain
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
CN108230053A (en) * 2017-12-19 2018-06-29 广州地铁设计研究院有限公司 A kind of billing system and method for urban track traffic electronic invoice
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101914A1 (en) * 2016-10-10 2018-04-12 Escolhalegal, Llc Systems, methods and machine-readable mediums for data management and payment processing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110038990A (en) * 2009-10-09 2011-04-15 넷매니아 주식회사 System and method for processing electronic vat invoice
CN106952153A (en) * 2017-03-13 2017-07-14 广东网金控股股份有限公司 A kind of method of charging out based on block chain
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
CN107451874A (en) * 2017-07-27 2017-12-08 武汉天喻信息产业股份有限公司 Electronic invoice integrated conduct method and system based on block chain
CN108230053A (en) * 2017-12-19 2018-06-29 广州地铁设计研究院有限公司 A kind of billing system and method for urban track traffic electronic invoice
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139544A1 (en) * 2020-01-08 2021-07-15 Alipay Labs (singapore) Pte. Ltd. Methods and devices for mitigating invoice financing fraud
CN113222725A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain

Also Published As

Publication number Publication date
CN110473078B (en) 2023-04-07
CN109360077B (en) 2023-04-07
CN109360077A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN110473078A (en) Information processing method, device, gateway server and medium in invoice issuing
US11875400B2 (en) Systems, methods, and apparatuses for dynamically assigning nodes to a group within blockchains based on transaction type and node intelligence using distributed ledger technology (DLT)
US20220171877A1 (en) Systems and methods for providing identity verification services
Wu et al. Application of Internet of Things and blockchain technologies to improve accounting information quality
CN100334830C (en) Automated transaction machine digital signature system and method
CN110495132A (en) System and method for being generated in distributed network node, uploading and execute code block
JP2021519488A (en) Systems and methods for using code and images within the blockchain
TW202008290A (en) Blockchain-based service rental methods and devices
CN109447648A (en) The method of recorded data zone block, accounting nodes and medium in block chain network
CN112685766B (en) Enterprise credit investigation management method and device based on block chain, computer equipment and storage medium
CN109684375A (en) Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN106504042A (en) Electronic invoice new line information processing method, client of making out an invoice and relevant device
CN110084655B (en) Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN110414635A (en) A kind of product false proof and traceability system based on RFID
KR102166690B1 (en) Management server and method of digital signature for electronic document
JP2017134768A (en) Paper document management system
Faaroek et al. Design and build academic website with digital certificate storage using blockchain technology
KR100339643B1 (en) System and method for trading business management in Internet web
CN111611611A (en) Application method and device of credit data of transaction main body based on block chain
CN110727735A (en) Method, device and equipment for cooperatively completing task event based on block chain technology
KR20210090519A (en) SLA-Based Sharing Economy Service with Smart Contract for Resource Integrity in the Internet of Things
TWM584951U (en) Insurance financial electronic system
KR101578172B1 (en) Electronic document exchange management system
US9722982B2 (en) Unauthenticated access to artifacts in commerce networks
Saja et al. Blockchain-based certification: enhancing transparency and trust in higher education

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40016820

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant