WO2016192584A1 - 一种信息处理、发票信息确定方法及装置 - Google Patents

一种信息处理、发票信息确定方法及装置 Download PDF

Info

Publication number
WO2016192584A1
WO2016192584A1 PCT/CN2016/083592 CN2016083592W WO2016192584A1 WO 2016192584 A1 WO2016192584 A1 WO 2016192584A1 CN 2016083592 W CN2016083592 W CN 2016083592W WO 2016192584 A1 WO2016192584 A1 WO 2016192584A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
value
product
group
preset threshold
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.)
Ceased
Application number
PCT/CN2016/083592
Other languages
English (en)
French (fr)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2016192584A1 publication Critical patent/WO2016192584A1/zh
Priority to US15/824,741 priority Critical patent/US20180082345A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/353Clustering; Classification into predefined classes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/06Arrangements for sorting, selecting, merging, or comparing data on individual record carriers
    • G06F7/08Sorting, i.e. grouping record carriers in numerical or other ordered sequence according to the classification of at least some of the information they carry
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present invention relates to the field of electrical technologies, and in particular, to a method and device for determining information processing and invoice information.
  • each customer's invoicing qualification is different.
  • a single invoice is limited by the maximum invoicing denomination.
  • the invoicing scheme existing on the market is relatively simple.
  • the method of splitting various products according to the denomination of a single invoice can meet the minimum number of invoices, but cannot meet the minimum requirements of the single invoice product category.
  • the subsequent comparison operations of the customer bring greater complexity.
  • the embodiment of the invention provides a method and a device for determining information processing and invoice information, so as to ensure that the number of products on each invoice is as small as possible while ensuring that the number of invoices is as small as possible, so that the user can compare the invoices. And products to improve work efficiency.
  • Information for each object in the first group of object information generating at least one piece of target information according to a value of the first attribute information of the object, and the preset threshold value, wherein the target information includes a value The first attribute information of the preset threshold value and the second attribute information of the object, and when the value of the first attribute information of the object is reserved for the preset threshold value, the residual value is not zero. And obtaining the obtained residual value as the value of the first attribute information of the object, and transferring the information of the object to the second group of object information;
  • the second group of object information is generated by using the information of the plurality of objects in the second group of object information according to the preset threshold value, wherein the second group of objects is included in each target information.
  • the first attribute information and the second attribute information of the plurality of objects in the information, and the sum value of the first attribute information of the plurality of objects is equal to or smaller than the preset threshold.
  • the information processing method provided by the embodiment of the present invention groups the information of all the objects according to the value of the first attribute information of each object and the preset threshold value, to obtain the first group of object information and the second group.
  • the object such as a product
  • the first attribute information such as a product amount
  • the second attribute information such as a product name.
  • the first group of object information for example, information of a product having an amount of more than 10,000
  • the first group of object information for example, the amount is not Information on 10,000 products.
  • the target information such as invoice information. Therefore, under the premise of ensuring that the number of invoices is as small as possible, the number of products on each invoice is also as small as possible, thereby facilitating the user to compare invoices and products, and improving work efficiency.
  • the at least one target information is generated by using the information of the multiple objects in the second group of object information according to the preset threshold, including:
  • the preset threshold value Another part of which is the value of the first attribute information of the last accumulated object participates in the next accumulation
  • the information of all the objects is grouped according to the value of the first attribute information of each object, and the preset threshold value, to obtain the first group of object information and the second group of object information, including:
  • Determining information of at least one product wherein the information of each product includes the amount and name of the product
  • Information for each of the first set of product information generating at least one invoice information according to a value of the amount of the product, and the preset threshold, wherein the invoice information includes a value of the Setting the amount of the threshold and the name of the product, and when the value of the amount of the product is not zero for the remainder of the preset threshold, the obtained residual value is taken as the product The value of the amount and transfer the information of the product to the second group of product information;
  • At least one invoice information is generated by using the information of the plurality of products in the second group of product information, wherein each invoice information includes the second group of products according to the preset threshold value
  • the amount and name of the plurality of products in the information, and the sum of the amounts of the plurality of products is equal to or less than the preset threshold.
  • the method provided by the embodiment of the present invention groups the information of all the products according to the value of the amount of each product and the preset threshold to obtain the first group product information and the second group product information; Information about each product in the first set of product information: generating at least one invoice information according to a value of the amount of the product, and the preset threshold, wherein the invoice information includes a value of the preset gate The amount of the limit and the name of the product, and when the value of the amount of the product is not zero for the remainder of the predetermined threshold, the residual value obtained is taken as the amount of the product.
  • each invoice information includes an amount and a name of the plurality of products in the second group of product information, and the sum of the amounts of the plurality of products is equal to or smaller than the preset threshold.
  • the at least one invoice information is generated by using the information of the multiple products in the second group of product information according to the preset threshold value, including:
  • the preset threshold If the sum of the amounts of all the products in the second group of product information is greater than the preset threshold, sequentially reading the value of the amount of each product in the second group of product information, and performing the current accumulation, when When the obtained sum value is greater than or equal to the preset threshold value, generating invoice information corresponding to the current sub-accumulation operation, where the invoice information includes the amount and name of the plurality of products participating in the current sub-accumulation operation, and the plurality of products The sum of the amount of money is equal to the preset threshold value; wherein, when the obtained sum value exceeds the preset threshold value, the value of the amount of the last accumulated product of the current time is split, and a part is performed for the current time.
  • an invoice information is generated, including the amount and name of each product in the second group of product information.
  • the information of all the products is grouped according to the value of the amount of each product, and the preset threshold, to obtain the first group of product information and the second group of product information, including:
  • a first unit configured to determine information of the at least one object, where the information of each object includes first attribute information and second attribute information of the object;
  • a second unit configured to group information of all the objects according to a value of the first attribute information of each object, and a preset threshold, to obtain a first group of object information and a second group of object information;
  • a third unit configured to: for each object in the first group of object information: generate at least one target information according to a value of the first attribute information of the object, and the preset threshold, where The target information includes first attribute information that is the preset threshold value and second attribute information of the object, and when the value of the first attribute information of the object is reserved for the preset threshold value, When the residual value is not zero, the obtained residual value is used as the value of the first attribute information of the object, and the information of the object is transferred to the second group of object information;
  • a fourth unit configured to: for the second group of object information, use the information of the plurality of objects in the second group of object information to generate at least one target information according to the preset threshold value, where each target information is included
  • the first attribute information and the second attribute information of the plurality of objects in the second group of object information are included, and a sum value of the first attribute information of the plurality of objects is equal to or smaller than the preset threshold.
  • the fourth unit is configured to: when the at least one target information is generated by using information about multiple objects in the second group of object information according to the preset threshold value, specifically:
  • the preset threshold If the sum of the values of the first attribute information of all the objects in the second group of object information is greater than the preset threshold, sequentially reading the value of the first attribute information of each object in the second group of object information And performing the current accumulation, when the obtained sum value is greater than or equal to the preset threshold, generating target information corresponding to the current sub-accumulation operation, where the target information includes multiple objects participating in the current sub-accumulation operation a first attribute information and a second attribute information, and a sum value of the first attribute information of the plurality of objects participating in the current sub-accumulation operation is equal to the preset threshold; wherein, when the obtained sum value is greater than the preset Threshold value, the first attribute information of the last accumulated object of the current time The value is split, and a part of the value of the first attribute information which is the last accumulated object of the current time is accumulated for the current time so that the obtained sum value reaches the preset threshold value, and the other part is the first object of the last accumulated object.
  • the value of an attribute information participates in the next accumulation; and so on, until the value of the first attribute information of each object in the second group of object information is accumulated, wherein the target information corresponding to the last accumulation operation includes The sum value of the first attribute information of the object is less than or equal to the preset threshold value;
  • the second unit is specifically configured to:
  • a product information determining unit configured to determine information of at least one product, wherein the information of each product includes an amount and a name of the product;
  • a grouping unit configured to group information of all the products according to a value of an amount of each product, and a preset threshold, to obtain a first group of product information and a second group of product information
  • a first invoice information generating unit configured to: generate information for each product in the first group of product information: generate at least one invoice information according to a value of the amount of the product, and the preset threshold value, where the The invoice information includes an amount that is the preset threshold value and a name of the product, and when the value of the amount of the product is not zero for the remainder of the preset threshold value, The obtained residual value is used as the value of the amount of the product, and the information of the product is transferred to the second group of product information;
  • a second invoice information generating unit configured to: for the second group of product information, generate at least one invoice information by using information of the plurality of products in the second group of product information according to the preset threshold value, wherein each The invoice information includes an amount and a name of the plurality of products in the second group of product information, and the sum of the amounts of the plurality of products is equal to or smaller than the preset threshold.
  • the second invoice information generating unit is configured to: when the at least one invoice information is generated by using the information of the multiple products in the second group of product information according to the preset threshold value, specifically:
  • the preset threshold If the sum of the amounts of all the products in the second group of product information is greater than the preset threshold, sequentially reading the value of the amount of each product in the second group of product information, and performing the current accumulation, when When the obtained sum value is greater than or equal to the preset threshold value, generating invoice information corresponding to the current sub-accumulation operation, where the invoice information includes the amount and name of the plurality of products participating in the current sub-accumulation operation, and the plurality of products The sum of the amount of money is equal to the preset threshold value; wherein, when the obtained sum value exceeds the preset threshold value, the value of the amount of the last accumulated product of the current time is split, and a part is performed for the current time.
  • an invoice information is generated, including the amount and name of each product in the second group of product information.
  • the first invoice information generating unit is specifically configured to:
  • FIG. 1 is a schematic flowchart of a method for determining invoice information according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for determining invoice information according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of an information processing method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an invoice information determining apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for determining information processing and invoice information, so as to ensure that the number of products on each invoice is as small as possible while ensuring that the number of invoices is as small as possible, so that the user can compare the invoices. And products to improve work efficiency.
  • the technical solution provided by the embodiment of the invention keeps the invoice simple, so that in the process of comparing the invoice and the product by the customer, it will greatly help to improve the work efficiency.
  • a method for determining invoice information includes the following steps:
  • S101 Determine information about at least one product, where the information of each product includes the amount and name of the product;
  • the information of each product may also include other information than the amount and name of the product.
  • the preset threshold is 10,000, which is the maximum value of the sum of the amounts of all products in a single invoice.
  • the information of the products with the product amount exceeding 10,000 is classified into the first group product information; the information of the products with the product amount less than 10,000 is classified into the second group product information.
  • Information about each product in the first group of product information generating at least one invoice information according to a value of the amount of the product, and the preset threshold, wherein the invoice information includes a value Determining the amount of the preset threshold value and the name of the product, and when the residual value of the value of the product to the preset threshold value is not zero, the obtained residual value is taken as the The value of the amount of the product, and transferring the information of the product to the second set of product information;
  • the amount of product A is 35,000 yuan, and the maximum invoice amount for a single invoice is 10,000.
  • product A 3 invoices are issued, each invoice is 10,000, and the remaining 5,000 is used as a product.
  • the amount of A is transferred to the second set of product information.
  • each invoice information includes the second The amount and name of the plurality of products in the group product information, and the sum of the amounts of the plurality of products is equal to or less than the preset threshold.
  • invoice information described in the embodiment of the present invention may include other information, such as the name of the product, the header of the invoice, the total amount of the invoice, and the like, in addition to the name and amount of the product.
  • the at least one invoice information is generated by using the information of the multiple products in the second group of product information according to the preset threshold value, including:
  • the sum of the amounts of all the products in the second group of product information is greater than the preset threshold, sequentially reading the value of the amount of each product in the second group of product information, and performing the current accumulation, when When the obtained sum value is greater than or equal to the preset threshold value, generating invoice information corresponding to the current sub-accumulation operation, where the invoice information includes the amount and name of the plurality of products participating in the current sub-accumulation operation, and the plurality of products
  • the sum of the amount of money is equal to the preset threshold value; wherein, when the obtained sum value exceeds the preset threshold value, the gold of the last accumulated product of the current time
  • the value of the amount is split, a part of the current time is accumulated so that the obtained sum value reaches the preset threshold value, and another part is used as the value of the amount of the last accumulated product to participate in the next accumulation; and so on until The value of the amount of each product in the second group of product information is accumulated, wherein the value of the amount included in the invoice information corresponding
  • the total amount of these products is more than 10,000, for example, 15,000, of which the amount of product A is 8,000, and the amount of product B is 3,000.
  • the amount is 4,000.
  • the amount of product A is accumulated to form an invoice information, including the amount of product A of 8,000 and the amount of product B of 2,000; and then the next accumulation, that is, the amount of product B is 1,000 and the amount of product C is 4,000.
  • Get an invoice message that includes the amount of product B for 1,000 and the amount of product C for 4.
  • an invoice information is generated, including the amount and name of each product in the second group of product information.
  • the current second group of product information has information about three products.
  • the total amount of these products is less than 10,000, for example, 80,000, of which the amount of product A is 2,000, and the amount of product B is 3,000.
  • the amount is 3,000.
  • an invoice information is generated, including the amount and name of each product in the second group of product information.
  • the information of all the products is grouped according to the value of the amount of each product, and the preset threshold, to obtain the first group of product information and the second group of product information, including:
  • a method for determining invoice information specifically includes:
  • the whole goods list includes information of products whose product amount is greater than or equal to the face value
  • the bulk list includes information about products whose product amount is less than the face value.
  • the face value that is, the maximum total amount of a single invoice.
  • the step S203 specifically includes:
  • step S32 Determine whether the accumulated amount is greater than or equal to the face value. If yes, go to step S33, otherwise go to step S35.
  • step S34 The portion exceeding the face amount is used as the amount of the last accumulated product, and is added to the bulk list, and proceeds to step S31 to continue to traverse the bulk list.
  • step S35 Determine whether the bulk list is traversed. If yes, execute step S36. Otherwise, execute step S31, that is, continue to traverse the bulk list.
  • an information processing method provided by an embodiment of the present invention includes:
  • S301 Determine information about at least one object, where the information of each object includes first attribute information and second attribute information of the object.
  • the object such as a product
  • the first attribute information such as a product amount
  • the second attribute information such as a product name
  • the first group of object information for example, information of a product having an amount of more than 10,000
  • the first group of object information for example, information of a product having an amount of less than 10,000.
  • the information about each object in the first group of object information generating, according to a value of the first attribute information of the object, and the preset threshold, at least one target information, where the target information includes a value of the first attribute information of the preset threshold value and second attribute information of the object, and a residual value obtained by taking the value of the first attribute information of the object to the preset threshold value is not When it is zero, the obtained residual value is taken as the value of the first attribute information of the object, and the information of the object is transferred to the second group of object information;
  • the target information such as invoice information.
  • S304 For the second group of object information, using the information of the plurality of objects in the second group of object information, generating at least one target information according to the preset threshold value, wherein each target information includes the second The first attribute information and the second attribute information of the plurality of objects in the group object information, and the sum value of the first attribute information of the plurality of objects is equal to or smaller than the preset threshold value.
  • the at least one target information is generated by using the information of the multiple objects in the second group of object information according to the preset threshold, including:
  • the preset threshold value Another part of which is the value of the first attribute information of the last accumulated object participates in the next accumulation
  • the information of all the objects is grouped according to the value of the first attribute information of each object, and the preset threshold value, to obtain the first group of object information and the second group of object information, including:
  • an apparatus for determining invoice information includes:
  • the product information determining unit 501 is configured to determine information of at least one product, where the information of each product includes the amount and name of the product;
  • a grouping unit 502 configured to group information of all the products according to a value of an amount of each product, and a preset threshold, to obtain a first group of product information and a second group of product information;
  • the first invoice information generating unit 503 is configured to generate, for the information of each product in the first group of product information, at least one invoice information according to a value of the amount of the product, and the preset threshold value, where
  • the invoice information includes an amount that is the preset threshold value and a name of the product, and when the value of the amount of the product is not zero for the remainder of the preset threshold value, Using the obtained residual value as the value of the amount of the product, and transferring the information of the product to the second group of product information;
  • the second invoice information generating unit 504 is configured to generate, for the second group of product information, at least one invoice information by using information of the plurality of products in the second group of product information according to the preset threshold value, wherein each The invoice information includes an amount and a name of the plurality of products in the second group of product information, and the sum of the amounts of the plurality of products is equal to or smaller than the preset threshold.
  • the second invoice information generating unit is configured to: when the at least one invoice information is generated by using the information of the multiple products in the second group of product information according to the preset threshold value, specifically:
  • the preset threshold value generating invoice information corresponding to the current sub-accumulation operation, where the invoice information includes the amount and name of the plurality of products participating in the current sub-accumulation operation, and the sum of the amounts of the plurality of products is equal to a preset threshold value; wherein, when the obtained sum value exceeds the preset threshold value, the value of the amount of the last accumulated product of the current time is split, and a part of the current time is accumulated to obtain the sum value
  • the preset threshold is reached, and another portion participates in the next accumulation as the value of the amount of the last accumulated product; and so on, until the value of the amount of each product in the second group of product information is accumulated After the completion, wherein the value of the amount included in the invoice information corresponding to the last accumulation operation is less
  • an invoice information is generated, including the amount and name of each product in the second group of product information.
  • the first invoice information generating unit is specifically configured to:
  • an information processing apparatus includes:
  • the first unit 401 is configured to determine information of the at least one object, where the information of each object includes first attribute information and second attribute information of the object;
  • a second unit 402 configured to group information of all the objects according to a value of the first attribute information of each object, and a preset threshold, to obtain a first group of object information and a second group of object information;
  • a third unit 403, configured to: for each object in the first group of object information, generate at least one target information according to a value of the first attribute information of the object, and the preset threshold value, where
  • the target information includes first attribute information that is the preset threshold value and second attribute information of the object, and when the value of the first attribute information of the object is reserved for the preset threshold value
  • the obtained residual value is not zero, the obtained residual value is used as the value of the first attribute information of the object, and the information of the object is transferred to the second group of object information;
  • the fourth unit 404 is configured to generate, according to the preset threshold value, information of the plurality of objects in the second group of object information, and generate at least one target information, where each target information is used.
  • the first attribute information and the second attribute information of the plurality of objects in the second group of object information are included, and a sum value of the first attribute information of the plurality of objects is equal to or smaller than the preset threshold.
  • the fourth unit is configured to: when the at least one target information is generated by using information about multiple objects in the second group of object information according to the preset threshold value, specifically:
  • the preset threshold value Another part of which is the value of the first attribute information of the last accumulated object participates in the next accumulation
  • the second unit is specifically configured to:
  • Each of the units described in the above embodiments of the present invention may be implemented by a physical module such as a processor.
  • the invoice information is determined to minimize the number of invoices and reduce the cost of the customer; the single invoice product type is minimized, and the convenience of the customer to compare the invoice and the product is improved.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Sorting Of Articles (AREA)

