Job Costing

Job Costing for Project Alpha - Site A
A snapshot of budget vs. actuals for the project.
Total Budget

25,00,000

Actual Costs

12,90,000

Variance

12,10,000

Under Budget
Cost Breakdown

Invoices

VendorAmount
Cement Corp4,50,000
Steel Beams Ltd7,20,000

Purchase Orders

VendorAmount
Hardware Solutions85,000
Safety Gear Inc.35,000
Bill of Quantities (BOQ) - Budget
Item DescriptionBudgeted Amount
Excavation & Earthwork1,50,000
Concrete Work6,00,000
Masonry Work3,50,000
Steel Reinforcement4,50,000
Total BOQ Budget15,50,000
Technical Details & Export Schema
Schema definitions for data aggregation and export.

Budget vs. Actuals View (SQL/BigQuery)


CREATE OR REPLACE VIEW project_cost_summary AS
SELECT
  p.id AS project_id,
  p.name AS project_name,
  p.budget AS total_budget,
  (
    SELECT SUM(amount) FROM `invoices` WHERE projectId = p.id
  )
  +
  (
    SELECT SUM(totalAmount) FROM `purchase_orders` WHERE projectId = p.id
  ) AS actual_costs,
  p.budget - (
    (SELECT SUM(amount) FROM `invoices` WHERE projectId = p.id) +
    (SELECT SUM(totalAmount) FROM `purchase_orders` WHERE projectId = p.id)
  ) AS variance
FROM
  `projects` AS p;
              

Tally CSV Export Layout

The following format would be generated for import into Tally or other accounting software.

DateVoucher TypeVoucher No.Debit LedgerDebit AmountCredit Ledger
2024-07-20Purchaseinv-001Cement Corp Expenses450000Cement Corp
2024-07-22Purchaseinv-002Steel Beams Ltd Expenses720000Steel Beams Ltd
2024-07-15Purchase Orderpo-101Hardware Solutions PO85000Hardware Solutions
2024-07-18Purchase Orderpo-102Safety Gear Inc. PO35000Safety Gear Inc.