fix: update QR code print layout to show payedAmount instead of yearMonth
Remove billYear and billMonth from second column, add payedAmount as last value. - Update PrintBarcodeData interface to replace yearMonth with payedAmount - Modify fetchBarcodeDataForPrint to include bill.payedAmount - Update PrintPreview display to show payedAmount (formatted from cents) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ export interface PrintBarcodeData {
|
||||
locationName: string;
|
||||
billName: string;
|
||||
barcodeImage: string;
|
||||
yearMonth: string;
|
||||
payedAmount?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +38,7 @@ export const fetchBarcodeDataForPrint = withUser(async (user: AuthenticatedUser,
|
||||
|
||||
// Extract and flatten barcode data
|
||||
const printData: PrintBarcodeData[] = [];
|
||||
|
||||
|
||||
for (const location of locations) {
|
||||
for (const bill of location.bills) {
|
||||
if (bill.barcodeImage && bill.barcodeImage.trim() !== "") {
|
||||
@@ -46,7 +46,7 @@ export const fetchBarcodeDataForPrint = withUser(async (user: AuthenticatedUser,
|
||||
locationName: location.name,
|
||||
billName: bill.name,
|
||||
barcodeImage: bill.barcodeImage,
|
||||
yearMonth: yearMonth
|
||||
payedAmount: bill.payedAmount
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user