red1.org Forum Index red1.org
Nihili est - in vita priore ego imperator romanus fui
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Generate BOL Process
Goto page Previous  1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> International US Trading
View previous topic :: View next topic  
Author Message
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Tue Nov 15, 2005 7:22 am    Post subject: Reply with quote

red1 wrote:
On the first item it shuld work like u said. Anyway to get a better understanding just do the following (1) and the next (2) later when it worked.

1) Make the IDs appear in your tabs. i.e. C_BOL_ID for Main, and C_BOL_ID and C_BOL_Line_ID in Detail tab.

>U can examine them also in the Sequence tab of AD-Window whether these appear in the left hand side before this (after running the view.xml).
If they do then they are in the system (but not been displayed) and thus wont be considered missing. If they didnt, then the XML2Ad didnt work as shuld in yours.

2) When things work fine, u can check the IsDisplayed box so that they dont appear. If u wish to leave them alone its also ok. I was just following the other compeire display conventions.

So I do this and C_BOL_ID and C_BOL_Line_ID in Detail tab still do not populate and I still get an error "Fill In Mandatory field - C_BOL_ID". What is causing this?

Also, I run Generate BOL after completing some Sales Orders (before generating shipments) and nothing generates. What is required for a BOL to generate? Does the BOLNO field in Sales Order need to be populated or will it just assume that the sales order will not need to merge to generate a 1:1 SO:BOL (which is what it should do)? Whether a BOL is or is not generated should be based on the PRINTBILLOFLADDING field (which you said you'd correct the spelling of lading) in the M_Shipper table.

Thanks,
Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Nov 15, 2005 7:03 pm    Post subject: Reply with quote

i m not going to do that spelling correction and printbilloflading checking just yet to isolate and solve first the 2 problems u now facing below.

1.1) The IDs shuld autopopulate due to their definition in the Document Sequence. So pls check the tables existence there. Go to Document Sequence and see C_BOL, C_BOL_Line and C_BOL_Pack records.
1.2) Now if u have done all and it still doesnt work, take note what are the exact error prompts so we can figure other causes.

2) Pls put a common phrase or symbol such as 'AA' in any two SO's BOLNOs to see them merge into a single BOL. I keep repeating this step to u and suspect that i m missing your reqs altogether.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Wed Nov 16, 2005 7:36 am    Post subject: Reply with quote

I got the BOL window issues worked out (so I can manually create a new BOL), and figured out that you can't leave the BOLNO field blank (we should discuss further), but still have problems generating them using the Generate BOL process.

When I try to generate a BOL, I get the following errors (summarized for simplicity) even though it seems to generate most of the BOL, BOL_Lines, & PackCode Total:
18:09:03.056 MBOLLine.saveNew: C_BOL_Line - C_BOL_Line_ID=1000015 [28]
===========> CPreparedStatement.executeQuery: executeQuery - AppsServer error [28]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.RuntimeException: java.sql.SQLException: ORA-00942: table or view does not exist
***
-----------> CPreparedStatement.executeQuery: executeQuery - execute locally [28]
===========> BOL_Generate.createPackTotal: Select Qty, Weight from C_BOL_Lines where C_BOL_ID=? AND PACKC=? [28]
java.sql.SQLException: ORA-00942: table or view does not exist
; State=42000; ErrorCode=942
***
18:09:03.056 MBOLPack.saveNew: C_BOL_Pack - C_BOL_Pack_ID=1000016 [28]
===========> CPreparedStatement.executeQuery: executeQuery - AppsServer error [28]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.RuntimeException: java.sql.SQLException: ORA-00942: table or view does not exist
***
-----------> CPreparedStatement.executeQuery: executeQuery - execute locally [28]
===========> BOL_Generate.createPackTotal: Select Qty, Weight from C_BOL_Lines where C_BOL_ID=? AND PACKC=? [28]
java.sql.SQLException: ORA-00942: table or view does not exist
; State=42000; ErrorCode=942
***
18:09:03.056 MBOLPack.saveNew: C_BOL_Pack - C_BOL_Pack_ID=1000017 [28]
18:09:03.056 MBOLLine.saveNew: C_BOL_Line - C_BOL_Line_ID=1000016 [28]
===========> CPreparedStatement.executeQuery: executeQuery - AppsServer error [28]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.RuntimeException: java.sql.SQLException: ORA-00942: table or view does not exist
***
-----------> CPreparedStatement.executeQuery: executeQuery - execute locally [28]
===========> BOL_Generate.createPackTotal: Select Qty, Weight from C_BOL_Lines where C_BOL_ID=? AND PACKC=? [28]
java.sql.SQLException: ORA-00942: table or view does not exist
; State=42000; ErrorCode=942
***
18:09:03.056 MBOLPack.saveNew: C_BOL_Pack - C_BOL_Pack_ID=1000018 [28]
===========> CPreparedStatement.executeQuery: executeQuery - AppsServer error [28]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.RuntimeException: java.sql.SQLException: ORA-00942: table or view does not exist
***
-----------> CPreparedStatement.executeQuery: executeQuery - execute locally [28]
===========> BOL_Generate.createPackTotal: Select Qty, Weight from C_BOL_Lines where C_BOL_ID=? AND PACKC=? [28]
java.sql.SQLException: ORA-00942: table or view does not exist
; State=42000; ErrorCode=942
***
18:09:03.056 MBOLPack.saveNew: C_BOL_Pack - C_BOL_Pack_ID=1000019 [28]

