Created
December 23, 2016 09:59
-
-
Save saturov/1927ca8905223fccbe69e6a58f04c54a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Возвращает описание про благотворительность в информации о заказе */ | |
- (NSString *)orderInfoCharityDescription:(LABCharity *)charity { | |
NSString *resultString = [NSString stringWithFormat:@"%@\u00a0р.", [LABUtils priceSeparateBySpace:charity.sum]]; | |
NSString *location = nil; | |
NSArray<LABOrphanage *> *orphanages = [charity.orphanage allObjects]; | |
if (orphanages && orphanages.count > 0) { | |
location = [orphanages firstObject].orphanageName; | |
resultString = [resultString stringByAppendingString:[NSString stringWithFormat:@" в %@", location]]; | |
} | |
return resultString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment