fix: run set_missing_values before creating Purchase Order from MRP report

(cherry picked from commit 94d363851f)
This commit is contained in:
ljain112
2026-08-10 14:11:41 +05:30
parent e51df54439
commit 72114fa738
3 changed files with 197 additions and 17 deletions

View File

@@ -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 = [
{