Commit 5bdf808b authored by Yusei Tahara's avatar Yusei Tahara

Fixed wrong property name.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25571 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0d003c36
No related merge requests found
......@@ -174,7 +174,7 @@ class OpenOrderRule(DeliveryRule):
if getPeriodicityLineValueList is None:
raise RuntimeError, "Cannot find getPeriodicityLineValueList script"
schedule_stop_date = (calculation_base_date+
order_movement.getForecastingTermDays())
order_movement.getForecastingTermDayCount())
if schedule_stop_date > order_movement.getStopDate():
schedule_stop_date = order_movement.getStopDate()
......
......@@ -247,7 +247,7 @@ class TestOpenOrder(ERP5TypeTestCase):
self.assertEqual(open_sale_order.getTotalPrice(), 100)
self.assertEqual(open_sale_order.getTotalNetPrice(), 105)
open_sale_order.setForecastingTermDays(5)
open_sale_order.setForecastingTermDayCount(5)
open_sale_order.order()
open_sale_order.start()
......@@ -268,7 +268,7 @@ class TestOpenOrder(ERP5TypeTestCase):
self.assertEqual(applied_rule['1'].getStartDate(), DateTime(3000,2,10,10,0))
self.assertEqual(applied_rule['1'].getStopDate(), DateTime(3000,2,11,10,0))
open_sale_order.setForecastingTermDays(10)
open_sale_order.setForecastingTermDayCount(10)
self.portal.portal_rules.default_open_order_rule.expand(
applied_rule,
calculation_base_date=DateTime(3000,2,9))
......@@ -334,7 +334,7 @@ class TestOpenOrder(ERP5TypeTestCase):
specialise=self.portal.sale_trade_condition_module.trade_condition.getRelativeUrl(),
start_date=DateTime(3000,2,9),
stop_date=DateTime(3000,8,1),
forecasting_term_days=5
forecasting_term_day_count=5
)
# Remove other test's side effect.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment