# How do I make my order bill automatically billed?

**URL:** <https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849>\
**Category:** Financial modules\
**Created:** [June 21, 2021, 3:11am UTC](https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849 "2021-06-21T03:11:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vomvimvamvir](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vomvimvamvir](https://www.dolibarr.org/forum/u/vomvimvamvir)\
**Post date:** [June 21, 2021, 3:11am UTC](https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849/1 "2021-06-21T03:11:56Z")

</div>

Hello, what if the vendor/customer invoice in the purchase order or sales order automatically becomes billed if the vendor/customer bill has been paid?

---

<div class="post-metadata">

**Author:** ![trekmorris](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@trekmorris](https://www.dolibarr.org/forum/u/trekmorris)\
**Post date:** [June 21, 2021, 4:16am UTC](https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849/2 "2021-06-21T04:16:51Z")

</div>

Hi

Have you tried " workflow module " ?

---

<div class="post-metadata">

**Author:** ![vomvimvamvir](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vomvimvamvir](https://www.dolibarr.org/forum/u/vomvimvamvir)\
**Post date:** [June 21, 2021, 7:41am UTC](https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849/3 "2021-06-21T07:41:49Z")

</div>

No, i haven’t tried sir

---

<div class="post-metadata">

**Author:** ![enou](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/6f9a4e/32.png) [@enou](https://www.dolibarr.org/forum/u/enou)\
**Post date:** [August 13, 2026, 3:52pm UTC](https://www.dolibarr.org/forum/t/how-do-i-make-my-order-bill-automatically-billed/20849/4 "2026-08-13T15:52:26Z")

</div>

> [@vomvimvamvir](#):
>
> Hello, what if the vendor/customer invoice in the purchase order or sales order automatically becomes billed if the vendor/customer bill has been paid?

@trekmorris, Yes, this can be automated, but I would recommend separating the **order status, invoice status, and payment status** rather than automatically marking an order as “billed” simply because the invoice has been paid.

A clean workflow would be:

**Sales Order → Customer Invoice → Payment Received → Invoice Paid → Sales Order/Order Status Updated**

For purchases:

**Purchase Order → Vendor Invoice → Payment Made → Vendor Invoice Paid → Purchase Order/Procurement Status Updated**

In Dolibarr, this could be handled through a **trigger/automation or custom module** that detects when the customer or vendor invoice reaches the **Paid** status and then automatically updates the related Sales Order or Purchase Order.

For example, once a customer invoice linked to a Sales Order is fully paid, the system could automatically mark the order as **Paid/Completed**. Likewise, when a vendor invoice linked to a Purchase Order is paid, the PO could automatically be updated to **Paid/Settled**.

I would avoid changing the actual invoice or order status prematurely. The safest setup is:

**Order → Invoice Created → Invoice Paid → Automatically Update Related Order**

This gives you accurate financial records while eliminating the need for someone to manually update the order after payment.
