T

TEI AFS-i

Accounting & Finance System (Interim) · BIR-compliant · ERPNext v15-compliant backend

{{ error }}

2-way sync: this app writes through the Apps Script adapter and always reads live sheet values — edits made directly in Google Sheets appear here on refresh. ERPNext migration stays a one-time Data Import (no live ERPNext sync).

{{ error }}
{{ notice }}
Working…

Dashboard

{{ c.label }}
{{ php(c.val) }}
Open sales invoices
{{ dash.open_si }}
Open supplier bills
{{ dash.open_pi }}
Unreconciled bank lines
{{ dash.unreconciled_bank }}

Sales Invoices

New Sales Invoice (EOPT: the INVOICE is the primary document for goods AND services)

ItemDescriptionIncome accountQtyRateAmount
{{ php(it.qty*it.rate) }}
Net: {{ php(siNet) }}
VAT 12%: {{ php(siVat) }}
Grand total: {{ php(siNet+siVat) }}

Purchase Invoices (Supplier Bills)

New Purchase Invoice

ItemDescriptionExpense accountQtyRateAmount
{{ php(it.qty*it.rate) }}
Net: {{ php(piNet) }}
Input VAT: {{ php(piVat) }}
EWT withheld: ({{ php(piEwt) }})
Payable: {{ php(piNet+piVat-piEwt) }}

Payments

{{ pe.payment_type==='Receive' ? 'Receive Payment from Customer' : 'Pay Supplier' }}

Allocate against open documents

DocumentDateTotalOutstandingAllocate
{{ r.name }}{{ r.posting_date }} {{ php(r.grand_total) }}{{ php(r.outstanding_amount) }}
Posts Dr 1070 CWT (SAWT-claimable)
EWT was already withheld on the supplier bill (apply_tds) — the payable being settled is net of EWT. Extra deductions (e.g. bank charges) can be added after cutover.
Allocated: {{ php(peAllocated) }}
CWT: {{ php(pe.withCwt?pe.cwtAmount:0) }}
{{ pe.payment_type==='Receive' ? 'Cash in' : 'Cash out' }}: {{ php(peCash) }}

Journal Entries

AccountParty typePartyDebitCredit
Dr: {{ php(jeDr) }}
Cr: {{ php(jeCr) }}
{{ Math.abs(jeDr-jeCr)>0.01 ? 'NOT BALANCED' : 'Balanced ✓' }}

Banking & Reconciliation

LineDateDescriptionRefDepositWithdrawalStatusMatch to voucher
{{ r.name }}{{ r.date }}{{ r.description }}{{ r.reference_number }} {{ php(r.deposit) }}{{ php(r.withdrawal) }} {{ r.status }}

Fixed Assets (finance books)

Registers the asset for the books. Physical registry & preventive maintenance remain in the CRMD ERPNext Asset module (framework Section B). Capitalize the purchase itself via a supplier bill to account 1120.

Financial Reports

AccountRootDebitCreditBalance
{{ r.account }}{{ r.root_type }} {{ php(r.debit) }}{{ php(r.credit) }}{{ php(r.balance) }}
TOTAL {{ php(sum(rpt.data,'debit')) }}{{ php(sum(rpt.data,'credit')) }} {{ php(sum(rpt.data,'balance')) }}

Income

{{ k }}{{ php(v) }}
Total Income{{ php(rpt.data.total_income) }}

Expenses

{{ k }}{{ php(v) }}
Total Expenses{{ php(rpt.data.total_expenses) }}
NET INCOME{{ php(rpt.data.net_income) }}

{{ sec }}s

{{ k }}{{ php(v) }}
Total{{ php(rpt.data.totals[sec]) }}
Current period earnings{{ php(rpt.data.current_earnings) }}
Check (A − L − E − earnings){{ php(rpt.data.check) }}
DocumentPartyDateDueTotalOutstandingDaysBucket
{{ r.name }}{{ r.party }}{{ r.posting_date }}{{ r.due_date }} {{ php(r.grand_total) }}{{ php(r.outstanding) }}{{ r.days }}{{ r.bucket }}
Nothing outstanding 🎉

BIR Compliance Center

Encoding-ready summaries — file through eBIRForms/eFPS. Books of accounts live in the Google Sheet (BIR_* tabs). {{ boot.company }} · TIN {{ boot.tin }} · RDO {{ boot.rdo }}

{{ row[0] }}{{ php(bir.data[row[1]]) }}

Deadline: within 25 days after quarter close. Attach SLSP (both lists). Capital-goods input VAT credited outright (CREATE).

ATCIncome paymentsTax withheld
{{ k }}{{ php(v.income) }}{{ php(v.tax) }}
TOTAL DUE (less 0619-E remitted){{ php(bir.data.total_tax_withheld) }}

0619-E for months 1–2 of the quarter; 1601-EQ + QAP by the last day of the month after quarter close. Issue 2307s within 20 days of quarter close.

TINRegistered nameATCNatureIncomeRateTax withheld
{{ r.payee_tin }}{{ r.registered_name }}{{ r.atc_code }}{{ r.nature_of_payment }} {{ php(r.income_payment) }}{{ (r.ewt_rate*100).toFixed(0) }}%{{ php(r.tax_withheld) }}
DatePayor TINRegistered name2307 certPeriodIncomeCWT
{{ r.date }}{{ r.payor_tin }}{{ r.registered_name }}{{ r.cert_2307_no }}{{ r.period }} {{ php(r.income_payment) }}{{ php(r.tax_withheld) }}
TINRegistered nameAddressExemptZero-ratedVatableVATGross
{{ r.tin }}{{ r.registered_name }}{{ r.address }} {{ php(r.exempt) }}{{ php(r.zero_rated) }}{{ php(r.vatable) }}{{ php(r.vat) }}{{ php(r.gross) }}

{{ viewer.doctype }} · {{ viewer.doc.name }}

{{ viewer.doc.docstatus==2?'CANCELLED':'SUBMITTED' }}
{{ pretty(viewer.doc) }}