NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 40 min
How to test rules that combine an amount with a role or a state: owner only discounts, capped credit notes and a payment that must equal the balance.
The amount a Ledgerline customer owes can go down in two ways before any money is involved. A discount changes the total while the invoice is a draft. A credit note reduces what is owed after approval. Recording a payment then closes the invoice against whatever is left. Each step has its own rule, its own permitted role and its own moment.
At 09:30:12 on Wednesday, Ben, an accountant, set a 35 percent discount on draft inv_5507. The server answered 200 and the total fell from 10000 to 6500. BR5 allows 35 percent. It does not allow Ben to be the person who sets it.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in