tag:jbilling.tenderapp.com,2012-10-15:/discussions/questions/972-how-to-configure-in-database-to-enable-newly-added-controllerjBilling: Discussion 2016-07-19T11:50:09Ztag:jbilling.tenderapp.com,2012-10-15:Comment/400920452016-06-14T04:13:16Z2016-06-14T04:13:17ZHow to configure in database to enable newly added controller to process a new task?<div><p>Hello,</p>
<p>Database configuration is not required to enable controllers
process work.<br>
Controller creation in itself includes configuration.</p>
<p>Can you describe the new task in more detail that you wanna
achieve?</p>
<p>Vikas</p></div>Vikas@WebDataTechnologiesLLPtag:jbilling.tenderapp.com,2012-10-15:Comment/400920452016-06-17T02:29:33Z2016-06-23T06:54:31ZHow to configure in database to enable newly added controller to process a new task?<div><p>Hello,</p>
<p>I wanna achieve the new task to calculate total fee of each
order and each invoice in a new customized way, which depends on
quantity of each order and each invoice</p>
<p>Could you tell me which line number of which source code file
(src version 4.1.1) starts calculate an invoice's total fee? I
search in many source code files but not found<br>
where to change code, because I only found same value assignment
operation code from orderDTO to invoiceDTO in some source file
place, but not found where the total fee of a invoice is
calculated...</p></div>183241677tag:jbilling.tenderapp.com,2012-10-15:Comment/400920452016-06-23T06:53:03Z2016-06-23T06:53:03ZHow to configure in database to enable newly added controller to process a new task?<div><p>For example, I found following amount assignment codes in<br>
jbilling-community-411/src/java/com/sapienter/jbilling/server/invoice/NewInvoiceContext.java</p>
<pre>
<code> newOrderLineCtx.setPrice(etalon.getPrice());
newOrderLineCtx.setQuantity(etalon.getQuantity());
newOrderLineCtx.setAmount(etalon.getAmount());</code>
</pre>
<p>But these are assigning amount from 1 order to another</p>
<p>Where is the code to assign amount from 1 order to the
corresponding invoice being generated?</p></div>183241677