Back

Sales Order Statuses and When Each One Changes

Every sales order in Daftra has a status that the system sets automatically. It appears next to the order number and in the sales orders list: Draft, Open, Partially Invoiced or Invoiced. This article explains what each status means, when it changes as you issue the order, convert it to sales invoices and edit, delete or recover those invoices, and what each status allows or blocks.

Required permissionView All Sales Orders or View His Own Sales Orders to see the status; Convert Sales Order to Invoice, Add New Invoices to All Clients or Add New Invoices to His Clients to change it by converting
Where to find itSales → Manage Sales Orders → open the sales order

Before you start

  • The Sales Orders Module must be enabled in Sales Order Settings. When it is disabled, converting or deleting shows «You disabled the sales order module from the Sales Settings».
  • You do not pick the status: the system calculates it only from the sales invoices created from the order with Convert To Invoice. An invoice created separately for the same client does not change the order's status.
  • A permission to view sales orders to see the status, and a permission to convert or add invoices to change it (see Permissions).

The four sales order statuses

The status appears next to the order number on its page and under the amount on each row of the sales orders list, and you can filter by it with Filter by Status. The Arabic interface shows «Invoiced» as «حولت لفاتورة» on the order page and as «المفوتر» in the filter.

Status When it appears What you can do
Draft When the order is saved with Save as Draft. Edit and delete; Issue Sales Order to issue it. Convert To Invoice, Generate Requisition and the convert-to-production-plan button are hidden.
Open When the order is issued (normal save or Issue Sales Order) and no invoice has been issued from it, or after every issued invoice of it is deleted. Convert To Invoice, edit and delete (unless its invoices are still in the trash).
Partially Invoiced When one or more invoices have been issued from the order and some quantity of at least one line is not invoiced yet. Convert To Invoice for the remaining quantities only. Editing and deleting are blocked.
Invoiced When all quantities of all lines are invoiced in issued invoices. Convert To Invoice is hidden; editing, deleting and new requisitions for the order are blocked.
🛈

Note: This status is not the Follow Up Status you choose by hand when Sales Orders Custom Statuses is enabled; the follow-up status neither changes nor follows the system status.

Steps to track and change a sales order's status

1. See a sales order's status

  1. Go to Sales → Manage Sales Orders; each order's status shows under its amount.
  2. To list orders in one status, open the search and filter panel and choose from Filter by Status:
    • Open
    • Partially Invoiced
    • Invoiced
    • Draft
  3. Click Search, then open any order to see its status next to its number at the top of the page.

2. From Draft to Open

  1. Open the sales order saved as a draft.
  2. Click Issue Sales Order; its status becomes Open and Convert To Invoice appears.
🛈

Note: An issued sales order cannot go back to draft: saving it as a draft from the edit screen shows «You cannot change Sales Order #… back to draft after it has been issued».

3. From Open to Partially Invoiced or Invoiced

  1. Open the sales order and click Convert To Invoice; the sales invoice form opens with the order lines and the quantities not invoiced yet.
  2. Change the quantities or remove the lines you will not invoice now.
  3. Click Save to issue the invoice. The order's status is calculated on save: Partially Invoiced if any quantity is left, Invoiced if everything is invoiced.
  4. To invoice the rest later, open the order again and click Convert To Invoice; the form shows only the remaining quantities.
🛈

Note: Saving the invoice with Save as Draft does not move the order to Partially Invoiced or Invoiced; quantities count when the invoice is issued.

4. When the status goes back

  1. Delete an issued invoice of the order (it moves to the trash); the status is recalculated: Open if no issued invoice is left, or Partially Invoiced if the remaining invoices do not cover every quantity.
  2. Edit the quantities of an issued invoice of the order; the status is recalculated on save.
  3. Recover an invoice from the Invoices Trash with Recover; its quantities count again and the status changes accordingly.

How the status is calculated: an example

  • For each order line, the system adds up the quantities invoiced in every issued invoice of the order and subtracts them from the line quantity.
  • Invoice lines are matched to order lines by the line carried over from the order, or by product and unit price when the line was added by hand.
  • Not counted: draft invoices, invoices in the trash, returns and credit notes, and lines that are not in the order.
  • No quantity left on any line: Invoiced; some quantity left: Partially Invoiced; no invoice linked to the order: Open.