Abstract

一种信息处理、发票信息确定方法及装置,用以在保证发票张数尽量少的前提下,使得每张发票上的产品种类也尽可能少,从而便于用户比对发票和产品,提高工作效率。发票信息确定方法,包括:确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称(S101);根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息(S102);针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息(S103);针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息(S104)。

Description

一种信息处理、发票信息确定方法及装置
本申请要求2015年06月04日递交的申请号为201510303430.5、发明名称为“一种信息处理、发票信息确定方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电学技术领域,尤其涉及一种信息处理、发票信息确定方法及装置。
背景技术
在某些业务中,每个客户的开发票资质不同,单张发票因受最大开票面额限制,当一个客户一次下单涉及到多项产品时,想要寻求一个发票张数最少,并且每张发票尽可能的减少产品种类,以减少客户的发票浪费以及提升客户比对发票和产品的便利性。
而目前市面上存在的开具发票的方案比较简单,将各类产品按照单张发票面额做拆分的方式,可以满足发票张数最少的要求,但是满足不了单张发票产品种类最少的要求,对于客户后续的比对操作带来较大的复杂度。
譬如:客户甲的单张发票的票面金额资质为1万,某张订单包含3个产品,分别为:A(2.8万)、B(1万)、C(5千),那么现有技术中的拆分算法得出的结果如下面的表一所示:
表一
Figure PCTCN2016083592-appb-000001
由此可见,现有技术无法实现每张发票上的产品种类尽可能少,在用户比对发票和产品的过程中,单张发票中的产品种类过多,导致工作效率较低。
发明内容
本发明实施例提供了一种信息处理、发票信息确定方法及装置,用以在保证发票张数尽量少的前提下,使得每张发票上的产品种类也尽可能少,从而便于用户比对发票和产品,提高工作效率。
本发明实施例提供的一种信息处理方法,包括:
确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
本发明实施例提供的该信息处理方法,根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。其中,所述对象,例如产品,所述第一属性信息,例如产品金额,所述第二属性信息,例如产品名称。所述第一组对象信息,例如金额超过1万的产品的信息,所述第一组对象信息,例如金额不 足1万的产品的信息。所述的目标信息,例如发票信息。从而,可以使得在保证发票张数尽量少的前提下,使得每张发票上的产品种类也尽可能少,从而便于用户比对发票和产品,提高工作效率。
可选地,按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,包括:
若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息,该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息和第二属性信息。
可选地,根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,包括:
按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
本发明实施例提供的一种发票信息确定方法,包括:
确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。
本发明实施例提供的该方法,根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。使得在保证发票张数尽量少的前提下,使得每张发票上的产品种类也尽可能少,从而便于用户比对发票和产品,提高工作效率。
可选地,按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,包括:
若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
可选地,根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,包括:
按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
本发明实施例提供的一种信息处理装置,包括:
第一单元,用于确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
第二单元,用于根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
第三单元,用于针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
第四单元,用于针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
可选地,所述第四单元按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息时,具体用于:
若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息,该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的 值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息和第二属性信息。
可选地,所述第二单元具体用于:
按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
本发明实施例提供的一种发票信息确定装置,包括:
产品信息确定单元,用于确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
分组单元,用于根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
第一发票信息生成单元,用于针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
第二发票信息生成单元,用于针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。
可选地,所述第二发票信息生成单元按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息时,具体用于:
若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
可选地,所述第一发票信息生成单元,具体用于:
按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
附图说明
图1为本发明实施例提供的一种发票信息确定方法的流程示意图;
图2为本发明实施例提供的另一种发票信息确定方法的流程示意图;
图3为本发明实施例提供的一种信息处理方法的流程示意图;
图4为本发明实施例提供的一种发票信息确定装置的结构示意图;
图5为本发明实施例提供的一种信息处理装置的结构示意图。
具体实施方式
本发明实施例提供了一种信息处理、发票信息确定方法及装置,用以在保证发票张数尽量少的前提下,使得每张发票上的产品种类也尽可能少,从而便于用户比对发票和产品,提高工作效率。
本发明实施例提供的技术方案,保持发票的简单,使得在客户后续比对发票和产品的过程中,对于提升工作效能将带来很大帮助。
下面结合附图对本发明实施例提供的技术方案进行说明。
参见图1,本发明实施例提供的一种发票信息确定方法,包括步骤:
S101、确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
当然,每一产品的信息中还可以包括除了产品的金额和名称之外的其他信息。
S102、根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
例如,所述预设门限值为1万,即单张发票中所有产品的金额的总和的最大值。将产品金额超过1万的产品的信息归为第一组产品信息;将产品金额不足1万的产品的信息归为第二组产品信息。
S103、针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
例如,产品A的金额为3.5万元,而单张发票的最大开票额度是1万,则针对产品A,开出3张发票,每张发票的额度为1万,将剩余的5千作为产品A的金额,并转移至第二组产品信息中。
S104、针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。
需要说明的是本发明实施例中所述的发票信息,除了包括产品的名称、金额以外,还可以包括其他信息,例如发票的抬头、开具发票的单位、发票总金额等信息。
可选地,按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,包括:
若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金 额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
例如,当前第二组产品信息中有3个产品的信息,这些产品的总金额大于1万,例如为1.5万,其中产品A的金额为8千,产品B的金额为3千,产品C的金额为4千。则,先将产品A的金额与产品B的金额相加,得到的和值为1.1万,则将产品B的金额进行拆分,分为2千和1千两部分,其中2千的部分与产品A的金额累加,形成一发票信息,其中包括产品A的金额8千和产品B的金额2千;再进行下一次累加,即将产品B的金额1千和产品C的金额4千进行累加,得到一发票信息,其中包括产品B的金额1千和产品C的金额4。
若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
例如,当前第二组产品信息中有3个产品的信息,这些产品的总金额小于1万,例如为8万,其中产品A的金额为2千,产品B的金额为3千,产品C的金额为3千。则,生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
可选地,根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,包括:
按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
参见图2,本发明实施例提供的一种发票信息的确定方法具体包括:
S201、将产品按照金额从大到小进行排序,并划分出整货列表和散货列表。
其中,整货列表中包括产品金额大于或者等于票面金额的产品的信息;
散货列表中包括产品金额小于票面金额的产品的信息。
所述的票面金额,即单张发票的最大总金额。
S202、遍历整货列表开始,针对每一产品进行整货开票,直到整货列表遍历完毕。其中,每张发票仅含一个产品的信息。
其中,对每一产品进行整货开票时,具体包括:
S21、判断产品金额对票面金额取余得到的余值是否为零,如果是,则执行步骤S22,否则执行步骤S23。
S22、按照票面金额对产品进行开票,得到一张或多张发票。
S23、将得到余值作为产品的金额添加到散货列表,并且将产品的原金额减去该余值得到的金额,按照票面金额进行开票,得到一张或多张发票。
S203、散货开票。即遍历散货列表,按照票面金额将散货叠加,如果某个散货放入后总金额大于票面金额,则需要拆分,将剩余部分丢入散货列表作为下一次累加的第一个散货;最后,将总额小于发票面额的散货列表开到一张发票上。
该步骤S203具体包括:
S31、遍历散货列表。
S32、判断累计金额是否大于或等于票面金额,如果是,则执行步骤S33,否则执行步骤S35。
S33、按照票面金额对产品进行开票。
S34、将超出票面金额的部分作为最后一个累计的产品的金额,并加入散货列表,并继续执行步骤S31,即继续遍历散货列表。
S35、判断散货列表是否遍历完毕,如果是,则执行步骤S36,否则执行步骤S31,即继续遍历散货列表。
S36、开票,总额小于票面金额。
本发明实施例提供的上述方案,使单张发票上产品种类最小化,提升客户操作效能;
参见下面的表二,采用本发明实施例提供的技术方案,相比背景技术中采用现有技术进行开票得到的发票信息更加简单:
表二
Figure PCTCN2016083592-appb-000002
以上仅以确定发票信息为例进行的举例说明,本发明并不限于此种应用。
参见图3,本发明实施例提供的一种信息处理方法,包括:
S301、确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
其中,所述对象,例如产品,所述第一属性信息,例如产品金额,所述第二属性信息,例如产品名称。
S302、根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
其中,所述第一组对象信息,例如金额超过1万的产品的信息,所述第一组对象信息,例如金额不足1万的产品的信息。
S303、针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
其中,所述的目标信息,例如发票信息。
S304、针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
可选地,按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,包括:
若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息,该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属 性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息和第二属性信息。
可选地,根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,包括:
按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
与上述方法相对应地,参见图4,本发明实施例提供的一种发票信息确定装置包括:
产品信息确定单元501,用于确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
分组单元502,用于根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
第一发票信息生成单元503,用于针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
第二发票信息生成单元504,用于针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。
可选地,所述第二发票信息生成单元按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息时,具体用于:
若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等 于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
可选地,所述第一发票信息生成单元,具体用于:
按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
参见图5,本发明实施例提供的一种信息处理装置包括:
第一单元401,用于确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
第二单元402,用于根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
第三单元403,用于针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
第四单元404,用于针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
可选地,所述第四单元按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息时,具体用于:
若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息,该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息和第二属性信息。
可选地,所述第二单元具体用于:
按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
以上本发明实施例中所述的各个单元,都可以由处理器等实体模块实现。
综上所述,采用本发明实施例提供的技术方案,确定的发票信息,使得发票张数最少,减少客户成本;使得单张发票产品种类最少,提升客户比对发票和产品的便利性。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每 一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (12)

  1. 一种信息处理方法,其特征在于,该方法包括:
    确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
    根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
    针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
    针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
  2. 根据权利要求1所述的方法,其特征在于,按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,包括:
    若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息,该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
    若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息 和第二属性信息。
  3. 根据权利要求1或2所述的方法,其特征在于,根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,包括:
    按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
  4. 一种发票信息确定方法,其特征在于,包括:
    确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
    根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
    针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
    针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或小于所述预设门限值。
  5. 根据权利要求4所述的方法,其特征在于,按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,包括:
    若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组 产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
    若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
  6. 根据权利要求4或5所述的方法,其特征在于,根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,包括:
    按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
  7. 一种信息处理装置,其特征在于,包括:
    第一单元,用于确定至少一个对象的信息,其中,每一对象的信息中包括该对象的第一属性信息和第二属性信息;
    第二单元,用于根据每一对象的第一属性信息的值,以及预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息;
    第三单元,用于针对所述第一组对象信息中的每一对象的信息:根据该对象的第一属性信息的值,以及所述预设门限值,生成至少一个目标信息,其中该目标信息中包括值为所述预设门限值的第一属性信息和该对象的第二属性信息,并且,当该对象的第一属性信息的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该对象的第一属性信息的值,并将该对象的信息转移至所述第二组对象信息中;
    第四单元,用于针对所述第二组对象信息:按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息,其中每一目标信息中包括该第二组对象信息中多个对象的第一属性信息和第二属性信息,并且该多个对象的第一属性信息的和值等于或小于所述预设门限值。
  8. 根据权利要求7所述的装置,其特征在于,所述第四单元按照所述预设门限值,利用该第二组对象信息中多个对象的信息,生成至少一个目标信息时,具体用于:
    若所述第二组对象信息中所有对象的第一属性信息的值的总和大于所述预设门限值,则依次读取该第二组对象信息中每一对象的第一属性信息的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的目标信息, 该目标信息中包括参与当前次累加操作的多个对象的第一属性信息和第二属性信息,并且,参与当前次累加操作的多个对象的第一属性信息的和值等于所述预设门限值;其中,当得到的和值大于所述预设门限值时,对当前次最后一个累加的对象的第一属性信息的值进行拆分,一部分作为当前次最后一个累加的对象的第一属性信息的值进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的对象的第一属性信息的值参与下一次的累加;以此类推,直到该第二组对象信息中每一对象的第一属性信息的值均被累加完毕,其中,最后一次累加操作对应的目标信息中包括的对象的第一属性信息的和值小于或等于所述预设门限值;
    若所述第二组对象信息中所有对象的第一属性信息的值的总和小于或等于所述预设门限值,则生成一目标信息,其中包括该第二组对象信息中每一对象的第一属性信息和第二属性信息。
  9. 根据权利要求7或8所述的装置,其特征在于,所述第二单元具体用于:
    按照每一对象的第一属性信息的值从大到小的顺序,对所有所述对象的信息进行排序,根据排序结果以及所述预设门限值,对所有所述对象的信息进行分组,得到第一组对象信息和第二组对象信息,其中,第一组对象信息中每一对象的第一属性信息的值大于或等于所述预设门限值,第二组对象信息中每一对象的第一属性信息的值小于所述预设门限值。
  10. 一种发票信息确定装置,其特征在于,包括:
    产品信息确定单元,用于确定至少一个产品的信息,其中,每一产品的信息中包括该产品的金额和名称;
    分组单元,用于根据每一产品的金额的值,以及预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息;
    第一发票信息生成单元,用于针对所述第一组产品信息中的每一产品的信息:根据该产品的金额的值,以及所述预设门限值,生成至少一个发票信息,其中该发票信息中包括值为所述预设门限值的金额和该产品的名称,并且,当该产品的金额的值对所述预设门限值取余得到的余值不为零时,将所得到的余值作为该产品的金额的值,并将该产品的信息转移至所述第二组产品信息中;
    第二发票信息生成单元,用于针对所述第二组产品信息:按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息,其中每一发票信息中包括该第二组产品信息中多个产品的金额和名称,并且该多个产品的金额的总和等于或 小于所述预设门限值。
  11. 根据权利要求10所述的装置,其特征在于,所述第二发票信息生成单元按照所述预设门限值,利用该第二组产品信息中多个产品的信息,生成至少一个发票信息时,具体用于:
    若所述第二组产品信息中所有产品的金额的总和大于所述预设门限值,依次读取该第二组产品信息中每一产品的金额的值,并进行当前次的累加,当得到的和值大于或等于所述预设门限值时,生成当前次累加操作对应的发票信息,该发票信息中包括参与当前次累加操作的多个产品的金额和名称,并且该多个产品的金额的总和等于所述预设门限值;其中,当得到的和值超过所述预设门限值时,对当前次最后一个累加的产品的金额的值进行拆分,一部分进行当前次累加使得得到的和值达到所述预设门限值,另一部分作为该最后一个累加的产品的金额的值参与下一次的累加;以此类推,直到该第二组产品信息中每一产品的金额的值均被累加完毕,其中,最后一次累加操作对应的发票信息中包括的金额的值小于或等于所述预设门限值;
    若所述第二组产品信息中所有产品的金额的总和小于或等于所述预设门限值,则生成一发票信息,其中包括该第二组产品信息中每一产品的金额和名称。
  12. 根据权利要求10或11所述的装置,其特征在于,所述第一发票信息生成单元,具体用于:
    按照每一产品的金额从大到小的顺序,对所有所述产品的信息进行排序,根据排序结果以及所述预设门限值,对所有所述产品的信息进行分组,得到第一组产品信息和第二组产品信息,其中,第一组产品信息中每一产品的金额大于或等于所述预设门限值,第二组产品信息中每一产品的金额小于所述预设门限值。
