客户发票模块

发票
模块ID 30
用户手册 本页
开发文档 Module Customers Invoices (developer)

简介

客户发票模块可用于管理客户发票(创建、更新、删除、展示)。每张发票包含多个发票行。

该模块还用于创建发票的收款,并具有以PDF等格式为每张发票生成文档的功能。

供应商发票由 供应商发票模块 管理。

安装

该模块包含在 Dolibarr 发行版中,因此无需安装。

配置

要使用此模块,必须首先使用管理员帐户通过菜单选项 "主页 - 设置 - 模块"启用它:

选择列出模块的选项卡。然后点击 "激活"。。

模块现在已激活。

如果在该模块的行尾出现一个齿轮图标 ,则单击它以访问特定于模块的设置页面。


页面 发票配置 介绍了如何设置发票模块,并提供了发票模板的一些示例。

创建发票

目前,Dolibarr没有完整的会计流程管理。因此,您仍然必须使用您选择的第三方会计软件包或使用会计师提供的服务。

但是,Dolibarr可以为您之前创建的所有客户创建客户发票(请参阅 合作方模块)。

您可以直接从客户记录、“已接受”状态的报价单、已关闭的订单(状态为“已接受”)或服务合同创建发票。

票据种类

如果您从客户记录中创建发票,则可以选择 4 种类型的发票:

  • 标准发票

这是一张标准发票。没有先决条件。

  • 替换发票

替换发票可以重新开具存在错误、且未执行任何操作(未输入收款)的发票。

每张发票只能创建一个替换发票。创建替换发票 R 时,必须选择要替换的发票 F。一旦创建了 R,即使 F 的发票状态未更改,也无法再对 F 执行操作。

如果替换发票 R 被删除,则发票 F 将恢复其原始状态并继续其生命周期。

如果替换发票 R 已验证,则 F 的发票状态将自动变为“已放弃”。生命周期在发票 R 上继续。

  • 贷项凭单发票

您可以为发票创建多个贷项凭单发票。贷项凭单发票是用于更正(减少)标准发票的发票。可以返还贷项凭单发票的金额,也可以将其转换为折扣,用以减少客户支付任何其它发票的待付款。

  • 预付款发票

您可以根据需要创建任意数量的预付款发票。然后,预付款发票将转换为与预付款相关的另一张发票(最终发票)的折扣(已支付)。

步骤

创建发票后(属草稿模式),您必须为发票选择已在 Dolibarr 中定义的产品或服务,或者直接输入其名称、增值税率、单价。对于发票内的每一行,您还可以定义数量和可能的相对折扣(百分比)。

发票准备好之后,您需要确认发票。请注意,此操作是不可逆的。

确认发票时,系统将根据您在发票模块配置中选择的编号方案分配一个发票编号。

如果在确认发票后检测到错误,您可以通过单击发票页底部的变更按钮修改发票(如果发票尚未达到已收款状态),或者使用发票页底部的重新打开按钮重新打开并修改发票(如果发票已经达到已收款状态)。也可以为它制作替换发票或制作贷项凭单。

增值税计算规则

印花税票

  • 某些国家(如突尼斯)需要缴纳印花税(基于每张发票的固定税款)。在字典表 Table_llx_c_revenuestamp 中定义了相关国家和税款金额的清单。如果贵公司所在的国家/地区被包含在此清单中,则发票的屏幕显示和文档上会出现“印花税票”字段。

减少总金额和/或应付余额

可以减少发票的总金额和/或应付余额,但应该区分是折扣还是减价,尽管这两个术语在某些地方被混为一谈。

减价

“减价”是指发票上详细列出的一种或多种产品或服务的销售价格的相对降低(百分比)。此扣减必须在发票编辑过程中逐行定义,并且其值必须介于 0% 和 100% 之间(注意:在100%折扣的情况下,折扣百分比被提供的 声明 取代)。

折扣

“折扣”是指发票总价的降低。它可以通过两种方式定义,具体取决于它是否与另一张发票相关联,即是否与已收到的付款相关联。

与超额收款相关的折扣

贷项凭单发票和预付款发票,用于跟踪收到的付款(贷项凭单发票对应收款或预付款),可转换为未来的折扣。转换为折扣后,它们将显示在合作方的固定折扣部分。然后可以将其分配给另一张发票以减少发票金额。

与发票收款超过发票金额相关联的超额收款也会显示在折扣中。

当折扣金额大于要支付的发票金额时,从折扣列表中,我们将折扣分为两部分(行右侧的按钮),第一个金额对应于发票金额,第二个是折扣余额。然后,将该折扣的一部分用于发票的收款,并归类为“已支付”。

如果在新发票中使用折扣,将以减少应付余额或发票明细行的形式使用折扣。默认情况下,是添加到发票的明细行,从而减少新发票的总金额。

