Requests | Blesta

Requests

Ability to override a class

Nigel K shared this idea 2 months ago
Under Consideration

One of the things I'd like to do is enhance the invoicing system to support different types of payment, like prepaid, current, postpaid billing types.

It would be nice if I could override the Invoices class, and override the functions I need to do this.

Comments (3)

photo
1

Override a CSS class, or a Blesta class/object? Since Blesta is open, you could make changes to the code on your own.

photo
1

Blesta class/object, to replace how invoices are generated would be ideal.

Changing the code means we cannot distribute our changes freely (opensource GPL) as it would contain copyrighted content (even a patch needs context, and that context is your code). Inheriting your class and having our own methods means all the code within the file is our own. We can then easily inject events.

If this is a bad idea, then maybe just an event triggered after the invoice line items are created and the DB is updated and before notification, which would allow us to modify everything pertaining to the invoice in the DB before its used.

photo
1

The one you rummage-sale to revenue down the manager is only good when fighting strong opponent since he will endure firing nonstop till the controller runs out or you have no ammo so if you don’t have a big target nearby to bead at you will objective end assignment writer - assignment hub up wasting all your bullets.