Modified exisitng shipping label routines to account for new VM Fields in EpiPart
This commit is contained in:
committed by
Ouellette Jonathan (CSC FI SPS MESLEO)
parent
b443f237a1
commit
35027d4786
@ -515,15 +515,15 @@ FOR I = 1 TO CassCnt
|
||||
END
|
||||
|
||||
GOSUB PrintLabel
|
||||
PrintSpectrumLabel = False$
|
||||
EpiPartNo = XLATE('WO_LOG', WONo, WO_LOG_EPI_PART_NO$, 'X')
|
||||
CustReshipPartNo = XLATE('WO_MAT', WONo : '*' : CassNo, WO_MAT_RESHIP_CUST_EPI_PART_NO$, 'X')
|
||||
PrintSpectrumLabel = False$
|
||||
EpiPartNo = XLATE('WO_LOG', WONo, WO_LOG_EPI_PART_NO$, 'X')
|
||||
CustReshipPartNo = XLATE('WO_MAT', WONo : '*' : CassNo, WO_MAT_RESHIP_CUST_EPI_PART_NO$, 'X')
|
||||
If CustReshipPartNo EQ '' then
|
||||
ZPVMMatNum = XLATE('EPI_PART', EpiPartNo, EPI_PART_VARM_PART_NO$, 'X')
|
||||
GenerateSpectrumLabel = XLATE('EPI_PART', EpiPartNo, EPI_PART_GENERATE_SPECTRUM_LABEL$, 'X')
|
||||
end else
|
||||
ZPVMMatNum = XLATE('EPI_PART', CustReshipPartNo, EPI_PART_VARM_PART_NO$, 'X')
|
||||
GenerateSpectrumLabel = XLATE('EPI_PART', CustReshipPartNo, EPI_PART_GENERATE_SPECTRUM_LABEL$, 'X')
|
||||
end
|
||||
PrintSpectrumLabel = ZPVMMatNum NE '' AND (Indexc(PrintPath, 'MESZBRPRT011', 1) OR Indexc(PrintPath, 'MESZBRPRT004', 1))
|
||||
PrintSpectrumLabel = GenerateSpectrumLabel AND (Indexc(PrintPath, 'MESZBRPRT011', 1) OR Indexc(PrintPath, 'MESZBRPRT004', 1))
|
||||
If PrintSpectrumLabel then
|
||||
Sap_Services('PrintSpectrumLabel', WONo, WOStep, CassNo)
|
||||
If Error_Services('NoError') then
|
||||
@ -741,3 +741,4 @@ RETURN
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user