|
|
@@ -30,11 +30,14 @@
|
|
|
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
- self.verify_msg0=@"Piid does not exist";
|
|
|
+ self.verify_msg0=[NSString stringWithFormat:@"%@ does not exist",self.barcodeTitle];
|
|
|
// Do any additional setup after loading the view.
|
|
|
|
|
|
self.imgBtn.layer.borderColor = [UIColor blackColor].CGColor;
|
|
|
self.imgBtn.layer.borderWidth = 1.0f;
|
|
|
+
|
|
|
+ self.barcodeLabel.text = [NSString stringWithFormat:@"%@:",self.barcodeTitle];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
|
@@ -174,11 +177,12 @@
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(![RAUtils isNumeric:barcode])
|
|
|
+ if(![RAUtils isNumeric:barcode]&&![self.name isEqualToString:@"Receiving"])
|
|
|
{
|
|
|
|
|
|
+ NSString* msg = [NSString stringWithFormat:@"%@ must be a number",self.barcodeTitle];
|
|
|
|
|
|
- [self.view makeToast:@"Piid must be a number" duration:3.0 position:CSToastPositionCenter];
|
|
|
+ [self.view makeToast:msg duration:3.0 position:CSToastPositionCenter];
|
|
|
|
|
|
barcode = @"";
|
|
|
}
|