When I shut down the app server, I don't get all the app server errors, but I still get the rest. FYI, prior to this I was having some app server problems so I had to copy the JBOSS directory from a previous build because my current build was giving me errors when I ran the server. I have no idea why that was happening (I get a clean build) but this seemed to work as a fix for loading of the jboss server problem. Either was, a table or view seems to be missing. I know that C_BOL, C_BOL_Line, C_BOL_Pack all exist. Is it the Pack Code lookup that's missing?

The only part of BOL that doesn't seem to be created properly is the PackCode Totals. 2 K lines and 2 C lines were created but were not populated. This would probably be because I was mistaken about the Pack Codes - they should be K & S and this order that I was creating a BOL for was Pack Code S. Otherwise it looks like it created properly, so I don't know why I got the above errors when creating it. Also, each time I ran BOL Generate, it re-created another copy of the BOL, even if the BOL was previously generated for this order.

What are your thought? I will be online around 9pm, but otherwise you can vnc in and look at the result yourself.

-Rich
Back to top
View user's profile Send private message
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Fri Nov 18, 2005 5:47 am    Post subject: Reply with quote

Please make the following changes:
1-I tested the BOL changes you made and I still got an error (another typo). I corrected it in my version, but wanted to make sure you fix it in the CVS version: QTY should be Quantity (only occurs once in an SQL). Once I changed this, I didn't get any more errors.
2-Make it so that Pack Code Description populates from a lookup table. This table should have 3 fields: Pack Code (3 alphanumeric characters), Description (255 Characters), and Rate (integer).
3-Generate_BOL still generates BOL even if it has already been generated. Please make sure it only generates once. Let me know if you are waiting until everything else works or if you didn't mean for this to happen.

Thanks,
Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Fri Nov 18, 2005 8:44 am    Post subject: Reply with quote

1) thanks for that note. will correct here too.

2) understood. hope to finish the packcode lookup today.

3) i noticed and corrected the code again yesterday and CVSed it. i can pass to u some hours later cos i m at my sister's home without my notebook, and shall go back shortly.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Mon Nov 21, 2005 7:40 pm    Post subject: Reply with quote

The PackCode reference table is here http://red1.org/barn/HutzlerCompiereUSA/sources/PackCode.zip .

Run as usual
XML2AD > CreateBOL.sql , ADBOL.xml
GenModel 'A'
XML2AD > ViewBOL.xml

Pls run by me again on what to do with the Description and Rate fields. Are they to appear sumwer?

I will work out the java dynamic handling of the codes later.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Nov 22, 2005 4:23 pm    Post subject: Reply with quote

Codes formulated for this. Pls collect from CVS - MPackCode.java and BOL_Generate.java

Now the system will lookup the C_PackCode table for the K and C, etc. So, u have to create those 2 new records accordingly in the BOL>Reference window/tab.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Fri Nov 25, 2005 2:09 pm    Post subject: Reply with quote

Did you come up with what the choices are about how to deal with merging BOLs (and how to deal with populating BOLNO)?

Please post where we are on this.

