[Erp5-dev] Aggregated Sale Invoices for Sale Packing List
Jérôme Perrin
jerome at nexedi.com
Tue Aug 29 13:48:49 CEST 2006
Le Mardi 29 Août 2006 13:23, Lukasz Nowak a écrit :
> Hello,
>
> Since some time I'm trying to create Sale Invoice Transaction which will
> have Invoice Lines based on more than one SPL (aggregated by date,
> source*/destination* etc).
>
> Is it possible to use portal_deliveries/sale_invoice_builder to do it?
Exactly.
> I cannot find any documentation for that (only doc strings in
> D/DeliveryBuilder.py and D/OrderBuilder.py).
>
> I've made function which returned my templated invoice and put it in
> Delivery Select Method, but after starting next SPL it has created new
> invoice.
The purpose of Delivery Select Method is not to select a "template" invoice,
it's to select existing deliveries in which the delivery builder will try to
add some lines (if delivery and lines satisfies the Delivery Collect Order
Groups)
> If it's not possible, I'll write my own aggregation script, which will do
> it, but I thought that such situation is covered in ERP5.
You just need to configure the builder, and if it's not enough, you can create
a Delivery After Generation Script that will be called on the context of the
newly created delivery.
--
Jérome
More information about the Erp5-dev
mailing list