#IF(#LabelStatus == 0 ){LabelStatusNew} #IF(#INPUT.ViewAction NE "MBO-ViewShippingOrder") {ShippingOrder} #ENDIF #ELSIF(#LabelStatus == 1 ){LabelStatusBarCodeCreated} #ELSIF(#LabelStatus == 2 OR #LabelStatus == 5 OR #LabelStatus == 10) #IF (#LabelStatus == 2){LabelStatusProcessError} #ELSIF (#LabelStatus == 5) {PickReturnPetitionFailed} #ELSIF (#LabelStatus == 10) {CancelError} #ENDIF #IF(#BarCodeDescription) #IF(#BarCodeDescription EQ "MandatoryFieldLost") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "WrongFormat") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "TagNotAvailable") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "NDIParcelNumbernotAvailable") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "ParameterMissing") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "CannotMakerouting") {CannotMakerouting} #ENDIF #IF(#BarCodeDescription EQ "NeededTemplateFile") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "InterfaceCannotOpened") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "ExtraWeight") {ExtraWeight} #ENDIF #IF(#BarCodeDescription EQ "T205With2kgMore") {T205With2kgMore} #ENDIF #IF(#BarCodeDescription EQ "TransactionCannotBeStored") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "CheckDigitError") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "NoIntervalfound") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "ProductCodeNotValid4Country") {ProductCodeNotValid4Country} #ENDIF #IF(#BarCodeDescription EQ "DateNotToday") {DateNotToday} #ENDIF #IF(#BarCodeDescription EQ "ExpressParcelAfter15") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "TimeNotPossible") {TimeNotPossible} #ENDIF #IF(#BarCodeDescription EQ "TodayNotFriday") {TodayNotFriday} #ENDIF #IF(#BarCodeDescription EQ "ParcelNumberAlreadyUsed") {ParcelNumberAlreadyUsed} #ENDIF #IF(#BarCodeDescription EQ "WrongParcelNumber") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "SystemFailed") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "NoErrorReturned") {GeneralError} #ENDIF #IF((#BarCodeDescription EQ "NoSocketCreated") OR (#BarCodeDescription EQ "SendFailed") OR (#BarCodeDescription EQ "ReceiveFailed")) {SocketComunicationProblem} #ENDIF #IF(#BarCodeDescription EQ "CancelFailed") {CancelError} #ENDIF #IF(#BarCodeDescription EQ "WrongProductServiceCombination") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "RecordNotFound") {RecordNotFound} #ENDIF #IF(#BarCodeDescription EQ "GeneralSystemError") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "StdIntervalEnded") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "PickReturnIntervalEnded") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "CodIntervalEnded") {GeneralError} #ENDIF #IF(#BarCodeDescription EQ "SrsIntervalEnded") {GeneralError} #ENDIF #IF((#BarCodeDescription NE "MandatoryFieldLost")AND(#BarCodeDescription NE "CancelFailed")AND(#BarCodeDescription NE "NoErrorReturned")AND (#BarCodeDescription NE "SystemFailed")AND(#BarCodeDescription NE "WrongParcelNumber")AND(#BarCodeDescription NE "ParcelNumberAlreadyUsed")AND (#BarCodeDescription NE "TodayNotFriday")AND(#BarCodeDescription NE "TimeNotPossible")AND(#BarCodeDescription NE "ExpressParcelAfter15")AND (#BarCodeDescription NE "DateNotToday")AND(#BarCodeDescription NE "ProductCodeNotValid4Country")AND(#BarCodeDescription NE "CheckDigitError")AND (#BarCodeDescription NE "TransactionCannotBeStored")AND(#BarCodeDescription NE "T205With2kgMore")AND(#BarCodeDescription NE "ExtraWeight")AND (#BarCodeDescription NE "NeededTemplateFile")AND(#BarCodeDescription NE "WrongFormat")AND(#BarCodeDescription NE "TagNotAvailable")AND (#BarCodeDescription NE "NDIParcelNumbernotAvailable")AND(#BarCodeDescription NE "CannotMakerouting")AND(#BarCodeDescription NE "NeededTemplateFile")AND (#BarCodeDescription NE "InterfaceCannotOpened")AND(#BarCodeDescription NE "CannotMakerouting")AND(#BarCodeDescription NE "NeededTemplateFile")AND (#BarCodeDescription NE "WrongProductServiceCombination")AND(#BarCodeDescription NE "RecordNotFound")AND(#BarCodeDescription NE "GeneralSystemError") ) {UnknownError} #ENDIF - #BarCodeError #ENDIF #ELSIF(#LabelStatus == 3 ){LabelStatusProcessError} #ELSIF(#LabelStatus == 4 ){PickReturnPetitionFailed} #ELSIF(#LabelStatus == 6 ){PickReturnActivated} #ELSIF(#LabelStatus == 7 ){PickReturnAsked} #ELSIF(#LabelStatus == 8 ){CancelPetitionFailed} #ELSIF(#LabelStatus == 9 ){Canceled} #ENDIF