mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 10:20:31 +00:00
fix: run set_missing_values before creating Purchase Order from MRP report
(cherry picked from commit 94d363851f)
This commit is contained in:
@@ -184,6 +184,7 @@ class BootStrapTestData:
|
||||
self.make_loyalty_program()
|
||||
self.make_shareholder()
|
||||
self.make_sales_taxes_template()
|
||||
self.make_purchase_taxes_template()
|
||||
self.make_workstation()
|
||||
self.make_operation()
|
||||
self.make_bom()
|
||||
@@ -2339,6 +2340,29 @@ class BootStrapTestData:
|
||||
]
|
||||
self.make_records(["title", "company"], records)
|
||||
|
||||
def make_purchase_taxes_template(self):
|
||||
records = [
|
||||
{
|
||||
"company": "_Test Company",
|
||||
"doctype": "Purchase Taxes and Charges Template",
|
||||
"title": "_Test Purchase Taxes and Charges Template",
|
||||
"taxes": [
|
||||
{
|
||||
"account_head": "_Test Account VAT - _TC",
|
||||
"add_deduct_tax": "Add",
|
||||
"category": "Total",
|
||||
"charge_type": "On Net Total",
|
||||
"cost_center": "Main - _TC",
|
||||
"description": "VAT",
|
||||
"doctype": "Purchase Taxes and Charges",
|
||||
"parentfield": "taxes",
|
||||
"rate": 6,
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
self.make_records(["title", "company"], records)
|
||||
|
||||
def make_asset_category(self):
|
||||
records = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user