콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3867 화면

<img src="http://i.imgur.com/7nADyjL.png" />

I created a custom module which applies a discount on a sale order line if the quantity is >= 6 .

For this I did override a _fnct_get_discounted_price functional field of sale.order.line (which is defined in website_sale module).

In the above problem a discount of 0.5% percentage is applied on sale.order.line if quantity is >= 6 as intended.

But the Total is still calculated using the original price instead if discounted price.

ie Total should be 6 x 75.05 + 6 x 1709.05= 10704.599 instead of  6 x 79.00 + 6 x 1799 = 11268

Where is the calculation of Total performed

아바타
취소
베스트 답변

Same functionality you can achieve by sales pricelist no need for custom module and its work perfectly.


Thanks.

아바타
취소
관련 게시물 답글 화면 활동
4
3월 23
5286
2
12월 24
21393
0
9월 24
1151
3
8월 24
2337
0
8월 24
1720