Version 6.x.x Source

Table Name: `tabPurchase Receipt`

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `supplier_section` | Section Break |  |
    icon-user
2 | `column_break0` | Column Break |  |
3 | `title` | Data | Title |
4 | `naming_series` | Select | Series |
    PREC-
    PREC-RET-
5 | `supplier` | Link | Supplier | Supplier
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 | `posting_date` | Date | Date |
13 | `posting_time` | Time | Posting Time Time at which materials were received |
14 | `is_return` | Check | Is Return |
15 | `return_against` | Link | Return Against Purchase Receipt | Purchase Receipt
16 | `currency_and_price_list` | Section Break | Currency and Price List |
    icon-tag
17 | `currency` | Link | Currency | Currency
18 | `conversion_rate` | Float | Exchange Rate Rate at which supplier's currency is converted to company's base currency |
19 | `column_break2` | Column Break |  |
20 | `buying_price_list` | Link | Price List | Price List
21 | `price_list_currency` | Link | Price List Currency | Currency
22 | `plc_conversion_rate` | Float | Price List Exchange Rate |
23 | `ignore_pricing_rule` | Check | Ignore Pricing Rule |
24 | `items_section` | Section Break |  |
    icon-shopping-cart
25 | `items` | Table | Items | Purchase Receipt Item
26 | `get_current_stock` | Button | Get Current Stock |
    get_current_stock
27 | `get_items_from_product_bundle` | Button | Get Items from Product Bundle |
28 | `section_break0` | Section Break |  |
29 | `base_total` | Currency | Total (Company Currency) |
    Company:company:default_currency
30 | `base_net_total` | Currency | Net Total (Company Currency) |
    Company:company:default_currency
31 | `column_break_27` | Column Break |  |
32 | `total` | Currency | Total |
    currency
33 | `net_total` | Currency | Net Total |
    currency
34 | `taxes_section` | Section Break | Add / Edit Taxes and Charges |
    icon-money
35 | `taxes_and_charges` | Link | Taxes and Charges | Purchase Taxes and Charges Template
36 | `taxes` | Table | Purchase Taxes and Charges | Purchase Taxes and Charges
37 | `other_charges_calculation` | HTML | Taxes and Charges Calculation |
38 | `totals` | Section Break |  |
    icon-money
39 | `base_taxes_and_charges_added` | Currency | Taxes and Charges Added (Company Currency) |
    Company:company:default_currency
40 | `base_taxes_and_charges_deducted` | Currency | Taxes and Charges Deducted (Company Currency) |
    Company:company:default_currency
41 | `base_total_taxes_and_charges` | Currency | Total Taxes and Charges (Company Currency) |
    Company:company:default_currency
42 | `column_break3` | Column Break |  |
43 | `taxes_and_charges_added` | Currency | Taxes and Charges Added |
    currency
44 | `taxes_and_charges_deducted` | Currency | Taxes and Charges Deducted |
    currency
45 | `total_taxes_and_charges` | Currency | Total Taxes and Charges |
    currency
46 | `section_break_42` | Section Break | Additional Discount |
47 | `apply_discount_on` | Select | Apply Additional Discount On |
    Grand Total
    Net Total
48 | `column_break_44` | Column Break |  |
49 | `discount_amount` | Currency | Additional Discount Amount |
    currency
50 | `base_discount_amount` | Currency | Additional Discount Amount (Company Currency) |
    Company:company:default_currency
51 | `section_break_46` | Section Break |  |
52 | `base_grand_total` | Currency | Grand Total (Company Currency) |
    Company:company:default_currency
53 | `base_in_words` | Data | In Words (Company Currency) |
54 | `base_rounded_total` | Currency | Rounded Total (Company Currency) |
    Company:company:default_currency
55 | `column_break_50` | Column Break |  |
56 | `grand_total` | Currency | Grand Total |
    currency
57 | `in_words` | Data | In Words |
58 | `terms_section_break` | Section Break | Terms and Conditions |
    icon-legal
59 | `tc_name` | Link | Terms | Terms and Conditions
60 | `terms` | Text Editor | Terms and Conditions |
61 | `contact_section` | Section Break | Contact Details |
    icon-bullhorn
62 | `supplier_address` | Link | Supplier Address | Address
63 | `column_break_57` | Column Break |  |
64 | `contact_person` | Link | Contact Person | Contact
65 | `raw_material_details` | Section Break | Raw Materials Supplied |
    icon-table
66 | `is_subcontracted` | Select | Raw Materials Supplied |
    No
    Yes
67 | `supplier_warehouse` | Link | Supplier Warehouse | Warehouse
68 | `supplied_items` | Table | Supplied Items | Purchase Receipt Item Supplied
69 | `bill_no` | Data | Bill No |
70 | `bill_date` | Date | Bill Date |
71 | `more_info` | Section Break | More Information |
    icon-file-text
72 | `status` | Select | Status |
    Draft
    Submitted
    Cancelled
    Closed
73 | `rejected_warehouse` | Link | Rejected Warehouse Warehouse where you are maintaining stock of rejected items | Warehouse
74 | `amended_from` | Link | Amended From | Purchase Receipt
75 | `range` | Data | Range |
76 | `column_break4` | Column Break |  |
77 | `company` | Link | Company | Company
78 | `fiscal_year` | Link | Fiscal Year | Fiscal Year
79 | `printing_settings` | Section Break | Printing Settings |
80 | `letter_head` | Link | Letter Head | Letter Head
81 | `select_print_heading` | Link | Print Heading | Print Heading
82 | `other_details` | HTML | Other Details |
83 | `instructions` | Small Text | Instructions |
84 | `remarks` | Small Text | Remarks |
85 | `transporter_info` | Section Break | Transporter Details |
    icon-truck
86 | `transporter_name` | Data | Transporter Name |
87 | `column_break5` | Column Break |  |
88 | `lr_no` | Data | Vehicle Number |
89 | `lr_date` | Date | Vehicle Date |

### Controller

#### erpnext.stock.doctype.purchase_receipt.purchase_receipt

### Class PurchaseReceipt

Inherits from erpnext.controllers.buying_controller.BuyingController

__init__ (self, arg1, arg2=None)

No docs

bk_flush_supp_wh (self, sl_entries)

No docs

check_for_stopped_or_closed_status (self, pc_obj)

No docs

check_next_docstatus (self)

No docs

get_already_received_qty (self, po, po_detail)

No docs

get_current_stock (self)

No docs

get_gl_entries (self, warehouse_account=None)

No docs

get_po_qty_and_warehouse (self, po_detail)

No docs

get_rate (self, arg)

No docs

on_cancel (self)

No docs

on_submit (self)

No docs

onload (self)

No docs

po_required (self)

No docs

set_landed_cost_voucher_amount (self)

No docs

update_ordered_qty (self)

No docs

update_status (self, status)

No docs

update_stock_ledger (self, allow_negative_stock=False, via_landed_cost_voucher=False)

No docs

validate (self)

No docs

validate_accepted_rejected_qty (self)

No docs

validate_inspection (self)

No docs

validate_purchase_return (self)

No docs

validate_rejected_warehouse (self)

No docs

validate_with_previous_doc (self)

No docs

erpnext.stock.doctype.purchase_receipt.purchase_receipt.get_invoiced_qty_map (purchase_receipt)

returns a map: {prdetail: invoicedqty}

Public API
`/api/method/erpnext.stock.doctype.purchase_receipt.purchase_receipt.make_purchase_invoice`

erpnext.stock.doctype.purchase_receipt.purchase_receipt.make_purchase_invoice (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.stock.doctype.purchase_receipt.purchase_receipt.make_purchase_return`

erpnext.stock.doctype.purchase_receipt.purchase_receipt.make_purchase_return (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.stock.doctype.purchase_receipt.purchase_receipt.update_purchase_receipt_status`

erpnext.stock.doctype.purchase_receipt.purchase_receipt.update_purchase_receipt_status (docname, status)

No docs

#### Linked In:

- Landed Cost Item
- Landed Cost Purchase Receipt
- Purchase Invoice Item
- Purchase Receipt
- Quality Inspection
- Stock Entry