Version 6.7.7 Source

Table Name: `tabPurchase Order`

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `supplier_section` | Section Break |  |
    icon-user
2 | `title` | Data | Title |
3 | `naming_series` | Select | Series |
    PO-
4 | `supplier` | Link | Supplier | Supplier
5 | `is_subcontracted` | Select | Supply Raw Materials |
    No
    Yes
6 | `supplier_name` | Data | Supplier Name |
7 | `address_display` | Small Text | Address |
8 | `contact_display` | Small Text | Contact |
9 | `contact_mobile` | Small Text | Mobile No |
10 | `contact_email` | Small Text | Contact Email |
11 | `column_break1` | Column Break |  |
12 | `transaction_date` | Date | Date |
13 | `amended_from` | Link | Amended From | Purchase Order
14 | `company` | Link | Company | Company
15 | `drop_ship` | Section Break | Drop Ship |
16 | `customer` | Link | Customer | Customer
17 | `customer_name` | Data | Customer Name |
18 | `delivered_by_supplier` | Check | To be delivered to customer |
19 | `column_break_19` | Column Break |  |
20 | `customer_address` | Link | Customer Address | Address
21 | `customer_contact_person` | Link | Customer Contact | Contact
22 | `customer_address_display` | Small Text | Customer Address Display |
23 | `customer_contact_display` | Small Text | Customer Contact |
24 | `customer_contact_mobile` | Small Text | Customer Mobile No |
25 | `customer_contact_email` | Small Text | Customer Contact Email |
26 | `currency_and_price_list` | Section Break | Currency and Price List |
    icon-tag
27 | `currency` | Link | Currency | Currency
28 | `conversion_rate` | Float | Exchange Rate |
29 | `cb_price_list` | Column Break |  |
30 | `buying_price_list` | Link | Price List | Price List
31 | `price_list_currency` | Link | Price List Currency | Currency
32 | `plc_conversion_rate` | Float | Price List Exchange Rate |
33 | `ignore_pricing_rule` | Check | Ignore Pricing Rule |
34 | `items_section` | Section Break |  |
    icon-shopping-cart
35 | `items` | Table | Items | Purchase Order Item
36 | `get_last_purchase_rate` | Button | Get Last Purchase Rate |
37 | `sb_last_purchase` | Section Break |  |
38 | `base_total` | Currency | Total (Company Currency) |
    Company:company:default_currency
39 | `base_net_total` | Currency | Net Total (Company Currency) |
    Company:company:default_currency
40 | `column_break_26` | Column Break |  |
41 | `total` | Currency | Total |
    currency
42 | `net_total` | Currency | Net Total |
    currency
43 | `taxes_section` | Section Break |  |
    icon-money
44 | `taxes_and_charges` | Link | Taxes and Charges | Purchase Taxes and Charges Template
45 | `taxes` | Table | Purchase Taxes and Charges | Purchase Taxes and Charges
46 | `other_charges_calculation` | HTML | Taxes and Charges Calculation |
47 | `totals` | Section Break |  |
    icon-money
48 | `base_taxes_and_charges_added` | Currency | Taxes and Charges Added (Company Currency) |
    Company:company:default_currency
49 | `base_taxes_and_charges_deducted` | Currency | Taxes and Charges Deducted (Company Currency) |
    Company:company:default_currency
50 | `base_total_taxes_and_charges` | Currency | Total Taxes and Charges (Company Currency) |
    Company:company:default_currency
51 | `column_break_39` | Column Break |  |
52 | `taxes_and_charges_added` | Currency | Taxes and Charges Added |
    currency
53 | `taxes_and_charges_deducted` | Currency | Taxes and Charges Deducted |
    currency
54 | `total_taxes_and_charges` | Currency | Total Taxes and Charges |
    currency
55 | `discount_section` | Section Break | Additional Discount |
56 | `apply_discount_on` | Select | Apply Additional Discount On |
    Grand Total
    Net Total
57 | `column_break_45` | Column Break |  |
58 | `discount_amount` | Currency | Additional Discount Amount |
    currency
59 | `base_discount_amount` | Currency | Additional Discount Amount (Company Currency) |
    Company:company:default_currency
60 | `totals_section` | Section Break |  |
61 | `base_grand_total` | Currency | Grand Total (Company Currency) |
    Company:company:default_currency
62 | `base_in_words` | Data | In Words (Company Currency) In Words will be visible once you save the Purchase Order. |
63 | `base_rounded_total` | Currency | Rounded Total (Company Currency) |
    Company:company:default_currency