PCT/CN2016/083592 2015-06-04 2016-05-27 一种信息处理、发票信息确定方法及装置 Ceased WO2016192584A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/824,741 US20180082345A1 (en) 2015-06-04 2017-11-28 Method and device for processing information and determining invoice information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510303430.5A CN106296375A (zh) 2015-06-04 2015-06-04 一种信息处理、发票信息确定方法及装置
CN201510303430.5 2015-06-04

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/824,741 Continuation US20180082345A1 (en) 2015-06-04 2017-11-28 Method and device for processing information and determining invoice information

Publications (1)

Publication Number Publication Date
WO2016192584A1 true WO2016192584A1 (zh) 2016-12-08

Family

ID=57440170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083592 Ceased WO2016192584A1 (zh) 2015-06-04 2016-05-27 一种信息处理、发票信息确定方法及装置

Country Status (3)

Country Link
US (1) US20180082345A1 (zh)
CN (1) CN106296375A (zh)
WO (1) WO2016192584A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679926A (zh) * 2017-10-11 2018-02-09 中启行物联科技(北京)有限公司 一种发票批量智能拆分和组合算法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582145A (zh) * 2008-05-12 2009-11-18 阿里巴巴集团控股有限公司 一种网络交易支付系统
CN101727650A (zh) * 2009-12-09 2010-06-09 中国民生银行股份有限公司 电子发票的比对方法与比对系统
US20120150738A1 (en) * 2010-12-10 2012-06-14 Aoc Solutions, Inc. Systems and methods for automated prefunding of commercial payments
CN102722843A (zh) * 2012-05-29 2012-10-10 上海汉得信息技术股份有限公司 一种基于ebs企业系统中快速开取增值税发票的方法
CN102855587A (zh) * 2012-08-20 2013-01-02 清华大学 用于电子商务网站的电子发票生成系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055769B1 (en) * 2015-04-30 2018-08-21 Square, Inc. Automatic invoice generation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582145A (zh) * 2008-05-12 2009-11-18 阿里巴巴集团控股有限公司 一种网络交易支付系统
CN101727650A (zh) * 2009-12-09 2010-06-09 中国民生银行股份有限公司 电子发票的比对方法与比对系统
US20120150738A1 (en) * 2010-12-10 2012-06-14 Aoc Solutions, Inc. Systems and methods for automated prefunding of commercial payments
CN102722843A (zh) * 2012-05-29 2012-10-10 上海汉得信息技术股份有限公司 一种基于ebs企业系统中快速开取增值税发票的方法
CN102855587A (zh) * 2012-08-20 2013-01-02 清华大学 用于电子商务网站的电子发票生成系统