What happened Remaining Status
Issued a sales order: 10 of product A and 5 of product B 10 A, 5 B Open
Issued invoice 1 from the order with 10 of A 5 B Partially Invoiced
Issued invoice 2 from the order with 5 of B Nothing Invoiced
Deleted invoice 2 5 B Partially Invoiced
Deleted invoice 1 too — Open

Fields

Field Required / optional Default Accepted values What it does
Status (order page and list) Not entered by hand Open when issued, Draft when saved as a draft Draft, Open, Partially Invoiced, Invoiced Shows how far the order has been invoiced; calculated by the system.
Filter by Status (search and filter panel) Optional Empty (all statuses) Open, Partially Invoiced, Invoiced, Draft Lists only the orders in the chosen status.
Follow Up Status Optional Empty The custom statuses you create with Manage Custom Statuses A separate manual status for your workflow, shown when Sales Orders Custom Statuses is enabled; it does not change the system status.

Settings that affect it

Setting Where Default Effect
Sales Orders Module Sales Order Settings Depends on the account (enabled in the demo account) When disabled, the sales order screens, converting and deleting stop.
Allow Invoicing Item Quantities Exceeding Sales Order Quantities Sales Order Settings Allow in the demo account When allowed (with Convert Sales Order to Invoice and an add-invoices permission), an invoice can exceed the remaining quantity or add lines that are not in the order; a line invoiced in full or more counts as invoiced, and extra lines do not affect the status. When not allowed, invoices cannot exceed the remaining quantities.
Sales Orders Custom Statuses Sales Order Settings Disabled in the demo account Adds the manual Follow Up Status to sales orders; it does not affect the four statuses.

Validations and error messages

Message When it appears Fix
«You cannot delete the sales order with status partially Invoiced or Invoiced» When deleting an order whose status is Partially Invoiced or Invoiced. Delete the sales invoices issued from the order first, then delete the order.
«The sales order couldn't be deleted. Please make sure related sales invoice is removed completely from system and trash.» When deleting an Open order whose deleted invoices are still in the trash. Delete the invoice permanently from the Invoices Trash (the message links to it for users with Manage Deleted Sales Transactions).
«You are not allowed to edit this sales order as it has already been invoiced» When opening the edit screen of an order that has a sales invoice created from it, issued or draft. Delete the linked invoices to edit the order, or create a new sales order.
«Sales Order is Already Invoiced» When clicking Convert To Invoice with no quantity left to invoice; the status changes to Invoiced. Nothing to do; review the invoices linked to the order.
«You cannot exceed the quantity that has already been entered in the sales order» When issuing an invoice from the order with more than the remaining quantity while exceeding is not allowed. Reduce the quantity to what remains, or enable Allow Invoicing Item Quantities Exceeding Sales Order Quantities.
«You cannot select an item that is not Included in the sales order» When adding a line that is not in the order to an invoice issued from it while exceeding is not allowed. Remove the line, or invoice it separately.
«You cannot change Sales Order #… back to draft after it has been issued» When saving an issued order as a draft from the edit screen. An issued order cannot go back to draft.

Restrictions

Restriction Details
No manual status change There is no option to pick the status; it changes only when the order is issued and when its invoices are issued, edited, deleted or recovered.
Editing An order cannot be edited while a sales invoice created from it exists, even a draft. Invoices in the trash do not block editing.
Deleting Blocked in Partially Invoiced and Invoiced, and in Open while its deleted invoices are still in the trash.
Convert to invoice Convert To Invoice is hidden in Draft and Invoiced.
Requisitions Generate Requisition is hidden in Draft and Invoiced; requesting it for an invoiced order shows «You can not generate more requisitions as the Sales Order has been already invoiced».
Production plan The convert-to-production-plan button is hidden for drafts. An order selected in a production plan cannot be edited or deleted: «You cannot delete/update the sales order that already selected in the production plan #…».
Returns and credit notes They do not count: returning an invoice issued from the order does not move it back to Open or Partially Invoiced.

Permissions

