mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
[bean] [mandatory] fixes in test cases
This commit is contained in:
@@ -109,6 +109,7 @@ test_records = [
|
||||
"net_total": 500.0,
|
||||
"grand_total": 500.0,
|
||||
"grand_total_export": 500.0,
|
||||
"naming_series": "_T-Delivery Note-"
|
||||
},
|
||||
{
|
||||
"description": "CPU",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"creation": "2013-05-03 10:45:46",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-07-05 16:24:34",
|
||||
"modified": "2013-07-08 14:05:47",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
@@ -202,7 +202,7 @@
|
||||
"label": "Is Stock Item",
|
||||
"oldfieldname": "is_stock_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -270,7 +270,7 @@
|
||||
"label": "Is Asset Item",
|
||||
"oldfieldname": "is_asset_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -283,7 +283,7 @@
|
||||
"label": "Has Batch No",
|
||||
"oldfieldname": "has_batch_no",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -298,7 +298,7 @@
|
||||
"label": "Has Serial No",
|
||||
"oldfieldname": "has_serial_no",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -399,7 +399,7 @@
|
||||
"label": "Is Purchase Item",
|
||||
"oldfieldname": "is_purchase_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -525,7 +525,7 @@
|
||||
"label": "Is Sales Item",
|
||||
"oldfieldname": "is_sales_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -540,7 +540,7 @@
|
||||
"label": "Is Service Item",
|
||||
"oldfieldname": "is_service_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -554,7 +554,7 @@
|
||||
"label": "Allow Samples",
|
||||
"oldfieldname": "is_sample_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -706,7 +706,7 @@
|
||||
"label": "Allow Bill of Materials",
|
||||
"oldfieldname": "is_manufactured_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -732,7 +732,7 @@
|
||||
"label": "Allow Production Order",
|
||||
"oldfieldname": "is_pro_applicable",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
@@ -745,7 +745,7 @@
|
||||
"label": "Is Sub Contracted Item",
|
||||
"oldfieldname": "is_sub_contracted_item",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "\nYes\nNo",
|
||||
"options": "Yes\nNo",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
|
||||
@@ -69,7 +69,8 @@ test_records = [
|
||||
"parentfield": "item_reorder",
|
||||
"warehouse": "_Test Warehouse",
|
||||
"warehouse_reorder_level": 20,
|
||||
"warehouse_reorder_qty": 20
|
||||
"warehouse_reorder_qty": 20,
|
||||
"material_request_type": "Purchase"
|
||||
}, {
|
||||
"doctype": "Item Price",
|
||||
"parentfield": "ref_rate_details",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"creation": "2013-03-07 14:48:38",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-07-08 11:02:12",
|
||||
"modified": "2013-07-08 16:17:33",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
@@ -137,7 +137,7 @@
|
||||
"label": "Pull Sales Order Items"
|
||||
},
|
||||
{
|
||||
"default": "Give additional details about the indent.",
|
||||
"description": "Give additional details about the indent.",
|
||||
"doctype": "DocField",
|
||||
"fieldname": "more_info",
|
||||
"fieldtype": "Section Break",
|
||||
|
||||
@@ -321,7 +321,8 @@ test_records = [
|
||||
"doctype": "Material Request",
|
||||
"fiscal_year": "_Test Fiscal Year 2013",
|
||||
"transaction_date": "2013-02-18",
|
||||
"material_request_type": "Purchase"
|
||||
"material_request_type": "Purchase",
|
||||
"naming_series": "_T-Material Request-"
|
||||
},
|
||||
{
|
||||
"description": "_Test Item Home Desktop 100",
|
||||
|
||||
@@ -102,6 +102,7 @@ test_records = [
|
||||
"supplier": "_Test Supplier",
|
||||
"net_total": 500.0,
|
||||
"grand_total": 720.0,
|
||||
"naming_series": "_T-Purchase Receipt-",
|
||||
},
|
||||
{
|
||||
"conversion_factor": 1.0,
|
||||
|
||||
@@ -278,7 +278,9 @@ class TestStockEntry(unittest.TestCase):
|
||||
self._insert_material_receipt()
|
||||
|
||||
from stock.doctype.delivery_note.test_delivery_note \
|
||||
import test_records as delivery_note_test_records, make_sales_invoice
|
||||
import test_records as delivery_note_test_records
|
||||
|
||||
from stock.doctype.delivery_note.delivery_note import make_sales_invoice
|
||||
|
||||
actual_qty_0 = self._get_actual_qty()
|
||||
|
||||
@@ -362,8 +364,7 @@ class TestStockEntry(unittest.TestCase):
|
||||
self._insert_material_receipt()
|
||||
|
||||
from selling.doctype.sales_order.test_sales_order \
|
||||
import test_records as sales_order_test_records,
|
||||
make_sales_invoice, make_delivery_note
|
||||
import test_records as sales_order_test_records, make_sales_invoice, make_delivery_note
|
||||
|
||||
actual_qty_0 = self._get_actual_qty()
|
||||
|
||||
@@ -418,8 +419,9 @@ class TestStockEntry(unittest.TestCase):
|
||||
actual_qty_0 = self._get_actual_qty()
|
||||
|
||||
from stock.doctype.purchase_receipt.test_purchase_receipt \
|
||||
import test_records as purchase_receipt_test_records,
|
||||
make_purchase_invoice
|
||||
import test_records as purchase_receipt_test_records
|
||||
|
||||
from stock.doctype.purchase_receipt.purchase_receipt import make_purchase_invoice
|
||||
|
||||
# submit purchase receipt
|
||||
pr = webnotes.bean(copy=purchase_receipt_test_records[0])
|
||||
@@ -506,7 +508,9 @@ class TestStockEntry(unittest.TestCase):
|
||||
actual_qty_0 = self._get_actual_qty()
|
||||
|
||||
from buying.doctype.purchase_order.test_purchase_order \
|
||||
import test_records as purchase_order_test_records,
|
||||
import test_records as purchase_order_test_records
|
||||
|
||||
from buying.doctype.purchase_order.purchase_order import \
|
||||
make_purchase_receipt, make_purchase_invoice
|
||||
|
||||
# submit purchase receipt
|
||||
|
||||
Reference in New Issue
Block a user