Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4438 Widoki

How can I link payment terms to pricelists, or get a message/notification when creating quotation/sales order comfirmation/invoice, if a product is on a pricelist with different payment terms?

For example we have pricelists in native currency and in EUR. In EUR we have 45 days, with native currency 30 days payment term. Or if customers buy less than amount X, than they have prepayment, more than amount X they have credit and discount (hence the payment term is linked to a pricelist for this customer).

(Obviously I cannot set multiple payment terms on one invoice, but I want to prevent setting wrong payment terms.)

Awatar
Odrzuć
Najlepsza odpowiedź

You probably have to extend sale.order, and when creating or writing the data, you have to check for the combination of currency and payment term.

Another thing you might want to do is to modify sale.order, the method on_change_partnerid, and set the pricelist and payment term based on customer. Now there is a default correct combination of currency (from pricelist) and payment term (default from customer or based on the pricelist).

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
3490
1
mar 15
4782
3
mar 15
5378
0
mar 15
3410
3
mar 17
12304