Skip to Content
Menu
This question has been flagged
1 Atsakyti
7366 Rodiniai

I want to create a custom module in order to have subtotals on quotations (so we can group sales order lines). How can i do that ? Thanks

Portretas
Atmesti

You mean you want to calculate total amount from all quotations?

How can i calculate total amount of all quotations of a particular customer?

Best Answer

In order to sort sale.order.line, you need to have something you can use to sort. You probably want to add a new field, which you fill when saving/modifying the sale.order.line.

This requires you (in global wordings):

  • to create your own module, which extends sale.order.line, and add the new sort field
  • change the default sort order
  • override create
  • override write

Also:

  • create a module which extends sale.order
  • at break of sort of sale.order.line, add a line subtotal

I probably have forgotten some things, but I hope you get the general idea.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
gruod. 24
11691
10
rugs. 20
28473
1
vas. 17
4490
2
geg. 16
17157
1
geg. 15
4370