Creating purchase orders manually can become time-consuming when a small business works with several suppliers.
An office manager might need to order furniture, a repair workshop may regularly purchase replacement parts, and a retail store might reorder products from multiple vendors.
Each purchase requires accurate quantities, prices, supplier information, and clear records.
When orders are managed through disconnected emails and spreadsheets, mistakes become easier to make. Employees might use outdated prices, forget an order reference, or accidentally send the same purchase order twice.
A Google Sheets purchase order generator can help standardize this process.
With a structured spreadsheet and Google Apps Script, you can calculate order totals, generate purchase order PDFs, and email approved orders to suppliers without repeatedly copying information between applications.
In this guide, you’ll learn how to build a purchase order system using Google Sheets, create a supplier-ready PDF, and send it through Gmail using Google’s MailApp service.
We’ll also cover manual approval controls, duplicate prevention, order tracking, inventory integration, and the limitations of spreadsheet-based purchasing systems.
What Is a Google Sheets Purchase Order Generator?
A Google Sheets purchase order generator is a spreadsheet-based tool used to create purchase order documents from structured purchasing data.
A purchase order, commonly called a PO, is a document a buyer sends to a supplier to specify the products or services being requested.
It commonly includes the buyer’s information, supplier details, purchase order number, item descriptions, quantities, prices, and agreed purchasing conditions.
Instead of entering those details into a separate document every time, the business stores the information in Google Sheets.
An automation then retrieves the relevant records and creates a formatted purchase order.
How Automated Purchase Orders Work
A practical workflow looks like this:
Purchase Request → Review Items and Prices → Approve Order → Generate PDF → Email Supplier → Track Delivery
For example, an HVAC repair company may need to reorder replacement components.
Its purchasing manager enters the required items into Google Sheets.
An authorized employee reviews the order.
After approval, a script creates a PDF containing the purchase order information.
The manager can then send that document directly to the supplier.
The system records the PDF link and email-sending timestamp for future reference.
What Can Be Automated?
| Purchasing activity | Automation method |
|---|---|
| Store supplier information | Google Sheets |
| Record requested products | Google Sheets |
| Calculate item totals | Spreadsheet formulas |
| Calculate estimated order total | Spreadsheet formulas |
| Confirm approval | Manual review |
| Generate purchase order PDF | Google Apps Script |
| Save PDF in Google Drive | Google Apps Script |
| Send approved PO to supplier | MailApp |
| Record when an order is sent | Google Sheets |
| Monitor outstanding orders | Status tracking |
The example in this guide deliberately requires approval before a purchase order can be generated or emailed.
It does not authorize purchases, approve budgets, or place supplier orders without human review.
Purchase Order vs. Invoice: What’s the Difference?
Purchase orders and invoices are related documents, but they serve different purposes.
| Document | Created by | Main purpose |
|---|---|---|
| Purchase order | Buyer | Specify the goods or services requested |
| Supplier invoice | Supplier | Request payment according to applicable terms |
| Delivery receipt | Supplier or receiving party | Document delivery |
| Payment confirmation | Paying or receiving party | Record payment information |
For example, a company might issue purchase order PO-2026-001 for $500 in equipment.
The supplier later delivers the equipment and issues an invoice.
The business can compare the purchase order, received goods, and invoice before approving payment.
This process is often called three-way matching.
A purchase order alone doesn’t prove that goods were delivered or an invoice was paid.
For a separate payment automation workflow, see our Google Sheets automatic invoice reminders tutorial.
Step 1: Create a Google Sheets Purchase Order Tracker
Open Google Sheets and create a blank spreadsheet.
Name it:
Small Business Purchase Order Generator
Rename the first worksheet:
Orders
Create these exact column headings.
| Column | Header | Description |
|---|---|---|
| A | PO Number | Unique purchase order reference |
| B | Supplier Name | Supplier or vendor |
| C | Supplier Email | Recipient email address |
| D | Order Date | Purchase order date |
| E | Status | Current approval or delivery stage |
| F | Shipping | Estimated shipping amount |
| G | Tax Rate | Applicable estimated tax rate |
| H | PDF URL | Generated purchase order document |
| I | Sent At | Supplier email timestamp |
| J | Notes | Purchasing instructions |
| K | Subtotal | Calculated item subtotal |
| L | Estimated Total | Calculated order total |
The script later in this guide expects the first ten columns in this exact order.
Columns K and L are optional calculation and reporting fields.
Example Purchase Order
Enter a fictional order:
| Field | Value |
|---|---|
| PO Number | PO-2026-001 |
| Supplier Name | Example Supply Company |
| Supplier Email | supplier@example.com |
| Order Date | October 19, 2026 |
| Status | Draft |
| Shipping | 15.00 |
| Tax Rate | 6% |
| Notes | Confirm delivery date before dispatch |
This sample is for testing only.
Use an email address you control when testing the sending process.
Why a Unique PO Number Matters
A purchase order number identifies a specific purchasing transaction.
For example:
PO-2026-001
The same number should not be reused for another order.
If two different orders share the same identifier, employees may struggle to reconcile invoices, deliveries, and purchase records.
Use a consistent numbering policy, and never change an issued purchase order number casually.
Step 2: Create a Separate Purchase Order Items Worksheet
A purchase order can contain multiple products.
Instead of creating a new set of columns for every additional product, use a separate worksheet for line items.
Create a sheet named:
Items
Add the following headings.
| Column | Header | Description |
|---|---|---|
| A | PO Number | Links item to purchase order |
| B | SKU | Product identifier |
| C | Item Description | Product or service |
| D | Quantity | Quantity being ordered |
| E | Unit Price | Price per unit |
| F | Line Total | Calculated amount |
Example Purchase Order Items
| PO Number | SKU | Item Description | Quantity | Unit Price |
|---|---|---|---|---|
| PO-2026-001 | HVAC-101 | Air Filter | 4 | $25.00 |
| PO-2026-001 | HVAC-102 | Capacitor | 2 | $40.00 |
Both items belong to the same purchase order because they share the same PO Number.
Calculate Line Totals
In cell F2, enter:
=IF(OR(D2="",E2=""),"",ROUND(D2*E2,2))
Copy the formula down column F.
This multiplies the quantity by the unit price.
For the example above:
| Item | Quantity | Unit Price | Line Total |
|---|---|---|---|
| Air Filter | 4 | $25.00 | $100.00 |
| Capacitor | 2 | $40.00 | $80.00 |
The subtotal is $180.00.
Use Data Validation
To reduce entry mistakes, configure validation for quantities and prices.
For example, require quantities to be positive numbers and unit prices to be nonnegative numbers.
Google Sheets also supports dropdown lists for status fields.
Google documents these capabilities in its Apps Script data validation reference.
Step 3: Calculate Purchase Order Subtotals and Totals
Now connect the Items worksheet to the Orders worksheet.
Calculate the Subtotal
In cell K2 of the Orders worksheet, enter:
=IF(A2="","",SUMIF(Items!A:A,A2,Items!F:F))
This adds the line totals for all items with the matching purchase order number.
Calculate the Estimated Total
In cell L2, enter:
=IF(A2="","",ROUND(K2*(1+G2)+F2,2))
This example assumes:
- K contains the subtotal.
- G contains the tax rate entered as a percentage.
- F contains the shipping amount.
For the fictional order:
| Calculation | Amount |
|---|---|
| Items subtotal | $180.00 |
| Example tax at 6% | $10.80 |
| Shipping | $15.00 |
| Estimated total | $205.80 |
Important: This is a simplified purchasing calculation, not a universal US sales-tax formula. Tax applicability and whether shipping is taxable vary according to the transaction and jurisdiction.
Confirm the actual treatment of discounts, freight, taxes, and other charges before issuing a real purchase order.
The Apps Script example later uses the same simplified calculation independently so it can validate item values and produce the PDF.
Step 4: Create a Purchase Order Approval Process
Before generating the final supplier document, establish a review process.
For the Status field, consider these values:
- Draft
- Pending Approval
- Approved
- Sent
- Partially Received
- Received
- Canceled
What Each Status Means
Draft: The order is being prepared.
Pending Approval: The order requires review.
Approved: An authorized employee has reviewed and approved the purchase.
Sent: The approved order was emailed to the supplier.
Partially Received: Some ordered goods have arrived.
Received: The ordered goods have been received according to the business’s process.
Canceled: The order should no longer proceed.
Why Approval Matters
Suppose a workshop employee mistakenly enters 100 motors instead of 10.
If the system automatically emails every new purchase order, the supplier could receive an incorrect order.
An approval stage gives the business an opportunity to verify the quantities and total cost.
Important security limitation: A status dropdown is not a secure electronic approval system. Anyone with permission to change that cell may be able to mark an order Approved.
For real purchasing controls, restrict editing permissions and use a documented approval process.
The script below assumes that the status accurately reflects an authorized approval.
Step 5: Generate Purchase Order PDFs With Google Apps Script
Google Apps Script can read purchase order data from Google Sheets, create Google Docs documents, and export them as PDFs.
Google provides an official example of generating and emailing PDFs from Google Sheets.
We’ll use a related approach, adapted specifically for supplier purchase orders.
What the Script Will Do
The example will:
- Read the purchase order selected in the Orders worksheet.
- Verify that its status is Approved.
- Check that its PO Number is unique.
- Retrieve matching items.
- Validate quantities, prices, and tax inputs.
- Calculate the purchase order total.
- Generate a Google Docs purchase order.
- Convert the document to PDF.
- Save the PDF in Google Drive.
- Record the PDF link in the spreadsheet.
A separate command will send the PDF to the supplier.
This separation allows someone to review the generated document before emailing it.
Open the Apps Script Editor
In your purchase order spreadsheet, select:
Extensions → Apps Script
Create a new script project.
Replace the default sample code with the following.
Complete Purchase Order PDF and Email Script
const PO_CONFIG = {
ordersSheet: "Orders",
itemsSheet: "Items",
buyerName: "REPLACE WITH BUSINESS NAME",
buyerAddress: "REPLACE WITH BUSINESS ADDRESS",
currency: "USD"
};
function onOpen() {
SpreadsheetApp.getUi()
.createMenu("Purchase Orders")
.addItem(
"Generate Approved PO PDF",
"generateApprovedPurchaseOrder"
)
.addItem(
"Email Approved PO to Supplier",
"emailApprovedPurchaseOrder"
)
.addToUi();
}
function getSelectedPurchaseOrder_() {
const ss = SpreadsheetApp.getActiveSpreadsheet();
const sheet = ss.getActiveSheet();
const selected = ss.getActiveRange();
if (
sheet.getName() !== PO_CONFIG.ordersSheet ||
!selected ||
selected.getRow() < 2 ||
selected.getNumRows() !== 1
) {
throw new Error(
"Select one order row in the Orders worksheet."
);
}
const row = selected.getRow();
const data = sheet
.getRange(row, 1, 1, 10)
.getValues()[0];
const [
poNumber,
supplierName,
supplierEmail,
orderDate,
status,
shippingValue,
taxValue,
pdfUrl,
sentAt,
notes
] = data;
const id = String(poNumber || "").trim();
if (!id) {
throw new Error("PO Number is required.");
}
if (String(status).trim() !== "Approved") {
throw new Error(
"Only Approved purchase orders can be processed."
);
}
if (!supplierName) {
throw new Error("Supplier Name is required.");
}
if (
!(orderDate instanceof Date) ||
isNaN(orderDate.getTime())
) {
throw new Error("Enter a valid Order Date.");
}
const poIds = sheet
.getRange(2, 1, sheet.getLastRow() - 1, 1)
.getValues()
.flat()
.map(value => String(value).trim());
if (poIds.filter(value => value === id).length !== 1) {
throw new Error("Duplicate PO Number detected.");
}
const shipping = shippingValue === ""
? 0
: Number(shippingValue);
const taxRate = taxValue === ""
? 0
: Number(taxValue);
if (!Number.isFinite(shipping) || shipping < 0) {
throw new Error("Invalid shipping amount.");
}
if (
!Number.isFinite(taxRate) ||
taxRate < 0 ||
taxRate > 1
) {
throw new Error(
"Enter Tax Rate as a percentage, such as 6%."
);
}
return {
ss,
sheet,
row,
id,
supplierName: String(supplierName),
supplierEmail: String(supplierEmail || "").trim(),
orderDate,
shipping,
taxRate,
pdfUrl: String(pdfUrl || "").trim(),
sentAt,
notes: String(notes || "")
};
}
function money_(amount) {
return Number(amount).toFixed(2);
}
function generateApprovedPurchaseOrder() {
const lock = LockService.getScriptLock();
lock.waitLock(30000);
try {
const po = getSelectedPurchaseOrder_();
if (po.pdfUrl) {
throw new Error(
"A PDF already exists for this order. " +
"Review it before creating a replacement."
);
}
if (po.sentAt) {
throw new Error(
"This order has already been sent."
);
}
if (
PO_CONFIG.buyerName.startsWith("REPLACE") ||
PO_CONFIG.buyerAddress.startsWith("REPLACE")
) {
throw new Error(
"Configure the buyer name and address first."
);
}
const itemsSheet = po.ss.getSheetByName(
PO_CONFIG.itemsSheet
);
if (!itemsSheet) {
throw new Error("Items worksheet not found.");
}
const itemRows = itemsSheet
.getDataRange()
.getValues()
.slice(1);
const items = [];
for (const row of itemRows) {
if (String(row[0]).trim() !== po.id) {
continue;
}
const sku = String(row[1] || "");
const description = String(row[2] || "").trim();
const qty = Number(row[3]);
const unitPrice = Number(row[4]);
if (
!description ||
row[3] === "" ||
row[4] === "" ||
!Number.isFinite(qty) ||
!Number.isFinite(unitPrice) ||
qty <= 0 ||
unitPrice < 0
) {
throw new Error(
"Invalid line item for PO " + po.id
);
}
items.push({
sku,
description,
qty,
unitPrice,
total: Math.round(qty * unitPrice * 100) / 100
});
}
if (items.length === 0) {
throw new Error(
"No valid items found for this purchase order."
);
}
const subtotal = items.reduce(
(sum, item) => sum + item.total,
0
);
const tax = Math.round(
subtotal * po.taxRate * 100
) / 100;
const grandTotal = Math.round(
(subtotal + tax + po.shipping) * 100
) / 100;
const timezone =
po.ss.getSpreadsheetTimeZone();
const formattedDate = Utilities.formatDate(
po.orderDate,
timezone,
"MMMM d, yyyy"
);
const doc = DocumentApp.create(
"Purchase Order " + po.id
);
const body = doc.getBody();
body.appendParagraph("PURCHASE ORDER")
.setHeading(
DocumentApp.ParagraphHeading.HEADING1
);
body.appendParagraph(
"PO Number: " + po.id
);
body.appendParagraph(
"Order Date: " + formattedDate
);
body.appendParagraph(
"Currency: " + PO_CONFIG.currency
);
body.appendParagraph("");
body.appendParagraph(
"BUYER\n" +
PO_CONFIG.buyerName + "\n" +
PO_CONFIG.buyerAddress
);
body.appendParagraph(
"SUPPLIER\n" +
po.supplierName + "\n" +
po.supplierEmail
);
body.appendParagraph("");
const tableData = [
["SKU", "Description", "Qty", "Unit Price", "Amount"]
];
for (const item of items) {
tableData.push([
item.sku,
item.description,
String(item.qty),
money_(item.unitPrice),
money_(item.total)
]);
}
body.appendTable(tableData);
body.appendParagraph("");
body.appendParagraph(
"Subtotal: " + money_(subtotal)
);
body.appendParagraph(
"Estimated Tax: " + money_(tax)
);
body.appendParagraph(
"Shipping: " + money_(po.shipping)
);
body.appendParagraph(
"ESTIMATED TOTAL: " + money_(grandTotal)
);
if (po.notes) {
body.appendParagraph("");
body.appendParagraph(
"Purchasing Instructions:\n" + po.notes
);
}
doc.saveAndClose();
const pdfBlob = DriveApp
.getFileById(doc.getId())
.getAs(MimeType.PDF)
.setName(po.id + ".pdf");
const pdfFile = DriveApp.createFile(pdfBlob);
po.sheet.getRange(po.row, 8)
.setValue(pdfFile.getUrl());
console.log(
"Purchase order PDF created: " +
pdfFile.getUrl()
);
} finally {
lock.releaseLock();
}
}
function emailApprovedPurchaseOrder() {
const lock = LockService.getScriptLock();
lock.waitLock(30000);
try {
const po = getSelectedPurchaseOrder_();
if (po.sentAt) {
throw new Error(
"This purchase order has already been emailed."
);
}
if (!po.pdfUrl) {
throw new Error(
"Generate and review the PDF first."
);
}
const email = po.supplierEmail;
if (
!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
) {
throw new Error("Invalid supplier email.");
}
const match = po.pdfUrl.match(
/\/d\/([a-zA-Z0-9_-]+)/
);
if (!match) {
throw new Error(
"The saved PDF URL is invalid."
);
}
if (MailApp.getRemainingDailyQuota() < 1) {
throw new Error(
"Daily email quota exhausted."
);
}
const pdfFile = DriveApp.getFileById(
match[1]
);
const message =
"Hello,\n\n" +
"Please review the attached purchase order " +
po.id + ".\n\n" +
"Kindly confirm availability, applicable " +
"terms, and the expected delivery schedule.\n\n" +
"If any details need clarification, " +
"please reply before processing the order.\n\n" +
"Thank you,\n" +
PO_CONFIG.buyerName;
MailApp.sendEmail({
to: email,
subject: "Purchase Order " + po.id,
body: message,
attachments: [pdfFile.getBlob()],
name: PO_CONFIG.buyerName
});
po.sheet.getRange(po.row, 9)
.setValue(new Date());
po.sheet.getRange(po.row, 5)
.setValue("Sent");
console.log(
"Purchase order emailed: " + po.id
);
} finally {
lock.releaseLock();
}
}
How the Script Works
The script adds a custom Purchase Orders menu to Google Sheets.
It provides two commands:
Generate Approved PO PDF
Creates a document from the selected approved purchase order and stores its PDF link in column H.
Email Approved PO to Supplier
Sends the previously generated PDF to the supplier and records the email-sending timestamp.
The email command also changes the purchase order status to Sent.
The script does not automatically send emails when someone changes a cell.
This is intentional: purchasing documents can create commercial obligations, and the system should require a deliberate sending action.
Important Technical Limitations
The example prevents routine duplicate sends by checking the Sent At column.
However, it cannot guarantee exactly-once email delivery. A message could be accepted by Google before a later spreadsheet update fails.
Similarly, a PDF could be created before an unexpected error prevents its URL from being recorded.
For high-value purchasing systems, use stronger transaction records, approval controls, and audit logs.
The code also assumes that an approved order’s item prices and quantities will not change between PDF generation and sending. In a production system, lock approved purchase-order data or create an immutable approved snapshot.
Step 6: Configure Your Business Information
Before running the script, edit the configuration:
const PO_CONFIG = {
ordersSheet: "Orders",
itemsSheet: "Items",
buyerName: "Your Company LLC",
buyerAddress: "Your Business Postal Address",
currency: "USD"
};
Replace the sample business name and address with actual company information.
For a US business, you may also want to include purchasing terms, contact details, and delivery instructions.
The example creates a basic purchasing document. It does not automatically generate legally reviewed contract terms.
Before using purchase orders for significant transactions, make sure the document reflects your organization’s procurement requirements.
Step 7: Test PDF Generation Safely
Testing is essential before issuing real supplier orders.
Test 1: Create a Fictional Purchase Order
Add an order with the status:
Draft
Select its row and attempt to generate a PDF.
The script should reject the operation because the order is not approved.
Test 2: Review the Order
Verify the products, quantities, unit prices, shipping estimate, tax treatment, and supplier information.
Change its status to:
Approved
For testing, only do this using fictional purchasing data.
Test 3: Generate the PDF
Reload Google Sheets to display the Purchase Orders menu.
Select the test order row.
Choose:
Purchase Orders → Generate Approved PO PDF
Authorize the script if Google requests permission.
The script should create a PDF and write a link into column H.
Test 4: Inspect the PDF
Open the generated document.
Check that:
- The purchase order number is correct.
- The supplier details are correct.
- Every expected item appears.
- Quantities and unit prices match the source data.
- The subtotal is accurate.
- Shipping and estimated taxes are correctly represented.
- The final total matches the approved information.
Test 5: Send to a Controlled Inbox
Use an email address you control as the test supplier.
Select the approved order row.
Choose:
Purchase Orders → Email Approved PO to Supplier
Check the received email and its attachment.
Confirm that column I receives a timestamp and that the status changes to Sent.
Test 6: Check Duplicate Prevention
Attempt to send the same order again.
The script should reject it because the status is no longer Approved and the sending timestamp exists.
Do not use real supplier email addresses while testing.
Step 8: Track Purchase Order Statuses
Sending a purchase order is only one part of procurement.
A business also needs to know whether the supplier accepted the order, shipped the goods, or completed delivery.
Suggested Purchasing Workflow
| Status | Meaning |
|---|---|
| Draft | Order being prepared |
| Pending Approval | Waiting for review |
| Approved | Authorized for processing |
| Sent | Emailed to supplier |
| Partially Received | Some items delivered |
| Received | Delivery completed |
| Canceled | Order no longer active |
The script automatically moves an order from Approved to Sent after an email-sending attempt succeeds.
Other status changes require employees or additional integrations.
Supplier Confirmation
A supplier may respond with revised quantities, pricing, lead times, or other conditions.
Employees should review those changes rather than assuming the initial purchase order has been accepted exactly as sent.
Receiving Goods
When goods arrive, compare them with the actual purchase order.
For example, if a purchase order requested 20 components but only 12 were delivered, record the partial receipt.
Do not automatically mark the entire order Received.
Invoice Matching
When the supplier invoice arrives, compare its contents with the purchase order and receiving records.
This helps identify discrepancies before payment.
Step 9: Connect Purchase Orders With Inventory Tracking
Purchase orders become especially useful when connected with inventory management.
Suppose an HVAC business tracks replacement parts in Google Sheets.
Its inventory tracker identifies that a particular air filter has fallen below the reorder point.
The purchasing manager reviews the shortage and creates a purchase order for the required quantity.
The workflow becomes:
Low Stock Detected → Purchase Request → Approved PO → Supplier Order → Goods Received → Inventory Updated
Our Google Sheets inventory tracker with low-stock alerts guide explains how to calculate reorder points and create purchasing alerts.
Combining that process with purchase order generation can help a business organize procurement from initial stock shortage to delivery.
Should Stock Increase When a PO Is Sent?
No.
Sending a purchase order does not mean the goods are physically available.
Available inventory should be updated according to actual receipts and the business’s stock accounting policy.
A purchase-order system may track On Order quantities separately from On Hand inventory.
For example:
| Product | On Hand | On Order | Reorder Point |
|---|---|---|---|
| Air Filter | 5 | 20 | 10 |
| Capacitor | 8 | 12 | 15 |
This distinction helps prevent a business from promising products that have not arrived.
Step 10: Create a Purchase Order Dashboard
A procurement dashboard can make purchasing activity easier to review.
Create a worksheet named:
Dashboard
Add metrics based on the Orders worksheet.
Count Draft Purchase Orders
=COUNTIF(Orders!E2:E,"Draft")
Count Approved Orders
=COUNTIF(Orders!E2:E,"Approved")
Count Sent Purchase Orders
=COUNTIF(Orders!E2:E,"Sent")
Calculate the Estimated Value of Sent Orders
=SUMIF(Orders!E2:E,"Sent",Orders!L2:L)
Calculate Estimated Outstanding Order Value
For orders that have been sent but not yet recorded as received, you could track a defined collection of statuses.
For example:
=SUM(
SUMIF(
Orders!E2:E,
{"Sent","Partially Received"},
Orders!L2:L
)
)
This uses the total purchase order values.
It does not deduct partial receipts or supplier credits.
For accurate outstanding commitment reporting, add separate receiving and adjustment records.
Useful Purchasing KPIs
Other potential metrics include supplier delivery times, order approval turnaround, purchasing value by supplier, and the percentage of purchase orders with discrepancies.
Define each metric carefully so employees understand what it measures.
Common Google Sheets Purchase Order Automation Problems
Problem 1: The PDF Is Not Generated
Possible causes include:
- Status is not Approved.
- The selected row is not in the Orders worksheet.
- Buyer information is missing.
- An invalid date or price exists.
- The PO Number is duplicated.
- Google Apps Script authorization is incomplete.
Check the error in Apps Script Executions.
Problem 2: Some Purchase Order Items Are Missing
Verify that every item uses the exact matching PO Number.
For example:
PO-2026-001
is different from:
PO-2026-01
Also inspect blank or invalid quantity and price fields.
Problem 3: Totals Are Incorrect
Check whether tax percentages are entered correctly.
For example, the value 6% should be represented as a spreadsheet percentage, not the plain number 6.
Review shipping charges, discounts, rounding, and the tax calculation model.
Problem 4: The Supplier Email Doesn’t Arrive
Verify the supplier email address and review MailApp authorization and quota limits.
Also confirm that the sending action actually completed.
An email-sending call does not guarantee inbox delivery.
Problem 5: The Wrong PDF Is Attached
The spreadsheet stores the PDF URL associated with the approved purchase order.
If someone manually replaces that link, the script may attach an unintended file.
Restrict access to purchasing records and verify the PDF before sending.
For stronger controls, store and validate document identifiers in an audit table.
Problem 6: Duplicate Purchase Orders Are Created
The example checks for duplicate PO Numbers within the Orders worksheet.
However, separate spreadsheets or external systems may use overlapping sequences.
Businesses with several departments should establish a shared numbering policy.
Problem 7: Purchase Order Information Changes After Approval
A purchase order could be approved, converted to PDF, and then modified in the spreadsheet.
The PDF would no longer necessarily match the current row values.
Use restricted editing, version control, and a process for issuing revised purchase orders.
Problem 8: Apps Script Quotas Are Reached
Google Apps Script imposes limits on services such as email sending, document conversion, and execution time.
Review the current Apps Script quotas documentation.
If your business generates large volumes of documents, consider a dedicated procurement platform.
Google Sheets vs. Dedicated Purchase Order Software
Google Sheets is a flexible starting point, but it is not a complete procurement management platform.
| Feature | Google Sheets + Apps Script | Dedicated procurement software |
|---|---|---|
| Purchase order records | Yes | Yes |
| Multiple line items | Yes | Yes |
| Automatic calculations | Yes | Yes |
| PDF creation | Custom script | Common feature |
| Supplier email | Custom script | Often supported |
| Approval workflow | Basic/manual in this guide | Often supported |
| Receiving records | Additional setup required | Often supported |
| Budget controls | Custom setup | Product-dependent |
| Audit trails | Limited without custom logic | Usually more extensive |
| Accounting integration | Separate integration required | Product-dependent |
| Multi-user purchasing controls | Basic | Often more granular |
Dedicated systems can be preferable when several employees, departments, or locations share purchasing responsibilities.
For a small business with a modest order volume, a well-maintained spreadsheet may be adequate.
For larger operations, purchase order software can provide stronger controls for approvals, receiving, supplier management, and reconciliation.
How to Improve Purchase Order Approval Controls
The simple workflow in this article relies on a manually assigned Approved status.
That makes it useful as a prototype but insufficient as a complete financial control.
A more advanced system should include:
Named Approvers
Each purchase order should have a designated person authorized to approve it.
Approval Timestamps
Record when approval occurred.
Immutable Approved Data
Prevent ordinary users from modifying prices or quantities after approval.
Revision Numbers
If a purchase order changes, issue a clearly identified revision.
Separate Purchasing Roles
Where practical, distinguish requesters, approvers, and employees responsible for receiving goods.
Audit History
Record important actions, including approval, sending, cancellation, and receiving.
Exception Handling
Require additional review for unusual quantities, unapproved suppliers, or orders exceeding company purchasing limits.
For teams already using Google Sheets to track internal responsibilities, our Google Sheets task tracker and email reminders guide offers a separate approach for managing approval-related tasks.
Practical Example: A Small HVAC Company Reorders Parts
Imagine a residential HVAC company that regularly purchases filters, capacitors, and other replacement components.
Its inventory spreadsheet shows that several parts need replenishment.
An employee prepares a purchase order.
Step 1: Identify the Required Products
The employee reviews low-stock items and confirms the appropriate quantities.
Step 2: Create a Draft Purchase Order
They add a new PO Number, supplier, order date, and item records.
Step 3: Review Supplier Pricing
The purchasing manager checks current supplier prices and delivery expectations.
Step 4: Approve the Order
After verifying the details, an authorized employee marks the order Approved.
Step 5: Generate the PDF
The script creates a supplier-ready purchase order document.
Step 6: Send the Order
An employee reviews the PDF and sends it using the Purchase Orders menu.
Step 7: Confirm Supplier Acceptance
The supplier responds with availability and expected delivery information.
Step 8: Receive the Goods
The business records actual delivered quantities.
Step 9: Update Inventory
Only received goods are added to available stock according to the business’s process.
Step 10: Reconcile the Invoice
The purchasing team compares the supplier invoice with the approved purchase order and receiving information.
This process can reduce repetitive document preparation while keeping important commercial decisions under human control.
Frequently Asked Questions
Can Google Sheets generate purchase orders automatically?
Yes. Google Apps Script can read purchasing data from Google Sheets and generate PDF purchase orders using Google Docs and Drive services.
How do I create a purchase order in Google Sheets?
Create an Orders worksheet for supplier and order information and an Items worksheet for the products being purchased.
Use formulas to calculate totals and a script to generate the final document.
Can Google Sheets export a purchase order as PDF?
Yes. Apps Script can create a formatted Google Docs document and convert it to PDF.
Google also provides an official sample for creating PDFs from Sheets data.
Can I automatically email purchase orders to suppliers?
Yes. Apps Script’s MailApp service can send emails with PDF attachments.
For purchasing workflows, it is advisable to require a deliberate approval and sending step.
How do I prevent duplicate purchase order numbers?
Use a consistent numbering policy and validate that each PO Number appears only once in the authoritative order list.
For multiple simultaneous users or systems, stronger centralized controls may be necessary.
Is a purchase order the same as an invoice?
No. A purchase order is generally issued by the buyer to specify requested goods or services.
An invoice is generally issued by the supplier to request payment.
Can I connect purchase orders to inventory tracking?
Yes. Google Sheets can link purchase orders to product SKUs and receiving records.
However, quantities on order should be kept separate from quantities physically on hand.
Does this purchase order script require a paid Google Workspace account?
Apps Script is available with Google accounts, subject to authorization and service quotas.
Organization administrators may restrict access to particular Google services.
Can the script automatically approve purchases?
Custom approval logic is technically possible, but the example requires manual approval.
Commercial purchasing authorization should be based on the organization’s actual approval policy.
Can I send the same purchase order twice?
The example prevents routine repeat sending by checking the stored sending status.
However, spreadsheet and email operations do not provide a guarantee of exactly-once delivery.
Can Google Sheets replace procurement software?
For simple purchasing workflows, it may be sufficient.
Businesses with complex approvals, inventory receiving, multi-location operations, or extensive auditing needs may benefit from dedicated procurement software.
Final Thoughts
A Google Sheets purchase order generator can help small businesses create consistent supplier documents without repeatedly entering the same purchasing information.
By combining structured order records, line-item formulas, Google Docs, and Apps Script, you can create a workflow that generates PDF purchase orders and sends approved documents to suppliers.
The real value comes from using a consistent process.
Every purchase order should have a unique identifier, accurate quantities, verified prices, an appropriate approval, and a clear record of what was sent.
A spreadsheet-based system is a practical starting point, but it should not be mistaken for a complete procurement approval or accounting platform.
Begin with fictional test orders, validate the PDF output, and confirm that your duplicate-prevention controls work before using the system for real purchasing.
For more practical tutorials about inventory tracking with Google Sheets, business task automation, and other software workflows, explore IA Network.
An effective purchase order system helps a business buy the right products, document the right terms, and maintain clear purchasing records.





