--- title: "Scenarios" slug: "write-off-allocations-scenarios" updated: 2023-11-14T13:04:17Z published: 2023-11-14T13:04:17Z canonical: "docs.blackthorn.io/write-off-allocations-scenarios" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.blackthorn.io/llms.txt > Use this file to discover all available pages before exploring further. # Scenarios ## When the write off is less than the full balance of single Line Item 1. Create an Invoice with a Line Item. 2. Manually create a write-off Transaction for an amount less than the **Balance Due**. 3. Verify that an Allocation with **Type** = "Write Off" was created. 1. The **Line Item**, **Invoice**, and **Transaction** lookups should be populated. 2. The **Amount** should equal the **Write Off Amount**. When a Transaction with **Transaction Type** = “Write Off” is created manually for an **Amount** that is less than the Invoice’s **Balance Due**, then the Allocation’s **Line Item**, **Invoice**, and **Transaction** lookups will be populated, and the Allocation **Amount** will be equal to the Transaction's (**Transaction Type** = “Write Off”) **Amount**. ## When the write off is less than full balance of multiple Line Items 1. Create an Invoice with multiple Line Items. 2. Manually create a write-off Transaction for an amount more than the **Balance Due** on line 1 but less than the total Invoice's **Balance Due**. 3. Verify that an Allocation with **Type** = "Write Off" was created. 1. The **Line Item**, **Invoice**, and **Transaction** lookups should be populated. 2. The first Allocation should equal the full **Balance Due** for line 1. 3. The second Allocation should be for the remainder of the **Write Off Amount**. When a Transaction with **Transaction Type** = “Write Off” is created manually for an **Amount** that is less than the Invoice’s **Balance Due**, then the Allocation’s **Line Item**, **Invoice**, and **Transaction** lookups will be populated. The first Allocation **Amount** will be equal to the first Line Item’s **Balance Due**. The second Allocation **Amount** will include the remainder of the write-off Transaction **Amount**. ## When the write-off balance is part of a partially paid Invoice 1. Create an Invoice with one or more Line Items. 2. Process a partial payment for less than the Invoice's **Balance Due**. 3. Create a write-off Transaction for the remaining balance on the Invoice. 4. Verify that Allocations with **Type** = "Write Off" was created correctly based on the Line Items you created. The Allocation should be applied only to lines with a **Balance Due**. When a Transaction with **Transaction Type** = “Write Off” is created manually for a partially paid Invoice with multiple Line Items, the write-off Allocations will only be applied to the Line Item(s) with a **Balance Due**. The Allocation’s **Line Item**, **Invoice**, and **Transaction** look-up fields will also be populated.