h-1 lebaran
This commit is contained in:
@ -11,7 +11,6 @@ import 'package:path_provider/path_provider.dart';
|
||||
import 'dart:io';
|
||||
import 'package:open_file/open_file.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:penyaluran_app/app/utils/format_helper.dart';
|
||||
|
||||
@ -635,7 +634,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
fontSize: 12,
|
||||
color: PdfColors.blue900)),
|
||||
pw.Text(
|
||||
'Tanggal: ${DateFormat('dd MMMM yyyy').format(DateTime.now())}',
|
||||
'Tanggal: ${FormatHelper.formatDateTime(DateTime.now())}',
|
||||
style: pw.TextStyle(font: ttf, fontSize: 10),
|
||||
),
|
||||
],
|
||||
@ -708,8 +707,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
_buildPdfRow(
|
||||
'Tanggal Laporan',
|
||||
laporan.tanggalLaporan != null
|
||||
? DateTimeHelper.formatDateTime(
|
||||
laporan.tanggalLaporan!)
|
||||
? FormatHelper.formatDateTime(laporan.tanggalLaporan!)
|
||||
: '-',
|
||||
ttf,
|
||||
ttfBold),
|
||||
@ -731,7 +729,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
_buildPdfRow(
|
||||
'Tanggal Penyaluran',
|
||||
penyaluran.tanggalPenyaluran != null
|
||||
? DateTimeHelper.formatDateTime(
|
||||
? FormatHelper.formatDateTime(
|
||||
penyaluran.tanggalPenyaluran!)
|
||||
: '-',
|
||||
ttf,
|
||||
@ -739,7 +737,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
_buildPdfRow(
|
||||
'Tanggal Selesai',
|
||||
penyaluran.tanggalSelesai != null
|
||||
? DateTimeHelper.formatDateTime(
|
||||
? FormatHelper.formatDateTime(
|
||||
penyaluran.tanggalSelesai!)
|
||||
: '-',
|
||||
ttf,
|
||||
@ -902,7 +900,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
|
||||
final isUang = stokBantuan['is_uang'] == true;
|
||||
final formattedJumlah = isUang
|
||||
? 'Rp ${NumberFormat.currency(locale: 'id', symbol: '', decimalDigits: 0).format(jumlah)}'
|
||||
? FormatHelper.formatRupiah(jumlah)
|
||||
: '$jumlah ${stokBantuan['satuan'] ?? ''}';
|
||||
|
||||
return pw.TableRow(
|
||||
@ -975,7 +973,7 @@ class LaporanPenyaluranController extends GetxController {
|
||||
final jumlahBantuan = penerima.jumlahBantuan ?? 0;
|
||||
|
||||
final formattedJumlah = isUang
|
||||
? 'Rp ${NumberFormat.currency(locale: 'id', symbol: '', decimalDigits: 0).format(jumlahBantuan)}'
|
||||
? FormatHelper.formatRupiah(jumlahBantuan)
|
||||
: '$jumlahBantuan ${penerima.satuan ?? ''}';
|
||||
|
||||
return pw.TableRow(
|
||||
|
@ -65,7 +65,7 @@ class LaporanPenyaluranCreateView extends GetView<LaporanPenyaluranController> {
|
||||
controller.selectedPenyaluran.value!
|
||||
.tanggalPenyaluran !=
|
||||
null
|
||||
? DateTimeHelper.formatDateTime(controller
|
||||
? FormatHelper.formatDateTime(controller
|
||||
.selectedPenyaluran.value!.tanggalPenyaluran!)
|
||||
: '-',
|
||||
),
|
||||
@ -73,7 +73,7 @@ class LaporanPenyaluranCreateView extends GetView<LaporanPenyaluranController> {
|
||||
'Tanggal Selesai',
|
||||
controller.selectedPenyaluran.value!.tanggalSelesai !=
|
||||
null
|
||||
? DateTimeHelper.formatDateTime(controller
|
||||
? FormatHelper.formatDateTime(controller
|
||||
.selectedPenyaluran.value!.tanggalSelesai!)
|
||||
: '-',
|
||||
),
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,6 @@ import 'package:penyaluran_app/app/theme/app_theme.dart';
|
||||
import 'package:penyaluran_app/app/utils/format_helper.dart';
|
||||
import 'package:penyaluran_app/app/widgets/custom_app_bar.dart';
|
||||
import 'package:penyaluran_app/app/widgets/status_badge.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class LaporanPenyaluranView extends GetView<LaporanPenyaluranController> {
|
||||
const LaporanPenyaluranView({super.key});
|
||||
@ -255,8 +254,8 @@ class LaporanPenyaluranView extends GetView<LaporanPenyaluranController> {
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
StatusBadge(status: laporan.status ?? 'DRAFT'),
|
||||
// const SizedBox(width: 8),
|
||||
// StatusBadge(status: laporan.status ?? 'DRAFT'),
|
||||
],
|
||||
),
|
||||
),
|
||||
@ -273,10 +272,11 @@ class LaporanPenyaluranView extends GetView<LaporanPenyaluranController> {
|
||||
Icons.calendar_today,
|
||||
'Tanggal',
|
||||
laporan.tanggalLaporan != null
|
||||
? DateTimeHelper.formatDateTime(
|
||||
? FormatHelper.formatDateTime(
|
||||
laporan.tanggalLaporan!)
|
||||
: '-',
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildInfoItem(
|
||||
Icons.description,
|
||||
'Status',
|
||||
@ -538,8 +538,8 @@ class LaporanPenyaluranView extends GetView<LaporanPenyaluranController> {
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
penyaluran.tanggalSelesai != null
|
||||
? DateFormat('dd/MM/yyyy')
|
||||
.format(penyaluran.tanggalSelesai!)
|
||||
? FormatHelper.formatDateTime(
|
||||
penyaluran.tanggalSelesai!)
|
||||
: '-',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
|
Reference in New Issue
Block a user