//
//  Invoice+ReferenceNumbers.h
//  Economacs
//
//  Created by Erik Aderstedt on 2012-07-30.
//
//

#import "Invoice.h"

@interface Invoice (ReferenceNumbers)

- (NSInteger)finnishReferenceNumber;
- (NSInteger)globalReferenceNumberCheckDigitsFromNumber:(NSInteger)localReferenceNumber;
- (NSString *)globalReferenceNumber;
- (NSString *)finnishBarcodeAsNumbers;
- (NSString *)finnishBarcodeString:(NSError **)error;

#if defined(IFAKTURA)
- (UIImage *)barcodeImage;
#else
- (NSImage *)barcodeImage;
- (NSImage *)QRCodeImage;
#endif

@end