Thanks,
Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Sun Nov 27, 2005 11:37 am    Post subject: Reply with quote

Here are the options discussed and we are at option 1:
1) SO's BOLNOs left blank for user to key in a code where matching will result in a merged BOL.

2) Same as 1 but system check if they match the SO's DocNo instead

3) Same as 2 and consider NULL value as single BOLs.

I still find merit in Option (1) but u may prefer (3). I will check out about how (2),(3) can be done first.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Mon Nov 28, 2005 12:56 pm    Post subject: Reply with quote

I'm leaning towards option 3, but let me know if it can be done. Also, as another option, consider autopopulating BOLNO with the actual BOL doc no that will be used to create the resulting BOL. Then, for matching SO, filling in BOLNO to be the same.

Thanks,
Rich
Back to top
View user's profile Send private message
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Mon Dec 05, 2005 12:03 pm    Post subject: Reply with quote

I just wanted to check on the status of the final BOL changes. Have you been able to finish it?

Thanks,
Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Mon Dec 05, 2005 1:06 pm    Post subject: Reply with quote

riche wrote:
consider autopopulating BOLNO with the actual BOL doc no that will be used to create the resulting BOL. Then, for matching SO, filling in BOLNO to be the same.


Like i mentioned in YM that this is "after the fact". So I m not sure what the rules are here. Let me see:
SO's BOLNO was first blank? Then create BOL from? Then populate new BOL's ID back to that SO's BOLNO? How can we somehow auto generated for an SO that has no BOLNO?

Meanwhile i will focus on option 3 above. Need some more mental work.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Dec 06, 2005 9:49 am    Post subject: Reply with quote

Option 3 is done and CVSed (BOL_Generate.java).

Logic:
1) System shall go thru all Sales Orders that hasn't been processed before.
2) Any null or empty BOLNO in SO will be a new BOL with DocumentNo as its BOLNO (C_BOL.Name).
3) Any SO's DocumentNo or BOLNO that is same to a new C_BOL.Name is merged to it.
HowTo) Thus to merge other SOs to a SO.DocumentNo, just key in the DocNo to those SO.BOLNOs. That target SO.DocumentNo need not have its BOLNO filled.

Code reference:
Code:
         if ((test.getName()).equals(order.getBOLNO()) && (test.getName()).equals(order.getDocumentNo()))
Code:
         if (order.getBOLNO()== "" && (order.getBOLNO()== null))
            bol.setName(order.getDocumentNo());
         else
            bol.setName(order.getBOLNO());


We also have the M_Shipper.BillofLadding check (leave the spelling mistake alone first at the table level, make window labels correct for appearance sake, as we are not sure the impact of that field yet).

Logic:
1) The SO.Shipper must be a shipper that has its PrintBillOfLadding checkbox ticked or else no BOL for that SO.

Code Reference:
Code:
      MShipper ship = new MShipper(getCtx(),order.getM_Shipper_ID(),null);
      if (!ship.isPrintBillOfLadding())
         return 0;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Wed Jan 11, 2006 12:12 pm    Post subject: Reply with quote

I've been doing more BOL testing and here are some issues I found:
1-If BOLNO in Sales Order is blank, BOL is not generated during "generate BOL". Your previous post said if it was blank it would just not be combined with another SO, I thought.
2-Generate BOL creates seperate BOL for each sales order line. In other words a single SO with 2 lines (not being merged with another BOL) outputed 2 BOLs, each with only 1 of the lines from the original Sales Order.

-rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Wed Jan 11, 2006 9:41 pm    Post subject: Reply with quote

I have corrected the blank BOLNO in SO with 2 lines shuld generate into a single BOL. CVSed BOL_Generate.java. My mistake was i put an AND clause when it shuld be an OR clause
Code:
         if ((test.getName()).equals(order.getBOLNO()) || (test.getName()).equals(order.getDocumentNo()))
         {
            bol = test;
            break;
         }


The other rule i wonder if u are following is that "if (!ship.isPrintBillOfLadding()) " meaning the SO.shipperID > Shipper allows BOL Print.

In point 2 u said that a blank SO can be generated, so i wonder if u refering to a different case. If so, give me more steps u took or the SO values u put in.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Thu Jan 12, 2006 5:40 am    Post subject: Reply with quote

riche wrote:

