Version 6.x.x 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 column_break_19 Column Break
19 customer_address Link Customer Address Address
20 customer_contact_person Link Customer Contact Contact
21 customer_address_display Small Text Customer Address Display
22 customer_contact_display Small Text Customer Contact
23 customer_contact_mobile Small Text Customer Mobile No
24 customer_contact_email Small Text Customer Contact Email
25 currency_and_price_list Section Break Currency and Price List
icon-tag
26 currency Link Currency Currency
27 conversion_rate Float Exchange Rate
28 cb_price_list Column Break
29 buying_price_list Link Price List Price List
30 price_list_currency Link Price List Currency Currency
31 plc_conversion_rate Float Price List Exchange Rate
32 ignore_pricing_rule Check Ignore Pricing Rule
33 items_section Section Break
icon-shopping-cart
34 items Table Items Purchase Order Item
35 sb_last_purchase Section Break
36 base_total Currency Total (Company Currency)
Company:company:default_currency
37 base_net_total Currency Net Total (Company Currency)
Company:company:default_currency
38 column_break_26 Column Break
39 total Currency Total
currency
40 net_total Currency Net Total
currency
41 taxes_section Section Break
icon-money
42 taxes_and_charges Link Taxes and Charges Purchase Taxes and Charges Template
43 taxes Table Purchase Taxes and Charges Purchase Taxes and Charges
44 other_charges_calculation HTML Taxes and Charges Calculation
45 totals Section Break
icon-money
46 base_taxes_and_charges_added Currency Taxes and Charges Added (Company Currency)
Company:company:default_currency
47 base_taxes_and_charges_deducted Currency Taxes and Charges Deducted (Company Currency)
Company:company:default_currency
48 base_total_taxes_and_charges Currency Total Taxes and Charges (Company Currency)
Company:company:default_currency
49 column_break_39 Column Break
50 taxes_and_charges_added Currency Taxes and Charges Added
currency
51 taxes_and_charges_deducted Currency Taxes and Charges Deducted
currency
52 total_taxes_and_charges Currency Total Taxes and Charges
currency
53 discount_section Section Break Additional Discount
54 apply_discount_on Select Apply Additional Discount On
Grand Total
Net Total
55 base_discount_amount Currency Additional Discount Amount (Company Currency)
Company:company:default_currency
56 column_break_45 Column Break
57 additional_discount_percentage Float Additional Discount Percentage
58 discount_amount Currency Additional Discount Amount
currency
59 totals_section Section Break
60 base_grand_total Currency Grand Total (Company Currency)
Company:company:default_currency
61 base_in_words Data In Words (Company Currency)

In Words will be visible once you save the Purchase Order.

62 base_rounded_total Currency Rounded Total (Company Currency)
Company:company:default_currency
63 advance_paid Currency Advance Paid
64 column_break4 Column Break
65 grand_total Currency Grand Total
currency
66 in_words Data In Words
67 terms_section_break Section Break Terms and Conditions
icon-legal
68 tc_name Link Terms Terms and Conditions
69 terms Text Editor Terms and Conditions
70 contact_section Section Break Contact Details
icon-bullhorn
71 supplier_address Link Supplier Address Address
72 cb_contact Column Break
73 contact_person Link Contact Person Contact
74 more_info Section Break More Information
75 status Select Status
Draft
To Receive and Bill
To Bill
To Receive
Completed
Stopped
Cancelled
Closed
Delivered
76 fiscal_year Link Fiscal Year Fiscal Year
77 ref_sq Data Ref SQ
78 column_break_74 Column Break
79 per_received Percent % Received
80 per_billed Percent % Billed
81 column_break5 Section Break Printing Settings
82 letter_head Link Letter Head Letter Head
83 select_print_heading Link Print Heading Print Heading
84 raw_material_details Section Break Raw Materials Supplied
icon-truck
85 supplied_items Table Supplied Items Purchase Order Item Supplied
86 recurring_order Section Break Recurring
icon-time
87 column_break Column Break
88 is_recurring Check Is Recurring
89 recurring_type Select Recurring Type
Monthly
Quarterly
Half-yearly
Yearly
90 from_date Date From Date

Start date of current order's period

91 to_date Date To Date

End date of current order's period

92 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

93 end_date Date End Date

The date on which recurring order will be stop

94 column_break83 Column Break
95 next_date Date Next Date

The date on which next invoice will be generated. It is generated on submit.

96 recurring_id Data Recurring Id
97 notification_email_address Small Text Notification Email Address

Enter email id separated by commas, order will be mailed automatically on particular date

98 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_schedule_dates (self)

No docs


has_drop_ship_item (self)

No docs


is_against_so (self)

No docs


on_cancel (self)

No docs


on_submit (self)

No docs


on_update (self)

No docs


set_received_qty_for_drop_ship_items (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: