Login  Register

Re: Dev - Manual invoices and tax adjustments

Posted by Jacopo Cappellato on May 02, 2006; 2:47pm
URL: http://ofbiz.116.s1.nabble.com/Dev-Manual-invoices-and-tax-adjustments-tp167837p167844.html

Hans,

this is something that we need to do also in Italy (i.e. to calculate
taxes from totals instead of for each item)... however, in order to do
this, I think we have to modify the way the calcTax service actually
works (maybe also adding flags to the TaxAuth entity); at the moment,
I'm not focused on this, because I want to create a service that calls
the calcTax service in order to add taxes to an invoice.

Jacopo

Hans Bakker wrote:

> Jacopo,
> Good idea, looked into it but ran out of time.
> Is it then possible to calculate for example 19% sales tax on all items and
> add this in a single extra item?
>
> Hans
>
>
> On Tuesday 02 May 2006 19:29, Jacopo Cappellato wrote:
>> Hi all,
>>
>> I need to implement tax adjustments for manual invoices and I'd like to
>> quickly discuss with you the design of this because I'd like to put it
>> into the OFBiz codebase.
>>
>> Requirement: I need a way to calculate taxes to apply to a manual
>> invoice (e.g. an invoice with no order associated to it)
>>
>> Use case:
>> - a user (or a batch service) manually enter an invoice header and one
>> or more invoice items
>> - after that all the invoice items for the products have been entered,
>> the user clicks on a "create tax adjustments" link and the InvoiceItems
>> entries for the taxes are added to the invoice
>>
>> Implementation details:
>> - a new service will be implemented "createTaxAdjForInvoice" that takes
>> as input the "invoiceId" and returns the list of adjustments
>> (InvoiceItems) or write them to the db
>> - the service above will simply prepare the data to invoke the "calcTax"
>> service (so all the settings in the tax data model will be considered)
>>
>> Questions: with this design, all the InvoiceItems that store tax
>> information will be appended at the end of the invoice items; is this a
>> problem? Is there a way to associate an InvoiceItem to another one (such
>> as the tax adjustments to the product to which they refer) other than
>> the position (and their sequence)?
>>
>> Thanks,
>>
>> Jacopo
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev