API v4 계약 반영하고 보고서·입출고 화면 실연동 강화
This commit is contained in:
@@ -80,9 +80,9 @@ void main() {
|
||||
from: DateTime(2024, 1, 1),
|
||||
to: DateTime(2024, 1, 31),
|
||||
format: ReportExportFormat.xlsx,
|
||||
transactionTypeId: 3,
|
||||
statusId: 1,
|
||||
warehouseId: 9,
|
||||
transactionStatusId: 3,
|
||||
approvalStatusId: 7,
|
||||
requestedById: 9,
|
||||
);
|
||||
|
||||
final result = await repository.exportTransactions(request);
|
||||
@@ -101,9 +101,9 @@ void main() {
|
||||
expect(query['from'], request.from.toIso8601String());
|
||||
expect(query['to'], request.to.toIso8601String());
|
||||
expect(query['format'], 'xlsx');
|
||||
expect(query['type_id'], 3);
|
||||
expect(query['status_id'], 1);
|
||||
expect(query['warehouse_id'], 9);
|
||||
expect(query['transaction_status_id'], 3);
|
||||
expect(query['approval_status_id'], 7);
|
||||
expect(query['requested_by_id'], 9);
|
||||
|
||||
expect(result.downloadUrl.toString(), 'https://example.com/report.xlsx');
|
||||
expect(result.filename, 'report.xlsx');
|
||||
@@ -138,7 +138,7 @@ void main() {
|
||||
from: DateTime(2024, 2, 1),
|
||||
to: DateTime(2024, 2, 15),
|
||||
format: ReportExportFormat.pdf,
|
||||
statusId: 5,
|
||||
approvalStatusId: 5,
|
||||
);
|
||||
|
||||
final result = await repository.exportApprovals(request);
|
||||
|
||||
@@ -15,8 +15,6 @@ import 'package:superport_v2/features/reporting/domain/entities/report_export_fo
|
||||
import 'package:superport_v2/features/reporting/domain/entities/report_export_request.dart';
|
||||
import 'package:superport_v2/features/reporting/domain/repositories/reporting_repository.dart';
|
||||
import 'package:superport_v2/features/reporting/presentation/pages/reporting_page.dart';
|
||||
import 'package:superport_v2/widgets/components/empty_state.dart';
|
||||
|
||||
import '../../helpers/test_app.dart';
|
||||
|
||||
void main() {
|
||||
|
||||
Reference in New Issue
Block a user