注意:隐藏选项 FACTURE_DEPOSITS_ARE_JUST_PAYMENTS 允许您将此扣除额显示为已支付的金额,而不是最终发票总金额的减少额。在这种情况下,分期付款发票不被包括在营业额的计算中(因为它被包含在最终发票的总金额中)。如何正确设置此选项取决于您所在国家的会计准则,但这两种规则通常都被接受。

与已收款无关的折扣

也可以设置与已收到的付款无关的折扣。在这种情况下,您必须转到客户页面的“客户”选项卡,并定义分配给该客户的固定折扣(金额)或相对折扣(百分比),以及原因(商业姿态、延迟交货后的补偿等)。一旦这些折扣分配给客户,在编辑该客户的任何发票时,将在页面顶部的 折扣 部分提供这些折扣。与已收到付款后的折扣不同,这些折扣将在发票明细表中显示为负行,因此将在扣除已收到的任何付款之前减少发票总金额。但这些折扣与贷项凭单或预付款无关。

总结

因此,降低发票金额的途径有三种:

  • 为发票明细中的某些产品/服务指定一个 减价 百分比,这将导致总金额低于正常预期总金额。
  • 为客户指定一个与贷项凭单发票和预付款发票无关的 全局折扣,然后将其添加为发票的负金额行,以减少发票的总金额。
  • 通过把“贷项凭单或发票保证金”转换为未来的减扣金额,作为已收到的预付款,这将减少应付余额,但不会减少发票的总金额;

PDF的生成、打印、发送

生成文档时,将根据从“主页 - 设置 - 模块/应用 - 发票”页面中模板清单中选择的模板生成文档。

如果您希望 PDF 文件中包含贵公司的银行帐号或付款支票寄送地址(或两者兼而有之),请执行以下操作:

  1. 激活 银行|现金 模块。
  2. 创建您的公司账户。
  3. 进入菜单“主页-设置-模块/应用-发票”,然后单击配置图标(齿轮),在“付款方式”部分选择在步骤2中创建的公司帐户,或选择用于寄送付款支票的地址,然后单击该部分中的“变更”按钮验证更改。

您现在可以重新生成发票,您将在付款条件下看到贵公司银行帐号或付款支票寄送地址。

如果您已启用电子邮件发送,则有一个特定的“通过电子邮件发送”按钮可用。它在窗口底部显示一个发送表单,并附上发票。您还可以为未付款发票设置提醒模板。

对于来自已注册产品或服务的行,默认情况下会显示编号、名称和描述。如果要隐藏编号或描述,可以通过“主页 - 设置 - PDF”进行配置。

您可以更改两个选项:

  • 在生成的PDF中隐藏产品描述
  • 在生成的PDF中隐藏产品编号

此设置也适用于报价单和订单。

批量打印

如果要一次打印多张发票,可以生成一个PDF文档来收集要打印的文档,然后打开并打印该文档。

为此,进入菜单“结算|付款 - 客户发票 - 列表”:

  • 应用适合您的过滤器以显示所有要一起打印的发票
  • 全部勾选(右栏顶部的复选框)或单独勾选所需的文档
  • 在从至少一个复选框的复选标记中显示的下拉列表中 -- 选择操作-- - 合并 PDF,然后
  • 点击 确认 按钮

指向 PDF 文档的链接将添加到表格下方的列表中(如有必要,请点击查看批量生成的文件列表)。

输入付款

Payments can be done only on validated invoices.

If a credit note is available, you can use it to reduce the remain to pay.

Close invoice

An invoice can be validated definitively classified in the state:

  • Paid (If the sum of payments is greater than or equal to the amount claimed).
  • Partially paid (If the sum of payments is greater than 0 but strictly less than the amount claimed).
  • Abandoned (If no payment has occurred).

Export invoice

Dolibarr provide a generic tool to export your invoices data. For this, you must use the Export assistant you can find in menu Tools - New export (if Module Exports has been enabled).

See page Module Exports for more informations.

Pre-defined invoices

In Dolibarr a bill designated as pre-defined is simply an invoice which we will reuse most of the data to issue additional invoices based on this information, thereby saving time to create a new invoice.

In the case of the implementation of contracts, invoices can be predefined set, corresponding to the recurring elements of the contract. This is very interesting. The only downside, the period specified for each element of the resulting bill covers the entire period of contract. It should relate to the billing month.


Related videos

Video on Billing and payments of customer invoice

Recuring invoices


Invoices: (vocal in french but subtitles are available and review in this language)

Payments: (vocal in french but subtitles are available and review in this language)

Use case examples

Deposits

UCIN01: Reception of a deposit then final invoice
Situation Reception of a deposit then final invoice
Actions I entered a deposit invoice for the amount received (and not for total amount to pay). I input payment received. Then I convert this invoice into a future reduction.

Later, I create the complete invoice (but i can also do it before the deposit). I add into complete invoice the reduction. This reduce the remain to pay. I send or resend the entire invoice generated indicating that a deposit has been received.

 

Billing and payments

