Changeset 14776 for main


Ignore:
Timestamp:
7 Aug 2017, 13:46:43 (7 years ago)
Author:
Henrik Bettermann
Message:

Use demo account data.

File:
1 edited

Legend:

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

    r14775 r14776  
    5252    action = 'http://www.remitademo.net/remita/ecomm/finalize.reg'
    5353
    54     #@property
    55     #def lineitems(self):
    56     #    ba1 = self.context.amount_auth / 2
    57     #    ba2 = self.context.amount_auth / 2
    58     #    lineitems = (
    59     #                  {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
    60     #                  "beneficiaryAccount":"6020067886","bankCode":"011",
    61     #                  "beneficiaryAmount":str(ba1),"deductFeeFrom":"1"},
    62     #                  {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
    63     #                  "beneficiaryAccount":"0360883515","bankCode":"050",
    64     #                  "beneficiaryAmount":str(ba2),"deductFeeFrom":"0"}
    65     #                )
    66     #    return lineitems
     54    @property
     55    def lineitems(self):
     56        ba1 = self.context.amount_auth / 2
     57        ba2 = self.context.amount_auth / 2
     58        lineitems = (
     59                      {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
     60                      "beneficiaryAccount":"6020067886","bankCode":"011",
     61                      "beneficiaryAmount":str(ba1),"deductFeeFrom":"1"},
     62                      {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
     63                      "beneficiaryAccount":"0360883515","bankCode":"050",
     64                      "beneficiaryAmount":str(ba2),"deductFeeFrom":"0"}
     65                    )
     66        return lineitems
    6767
    6868    def dynamic_provider_amt(self, student):
     
    7272
    7373    @property
    74     def lineitems(self):
     74    def live_lineitems(self):
    7575        provider_amt = 0.0
    7676        if self.context.p_category == 'schoolfee' and \
     
    136136    action = 'http://www.remitademo.net/remita/ecomm/finalize.reg'
    137137
    138     #@property
    139     #def lineitems(self):
    140     #    lineitems = (
    141     #                  {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
    142     #                  "beneficiaryAccount":"6020067886","bankCode":"011",
    143     #                  "beneficiaryAmount":self.context.amount_auth/2,"deductFeeFrom":"1"},
    144     #                  {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
    145     #                  "beneficiaryAccount":"0360883515","bankCode":"050",
    146     #                  "beneficiaryAmount":self.context.amount_auth/2,"deductFeeFrom":"0"}
    147     #                )
    148     #    return lineitems
     138    @property
     139    def lineitems(self):
     140        lineitems = (
     141                      {"lineItemsId":"itemid1","beneficiaryName":"Klaus Mueller",
     142                      "beneficiaryAccount":"6020067886","bankCode":"011",
     143                      "beneficiaryAmount":self.context.amount_auth/2,"deductFeeFrom":"1"},
     144                      {"lineItemsId":"itemid2","beneficiaryName":"Werner Rumm",
     145                      "beneficiaryAccount":"0360883515","bankCode":"050",
     146                      "beneficiaryAmount":self.context.amount_auth/2,"deductFeeFrom":"0"}
     147                    )
     148        return lineitems
    149149
    150150    @property
    151     def lineitems(self):
     151    def live_lineitems(self):
    152152        provider_amt = 400.0
    153153        if self.context.__parent__.applicant_id.startswith('cbt'):
Note: See TracChangeset for help on using the changeset viewer.