|
|
@@ -42,14 +42,15 @@
|
|
|
self.editDiscount.text = [NSString stringWithFormat:@"%@", [RAUtils FloatFormat:self.discount] ];
|
|
|
|
|
|
self.labelNewPrice.text = [NSString stringWithFormat:@"%.2f",self.price* (1.0-self.discount/100)];
|
|
|
- if(self.arr_fashion_ids.count!=1)
|
|
|
- {
|
|
|
+// if(self.arr_fashion_ids.count != 1)
|
|
|
+// {
|
|
|
self.editQTY.enabled = NO;
|
|
|
self.editPrice.enabled = NO;
|
|
|
self.editDiscount.enabled = NO;
|
|
|
self.tv_linenote.editable = NO;
|
|
|
|
|
|
- self.label_multiItems.text=[NSString stringWithFormat:@"%d items selected",self.ids_count ];
|
|
|
+ self.label_multiItems.text = [NSString stringWithFormat:@"%d items selected",self.ids_count ? self.ids_count : self.arr_fashion_ids.count];//ids_count多选情况有值,而self.arr_fashion_ids在单选情况才不为空
|
|
|
+
|
|
|
self.label_multiItems.hidden = false;
|
|
|
self.editPrice.enabled = false;
|
|
|
self.editPrice.text = nil;
|
|
|
@@ -58,19 +59,7 @@
|
|
|
|
|
|
self.labelNewPrice.hidden = true;
|
|
|
self.labelpriceafter.hidden = true;
|
|
|
- } else {
|
|
|
-
|
|
|
- self.qtyCheckButton.selected = YES;
|
|
|
- self.priceCheckButton.selected = YES;
|
|
|
- self.discountCheckButton.selected = YES;
|
|
|
- self.lineNoteCheckButton.selected = YES;
|
|
|
-
|
|
|
- self.qtyCheckButton.hidden = YES;
|
|
|
- self.priceCheckButton.hidden = YES;
|
|
|
- self.discountCheckButton.hidden = YES;
|
|
|
- self.lineNoteCheckButton.hidden = YES;
|
|
|
- self.noticeLabel.hidden = YES;
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|