3 ms·
That's why you have unique invoice numbers - it converts the (paper) protocol into an idempotent one
by Taniwha 4y ago
That's why you have unique invoice numbers - it converts the (paper) protocol into an idempotent one
- HideousKojima 4y agoYou need more than just a unique invoice number, you need a unique identifier for any actions that can modify an invoice.
- dmitriid 4y agoThe dunning chain is dark and full of terrors. It's more Kafka (append-only log of unique operations) than some Platonic idea of idempotent operations.
- yuvadam 4y agoWhy? What happens if I update the invoice address twice?
- sorokod 4y agoIf that is all there is to it, then the op is idempotent. If on the other hand, there is a side effect such as modifying the last_updated column then it isn't and should be coded appropriately.
- Akronymus 4y agoWorking on an ERP software atm, A lot. Often invoices HAVE to be immutable for accounting purposes, so changing the address has to keep an old copy around for the old invoice, while attaching it to any new ones/ones not printed yet. Along with that, some other data may be tied to that address that cant be changed. Like tracking a package in transit that has been sent to the old address. Idempotency is a godsend for such actions.