![]() ![]() To handle these two cases, I started things off with the ifElse function. Products on Quotes can be discounted two ways, by a specific amount or by a percentage. To break this down a bit, there are two primary things that need to be calculated: discount and quantity. To enable SugarLogic and Calculated Fields, all you need to do is check the 'Calculated Value' checkbox and click the 'Edit Formula' button to start writing your logic. To help better communicate each line item on the Quote, I created a new field on the Products module called 'subtotal_c' of type 'Currency'. ![]() Best of all, SugarLogic is a key feature of the much anticipated SugarCRM 7 so you can rest assured your customizations will last. ![]() SugarLogic a great way to add simple logic and calculations to module fields without dealing with messy logic hook hacks. If you haven't looked into adding SugarLogic to your custom SugarCRM development tool belt, you should definitely take some time to learn more about it. SugarLogic and Calculated Fields are the perfect tools for this use case. Last week as I was working on customizing Quotes for a client, and I wanted to display the subtotal for each individual line item on the quote taking into account the quantity and discount. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |