mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 19:48:27 +00:00
Merge pull request #47257 from mihir-kandoi/st37118
fix: add transaction_date in field_no_map when creating PO from SQ
This commit is contained in:
@@ -234,6 +234,7 @@ def make_purchase_order(source_name, target_doc=None):
|
|||||||
{
|
{
|
||||||
"Supplier Quotation": {
|
"Supplier Quotation": {
|
||||||
"doctype": "Purchase Order",
|
"doctype": "Purchase Order",
|
||||||
|
"field_no_map": ["transaction_date"],
|
||||||
"validation": {
|
"validation": {
|
||||||
"docstatus": ["=", 1],
|
"docstatus": ["=", 1],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe.tests import IntegrationTestCase, UnitTestCase
|
from frappe.tests import IntegrationTestCase, UnitTestCase
|
||||||
|
from frappe.utils import add_days, today
|
||||||
|
|
||||||
from erpnext.controllers.accounts_controller import InvalidQtyError
|
from erpnext.controllers.accounts_controller import InvalidQtyError
|
||||||
|
|
||||||
@@ -47,6 +48,6 @@ class TestPurchaseOrder(IntegrationTestCase):
|
|||||||
|
|
||||||
for doc in po.get("items"):
|
for doc in po.get("items"):
|
||||||
if doc.get("item_code"):
|
if doc.get("item_code"):
|
||||||
doc.set("schedule_date", "2013-04-12")
|
doc.set("schedule_date", add_days(today(), 1))
|
||||||
|
|
||||||
po.insert()
|
po.insert()
|
||||||
|
|||||||
Reference in New Issue
Block a user