Browse Source

afficher transaction systempay

dev-rcn
root 2 years ago
parent
commit
5c130c4cc1
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      models/account_move.py

+ 6
- 8
models/account_move.py View File

@ -46,14 +46,12 @@ class AccountMove(models.Model):
a.systempay_ref=False
for t in a.transaction_ids:
if t.systempay_raw_data:
raw1=t.systempay_raw_data.split(",")
vads_order_id_s=raw1[21].split(":")
# raw1=raw1.replace("\r", "")
# raw1=raw1.replace("'","\"")
# raise Warning(raw1)
# raw=json.loads(raw1)
a.systempay_ref=vads_order_id_s[1].replace("'","")
raw=t.systempay_raw_data.split(",")
for r in raw:
r_s=r.split(":")
#_logger.error('vads:'+r_s[0])
if r_s[0]==" 'vads_order_id'":
a.systempay_ref=r_s[1].replace("'","")
break

Loading…
Cancel
Save