Commit e86163cf authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[sgpe] fix transfer

update transfer request data to validate transfer
parent d413a956
......@@ -467,6 +467,9 @@ class SGProfessionalBrowser(SGEnterpriseBrowser, StatesMixin):
('an_guichetGestionnaire', account._manage_counter),
('an_codeProduit', account._product_code),
('an_codeSousProduit', account._underproduct_code),
('n_soldeComptableVeilleMontant', int(account.balance * (10 ** account._decimal_code))),
('n_soldeComptableVeilleCodeDecimalisation', account._decimal_code),
('an_soldeComptableVeilleDevise', account._currency_code),
('n_ordreMontantValeur', int(transfer.amount * (10 ** account._decimal_code))),
('n_ordreMontantCodeDecimalisation', account._decimal_code),
('an_ordreMontantCodeDevise', account._currency_code),
......@@ -479,6 +482,8 @@ class SGProfessionalBrowser(SGEnterpriseBrowser, StatesMixin):
('cl_beneficiaireCompteIbanFormate', recipient._formatted_iban),
('an_beneficiaireCompteIban', recipient.iban),
('cl_beneficiaireCompteBic', recipient._bic),
('cl_beneficiaireDateCreation', recipient._created_date),
('cl_beneficiaireCodeOrigine', recipient._code_origin),
('cl_beneficiaireAdressePays', recipient.iban[:2]),
('an_indicateurIntraAbonnement', 'false'),
('cl_reference', ' '),
......
......@@ -69,6 +69,8 @@ class RecipientsJsonPage(LoggedPage, ErrorCheckedJsonPage):
obj__formatted_iban = Dict('coordonnee/0/numeroCompteFormate')
obj__bic = Dict('coordonnee/0/BIC')
obj__ref = Dict('coordonnee/0/refSICoordonnee')
obj__code_origin = Dict('coordonnee/0/codeOrigine')
obj__created_date = Dict('dateCreationDest')
class TransferDatesPage(LoggedPage, ErrorCheckedJsonPage):
......@@ -121,6 +123,8 @@ class EasyTransferPage(LoggedPage, HTMLPage):
rcpt._account_title = json_data['intituleCompte']
rcpt._bic = json_data['bicCompte']
rcpt._ref = ''
rcpt._code_origin = ''
rcpt._created_date = ''
yield rcpt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment