formatting for spaces

master
bleeson 2024-10-02 13:22:37 -07:00
parent 037b49b003
commit bc6f82ada2
2 changed files with 12 additions and 2 deletions

View File

@ -193,6 +193,16 @@ X3_CUSTOMER_MAPPING = {
'SOBE1000_SB0029' : 'SOBE0010',
'SOBE1000_SB0024' : 'SOBE0011',
'SOBE1000_SB0092' : 'SOBE0012',
'GTWH1000_GTJOHN' : 'GIAN0004',
'AVRI1000_0000' : 'AVRI0003',
'SOBE1000_SB0002' :'SOBE0014',
'SOBE1000_SB0023' : 'SOBE0013',
'SAMP1000_WELL1' : 'YARI0001',
'SAMP1000_WELL2' : 'YARI0001',
'LOND1000_0000' : 'LOND0001',
'VEND1000_VENDAB' : 'VEND0002',
'ISLA1000_190132' : 'ISLA0005',
'PURI1000_0000' : 'PURI0002',
}
def main():
@ -203,7 +213,7 @@ def main():
if SOURCE_867_FILENAME_RE.match(edi_filename.name):
process_file(edi_filename)
shutil.copy(edi_filename, EDI_997_DIRECTORY / edi_filename.name)
shutil.move(edi_filename, THIS_DIRECTORY / "processed_867s" / edi_filename.name) #They go in here so we can use them in the dashboard script
shutil.move(edi_filename, THIS_DIRECTORY / "processed_867s" / edi_filename.name) #They go in here so we can use them in the dashboard script, 2024-08 dashboard no longer needed
def missing_customer_alert(customer_key):

View File

@ -139,7 +139,7 @@ def gtin_lookup(gtin):
on [ITM].[ITMREF_0] = [ITF].[ITMREF_0]
and [ITF].[STOFCY_0] = 'WON'
where
[ITM].[ZCASEUPC_0] = :zcaseupc
replace([ITM].[ZCASEUPC_0],' ','') = :zcaseupc
""",
zcaseupc=gtin,
).first()["ITMREF_0"]