Discussion:
[Erp5-dev] Aggregated Sale Invoices for Sale Packing List
Lukasz Nowak
2006-08-29 11:23:00 UTC
Permalink
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? 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.

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.

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the Source, Luke...''
Jérôme Perrin
2006-08-29 11:48:49 UTC
Permalink
Post by Lukasz Nowak
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.
Post by Lukasz Nowak
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)
Post by Lukasz Nowak
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
Lukasz Nowak
2006-08-30 12:22:54 UTC
Permalink
Helo,
Post by Jérôme Perrin
Post by Lukasz Nowak
Is it possible to use portal_deliveries/sale_invoice_builder to do it?
Exactly.
Ok. Great.
Post by Jérôme Perrin
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)
Understood, I've looked in Nexedi's script, which do it, and it, lets say,
works...
Post by Jérôme Perrin
Post by Lukasz Nowak
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.
Hm. I'm trying to figure out, how shall I configure it. I've searched
www.erp5.org site and mailing list for any hints, but without success. What I
got now is that proper delivery is found, then it's updated, but only if rows
aren't the same (quantities aren't updated, no new rows are added (which is
what I'm trying to achive, cos I want to have per-line causality, not
per-document)).

Well... Is there any example of such configuration or portal_deliveries
guide/howto? I belive, that people interested in ERP5 in future would be glad
for such document (which anyway describe very, very nice feature).

I'm trying to understand D/OrderBuilder.py and D/DeliveryBuilder.py by adding
some logging, right now w/o success.

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the Source, Luke...''
Loading...