Changeset 14776
- Timestamp:
- 7 Aug 2017, 13:46:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py
r14775 r14776 52 52 action = 'http://www.remitademo.net/remita/ecomm/finalize.reg' 53 53 54 #@property55 #def lineitems(self):56 #ba1 = self.context.amount_auth / 257 #ba2 = self.context.amount_auth / 258 #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 lineitems54 @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 67 67 68 68 def dynamic_provider_amt(self, student): … … 72 72 73 73 @property 74 def li neitems(self):74 def live_lineitems(self): 75 75 provider_amt = 0.0 76 76 if self.context.p_category == 'schoolfee' and \ … … 136 136 action = 'http://www.remitademo.net/remita/ecomm/finalize.reg' 137 137 138 #@property139 #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 lineitems138 @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 149 149 150 150 @property 151 def li neitems(self):151 def live_lineitems(self): 152 152 provider_amt = 400.0 153 153 if self.context.__parent__.applicant_id.startswith('cbt'):
Note: See TracChangeset for help on using the changeset viewer.