A46ZUUSWW52CBDSQUDEE2XS5YIMLPVKWL7RSVI6OXHV632EWLEUQC
DWUVE75BTYH56NS2I4J2XSPCU3XTJBJQB567CC3BFMEMFUIE4KLQC
7URE4HPLC2YYQP3WCKISVA77WLIB4TKMZRN4LQHSSGBYXKAIK5QAC
use beancount_types::common_keys;
use time::format_description::well_known::Iso8601;
if let Some(payment_date) = record.payment_date { posting.add_meta(common_keys::EFFECTIVE_DATE, payment_date); }
if let Some(payment_date) = record.payment_date {
posting.add_meta(common_keys::EFFECTIVE_DATE, payment_date);
}
payment_date: Option<Date>,
let payment_date: Option<Date> = matches!(transaction_kind, TransactionKind::CardPayment) .then(|| { let (date, _rest) = description.split_once(' ').unwrap(); Date::parse(date, &Iso8601::PARSING) }) .transpose() .map_err(Self::Error::custom)?;
let payment_date: Option<Date> = matches!(transaction_kind, TransactionKind::CardPayment)
.then(|| {
let (date, _rest) = description.split_once(' ').unwrap();
Date::parse(date, &Iso8601::PARSING)
})
.transpose()
.map_err(Self::Error::custom)?;
payment_date,