Won't Fix
Details
Assignee
UnassignedUnassignedReporter
Antoni Ten MonrósAntoni Ten MonrósLabels
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Antoni Ten Monrós
Antoni Ten MonrósLabels
Priority
Created April 22, 2015 at 1:41 PM
Updated October 2, 2020 at 4:14 PM
Resolved August 22, 2020 at 8:15 PM
Both OrderPaySchedule and InvoicePaySchedule perform due date calculations in a nonstandard constructor that takes an MOrder|MInvoice and a MPaySchedule for arguments. This makes it problematic to override it in a plugin, for, for example, make schedules have fixed pay days. Miving these calculations into a separate function will allow the use of a ModelFactory to override them.