UCIN02: Billing and payment in full
Situation I created an invoice. I receive full payment.
Actions I take all the payment on the invoice. The balance goes to 0. I can sort the invoices paid.
UCIN03: Billing and higher payment received
Situation I created an invoice. I get a payment exceeds the amount claimed.
Actions I enter the amount received. I closed the bill to the state pays. I have created one of the overpayment.
UCIN04: Billing and payment in full and returned product
Situation I created an invoice. I receive full payment. I entered and the balance becomes 0. I closed the bill to the state pays. Later, I received a return of product due to legal withdrawal.
Actions I create a invoice with type "credit note" to correct original invoice.

This credit can be converted to reduce the next bill or refunded money.

UCIN05: Billing and payment in full and on product error detected
Situation I created an invoice. I receive full payment. I entered and the balance becomes 0. I closed the bill to the state pays. Later, I discovered an error in product.
Actions I create a invoice with type "credit note" to correct original invoice.

I convert this credit note into discount. I create a new invoice with the correct product. I'm joining in to have this new bill. Eventually if I use the stock, I corrected the stock in hand.

UCIN06: Billing and payment for partial advance (discount)
Situation I created an invoice. I receive a payment of the invoice amount less a discount granted for early payment.
Actions I received before the payment of the value received. I file the bills paid and partly because the information "Lack is a discount.
UCIN07: billing and payment, partial or no return and then wait and product defect or error correction tolerable
Situation I created an invoice. If I get a partial payment, I know. I get a return of some products (Revocation of client) or not getting more pennies missing. Optionally, the client waits for a credit pay the late bill.
Actions I submitted a credit on the bill. I send the credit. Then I have to convert this reduction to the customer. I know eventually the result of payments received. Eventually I include having the list of payments invoice (otherwise it will be included in another bill). I fill the bill in the state Paid.
UCIN08: Billing and partial payment for deadbeat
Situation I created an invoice. I get a partial payment, I know. After a long wait, after payment is received and abandon all hope.
Actions I fill the bill in the state Paid partial information and the reason bad payer.
UCIN09: Billing and received no payment for deadbeat
Situation I created an invoice. After a long wait, after payment is received and not abandon all hope.
Actions I file the bill in the state Abandoned and informs the reason bad payer.

 

Solving billing errors

UCIN00 Error on the content of an invoice detected after validation.
Situation I created an invoice. I valid. I realize the error on the contents (amount, description) after validation (see use case UCIN10 on error on client).
Actions I close the invoice to abandoned with comment 'Other' (not necessary as this will be done automatically by next step). I create a new invoice by choosing replacement invoice and by selecting the invoice to replace.
UCIN10a: Error detected on the client after validation but before payment
Situation I created an invoice. I valid. I realized that the invoice has been created on the wrong client.
Actions I fill the bill dropped to the ground 'Other' and I fill the ground "before failure on bad customer". I created a new bill on the right customer.
UCIN10b: Error on the client (or invoice before 2 times) detected after sending invoice but before payment
Situation I created an invoice. I validate and send the client. I realized that the invoice has been created on the wrong customer or invoice in duplicate with another already sent.
Actions I create a credit invoice that has not yet paid the amount exact opposite. I have to convert the discount. The invoice is found to have "treated", I can send it to the customer if I wish. I returned on the card bill in error and I apply the discount after having. On the becomes zero and I Paid in full Class (payoff of 0). That the client has not received or the original invoice, the latter was canceled and closed by the credit. I reprocessed the invoice to the right customer.
UCIN10c: Error on the client spelling detected after payment
Situation I created an invoice to the client X. I validated it. I add payments and set the bills paid. I realized that the invoice has been created with the wrong spelling and the client asks me about the credit note (for old name X and an invoice for new name Y).
Actions I create a credit note with all the lines in reverse. I transform it into reduction. The credit note is now "used" for customer X. I edit the customer record to correct X into Y. I create the new bill on the new client Y including all lines. I valid. I include the credit note. The balance then goes to 0 (none of). I can classify the new invoice paid without recourse to other regulations (the customer has already paid).

 

Predefined invoices

UCRIN01: Creating a predefined invoice
Situation I want to create a predefined invoice
Actions It is not possible to create a recurring invoice directly. It must be a draft standard invoice that is subsequently converted. So take a look at next use case.


UCRIN02: Transformation of an invoice into a recurring invoice'
Situation Transformation of an invoice into a recurring invoice
Actions I open or create a draft invoice. I click on the "Convert to predefined". I enter a title (eg "Last Updated quarterly") and possibly a note, which might be an explanation of the reason for the repetition of this bill. My bill is now a recurring invoice. This will be visible only if I request the display of recurring bills or I create a new invoice.
UCRIN03: Using a predefined bill to create a new invoice
Situation Using a predefined bill to create a new invoice
Actions I create a new invoice ( "Create invoice"), and I'm using the selection box at bottom of page to select the Recurring Billing I want to use as a template (template).My new invoice is pre-filled, the modifications are minor.