Skip to content

Commit

Permalink
yoseph pay history
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHubert committed Aug 5, 2024
1 parent 02b9947 commit 40219db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion yoseph/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let SavingsNotes
let StupidNotes
let SavingsSubtract
let StupidSubtract
let PayAmount1
let PayAmount
let History = []

document.querySelector(`#stupid-total`).innerHTML = 0
Expand Down Expand Up @@ -68,6 +68,12 @@ document.querySelector(`#pay-enter`).addEventListener(`click`, () => {
document.querySelector(`#tithe-total`).innerHTML = Tithes
document.querySelector(`#savings-total`).innerHTML = Savings
document.querySelector(`#pay-amount`).value = ''
const paydayHistoryItem = {
description: document.querySelector(`#pay-amount`).value,
amount: PayAmount,
date: Date.now(),
account: "payday"
}
})

document.querySelector(`#stupid-expense-enter`).addEventListener(`click`, () => {
Expand Down

0 comments on commit 40219db

Please sign in to comment.