B:BD[
2.14121] → [
2.14121:14632]
let transaction = Transaction::on(date).tap_mut(|transaction| match kind {
TransactionKind::Claim { claim_code } => {
self.build_claim_transaction(transaction, claim_code, amount);
}
TransactionKind::Payment { order_id } => {
self.build_payment_transaction(transaction, order_id, amount);
}
TransactionKind::TopUp { order_id } => {
self.build_payment_transaction(transaction, order_id, amount);
let transaction = Transaction::on(date).tap_mut(|transaction| {
transaction.set_narration(description);
match kind {
TransactionKind::Claim { claim_code } => {
self.build_claim_transaction(transaction, claim_code, amount);
}
TransactionKind::Payment { order_id } => {
self.build_payment_transaction(transaction, order_id, amount);
}
TransactionKind::TopUp { order_id } => {
self.build_payment_transaction(transaction, order_id, amount);
}