跳至內容
選單
此問題已被標幟
1 回覆
3724 瀏覽次數

<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
5159
2
12月 24
21119
0
9月 24
1016
3
8月 24
2105
0
8月 24
1492