From 703d27d52ba0ac373b62aedb93f9cfe9f8857ed2 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 25 九月 2024 17:19:56 +0800
Subject: [PATCH] update

---
 jrj/project/business/VATNotify/VATInvoiceNew.cpp |   24 ++++++++----------------
 1 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/jrj/project/business/VATNotify/VATInvoiceNew.cpp b/jrj/project/business/VATNotify/VATInvoiceNew.cpp
index 0bf8ddc..91fef26 100644
--- a/jrj/project/business/VATNotify/VATInvoiceNew.cpp
+++ b/jrj/project/business/VATNotify/VATInvoiceNew.cpp
@@ -201,13 +201,11 @@
 			dw_2.AcceptText();
 			xstring error;
 			xstring str;
-			xml x ;
-			xaserverarg arg ;
-			
-			
+			xml x;
+			xaserverarg arg;
 			
 			dw_1.DwUpdateAllToEx(x);
-			xml x0 = new xml;
+			xml x0;
 			
 			x0.loadXML(L"<data/>");
 			
@@ -326,7 +324,8 @@
 			int row = hdr.row;
 			
 			if(value==L"") return 1;
-			if(colname==L"VATAmount"){
+			if(colname==L"VATAmount")
+			{
 				double VATAmount=dw_1.GetItemDouble(row,L"VATAmount");	
 				double billAmtt= dw_1.GetItemDouble(row,L"VATBillAmount");
 				
@@ -393,9 +392,9 @@
 					end if
 					
 					if ls_comName <> '产品部' then
-						this.setitem(row,'billamt',dec(this.Describe(L"evaluate('notifybuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")L")))
+						this.setitem(row,'billamt',dec(this.Describe(L"evaluate('notifybuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")")))
 					else
-						this.setitem(row,'billamt',dec(this.Describe(L"evaluate('prd_nbuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")L")))
+						this.setitem(row,'billamt',dec(this.Describe(L"evaluate('prd_nbuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")")))
 					end if
 					
 					ll_decrate = this.getitemdecimal(row,'retax')
@@ -468,8 +467,7 @@
 		int  OnRetrieve()
 		{
 			xml x;
-		
-			xaserverarg arg ;
+			xaserverarg arg;
 			
 			arg.AddArg(L"QueryTxt",xcontrol(GetControl(L"sle_search")).GetText());
 			arg.AddArg(L"QueryArg",L"<arg/>");
@@ -503,8 +501,6 @@
 			
 			
 			xml x;
-		
-			
 			xaserverarg arg = GetArg();
 			if(arg)
 			{
@@ -514,16 +510,12 @@
 			}
 			OnAttachEvent();	
 			//OnRetrieve();
-			
-			
 			return 1;
 		}
 		
 		int onloaded()
 		{
 			//SetAgent();	
-			
-			
 			return 1;
 		}		
 	};
\ No newline at end of file

--
Gitblit v1.9.3