2-Generate BOL creates seperate BOL for each sales order line. In other words a single SO with 2 lines (not being merged with another BOL) outputed 2 BOLs, each with only 1 of the lines from the original Sales Order.

No, I do not say blank SO can be generated. I say that a seperate BOL is generated for each Sales Order Line. That means if there are 2 lines in a (single) Sales Order, 2 BOLs are generated. One BOL contains the 1st line from the SO, the 2nd BOL contains the 2nd line from the SO. It should only generate a single BOL. I have no idea why 1 SO would create 2 BOLs. There is some sort of logic problem here.

-Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Thu Jan 12, 2006 9:16 am    Post subject: Reply with quote

Ok now i realise the issue. I was confused between header check with detail level checks. Toh the codes claims to take care of that i will test and ensure for multiple lines within same SO.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Thu Jan 12, 2006 10:35 pm    Post subject: Reply with quote

The BOL generate part is ok but found out its not so for PackCode. Already resolved and CVSed.

Tested with my own full set of data having an SO with blank BOLNO + 2 lines with prod.packingcode; merged non-blank BOLNO Orders, all seems OK.

Only code changed is still BOL_Generate.java
Back to top
View user's profile Send private message Send e-mail Visit poster's website
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Fri Jan 13, 2006 11:22 pm    Post subject: Reply with quote

To aid in testing and retesting, reset the tested cases by running the SQLs below:

1) For Deleting all BOLs generated:
a) Delete from C_BOL
b) Delete from C_BOL_Line
c) Delete from C_BOL_Pack

2) For Reseting SOs to ungenerated state
a) Update C_Order set C_BOL_ID = null

Item (2) is compulsory as progam will not generate further when its SO.C_BOL_ID flag is always set during run.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Mon Jan 16, 2006 6:51 am    Post subject: Reply with quote

So BOL seems to work properly when creating BOLs from a single Sales Order. I do see a problem with the merging of BOLs. I created a Hutzler SO, filled in the BOLNO field with 1234, then generated BOL. BOL was created properly. Then I created a Progressus SO, filled in the BOLNO field with 1234, then generated BOL. It should have added the lines to the existing BOL 1234, but instead it created another BOL, also with name = 1234. Am I doing something wrong or was the functionality not finished? Please help me get this working.

The next step, once we have proved this works, would be to combine generate BOL and generate shipment (manual & batch) into a single process. I don't know if it is best to create a new process that combines the 2 or to add the functionality to generate shipment. I would lean towards the first choice. Do you think this would be easy to do?


-Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Mon Jan 16, 2006 11:17 am    Post subject: Reply with quote

Thats gud to hear that it really works, after all!! Laughing .

And u have demonstrated a new loop that i haven't tot about - Creating BOLs with same Nos., consecutively.

I dont think the codes take care of saved BOLNos (residing in file) during execution. It needs to read in the BOL File first. I will incorporate that.

Will research up on your other posts too.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Tue Jan 17, 2006 6:20 am    Post subject: Reply with quote

While you work on the merging of BOLs, let's go back to printing. The printing doesn't work (the entire page is blank). I think this should be a quick fix. I believe is caused by the Org_Location_ID in C_BOL_HEADER_V sql. Here's my reasoning:

1-I get the following error in terminal when I try to print BOL:
===========> MLookupFactory.getLookup_TableDirEmbed: No Identifier records found: Org_Location_ID [175]
===========> CPreparedStatement.executeQuery: executeQuery - AppsServer error [175]
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.RuntimeException: java.sql.SQLException: ORA-00936: missing expression

at org.compiere.util.CPreparedStatement.executeQuery(CPreparedStatement.java:110)
------etc.

2-C_BOL_HEADER_V only has 25 records while C_BOL has 35 records. I will email you the data from these files.

Also, it is a little unclear what the unique ID field in C_BOL_HEADER_V. Is M_Inout_ID = C_BOL_ID. Why do you use M_InOut_ID? C_BOL_ID <> M_InOut_ID, right?

Thanks,
Rich
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Jan 17, 2006 3:30 pm    Post subject: Reply with quote

I wrongly tested, and later did correctly test.

1) I go to the ClientAdmin.BOL Window where i can view the BOL records. Then i click on the Print icon of the menu bar. It did generate a BOL. I click on its PrintFormat (edit icon) and notice its as below:

