IA-975: `feat: Card last 4 digits on EReceipt screen and fix cent-to-euro amount formatting`
Closes IA-975### MR Description
Summary
Surfaces the card last 4 digits on the e-receipt screen by threading the new fields through the type system, the transaction list navigation, and the receipt component. Also fixes a display bug where amounts were rendered as raw cents instead of euros.
Changes
types.ts
- Added
gatewayCustomerId: string | nullandcardLast4: string | nullto theInvoiceinterface - Added
cardLast4tocustomerInfoparam type inEReceiptRouteProp - Added optional
cardLast4prop toTransactionCardPropsEReceiptscreen - Added
cardLast4andgatewayCustomerIdto the default invoice fallback object - Added a conditional "Carte bancaire" row showing
•••• •••• •••• XXXXwith a credit card icon — only rendered whencardLast4is available fromcustomerInfoorinvoiceData - Added
formatAmount(value)helper to divide cents by 100 and call.toFixed(2), applied tosubtotal,tax,discount, andtotal - Added
cardContainerstyle for the card row layoutTransactionsscreen - Navigation to
ereceiptnow passescustomerInfo: { cardLast4: item.paymentDetails?.lastFourDigits || null }TransactionCardcomponent - Accepts optional
cardLast4prop - Passes
customerInfo: { cardLast4 }when navigating to the e-receipt screen - Navigation typed with
NavigationProp<any>for type safety