bug fix on batches for zesa

This commit is contained in:
Prince
2026-06-21 00:24:36 +02:00
parent 381b5fbf08
commit b90d95bc63
11 changed files with 389 additions and 40 deletions

View File

@@ -2388,19 +2388,13 @@ class _BatchDetailScreenState extends State<BatchDetailScreen>
),
const SizedBox(height: 2),
Text(
item.recipientPhone ?? '',
item.recipientAccount ?? '',
style: TextStyle(fontSize: 12, color: Colors.grey.shade500),
),
if (item.billName != null || item.billProductName != null)
const SizedBox(height: 4),
if (item.billName != null || item.billProductName != null)
_buildBillInfoRow(item, isDark),
if (item.providerLabel != null &&
item.providerLabel!.isNotEmpty)
const SizedBox(height: 3),
if (item.providerLabel != null &&
item.providerLabel!.isNotEmpty)
_buildProviderBadge(item, isDark),
],
),
),
@@ -2429,14 +2423,6 @@ class _BatchDetailScreenState extends State<BatchDetailScreen>
final parts = <InlineSpan>[];
if (item.billName != null && item.billName!.isNotEmpty) {
parts.addAll([
WidgetSpan(
child: Icon(
Icons.receipt_rounded,
size: 12,
color: Colors.grey.shade500,
),
),
const WidgetSpan(child: SizedBox(width: 3)),
TextSpan(
text: item.billName,
style: TextStyle(

View File

@@ -49,12 +49,13 @@ class _GroupCreateScreenState extends State<GroupCreateScreen> {
if (parts.length >= 2) {
final name = parts[0].trim();
final account = parts[1].trim();
final phone = parts[2].trim();
if (name.isNotEmpty && account.isNotEmpty) {
members.add(
Recipient(
name: name,
account: account,
phoneNumber: account,
phoneNumber: phone,
latestProviderLabel: '',
),
);