From 89a368a7d74968b6a06ad445e99d43e8ebe2105c Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期四, 05 十一月 2026 11:11:47 +0800
Subject: [PATCH] update

---
 jrj/project/business/AP/maint.ap.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/jrj/project/business/AP/maint.ap.cpp b/jrj/project/business/AP/maint.ap.cpp
index 6593535..ab63d17 100644
--- a/jrj/project/business/AP/maint.ap.cpp
+++ b/jrj/project/business/AP/maint.ap.cpp
@@ -95,7 +95,7 @@
 					return 0;
 				}
 			}
-			if (APType1 != L"001")
+			if (APType1 == L"001")
 			{
 				if (dw_base.GetItemString(1, L"APSource") == L"" ) {
 					alert(L"付款原因为空!");
@@ -199,8 +199,8 @@
 				if (t.selectSingleNode(L"SONo"))dw_base.SetItemString(1, L"SONO", t.selectSingleNode(L"SONo").text());
 				if (t.selectSingleNode(L"SOShortName"))dw_base.SetItemDisplayString(1, L"CustomerID", t.selectSingleNode(L"SOShortName").text());
 				if (t.selectSingleNode(L"CustomerID"))dw_base.SetItemString(1, L"CustomerID", t.selectSingleNode(L"CustomerID").text());
+				if (t.selectSingleNode(L"CustomerPONo"))dw_base.SetItemString(1, L"RelatedNo", t.selectSingleNode(L"CustomerPONo").text());
 				
-
 				if (t.selectSingleNode(L"POAmount"))dw_base.SetItemString(1, L"POAmount", t.selectSingleNode(L"POAmount").text());
 			}
 			return 1;

--
Gitblit v1.9.3