64 | `advance_paid` | Currency | Advance Paid |
65 | `column_break4` | Column Break |  |
66 | `grand_total` | Currency | Grand Total |
    currency
67 | `in_words` | Data | In Words |
68 | `terms_section_break` | Section Break | Terms and Conditions |
    icon-legal
69 | `tc_name` | Link | Terms | Terms and Conditions
70 | `terms` | Text Editor | Terms and Conditions |
71 | `contact_section` | Section Break | Contact Details |
    icon-bullhorn
72 | `supplier_address` | Link | Supplier Address | Address
73 | `cb_contact` | Column Break |  |
74 | `contact_person` | Link | Contact Person | Contact
75 | `more_info` | Section Break | More Information |
76 | `status` | Select | Status |
    Draft
    To Receive and Bill
    To Bill
    To Receive
    Completed
    Stopped
    Cancelled
    Closed
    Delivered
77 | `fiscal_year` | Link | Fiscal Year | Fiscal Year
78 | `ref_sq` | Data | Ref SQ |
79 | `column_break_74` | Column Break |  |
80 | `per_received` | Percent | % Received |
81 | `per_billed` | Percent | % Billed |
82 | `column_break5` | Section Break | Printing Settings |
83 | `letter_head` | Link | Letter Head | Letter Head
84 | `select_print_heading` | Link | Print Heading | Print Heading
85 | `raw_material_details` | Section Break | Raw Materials Supplied |
    icon-truck
86 | `supplied_items` | Table | Supplied Items | Purchase Order Item Supplied
87 | `recurring_order` | Section Break | Recurring |
    icon-time
88 | `column_break` | Column Break |  |
89 | `is_recurring` | Check | Is Recurring |
90 | `recurring_type` | Select | Recurring Type |
    Monthly
    Quarterly
    Half-yearly
    Yearly
91 | `from_date` | Date | From Date Start date of current order's period |
92 | `to_date` | Date | To Date End date of current order's period |
93 | `repeat_on_day_of_month` | Int | Repeat on Day of Month The day of the month on which auto order will be generated e.g. 05, 28 etc |
94 | `end_date` | Date | End Date The date on which recurring order will be stop |
95 | `column_break83` | Column Break |  |
96 | `next_date` | Date | Next Date The date on which next invoice will be generated. It is generated on submit. |
97 | `recurring_id` | Data | Recurring Id |
98 | `notification_email_address` | Small Text | Notification Email Address Enter email id separated by commas, order will be mailed automatically on particular date |
99 | `recurring_print_format` | Link | Recurring Print Format | Print Format

### Controller

#### erpnext.buying.doctype.purchase_order.purchase_order

### Class PurchaseOrder

Inherits from erpnext.controllers.buying_controller.BuyingController

__init__ (self, arg1, arg2=None)

No docs

before_recurring (self)

No docs

check_for_stopped_or_closed_status (self, pc_obj)

No docs

check_modified_date (self)

No docs

get_last_purchase_rate (self)

get last purchase rates for all items

get_schedule_dates (self)

No docs

on_cancel (self)

No docs

on_submit (self)

No docs

on_update (self)

No docs

update_delivered_qty_in_sales_order (self)

Update delivered qty in Sales Order for drop ship

update_ordered_qty (self, po_item_rows=None)

update requested qty (before ordered_qty is updated)

update_requested_qty (self)

No docs

update_status (self, status)

No docs

update_status_updater (self)

No docs

validate (self)

No docs

validate_minimum_order_qty (self)

No docs

validate_with_previous_doc (self)

No docs

Public API
`/api/method/erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_invoice`

erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_invoice (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_receipt`

erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_receipt (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.buying.doctype.purchase_order.purchase_order.make_stock_entry`

erpnext.buying.doctype.purchase_order.purchase_order.make_stock_entry (purchase_order, item_code)

No docs

erpnext.buying.doctype.purchase_order.purchase_order.set_missing_values (source, target)

No docs

Public API
`/api/method/erpnext.buying.doctype.purchase_order.purchase_order.stop_or_unstop_purchase_orders`

erpnext.buying.doctype.purchase_order.purchase_order.stop_or_unstop_purchase_orders (names, status)

No docs

Public API
`/api/method/erpnext.buying.doctype.purchase_order.purchase_order.update_status`

erpnext.buying.doctype.purchase_order.purchase_order.update_status (status, name)

No docs

#### Linked In:

- Purchase Invoice Item
- Purchase Order
- Purchase Receipt Item
- Stock Entry