//
//  POReceiptDataController.h
//  EAMNext
//
//  Created by Sreelakshmi Mereddy on 1/24/17.
//
//

#import "RecordDataController.h"

@class R5DOCKRECEIPTS;
@class R5DOCKLINES;
@class EAMPOReceipts;
@class EAMPOActiveLines;
@class DBQuery;

@interface POReceiptDataController : RecordDataController
{
    R5DOCKLINES *_recordValue;
}

@property (nonatomic, strong) EAMPOReceipts *receipts;
@property (nonatomic, strong) EAMPOActiveLines *lines;
@property (nonatomic , strong) R5DOCKRECEIPTS *receipt;

- (void)getPOReceiptsList:(NSString *)searchString andCurrentPosition:(NSInteger )currentPosition;
-(void)getPOReceipt:(NSString *)receiptCode;
-(void)getActiveLines:(NSString *)receiptCode;
-(void)getActiveLine:(NSString *)receiptCode andLineNum:(NSNumber *)lineNum;
-(void)getPOReceiptActiveLineDefault:(NSString *)receiptCode;
-(void)loadRecordViewLayoutForActiveLines;
-(void)cancelPOLine:(R5DOCKLINES *)line;
-(void)updateLine;
-(void)approveLines:(R5DOCKRECEIPTS *)receiptRecord;
- (BOOL)validateInput;
-(R5DOCKLINES *)convertModelForEditMode:(R5DOCKLINES *)line;
-(void)disableAllFields:(BOOL) disable;
@end

