alyf-de / erpnext_germany

ERPNext customizations for German companies
GNU General Public License v3.0
35 stars 20 forks source link

feat: delete only most recent sales transactions #13

Closed barredterra closed 8 months ago

barredterra commented 11 months ago

Allow deletion of the most recent sales transaction only. This ensures consecutive numbering of transactions. Applies to Quotation, Sales Order, Sales Invoice.

marination commented 11 months ago

@barredterra Looks good. An additional case comes to mind. Maybe we can allow deletion of amended documents (doc.amended_from) ? As it's numbering depends upon the cancelled original transaction and does not affect the overall numbering. Just a suggestion

barredterra commented 8 months ago

@marination good idea, but I won't implement it for the time being. Deleting older, amended documents should be fairly uncommon – I can't imagine a use case right now.