From 79b2de181877376990dbfa136685e6bc5c0f25a5 Mon Sep 17 00:00:00 2001 From: daovietanh99 Date: Tue, 12 Mar 2024 17:26:33 +0700 Subject: [PATCH] UPDATE: add invoice_number infomation --- cope2n-api/fwd_api/utils/file.py | 45 ++++++++++++++++++------------- cope2n-api/report.xlsx | Bin 6989 -> 7016 bytes cope2n-api/report_detail.xlsx | Bin 6662 -> 6742 bytes 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/cope2n-api/fwd_api/utils/file.py b/cope2n-api/fwd_api/utils/file.py index 2df0d41..fea47c0 100755 --- a/cope2n-api/fwd_api/utils/file.py +++ b/cope2n-api/fwd_api/utils/file.py @@ -487,9 +487,10 @@ def dict2xlsx(input: json, _type='report'): 'M': 'average_accuracy_rate.imei', 'N': 'average_accuracy_rate.purchase_date', 'O': 'average_accuracy_rate.retailer_name', - 'P': 'average_processing_time.imei', - 'Q': 'average_processing_time.invoice', - 'R': 'review_progress' + 'P': 'average_accuracy_rate.invoice_number', + 'Q': 'average_processing_time.imei', + 'R': 'average_processing_time.invoice', + 'S': 'review_progress' } start_index = 5 @@ -503,21 +504,29 @@ def dict2xlsx(input: json, _type='report'): 'D': 'image_type', 'E': 'imei_user_submitted', 'F': "imei_ocr_retrieved", - 'G': "imei1_accuracy", - 'H': "invoice_purchase_date_consumer", - 'I': "invoice_purchase_date_ocr", - 'J': "invoice_purchase_date_accuracy", - 'K': "invoice_retailer_consumer", - 'L': "invoice_retailer_ocr", - 'M': "invoice_retailer_accuracy", - 'N': "ocr_image_accuracy", - 'O': "ocr_image_speed_(seconds)", - 'P': "is_reviewed", - 'Q': "bad_image_reasons", - 'R': "countermeasures", - 'S': 'imei_revised_accuracy', - 'T': 'purchase_date_revised_accuracy', - 'U': 'retailer_revised_accuracy', + 'G': "imei_revised", + 'H': "imei1_accuracy", + 'I': "invoice_number_user", + 'J': "invoice_number_ocr", + 'K': "invoice_number_revised", + 'L': "invoice_number_accuracy", + 'M': "invoice_purchase_date_consumer", + 'N': "invoice_purchase_date_ocr", + 'O': "invoice_purchase_date_revised", + 'P': "invoice_purchase_date_accuracy", + 'Q': "invoice_retailer_consumer", + 'R': "invoice_retailer_ocr", + 'S': 'invoice_retailer_revised', + 'T': "invoice_retailer_accuracy", + 'U': "ocr_image_accuracy", + 'V': "ocr_image_speed_(seconds)", + 'W': "is_reviewed", + 'X': "bad_image_reasons", + 'Y': "countermeasures", + 'Z': "imei_revised_accuracy", + 'AA': "invoice_number_revised_accuracy", + 'AB': 'purchase_date_revised_accuracy', + 'AC': 'retailer_revised_accuracy', } start_index = 4 diff --git a/cope2n-api/report.xlsx b/cope2n-api/report.xlsx index 3319daed4d48b3452c27bf4223c890a1c8f99cbf..92da45f2608946c38042e19ca90cb26f641a4de9 100644 GIT binary patch delta 3034 zcmZuz2T&8(77a0AR5}3?V8KugH9?Rd#V8^WTt#~59Rf%R5(R{S2u7NO(4|OkDor{{ z3`IaXiX|XL1*A6x5#fXTXV<^;-^`nP=gyfq@7?p}zSDbZ_7t0e{vi+q00x5r$_Ad5 zY~oCZ_G7gYlf++%6%YmdRfz}L|CMa8Xn+nXRHb8br1xk@$hhs~s#Z1;Rg0f44~dsRqNdFWo_1tQ-Lqz|~H_zZkaufKsAvkukDibpPp$@ko= z6OTGs>$)tec`qm2N4dJlZt6I$>wC|8m@UTYf@9+}ZwgBZe#WLYX5?;mf6unE=b>MwZC;3piVP{nPWqd*C^E{@6AgeQo}1)jEj2gvIkfD@`*eIS z6wxd%G^37GVpJIg6A8lGuSD*elNIIUcfz#?6hkS!rsn7lk1Qj?Mm=4VsQNAHhl?6% z>6k=W$^>OwHSEqCw;4bDEdw1~>e*QGb-2k(P z1yp*PwBc5z2?=mKpBwiQ>VuOlMrdaE>hSRz z+4kDDbszImGX&c}HPYxN)gbuAj523dVfQDtIs}!eSP+XX`^JtHOdA@C!y9L8 zg1tuyT&j26d@`;Zq<<~JjTDo<>v@ZBTC64CMbG&|HQX+CNtRM&R^FcezIe1pH=jfp zlVk=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mdlOmGH&Skmr*ktbF`tnNtB0=NaSkKi!2Y~ zl71^r-oq)0r`Qza%yBvbnEZd_cI|0Scnf>4x${b&8P3>RDm0 zZU!YvN!k)AMzY4C0_&=nC{?+a6w^_w&Dk)IVNz>iH+Gp1hl}`VFF)%wOg=5J-_|q@ z`*L0)cc=WDtaE{mOYrCIByO1^Jhj>#rwI|noRayAni-Vq56(D&7PBM+NA=3l{ku zWMHpoDxfDw33f4PvFC0h+-^ue*OxF8TpLA2P64(P&JG{f&Lq?hI&aWs+h-=&j=-*A ztv~TV@loWCIs0F4Yf??Do0^_|9>KUW`K9eEKRB6&T{ z(`KJApZP03@jhfY?oG{uuCGS8NyLH8CHYrt9pUW1(=wnr8nDjB#+I?0n%y44 z^Jnj@m=!AD+c(KsA{u-7c`I^m508jy?V+Qn?jB}}BKGh8X}drDh&(BZkov9qy8s}& z*ZesqWNk5-J)6Io;s0Z>EAf)U#SZUX@kC6Vy@FgLCcWqJchCp_&m)1nEhe?+aadfO Qy^*Xfeso`e$ZwPX0ECe-wEzGB diff --git a/cope2n-api/report_detail.xlsx b/cope2n-api/report_detail.xlsx index 82e12dd17c594fedab37b94c75f88f9685118495..480d827cd5fdc37cf12c12785fbedf5e76a44b71 100644 GIT binary patch delta 2696 zcmZ8jc{tST7oV|=8OAbpGAJ1aV{0teSR-pOnXGrRMHyMLWQNK&J5iQVxnqqX%VaIC zh$3anF4;qVmXgYvrGB`-=c)U9|2UuXoadbPywCZ(@B4gWuy3)PcnfA0eh?H21=*kV zuH-xpX5PnYELi#-o$-%XL&4RgnV*%14sk_@qvl^8e@qo~it303j*2n+CZGWMxeMR44=v>U~ zb@#5#y5}=}Jol(s&4nFTH9)Tdqlo9ti$hVo^)C1VnY$`l_>DHQFb9X&@$23zQKm}7 z`)oKdDd2N2zl?I#0|jFy-;uX-=oZ;?+^s1epE&Ah7$2{E63ek6DiKtD6x>KR5S%sg zl!2R=>Tg{)v38(%6b^w(T3GW)~# zmkrLVgBwSObW-kqW54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