Also Published As

Publication number Publication date
CN106296375A (zh) 2017-01-04
US20180082345A1 (en) 2018-03-22

Similar Documents

Publication Publication Date Title
US10748220B2 (en) Account processing method and apparatus
US20150032759A1 (en) System and method for analyzing result of clustering massive data
US9361343B2 (en) Method for parallel mining of temporal relations in large event file
CN108009465A (zh) 一种人脸识别方法及装置
CN110349019B (zh) 一种块链式账本中的验证方法、装置及设备
CN105574041B (zh) 一种数据重组方法和装置
TW201220233A (en) by which category information of long tail keywords is provided for users within a specified time period
CN107885788A (zh) 一种业务数据核查方法
CN107995003A (zh) 国际漫游通信的计费和结算方法、相关装置及分布式系统
US10255300B1 (en) Automatically extracting profile feature attribute data from event data
CN109166021A (zh) 记账方法、装置及业务财务一体化系统
CN105989532A (zh) 数据处理方法及装置
WO2019033741A1 (zh) 投资产品的资源处理方法、装置、存储介质和计算机设备
CN106775962B (zh) 一种规则执行方法及装置
CN107330709B (zh) 确定目标对象的方法及装置
CN102393830A (zh) 数据处理时间获取方法和数据处理时间获取装置
WO2016192584A1 (zh) 一种信息处理、发票信息确定方法及装置
US11429660B2 (en) Photo processing method, device and computer equipment
CN110019357B (zh) 数据库查询脚本生成方法及装置
RU2017106225A (ru) Компьютеризированное динамическое разделение взаимодействий по множественным фрагментам контента
CN105718462A (zh) 一种针对应用操作的作弊检测方法及装置
US20170344607A1 (en) Apparatus and method for controlling skew in distributed etl job
CN105447755B (zh) 一种交易控制方法及装置
CN105260423A (zh) 电子名片去重方法及装置
CN108073444A (zh) 向客户端推送用户数据的方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16802507

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16802507

Country of ref document: EP

Kind code of ref document: A1