Ignore:
Timestamp:
2 Aug 2017, 11:38:25 (7 years ago)
Author:
Henrik Bettermann
Message:

Customize lineitems for testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py

    r14746 r14751  
    4646    #amount='1000'
    4747    https = True
    48     lineitems = (
    49                   {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
    50                   "beneficiaryAccount":"6020067886","bankCode":"011",
    51                   "beneficiaryAmount":"500","deductFeeFrom":"1"},
    52                   {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
    53                   "beneficiaryAccount":"0360883515","bankCode":"050",
    54                   "beneficiaryAmount":"500","deductFeeFrom":"0"}
    55                 )
    5648
    5749    action = 'http://www.remitademo.net/remita/ecomm/finalize.reg'
     50
     51    @property
     52    def lineitems(self):
     53        ba1 = self.context.amount_auth / 2
     54        ba2 = self.context.amount_auth / 2
     55        lineitems = (
     56                      {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
     57                      "beneficiaryAccount":"6020067886","bankCode":"011",
     58                      "beneficiaryAmount":str(ba1),"deductFeeFrom":"1"},
     59                      {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
     60                      "beneficiaryAccount":"0360883515","bankCode":"050",
     61                      "beneficiaryAmount":str(ba2),"deductFeeFrom":"0"}
     62                    )
     63        return lineitems
    5864
    5965    def update(self):
Note: See TracChangeset for help on using the changeset viewer.