Import Orders Problem

To err is to be human, to help each other is joy. Tell your Compiere needs in your own words. Let's figure out together.

Moderator: azaharizaman

Import Orders Problem

Postby aalliana » Fri May 27, 2005 10:41 pm

Hello:

I'm importing purchase orders. I have created my import format, imported my PO to the IOrder table.

On the last window before importing the orders, I can choose the document Action: I choose "Close" because this are history records and I don't want any documents to be created from them. The documents are nevertheless imported as "in progress".

Can I import the documents as "Close(d)"?
If not, can I update manually their state?

TIA

aa
aalliana
 
Posts: 14
Joined: Thu Apr 21, 2005 8:53 pm

Postby red1 » Sat May 28, 2005 12:41 am

U have to look at the SQL procedure handling that. The last time i remember the Action code is not set. Its simple one word once u find the code. If i come across again i will remark here.
red1
Site Admin
 
Posts: 2762
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby trifon » Sat May 28, 2005 4:06 am

Hi,

This is easy, just find this row in ImportOrder.java:

order.processIt (m_docAction);

and modify it to :

order.processIt (MOrder.DOCACTION_Close);

Regards,
Trifon
Trifon Trifonov
trifon
Senior
 
Posts: 324
Joined: Thu Dec 23, 2004 11:20 pm
Location: Bulgaria, Sofia

Thaks!

Postby aalliana » Tue May 31, 2005 6:18 am

Thanks you very much for the replies!

aa
aalliana
 
Posts: 14
Joined: Thu Apr 21, 2005 8:53 pm

Thaks!

Postby aalliana » Tue May 31, 2005 6:19 am

Thanks you very much for the replies!

aa
aalliana
 
Posts: 14
Joined: Thu Apr 21, 2005 8:53 pm


Return to Ask RED1 personally

Who is online

Users browsing this forum: No registered users and 1 guest

cron