2
In order to test payment term extension I create a payment terms and check dates.
4
In order to test the new months field I create a payment terms and check result.
6
!record {model: account.payment.term, id: account_payment_term_0}:
17
I check that due date for 2011-01-31 is 2011-04-30
19
!assert {model: account.payment.term, id: account_payment_term_0}:
20
- compute(3000.0, '2011-01-31') == [('2011-04-30', 3000.0)]
22
In order to test the new division value I create a payment term and check result.
24
!record {model: account.payment.term, id: account_payment_term_1}:
25
name: 1, 2 and 3 months
49
I check that due date for 2011-01-31 is 2011-04-30
51
!assert {model: account.payment.term, id: account_payment_term_1}:
52
- compute(200.0, '2011-01-31') == [('2011-02-28', 66.67),('2011-03-31',66.67),('2011-04-30',66.66)]