> 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