Permission What it allows Without it
View All Sales Orders / View His Own Sales Orders See sales orders and their statuses (all of them, or those the user added or is the sales person on). The orders and their statuses are not shown.
Convert Sales Order to Invoice The Convert To Invoice button, and exceeding order quantities when the setting allows it. The button shows only with Add New Invoices to All Clients, or Add New Invoices to His Clients for the user's clients or orders where they are the sales person.
Add New Invoices to All Clients / Add New Invoices to His Clients Create an invoice from the order, and so change its status. The user can convert only with Convert Sales Order to Invoice.
Edit & Delete All Sales Orders / Edit & Delete His Own Sales Orders Edit and delete the order in the statuses that allow it. Edit and Delete are hidden.
Edit & Delete All Invoices / edit and delete his own invoices Shows Issue Sales Order on a draft order (own: orders the user added). Issue Sales Order is hidden.
Issue Draft Invoices Issue a draft order for users other than the owner. «You don't have permission to approve this document. You can only save it as a draft for review by someone with approval permission.» appears unless the user can also edit the order.
Manage Deleted Sales Transactions The Invoices Trash link in the delete-blocked message, and recovering or permanently deleting invoices. The message appears without the link.

What happens after saving

  • The status is calculated at once when an invoice is issued from the order, when a linked invoice is edited, deleted or recovered, and when an issued invoice is changed back to draft.
  • The status is stored on the sales order, so the order page, the list and Filter by Status update.
  • The buttons follow the status: Convert To Invoice disappears in Invoiced, and editing and deleting are blocked once the order is invoiced.
  • Deleting a sales order created from an estimate sets the estimate's status back to Accepted.

Troubleshooting

Problem Cause Fix
Convert To Invoice is missing The order is Draft or Invoiced, or you do not have the convert or add-invoices permission. Issue the order with Issue Sales Order, or check your permissions.
The status stays Partially Invoiced although everything is invoiced One of the invoices is still a draft, or an invoice line does not match the order line (added by hand with a different unit price instead of the line carried over from the order). Issue the draft invoice, or invoice from Convert To Invoice so the lines are carried over as they are.
Partially Invoiced shows with no issued invoice The order is linked to a draft invoice and its status was recalculated with it (after editing the draft, or after changing an issued invoice back to draft). Draft quantities do not count, but the draft keeps the order from going back to Open. Issue or delete the draft invoice.
«Sales Order is Already Invoiced» appears on converting and the status changes to Invoiced All the order's quantities are in invoices linked to it, including draft invoices. Review the order's invoices; issue the drafts or delete the ones you do not need.
The status went back to Open but the order cannot be deleted Its invoices were deleted, moved to the trash, and are still there. Delete them permanently from the Invoices Trash, or recover them if they were deleted by mistake.
The status did not change after invoicing the same client The invoice was created separately, not from Convert To Invoice on the order. Create the invoices from the sales order itself.
An Open order cannot be edited A draft invoice is linked to it, or the order is selected in a production plan. Delete the draft invoice, or remove the order from the production plan.

FAQs

When does a sales order's status change to Invoiced?

When all quantities of all its lines are invoiced in issued sales invoices created from it with Convert To Invoice, in one invoice or several. The status is calculated as soon as the invoice is saved.

Can the sales order status be changed by hand?

No. The system calculates the four statuses. If you need a status of your own, such as "Awaiting confirmation", enable Sales Orders Custom Statuses and use the Follow Up Status.

What happens to the sales order status when its invoice is deleted?

It is recalculated at once: Open if no issued invoice of the order is left, or Partially Invoiced if the remaining invoices do not cover every quantity. Recovering the invoice from the trash recalculates it again.

Does a draft invoice affect the sales order status?

Its quantities do not count, so a draft invoice never makes the order Invoiced. It does block editing the order, and the order may show Partially Invoiced if its status is recalculated while the invoice is a draft. Issue the invoice so its quantities count.

Why can't a sales order be deleted?

Its status is Partially Invoiced or Invoiced, its deleted invoices are still in the trash, it is selected in a production plan, or the user has no edit-and-delete permission.

Does a sales return move the sales order back to Open?

No. The status is calculated from the sales invoices linked to the order only; returns and credit notes are not counted.

Can an issued sales order go back to draft?

No. Once issued, the order cannot be saved as a draft from the edit screen; a message blocks it.