http://red1.org/barn/HutzlerCompiereUSA/operational_documents/BOLFormats.gif

So pls check if yours is so. I didnt incorporate the BOLPack format as yet, toh i did submit for u to do so (refering to earlier part of this thread). Proof that this stage can work first.

I didnt put in the Org_Location_ID into the PrintFormat above. So when i did, i replicated your error

Then i remedy that with
a) Table/Column = C_BOL_Header_V
b) Column = Org_Location_ID
c) Reference = Location(Address) instead of TableDir

2) I got the same number of records in C_BOL and C_BOL_Header.

About the UniqueID field, wer did u see that? I cant find it in PrintFormats, SQL or Table/Column related to CBOL.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
riche
Senior


Joined: 16 Dec 2004
Posts: 386

PostPosted: Tue Jan 17, 2006 10:19 pm    Post subject: Reply with quote

I get a different error now when I try to print BOL:
===========> DataEngine.loadPrintData: null - ORA-00904: "C_BOL_HEADER_V"."C_BOL_HEADER_V_ID": invalid identifier
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Thu Jan 19, 2006 11:29 am    Post subject: Reply with quote

BOL_Generate should now update previous BOLs, also corrected further PackCode totallings to be recalculated instead of accumulated at each run as its the case presently.

Code reference
Code:
   private void prepare_m_pos() {
      String m_sql = "Select C_BOL_ID from C_BOL" ;
      PreparedStatement pstmt = null;
      try
      {
         pstmt = DB.prepareStatement (m_sql, get_TrxName());
         ResultSet rs = pstmt.executeQuery ();
         while (rs.next ())   
         {
          MBOL bol = new MBOL(getCtx(),rs.getInt(1), null);
          m_pos.add(bol);
         }
      }
      catch (Exception e)
      {
         log.log(Level.SEVERE, m_sql, e);
      }      
   }
Code:
//         red1 delete previous first as it will OVERDO same totallings
         StringBuffer sql = new StringBuffer ("DELETE FROM C_BOL_Pack");
         int no = DB.executeUpdate(sql.toString());
         log.fine("createPackTotal = C_BOL_Pack #=" + no);
         
         for (int c = 0; c < codes.length; c++)
         {
            createPackTotal(codes[c].getPACKC()); //red1 for loop from C_PackCode table
         }
      }
      catch (Exception e)
      {
         log.log(Level.SEVERE, m_sql, e);
      }
   return "";
   }   //   doIt
Code:
   private void createPackTotal(String PACKC)
   {
      int BOLID = 0;
      int OrgID = 0;
      BigDecimal TOTWT = new BigDecimal(0.0);
      BigDecimal TOTQTY = new BigDecimal(0.0);
      for (int i = 0; i < m_pos.size(); i++)
      {
         String m_sql = "Select Quantity, Weight from C_BOL_Line where C_BOL_ID=? AND PACKC=?" ;
         PreparedStatement pstmt = null;
         try
         {
            MBOL bol = (MBOL)m_pos.get(i);
            BOLID = bol.getC_BOL_ID();
            OrgID = bol.getAD_Org_ID();
            pstmt = DB.prepareStatement (m_sql, get_TrxName());
            pstmt.setInt(1,BOLID);
            pstmt.setString(2,PACKC);
            ResultSet rs = pstmt.executeQuery ();
            while (rs.next ())   
            {
               TOTQTY= TOTQTY.add(rs.getBigDecimal(1));
               TOTWT = TOTWT.add(rs.getBigDecimal(2));
            // total up Qty and Weight and set to BOL_Pack
            }

            MBOLPack bolpack = new MBOLPack(getCtx(),0, null);

            bolpack.setClientOrg (getAD_Client_ID (), OrgID);
            bolpack.setC_BOL_ID(BOLID);
            bolpack.setTotalQty(TOTQTY);
            bolpack.setTotWeight(TOTWT);
            bolpack.setPACKC(PACKC);
            bolpack.save();
            TOTQTY = new BigDecimal(0.0);
            TOTWT = new BigDecimal(0.0);
         }
         catch (Exception e)
         {
            log.log(Level.SEVERE, m_sql, e);
         }
      }
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> International US Trading All times are GMT + 8 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group