Ignore:
Timestamp:
5 Mar 2015, 07:28:31 (10 years ago)
Author:
Henrik Bettermann
Message:

Extend contract workflow to integrate payment.

Prepare (empty) page to select payment method and finally create a payment object.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports/contract_statistics.py

    r12660 r12663  
    2222from zope.interface import implementer, Interface, Attribute
    2323from waeup.ikoba.interfaces import (
    24     IIkobaUtils, CREATED, APPROVED, SUBMITTED, EXPIRED, REJECTED)
     24    IIkobaUtils,
     25    CREATED, APPROVED,
     26    SUBMITTED, EXPIRED,
     27    REJECTED, AWAITING)
    2528from waeup.ikoba.customers.interfaces import ICustomersUtils
    2629from waeup.ikoba.interfaces import MessageFactory as _
     
    5457    types = TYPES.keys()
    5558    type_names = tuple(TYPES.values()) + (u'All',)
    56     states = (CREATED, SUBMITTED, APPROVED, EXPIRED, REJECTED)
     59    states = (CREATED, AWAITING, SUBMITTED, APPROVED, EXPIRED, REJECTED)
    5760    STATES = getUtility(ICustomersUtils).TRANSLATED_CONTRACT_STATES
    5861    state_names = tuple([STATES[state] for state in states]) + (u'Total',)
     
    108111    ('LINEAFTER', (-1,0), (-1,-1), 0.25, colors.black),
    109112    ('LINEBEFORE', (-1,0), (-1,-1), 1.0, colors.black),
    110     #('LINEABOVE', (0,-1), (-1,-1), 1.0, colors.black),
     113    ('LINEABOVE', (0,-1), (-1,-1), 1.0, colors.black),
    111114    #('LINEABOVE', (0,0), (-1,0), 0.25, colors.black),
    112115    ]
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports/tests/test_contract_statistics.py

    r12659 r12663  
    1717    layer = FunctionalLayer
    1818
    19     states = ('created', 'submitted for approval',  'approved', 'expired',
     19    states = ('created', 'awaiting payment',
     20              'submitted for approval',
     21              'approved', 'expired',
    2022              'rejected', 'Total')
    2123
     
    3436            ((u'Sample Contract', u'All'),
    3537             self.states,
    36              ((1, 0, 0, 0, 0, 1),
    37               (1, 0, 0, 0, 0, 1),))
     38             ((1, 0, 0, 0, 0, 0, 1),
     39              (1, 0, 0, 0, 0, 0, 1),))
    3840            )
    3941        return
Note: See TracChangeset for help on using the changeset viewer.