MPaymentTerm: Replace SQL code on deleteOrderPaySchedule and deleteInvoicePaySchedule
Description
Looking into MPaymentTerm class we have a DB.executeUpdate that delete records from C_OrderPaySchedule and C_InvoicePaySchedule before (re)applying a payschedule.
to improve extensibility (for example, if i need to check something BEFORE delete a invoice pay schedule) , i'm proposing a small change with this patch attached, to replace the SQL code.
Looking into MPaymentTerm class we have a DB.executeUpdate that delete records from C_OrderPaySchedule and C_InvoicePaySchedule before (re)applying a payschedule.
to improve extensibility (for example, if i need to check something BEFORE delete a invoice pay schedule) , i'm proposing a small change with this patch attached, to replace the SQL code.