Re: How can I create many-to-many relation between product and BOM?

2008-06-26 Thread Jacopo Cappellato
What in the current data model prevents you to define more than one  
BOM for the same product? And what prevents you to share the same BOM  
with several products?


Jacopo


On Jun 27, 2008, at 8:30 AM, him_aeng wrote:



My business is plastic. So Bill Of Material was something about  
plastic
compound that is mixing various type of chemical raw material in one  
batch.
One product may come from many BOMs and one BOM may produce many  
product.


My purpose is:
1. Store list of BOM (and not dependent to each product) so that any  
product

can refer to it in the future.
2. In one production run for order it can change BOM between run.

From this scenario I go to look into the schema between ProductAssoc,
ProductAssocType and Product entities. In ProductAssoc, It show the  
"lock"
style relation between product and its raw material such as  
Product_a from
material_a, Product_a from material_b and the point is there primary  
key
that point to BOM Identification key such as BOM_ID attribute so  
this schema

is not answer my purpose.

I don't know in OFBiz Schema, are there other relationships that can  
use for

my scenario.

Best Regards
Tanakorn Numrubporn
--
View this message in context: 
http://www.nabble.com/How-can-I-create-many-to-many-relation-between-product-and-BOM--tp18148900p18148900.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





How can I create many-to-many relation between product and BOM?

2008-06-26 Thread him_aeng

My business is plastic. So Bill Of Material was something about plastic
compound that is mixing various type of chemical raw material in one batch.
One product may come from many BOMs and one BOM may produce many product.

My purpose is:
1. Store list of BOM (and not dependent to each product) so that any product
can refer to it in the future.
2. In one production run for order it can change BOM between run.

>From this scenario I go to look into the schema between ProductAssoc,
ProductAssocType and Product entities. In ProductAssoc, It show the "lock"
style relation between product and its raw material such as Product_a from
material_a, Product_a from material_b and the point is there primary key
that point to BOM Identification key such as BOM_ID attribute so this schema
is not answer my purpose.

I don't know in OFBiz Schema, are there other relationships that can use for
my scenario.

Best Regards
Tanakorn Numrubporn
-- 
View this message in context: 
http://www.nabble.com/How-can-I-create-many-to-many-relation-between-product-and-BOM--tp18148900p18148900.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Change UserLogin Password Bug?

2008-06-26 Thread ian tabangay
Hi. Im looking at a May release of Ofbiz and noticed that the Change
UserLogin Password does not check the current password of user. The form is
processed for as long as the New Password and New Password Verify Field has
been populated. Has this been fixed in the current release?


Ian


newbie question - first installation and execution

2008-06-26 Thread juddco

I'm trying to demo ofbiz to see if it fits my needs.  I am NOT a java
programmer, so this is probably going to be a ridiculously stupid question.  

I was following the quick and easy setup instructions 
http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide here  (I
installed ofbiz-rel4.0-current.zip) and got to step 3.  I mucked through my
environment variables, but can't seem to get past this error: "Unable to
access jarfile ofbiz.jar." 

I also noticed that the archive I grabbed didn't have a file
(/framework/entity/config/entityengine.xml) referenced in the DB setup in
the Technical Production Setup doc.  Did I miss a download somewhere?

I've searched the ofbiz.apache site, this forum, and googled the message to
no avail.  I'm stumped.  

Thanks for the help.

http://www.nabble.com/file/p18148299/jarfile_error.jpg 
-- 
View this message in context: 
http://www.nabble.com/newbie-question---first-installation-and-execution-tp18148299p18148299.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Controller response type suggestion

2008-06-26 Thread ian tabangay
Hi. Im having problems processing errors and success pages after calling a
service. Is there any documentation regarding when to use a specific type of
response? I have the following questions in particular:
 - What is the difference between *request* and *view*
 - Setting the response type as either *request* or *view*, when I refresh
my browser, the form previously submitted was still processed. If, however,
I set the response type to *request-redirect-noparam *will not process the
next form since no information was passed. I try not to use *
request-redirect* to avoid displaying sensitive data on the URL. What other
alternatives do i have?
Thank you in advance.


Ian


check permission for file download

2008-06-26 Thread stamilo
hi
 i upload some file to server , but now , everybody can see the file ,
 so  i want to check the permission for file download,
  is there some demo for it?

  thx


BPEL integration

2008-06-26 Thread Hans Bakker
Hi, short question:

does anybody have any experiences integrating a BPEL (business Process
Execution Language) engine into OFBiz? Or want to help doing that?

I was looking at http://ode.apache.org/ and it seems a perfect fit? 

Regards,
Hans





Re: view-entity where condition

2008-06-26 Thread stamilo
thx!

there is some error data in my database
:)

On Thu, Jun 26, 2008 at 7:55 PM, Jacques Le Roux <
[EMAIL PROTECTED]> wrote:

> I don't know if you got through it but referring to
> http://en.wikipedia.org/wiki/Join_(SQL)#Left_outer_joina
>  left join is also
> called  a left outer join. To get an outter join in OFBiz you must use
> rel-optional= true (by default it's false). Look for example in code...
> Also be sure to use  in a view-entity when you really need it
>
> Jacques
>
> From: "stamilo" <[EMAIL PROTECTED]>
>
>  hi
>>  i want to make a view-entity like this:
>>  select
>> a.fkey , a.fdesc ,
>> b.fname ,
>> c.faddr ,
>> d.ftel
>>  from
>>a left join b on a.fkey = b.fkey
>>left join c on a.fkey = c.fkey
>>left join d on a.fkey = d.fkey
>>  where
>>a.fkey = b.fkey
>>   and
>>b.fkey = c.fkey
>>   and
>>c.fkey = d.fkey
>>
>>  then
>>  i write this:
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>  > field-name="fKey"/>
>>  > field-name="fKey"/>
>>  > field-name="fKey"/>
>> 
>>   
>> 
>> 
>>   
>> 
>> 
>>   
>> 
>> 
>>   
>> 
>>  
>>
>>
>>  but , can't work, no where condition in sql string ,
>>  so the result very big , and not left join
>>
>>  how ?
>>
>>  thx.
>>
>>
>


RE: POS - receipt template question

2008-06-26 Thread Christopher L
You are correct.  Read these and try again.  :)

http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html
http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html

C

> Date: Thu, 26 Jun 2008 18:40:09 -0400
> From: [EMAIL PROTECTED]
> To: user@ofbiz.apache.org
> Subject: Re: POS - receipt template question
> 
> Yah I just saw thatTook me a while to understand the whole boolean
> thing!
> 
> Thanks!
> 
> I changed it a bit...(don't laugh at this)
> 
> I set a "call?" in save sale (my save and print button) do simply do this:
> DeviceLoader.receipt.printPrep(m_trans);
> 
> I imported the right things, and this did work when it was "printReceipt".
> It would just bark becuase it didn't have a barcode to print yet..but it
> still printed.
> 
> Then in Receipt.java I have this:
> protected String[] prepReceiptTmpl = null;
> 
>  public void printPrep(PosTransaction trans) {
> Debug.log("Print Receipt Requested : " + trans.getTransactionId(),
> module);
> POSPrinter printer = (POSPrinter) control;
> this.lastTransaction = trans;
> ===AND=
> try {
> if (!checkState(printer)) {
> return;
> }
> } catch (JposException e) {
> Debug.logError(e, module);
> }
> 
> String[] prepReceipt = this.readPrepTemplate();
> //this.printPrep(trans, prepReceipt, 0, null);
> this.printPrep(trans, prepReceipt, 3, null);
> }
> ==AND===
>  private synchronized String[] readPrepTemplate() {
> if (this.prepReceiptTmpl == null) {
> this.prepReceiptTmpl = new String[7];
> this.readTemplate(prepReceiptTmpl, "prepreceipt.txt", 3);
> }
> 
> return this.prepReceiptTmpl;
> }
> 
> and I get this error at compile:
> 
> [javac]
> /ofbiz/ofbizmamas/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java:198:
> printPrep(org.ofbiz.pos.PosTransaction) in org.ofbiz.pos.device.impl.Receipt
> cannot be applied to
> (org.ofbiz.pos.PosTransaction,java.lang.String[],int,)
> [javac] this.printPrep(trans, prepReceipt, 3, null);
> 
> 
> I know it's syntax and my inability to know what to pass and wherebut
> any help would be fantastic.
> 
> Thanks... I know your busy, so I'll wait patiently!
> 
> Ta-Ta!
> On Thu, Jun 26, 2008 at 6:26 PM, Christopher L <[EMAIL PROTECTED]>
> wrote:
> 
> > It's passed in the method parameters.
> > public void printReceipt(PosTransaction trans, boolean printStoreCopy)
> >
> > C
> > > Date: Thu, 26 Jun 2008 17:47:56 -0400
> > > From: [EMAIL PROTECTED]
> > > To: user@ofbiz.apache.org
> > > Subject: POS - receipt template question
> > >
> > > All,
> > >
> > > How in the devil does Receipt.java know whether or not to print a store
> > copy
> > > as well, or just the customer copy.
> > >
> > > I see this:
> > >
> > > public void printReceipt(PosTransaction trans, boolean
> > printStoreCopy) {
> > > Debug.log("Print Receipt Requested : " +
> > trans.getTransactionId(),
> > > module);
> > > POSPrinter printer = (POSPrinter) control;
> > > this.lastTransaction = trans;
> > >
> > > try {
> > > if (!checkState(printer)) {
> > > return;
> > > }
> > > } catch (JposException e) {
> > > Debug.logError(e, module);
> > > }
> > >
> > > if (printStoreCopy) {
> > > String[] storeReceipt = this.readStoreTemplate();
> > > int payments = trans.getNumberOfPayments();
> > > for (int i = 0; i < payments; i++) {
> > > Map info = trans.getPaymentInfo(i);
> > > if (info.containsKey("cardNumber")) {
> > > this.printReceipt(trans, storeReceipt, 1, info);
> > > }
> > > try {
> > > Thread.sleep(3000);
> > > } catch (Exception e) {
> > > }
> > > }
> > > }
> > >
> > > // print the customer receipt
> > > String[] custReceipt = this.readCustomerTemplate();
> > > this.printReceipt(trans, custReceipt, 0, null);
> > > }
> > >
> > > so if (printStoreCopy) is the keystone here... I can see that... but
> > where
> > > in the H is it passed?!?!?!
> > >
> > > I'd like to have one more template to include the additional info field.
> > > It's called prepreceipt.txt.  For now, It'll go to the same printer...
> > I'm
> > > hoping somehow to use the method above, or a close version of it to print
> > to
> > > the same printer, but using the other template.
> > >
> > > and. I'm at a loss!
> > >
> > > Thanks!
> >


Re: POS - receipt template question

2008-06-26 Thread Branden Strickland
Yah I just saw thatTook me a while to understand the whole boolean
thing!

Thanks!

I changed it a bit...(don't laugh at this)

I set a "call?" in save sale (my save and print button) do simply do this:
DeviceLoader.receipt.printPrep(m_trans);

I imported the right things, and this did work when it was "printReceipt".
It would just bark becuase it didn't have a barcode to print yet..but it
still printed.

Then in Receipt.java I have this:
protected String[] prepReceiptTmpl = null;

 public void printPrep(PosTransaction trans) {
Debug.log("Print Receipt Requested : " + trans.getTransactionId(),
module);
POSPrinter printer = (POSPrinter) control;
this.lastTransaction = trans;
===AND=
try {
if (!checkState(printer)) {
return;
}
} catch (JposException e) {
Debug.logError(e, module);
}

String[] prepReceipt = this.readPrepTemplate();
//this.printPrep(trans, prepReceipt, 0, null);
this.printPrep(trans, prepReceipt, 3, null);
}
==AND===
 private synchronized String[] readPrepTemplate() {
if (this.prepReceiptTmpl == null) {
this.prepReceiptTmpl = new String[7];
this.readTemplate(prepReceiptTmpl, "prepreceipt.txt", 3);
}

return this.prepReceiptTmpl;
}

and I get this error at compile:

[javac]
/ofbiz/ofbizmamas/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java:198:
printPrep(org.ofbiz.pos.PosTransaction) in org.ofbiz.pos.device.impl.Receipt
cannot be applied to
(org.ofbiz.pos.PosTransaction,java.lang.String[],int,)
[javac] this.printPrep(trans, prepReceipt, 3, null);


I know it's syntax and my inability to know what to pass and wherebut
any help would be fantastic.

Thanks... I know your busy, so I'll wait patiently!

Ta-Ta!
On Thu, Jun 26, 2008 at 6:26 PM, Christopher L <[EMAIL PROTECTED]>
wrote:

> It's passed in the method parameters.
> public void printReceipt(PosTransaction trans, boolean printStoreCopy)
>
> C
> > Date: Thu, 26 Jun 2008 17:47:56 -0400
> > From: [EMAIL PROTECTED]
> > To: user@ofbiz.apache.org
> > Subject: POS - receipt template question
> >
> > All,
> >
> > How in the devil does Receipt.java know whether or not to print a store
> copy
> > as well, or just the customer copy.
> >
> > I see this:
> >
> > public void printReceipt(PosTransaction trans, boolean
> printStoreCopy) {
> > Debug.log("Print Receipt Requested : " +
> trans.getTransactionId(),
> > module);
> > POSPrinter printer = (POSPrinter) control;
> > this.lastTransaction = trans;
> >
> > try {
> > if (!checkState(printer)) {
> > return;
> > }
> > } catch (JposException e) {
> > Debug.logError(e, module);
> > }
> >
> > if (printStoreCopy) {
> > String[] storeReceipt = this.readStoreTemplate();
> > int payments = trans.getNumberOfPayments();
> > for (int i = 0; i < payments; i++) {
> > Map info = trans.getPaymentInfo(i);
> > if (info.containsKey("cardNumber")) {
> > this.printReceipt(trans, storeReceipt, 1, info);
> > }
> > try {
> > Thread.sleep(3000);
> > } catch (Exception e) {
> > }
> > }
> > }
> >
> > // print the customer receipt
> > String[] custReceipt = this.readCustomerTemplate();
> > this.printReceipt(trans, custReceipt, 0, null);
> > }
> >
> > so if (printStoreCopy) is the keystone here... I can see that... but
> where
> > in the H is it passed?!?!?!
> >
> > I'd like to have one more template to include the additional info field.
> > It's called prepreceipt.txt.  For now, It'll go to the same printer...
> I'm
> > hoping somehow to use the method above, or a close version of it to print
> to
> > the same printer, but using the other template.
> >
> > and. I'm at a loss!
> >
> > Thanks!
>


RE: POS - receipt template question

2008-06-26 Thread Christopher L
It's passed in the method parameters.
public void printReceipt(PosTransaction trans, boolean printStoreCopy)

C
> Date: Thu, 26 Jun 2008 17:47:56 -0400
> From: [EMAIL PROTECTED]
> To: user@ofbiz.apache.org
> Subject: POS - receipt template question
> 
> All,
> 
> How in the devil does Receipt.java know whether or not to print a store copy
> as well, or just the customer copy.
> 
> I see this:
> 
> public void printReceipt(PosTransaction trans, boolean printStoreCopy) {
> Debug.log("Print Receipt Requested : " + trans.getTransactionId(),
> module);
> POSPrinter printer = (POSPrinter) control;
> this.lastTransaction = trans;
> 
> try {
> if (!checkState(printer)) {
> return;
> }
> } catch (JposException e) {
> Debug.logError(e, module);
> }
> 
> if (printStoreCopy) {
> String[] storeReceipt = this.readStoreTemplate();
> int payments = trans.getNumberOfPayments();
> for (int i = 0; i < payments; i++) {
> Map info = trans.getPaymentInfo(i);
> if (info.containsKey("cardNumber")) {
> this.printReceipt(trans, storeReceipt, 1, info);
> }
> try {
> Thread.sleep(3000);
> } catch (Exception e) {
> }
> }
> }
> 
> // print the customer receipt
> String[] custReceipt = this.readCustomerTemplate();
> this.printReceipt(trans, custReceipt, 0, null);
> }
> 
> so if (printStoreCopy) is the keystone here... I can see that... but where
> in the H is it passed?!?!?!
> 
> I'd like to have one more template to include the additional info field.
> It's called prepreceipt.txt.  For now, It'll go to the same printer... I'm
> hoping somehow to use the method above, or a close version of it to print to
> the same printer, but using the other template.
> 
> and. I'm at a loss!
> 
> Thanks!


ShoppingCart.createDropShip() bug?

2008-06-26 Thread Ritz123

Hi,

Seems like there is atleast 1 bug in createDropShip() method in
ShoppingCart.java. First few lines (See below) tries to get ProductStore
from cache - if one had cart alive in session for longer duration which
would last longer than the server restart - this will cause an incorrect #
of ship groups created and hence incorrect shipping. facilityid is not even
used anywhere in that method - may be it needs to be removed completely. I
am using Firefox 3.0 and during development I had to restart ofbiz but the
FF kept the session information alive and got really discounted shipping
rates !!

Also this pauses questions for other parts of the ofbiz code where the
effect of cache and server restart might cause unwanted(potentially harmful)
behavior.

if (UtilValidate.isNotEmpty(this.getProductStoreId())) {
try {
GenericValue productStore =
delegator.findByPrimaryKeyCache("ProductStore",
UtilMisc.toMap("productStoreId", this.getProductStoreId()));
facilityId = productStore.getString("inventoryFacilityId");
} catch (Exception e) {
   
Debug.logError(UtilProperties.getMessage(resource_error,"OrderProblemGettingProductStoreRecords",
locale) + e.getMessage(), module);
return;
}
}

Here is my code version
Path: .
URL: http://svn.apache.org/repos/asf/ofbiz/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 653845
Node Kind: directory
Schedule: normal
Last Changed Author: bibryam
Last Changed Rev: 653787
Last Changed Date: 2008-05-06 07:15:24 -0700 (Tue, 06 May 2008)

I also have related question on createDropShip(). Seems like it can only be
called 1ce during the lifetime of shoppingcart. If shoppingcart gets
updated, this method will not create correct ship groups, one has to undo
the ship group creation and call createDropShip again - this may loose other
ship groups etc. Ofbiz gurus can correct me if I am wrong.
-- 
View this message in context: 
http://www.nabble.com/ShoppingCart.createDropShip%28%29-bug--tp18144143p18144143.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



POS - receipt template question

2008-06-26 Thread Branden Strickland
All,

How in the devil does Receipt.java know whether or not to print a store copy
as well, or just the customer copy.

I see this:

public void printReceipt(PosTransaction trans, boolean printStoreCopy) {
Debug.log("Print Receipt Requested : " + trans.getTransactionId(),
module);
POSPrinter printer = (POSPrinter) control;
this.lastTransaction = trans;

try {
if (!checkState(printer)) {
return;
}
} catch (JposException e) {
Debug.logError(e, module);
}

if (printStoreCopy) {
String[] storeReceipt = this.readStoreTemplate();
int payments = trans.getNumberOfPayments();
for (int i = 0; i < payments; i++) {
Map info = trans.getPaymentInfo(i);
if (info.containsKey("cardNumber")) {
this.printReceipt(trans, storeReceipt, 1, info);
}
try {
Thread.sleep(3000);
} catch (Exception e) {
}
}
}

// print the customer receipt
String[] custReceipt = this.readCustomerTemplate();
this.printReceipt(trans, custReceipt, 0, null);
}

so if (printStoreCopy) is the keystone here... I can see that... but where
in the H is it passed?!?!?!

I'd like to have one more template to include the additional info field.
It's called prepreceipt.txt.  For now, It'll go to the same printer... I'm
hoping somehow to use the method above, or a close version of it to print to
the same printer, but using the other template.

and. I'm at a loss!

Thanks!


ShoppingCart.createDrop

2008-06-26 Thread Ritz123


-- 
View this message in context: 
http://www.nabble.com/ShoppingCart.createDrop-tp18143709p18143709.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: JPos The Big Deal?

2008-06-26 Thread BJ Freeman
I think once you under stand the requirements of a POS things maybe more
clear.

Johnny Kewl sent the following on 6/26/2008 11:43 AM:
> 
> - Original Message - From: "Branden Strickland"
> <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, June 26, 2008 5:40 PM
> Subject: Re: JPos The Big Deal?
> 
> 
>> well You have to understand that it's all being done within the JVM.
>>
>> I thought it might work a bit easier too, but having your java virtual
>> machine communicate though the serial / Ethernet / USB for things such as
>> printers, and drawers where there is actual control code to make the
>> phisical machine do different things, is quite technical, which is why
>> JavaPOS providers all have specialized software (IE Star, Epson, etc. all
>> have their own packages )
> 
> Yes exactly... thats the question, why struggle through another
> interface when Swing is already printing through the JRE.
> And the system doesnt care whether one is printing to a
> scanner/fax/printer, local, on the lan... or to a file, or through a PDF
> driver, or or or.
> Java's direct serial, USB support sucks... but the one thing it does do
> is print to whatever is on the machine...
> Why dont POS printers just behave as normal printers... well I'm not
> sure they dont.
> I wouldnt be surprised at all if a USB POS printer, after loading the
> driver, popped up in Word, Excel, and Java Swings print manager...
> I guess is someone bought a serial version... that could be painful,
> like one wont even find a serial port on new PC's, which could be a
> problem ;)
> It like there are two alternatives I need to do more homework ;)
> But I'm already thinking that I'm going to say to the sales guy if I
> cant open notepad, type "hello" and print to this thing, or open JEdit,
> type "hello from linux" and this printer doesnt print it... I dont want
> it ;)  I want a real printer ;)
> 
> Anyway thanks...
> 
> 
> 



Re: JPos The Big Deal?

2008-06-26 Thread Johnny Kewl


- Original Message - 
From: "Branden Strickland" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 26, 2008 5:40 PM
Subject: Re: JPos The Big Deal?



well You have to understand that it's all being done within the JVM.

I thought it might work a bit easier too, but having your java virtual
machine communicate though the serial / Ethernet / USB for things such as
printers, and drawers where there is actual control code to make the
phisical machine do different things, is quite technical, which is why
JavaPOS providers all have specialized software (IE Star, Epson, etc. all
have their own packages )


Yes exactly... thats the question, why struggle through another interface 
when Swing is already printing through the JRE.
And the system doesnt care whether one is printing to a scanner/fax/printer, 
local, on the lan... or to a file, or through a PDF driver, or or or.
Java's direct serial, USB support sucks... but the one thing it does do is 
print to whatever is on the machine...
Why dont POS printers just behave as normal printers... well I'm not sure 
they dont.
I wouldnt be surprised at all if a USB POS printer, after loading the 
driver, popped up in Word, Excel, and Java Swings print manager...
I guess is someone bought a serial version... that could be painful, like 
one wont even find a serial port on new PC's, which could be a problem ;)

It like there are two alternatives I need to do more homework ;)
But I'm already thinking that I'm going to say to the sales guy if I 
cant open notepad, type "hello" and print to this thing, or open JEdit, type 
"hello from linux" and this printer doesnt print it... I dont want it ;)  I 
want a real printer ;)


Anyway thanks... 



Re: additional info screen throws an exception

2008-06-26 Thread Jacques Le Roux

Branden,

It's pretty clear : XPage cannot be cast to XDialog. This happens in Keyboard.java line 28. 
I guess this line :  m_dialog = (XDialog)m_pageSupport;


Jacques

From: "Branden Strickland" <[EMAIL PROTECTED]>

Chris, Jacques

A little light shed will prob send me on my way to finish this for a
patch...

Heres the deal.

On the main POS screen I have a button "Addtl Info" it maps to:
   

In MenuEvents.java I have:
-
public static synchronized void addtlInfo(PosScreen pos) {
   PosTransaction trans =
PosTransaction.getCurrentTx(pos.getSession());
   trans.addtlInfo(pos);
   }

In PosTranaction.java I have:

public synchronized void addtlInfo(PosScreen pos) {

   try {

  Keyboard keyboard = new Keyboard(pos, "addtlinfo");
  keyboard.setText(getSaleAddtlInfo() == null ? "" :
getSaleAddtlInfo());
  setSaleAddtlInfo(keyboard.openDlg());

}
   catch(Exception e){
   Debug.logError(e, module);
   }
   return;
   }
ALSO--
public void setSaleAddtlInfo(String info) {
   cart.setShippingInstructions(info);
   }

   public String getSaleAddtlInfo() {
   return cart.getShippingInstructions();
   }

and last but not least Keyboard.xml I've modified for dynamic XML
properties:
---
public Keyboard(PosScreen pos, String pagename){
   m_pos = pos;

   m_pageSupport = pageMgr.loadPage(
   m_pos.getScreenLocation() + "/dialog/" + pagename);
   m_dialog = (XDialog)m_pageSupport;

   m_edit = (XEdit) m_pageSupport.findComponent("keyboard_input");
   m_edit.setText("");

   return;
   }

   public Keyboard(PosScreen pos){

   this(pos, m_defaultPageName);
   return;
   }

The Error I get is:

 runtime exception report
--
Exception: java.lang.ClassCastException
Message: net.xoetrope.xui.XPage cannot be cast to net.xoetrope.swing.XDialog
 stack trace
---
java.lang.ClassCastException: net.xoetrope.xui.XPage cannot be cast to
net.xoetrope.swing.XDialog
org.ofbiz.pos.screen.Keyboard.(Keyboard.java:28)
org.ofbiz.pos.PosTransaction.addtlInfo(PosTransaction.java:1243)
org.ofbiz.pos.event.MenuEvents.addtlInfo(MenuEvents.java:406)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:121)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:619)


Something within XUI no doubt...

Figured I'd pass it your way I'm sure I'll figure it out though... just
possibly sooner with your help!

Thanks!



Re: Amazon Integration

2008-06-26 Thread Tim Ruppert
My guess is that it's not ready to be put out to the community yet and  
I'm not sure that it will make it there within the next few weeks.  If  
there is movement on this, we will definitely let the community know.


Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Jun 26, 2008, at 10:35 AM, MiltonClark wrote:



On May 17, 2006, Andrew Zeneski asked about the need for Amazon.com
Integration, and on
May 23, 2006 Tim Ruppert's reply talked about a customer who needs  
such an

integration.
What happened with this activity?  We need this functionality  
integrated

with OFBiz as part of our migration and rollout.  What's been done and
what's the status of these efforts?

Any help would be greatly appreciated.

-Milton Clark
[EMAIL PROTECTED]

--
View this message in context: 
http://www.nabble.com/Amazon-Integration-tp18138193p18138193.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





smime.p7s
Description: S/MIME cryptographic signature


Re: Users - Amazon.com Integration

2008-06-26 Thread BJ Freeman
this is andies last email on the subject
I have an Amazon.com integration which is 95% complete. Its currently
in testing with a client. It will require certain customization as
they are pretty specific about different types of products.

This requires no schema changes.

Andy


suggest you contact him directly

MiltonClark sent the following on 6/25/2008 10:12 PM:
> I'm looking for an Amazon interface very much as Andy Zeneski outlined in
> this thread.  What ever became of that effort?  Does such a package exist to
> integrate Amazon with OFBiz?  Any information would be very appreciated.
> 
> Thanks in advance,
> -Milton Clark
>  [EMAIL PROTECTED]
> 
> 



Amazon Integration

2008-06-26 Thread MiltonClark

On May 17, 2006, Andrew Zeneski asked about the need for Amazon.com
Integration, and on 
May 23, 2006 Tim Ruppert's reply talked about a customer who needs such an
integration.
What happened with this activity?  We need this functionality integrated
with OFBiz as part of our migration and rollout.  What's been done and
what's the status of these efforts?

Any help would be greatly appreciated.

-Milton Clark
 [EMAIL PROTECTED]

-- 
View this message in context: 
http://www.nabble.com/Amazon-Integration-tp18138193p18138193.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



additional info screen throws an exception

2008-06-26 Thread Branden Strickland
Chris, Jacques

A little light shed will prob send me on my way to finish this for a
patch...

Heres the deal.

On the main POS screen I have a button "Addtl Info" it maps to:


In MenuEvents.java I have:
-
 public static synchronized void addtlInfo(PosScreen pos) {
PosTransaction trans =
PosTransaction.getCurrentTx(pos.getSession());
trans.addtlInfo(pos);
}

In PosTranaction.java I have:

 public synchronized void addtlInfo(PosScreen pos) {

try {

   Keyboard keyboard = new Keyboard(pos, "addtlinfo");
   keyboard.setText(getSaleAddtlInfo() == null ? "" :
getSaleAddtlInfo());
   setSaleAddtlInfo(keyboard.openDlg());

 }
catch(Exception e){
Debug.logError(e, module);
}
return;
}
ALSO--
 public void setSaleAddtlInfo(String info) {
cart.setShippingInstructions(info);
}

public String getSaleAddtlInfo() {
return cart.getShippingInstructions();
}

and last but not least Keyboard.xml I've modified for dynamic XML
properties:
---
 public Keyboard(PosScreen pos, String pagename){
m_pos = pos;

m_pageSupport = pageMgr.loadPage(
m_pos.getScreenLocation() + "/dialog/" + pagename);
m_dialog = (XDialog)m_pageSupport;

m_edit = (XEdit) m_pageSupport.findComponent("keyboard_input");
m_edit.setText("");

return;
}

public Keyboard(PosScreen pos){

this(pos, m_defaultPageName);
return;
}

The Error I get is:

 runtime exception report
--
Exception: java.lang.ClassCastException
Message: net.xoetrope.xui.XPage cannot be cast to net.xoetrope.swing.XDialog
 stack trace
---
java.lang.ClassCastException: net.xoetrope.xui.XPage cannot be cast to
net.xoetrope.swing.XDialog
org.ofbiz.pos.screen.Keyboard.(Keyboard.java:28)
org.ofbiz.pos.PosTransaction.addtlInfo(PosTransaction.java:1243)
org.ofbiz.pos.event.MenuEvents.addtlInfo(MenuEvents.java:406)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:121)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:619)


Something within XUI no doubt...

Figured I'd pass it your way I'm sure I'll figure it out though... just
possibly sooner with your help!

Thanks!


Re: XSD for DemoProduct.xml

2008-06-26 Thread BJ Freeman
sorry spaced out.
the entitiesdef folder holds the information you need.
so look in
applications\product\entitydef\entitymodel.xml for products
applications\partry\entitydef\entitymodel.xml for party
so on.


BJ Freeman sent the following on 6/26/2008 8:58 AM:
> Good question, seems all the application dtd folders are missing or empty.
> 
> David Johnson sent the following on 6/26/2008 8:35 AM:
>> Hi,
>>
>> Does an XSD exist for DemoProduct.xml it's difficult to get the
>> structure correct without one. A lot of trail and error.
>>
>> - Dave Johnson
>>
> 
> 
> 
> 



Re: XSD for DemoProduct.xml-- all application xsd's

2008-06-26 Thread BJ Freeman
Good question, seems all the application dtd folders are missing or empty.

David Johnson sent the following on 6/26/2008 8:35 AM:
> Hi,
> 
> Does an XSD exist for DemoProduct.xml it's difficult to get the
> structure correct without one. A lot of trail and error.
> 
> - Dave Johnson
> 



Re: My Posts not getting posted on the Users Forum

2008-06-26 Thread Vijay
Hi trying to post this to User-forum.

Its just a test mail. No intension to spam.

Vijay


Re: JPos The Big Deal?

2008-06-26 Thread Branden Strickland
Oh, FYI JPOS is an org that does kinda (sorta) what OFBIZ is doing... It's
the software itself JavaPOS is just for provideing resources to run the
hardward, and is part of many java based POS packages!

On Thu, Jun 26, 2008 at 11:40 AM, Branden Strickland <
[EMAIL PROTECTED]> wrote:

> well You have to understand that it's all being done within the JVM.
>
> I thought it might work a bit easier too, but having your java virtual
> machine communicate though the serial / Ethernet / USB for things such as
> printers, and drawers where there is actual control code to make the
> phisical machine do different things, is quite technical, which is why
> JavaPOS providers all have specialized software (IE Star, Epson, etc. all
> have their own packages )
>
>
>
> On Thu, Jun 26, 2008 at 11:27 AM, Johnny Kewl <[EMAIL PROTECTED]>
> wrote:
>
>>
>> - Original Message - From: "Branden Strickland" <
>> [EMAIL PROTECTED]>
>> To: 
>> Sent: Thursday, June 26, 2008 3:30 PM
>> Subject: Re: JPos The Big Deal?
>>
>>
>>  The bar code scanners work becuase their emulated at the machine
>>> level
>>> You'll need the javaPOS stuff for things such as receipt printers,
>>> cashdrawers, MSR's,etc.
>>>
>>> Hope that helps!
>>>
>>
>> Thanks, seems like I even got the name wrong JavaPos, not JPos
>> ... I need to do more homework, and hey, its open source so its
>> changable...
>> I just think its strange that a POS printer...is not just a "small
>> printer".
>> ... Just me I guess... still learning ;)
>>
>
>


Re: JPos The Big Deal?

2008-06-26 Thread Branden Strickland
well You have to understand that it's all being done within the JVM.

I thought it might work a bit easier too, but having your java virtual
machine communicate though the serial / Ethernet / USB for things such as
printers, and drawers where there is actual control code to make the
phisical machine do different things, is quite technical, which is why
JavaPOS providers all have specialized software (IE Star, Epson, etc. all
have their own packages )



On Thu, Jun 26, 2008 at 11:27 AM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

>
> - Original Message - From: "Branden Strickland" <
> [EMAIL PROTECTED]>
> To: 
> Sent: Thursday, June 26, 2008 3:30 PM
> Subject: Re: JPos The Big Deal?
>
>
>  The bar code scanners work becuase their emulated at the machine level
>> You'll need the javaPOS stuff for things such as receipt printers,
>> cashdrawers, MSR's,etc.
>>
>> Hope that helps!
>>
>
> Thanks, seems like I even got the name wrong JavaPos, not JPos
> ... I need to do more homework, and hey, its open source so its
> changable...
> I just think its strange that a POS printer...is not just a "small
> printer".
> ... Just me I guess... still learning ;)
>


XSD for DemoProduct.xml

2008-06-26 Thread David Johnson

Hi,

Does an XSD exist for DemoProduct.xml it's difficult to get the 
structure correct without one. A lot of trail and error.


- Dave Johnson

--
Black Pepper Software Limited
The Mews, Trinity House,
Trinity Street, Leamington Spa,
Warwickshire. CV32 5Yo

Registered in England, No. 3763392
VAT No. 747 8497 68

Tel: 01926 886467
Mob: 07733 106990
Skype: davidajohnson1


Re: JPos The Big Deal?

2008-06-26 Thread Johnny Kewl


- Original Message - 
From: "Branden Strickland" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 26, 2008 3:30 PM
Subject: Re: JPos The Big Deal?



The bar code scanners work becuase their emulated at the machine level
You'll need the javaPOS stuff for things such as receipt printers,
cashdrawers, MSR's,etc.

Hope that helps!


Thanks, seems like I even got the name wrong JavaPos, not JPos
... I need to do more homework, and hey, its open source so its changable...
I just think its strange that a POS printer...is not just a "small printer".
... Just me I guess... still learning ;) 



Re: pos - network printer works

2008-06-26 Thread Branden Strickland
https://issues.apache.org/jira/browse/OFBIZ-1853

That wasn't so bad! ;P

2008/6/19 Jacques Le Roux <[EMAIL PROTECTED]>:

> Feel free to open a Jira issue, then we will see... There is clear
> informations in
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practicesplease
>  read them if not already done
>
>
> Jacques
>
> From: "Branden Strickland" <[EMAIL PROTECTED]>
>
>> would you like me to comment on the POS write up on the page that
>> describes
>> the list of printers that work?  Or would you like me to comment on a
>> particular jira issue?  Or at that extent, possibly create a whole new
>> jira
>> issue... which might be fun, since I haven't do that before!
>>
>> 2008/6/19 Jacques Le Roux <[EMAIL PROTECTED]>:
>>
>>  I would suggest to do the simplest for you
>>>
>>>
>>> Jacques
>>>
>>> From: "Branden Strickland" <[EMAIL PROTECTED]>
>>>
>>>  What exactly would you want?  Would you like a right up for the POS page
 for
 hooking up the network printer?  Or would you like me to find out where
 that
 small exception is found and try to fix?   It seems like it's being done
 within the Epson ADK java files, but whatever you'd like from me, I'll
 give
 a shot.

 Thanks -

 2008/6/18 Jacques Le Roux <[EMAIL PROTECTED]>:

  Branden,

>
> Would you mind contribute this effort to the community ? Now that you
> began
> to send a 1st patch it should not be a big deal for you :o)
>
> TIA
>
>
> Jacques
>
> From: "Branden Strickland" <[EMAIL PROTECTED]>
>
>
>  Epson specifically tells you only to use the RJ11 cord with serial.
>
>   You're
>> not to use it with the Ethernet connection.  I'm not sure why, but
>> they
>> insist that pass-through drawers and customer displays must not be
>> used
>> with
>> Ethernet Drawers.
>>
>> Not a big deal..  I can modify the code to work.   I was just letting
>> everyone know that the ethernet version does indeed work with ofbiz.
>>
>> 2008/6/18 Jacques Le Roux <[EMAIL PROTECTED]>:
>>
>>  Why don' tyou use a simple pop-drawer connected to your printer with
>> a
>>
>>  rj11
>>> cable ?
>>>
>>> Jacques
>>>
>>> From: "Branden Strickland" <[EMAIL PROTECTED]>
>>>
>>>  I aim to please.
>>>
>>>
>>>  I think this may be related to the fact that my pop-drawer is still
 configured in pos-components.xml and you can't hook them up to the
 Ethernet
 printers.

  exception report
 --
 Exception: jpos.JposException
 Message: The power supply of the device is off.
  stack trace
 ---
 jpos.JposException: The power supply of the device is off.




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.getRealtimeStatus(Unknown
 Source)




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.getPrinterStatus(Unknown
 Source)




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.getPrinterStatus(Unknown
 Source)




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.initializeCommon(Unknown
 Source)




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.initialize(Unknown
 Source)




 jp.co.epson.upos.pntr.init.AbstractPrinterInitialization.initializeDevice(Unknown
 Source)




 jp.co.epson.upos.drw.CashDrawerPortControl.initializePrinterInstance(Unknown
 Source)
 jp.co.epson.upos.drw.CashDrawerPortControl.openPort(Unknown Source)

 jp.co.epson.upos.drw.CommonCashDrawerService.setDeviceEnabled(Unknown
 Source)
 jpos.BaseJposControl.setDeviceEnabled(Unknown Source)
 org.ofbiz.pos.device.GenericDevice.enable(GenericDevice.java:71)
 org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:46)
 org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165)




 org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50)


 org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
 org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
 org.ofbiz.base.start.Start.startServer(Start.java:312)
 org.ofbiz.base.start.Start.start(Start.java:316)
 org.ofbiz.base.start.Start.main(Start.java:399)




 --

Re: Exception in adding new product.

2008-06-26 Thread David E Jones


It is most likely because your delegator configuration in the  
entityengine.xml file is incomplete.


Please look at the most recent version of the file from SVN, and  
notice that (for the default and other delegators) it has two group- 
map sub-elements, like this:


reader="main" entity-eca-reader="main" distributed-cache-clear- 
enabled="false">
name="localderby"/>
name="localderbyolap"/>



If you are missing the datasource mapping for the group-name  
"org.ofbiz.olap" you'll run into this problem.


BTW, I hate to say this, but that HAS already been discussed on the  
mailing lists and there are similar responses to this in the archives.


-David


On Jun 26, 2008, at 4:06 AM, gopalbi wrote:



Hello friends i need your help,

  When i am using derby database then i am able to create a  
new
product.but when i am using local database as a place of derby  
database the

it throws Exception  in create in new product in catalog.

The Following Errors Occurred:

Error calling event:

org.ofbiz.webapp.event.EventHandlerException: Service invocation error
(Could not commit transaction for service [updateProduct] call: Roll  
back
error, could not commit transaction, was rolled back instead because  
of:

Error in simple-method [
[file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/ 
DimensionServices.xml#prepareProductDimensionData]]:

Error running the simple-method: Error in simple-method operation []:
java.lang.IllegalArgumentException: Type id-ne not found
null)


Thanks & Regards:
Gopal Bisht
--
View this message in context: 
http://www.nabble.com/Exception-in-adding-new-product.-tp18130499p18130499.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





Re: JPos The Big Deal?

2008-06-26 Thread Branden Strickland
The bar code scanners work becuase their emulated at the machine level
You'll need the javaPOS stuff for things such as receipt printers,
cashdrawers, MSR's,etc.

Hope that helps!


On Thu, Jun 26, 2008 at 12:19 AM, Raj Saini <[EMAIL PROTECTED]> wrote:

> Johnny,
>
> I think you are confused between JPos and JavaPos. I don't know much about
> POS, but I think it is JavaPos which is used and not the JPos. JPos is
> totally different beast  that is implementation ISO-8583 protocol which is a
> low level messaging protocol between devices like ATM and financial
> switches/hubs.
>
> You can know more about JavaPos (http://www.javapos.com/).
>
> Thanks,
>
> Raj
>
>
> Johnny Kewl wrote:
>
>> Newbie: Still dangerous ;)
>>
>> Guys I'm struggling to understand why JPos is even needed.
>> Just started playing with ofbiz, saw POS module, got excited, rushed out
>> and got myself a symbol barcode scanner... and I see that when I plug it
>> into the usb, it behaves just like a keyboard, no driver, no nothing needed.
>> If I scan whichever and whatever type of of barcode... it reads it.
>>
>> So I'm wondering what on earth JPos is supposed to do, why do we need it?
>>
>> I'm thinking that if I rush out and get a printer... the thing is going to
>> work just like any other printer and will work from word, or notepad, or
>> swing... so we "just printing".
>>
>> A terminal post... is probably just going to be a printer as well?
>> A credit card scanner... probably gives you the number?... like the
>> keyboard again... or would be completely separate and chat to the bank...
>> and the person behind the POS just records a credit sale, or something?
>>
>> So what is JPos really doing for us... its just standard pc stuff?
>>
>> One could turn Excel into a little POS... no?
>> I dont get it?
>> What makes Jpos really needed?
>>
>> I read that is about standardizing... but a printer is a printer, a
>> scanner is a keyboard, whats to standardize, its plug and play anyway? What
>> is a cash drawer... probably print char Esc A to the printer... hardly
>> reason for a standard? What am I missing?
>>
>> Thanks
>>
>>
>


Re: view-entity where condition

2008-06-26 Thread Jacques Le Roux

I don't know if you got through it but referring to 
http://en.wikipedia.org/wiki/Join_(SQL)#Left_outer_join a left join is also
called  a left outer join. To get an outter join in OFBiz you must use rel-optional= true (by default it's false). Look for example 
in code...

Also be sure to use  in a view-entity when you really need it

Jacques

From: "stamilo" <[EMAIL PROTECTED]>

hi
 i want to make a view-entity like this:
 select
 a.fkey , a.fdesc ,
 b.fname ,
 c.faddr ,
 d.ftel
 from
a left join b on a.fkey = b.fkey
left join c on a.fkey = c.fkey
left join d on a.fkey = d.fkey
 where
a.fkey = b.fkey
   and
b.fkey = c.fkey
   and
c.fkey = d.fkey

 then
  i write this:


 
 
 
 
 
 
 
 
  
  
  
 
   
 
 
   
 
 
   
 
 
   
 
 


  but , can't work, no where condition in sql string ,
  so the result very big , and not left join

  how ?

  thx.





Re: Exception in adding new product.

2008-06-26 Thread Ashish Vijaywargiya
BTW which database you are using on your local machine.

--
Ashish

On Thu, Jun 26, 2008 at 6:39 AM, BJ Freeman <[EMAIL PROTECTED]> wrote:

> is the db your using in the list of db already tested?
> id-ne is defined in
> framework\entity\fieldtype
> there should be one for the db your using.
>
> gopalbi sent the following on 6/26/2008 3:06 AM:
> > Hello friends i need your help,
> >
> >When i am using derby database then i am able to create a new
> > product.but when i am using local database as a place of derby database
> the
> > it throws Exception  in create in new product in catalog.
> >
> > The Following Errors Occurred:
> >
> > Error calling event:
> >
> > org.ofbiz.webapp.event.EventHandlerException: Service invocation error
> > (Could not commit transaction for service [updateProduct] call: Roll back
> > error, could not commit transaction, was rolled back instead because of:
> > Error in simple-method [
> >
> [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]:
> > Error running the simple-method: Error in simple-method operation []:
> > java.lang.IllegalArgumentException: Type id-ne not found
> > null)
> >
> >
> > Thanks & Regards:
> > Gopal Bisht
>
>


Re: information about shipping methods

2008-06-26 Thread Ashish Vijaywargiya
Please elaborate your question.

--
Ashish

On Thu, Jun 26, 2008 at 5:57 AM, Fabien JALABERT <
[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I would like to know where is selected the shipping method depending on the
> location of the shipment adress ?
> Does some one can help me ?
>
> Thanks a lot !
>
>
>


Re: Problem with tax recalculation after order item cancellation

2008-06-26 Thread Rashko Rejmer
Hi Scott,

Thanks a lot about the response. I am interested to get those problems
fixed quickly and I will investigate your proposal about updating the
OrderAdjustment amount and then I will write again. 

Regards,
Rashko Rejmer


On Wed, 2008-06-25 at 23:01 +1200, Scott Gray wrote:
> Hi Rashko
> 
> Comments inline, these are just my first thoughts I haven't looked at the
> code or entities
> 
> 2008/6/24 Rashko Rejmer <[EMAIL PROTECTED]>:
> 
> > The status of the item is set to ITEM_CANCELLED and tax adjustments are
> > not removed. Instead of this it is created order header adjustment that
> > compensates order item sales tax adjustments. This was introduced in
> > OFBIZ-461. The reason was that it was not possible to remove
> > OrderAdjustment if one part of the adjustment is already
> > invoiced(OrderAdjustmentBilling is present).
> 
> 
> Instead of creating these balancing adjustments wouldn't it be ok to just
> update the OrderAdjustment with the new tax amount?
> 
> After quick shipping the order the tax adjustments for the cancelled
> > order items are ignored and in the invoice is present only the order
> > header tax adjustment that negates the cancelled order item tax
> > adjustments. So the invoice total amount is different from the order
> > total amount.
> 
> 
> This sounds strange because if the order item was cancelled then there
> should have been no OrderAdjustmentBillings which would mean we could have
> just deleted the order adjustment and not created the balancing adjustments
> in the first place.
> 
> Even if this will be corrected I was wandering if this is the best
> > approach because during order item cancellation it is created only one
> > order header tax adjustment for all order item tax adjustments, without
> > any information about the Tax authorities.
> 
> 
> It sounds like a work around that could do with a better approach
> 
> The second problem is that order item editing does not follow this
> > pattern. For example if you cancel one order item and then edit the
> > price of another order item, then tax adjustments of the previously
> > cancelled order item(first one) are removed, It is removed also the
> > order header tax adjustment.
> 
> 
> Like I said at the top I can't see why we can't just adjust the amounts on
> the existing order adjustments, I can't imagine any need to preserve the
> original tax amounts.
> 
> Regards
> Scott



Re: Exception in adding new product.

2008-06-26 Thread BJ Freeman
is the db your using in the list of db already tested?
id-ne is defined in
framework\entity\fieldtype
there should be one for the db your using.

gopalbi sent the following on 6/26/2008 3:06 AM:
> Hello friends i need your help,
> 
>When i am using derby database then i am able to create a new
> product.but when i am using local database as a place of derby database the
> it throws Exception  in create in new product in catalog. 
> 
> The Following Errors Occurred:
> 
> Error calling event: 
> 
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error
> (Could not commit transaction for service [updateProduct] call: Roll back
> error, could not commit transaction, was rolled back instead because of:
> Error in simple-method [
> [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]:
> Error running the simple-method: Error in simple-method operation []:
> java.lang.IllegalArgumentException: Type id-ne not found
> null)
> 
> 
> Thanks & Regards:
> Gopal Bisht



Re: can a beanObject could be sent to ofbiz sevice definition

2008-06-26 Thread BJ Freeman
you should become familiar with the service engine in ofbiz.
http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams
and
http://docs.ofbiz.org/display/OFBIZ/Mini-Language+Guide

Aravind_RP sent the following on 6/25/2008 9:21 PM:
> hai all
> i greatly appreciate the responses i got for my previous query.Is it
> possible to sent a bean object to ofbiz service,like if we want to set a new
> address using existing ofbiz service "createPartyPostalAddress" instead of
> sending each parameter and defining it in services.xml can we set a bean
> object and sent it to service.
> 
> Plz help  me if anyone has solved this problem.



Re: My Posts not getting posted on the Users Forum

2008-06-26 Thread BJ Freeman
Vijay sent the following on 6/25/2008 10:34 AM:
> Hi BJ,
> i am able to receive mails,
> But no luck with posting yet ! ?
>
> Regards
> Vijay


Jacques Le Roux sent the following on 6/26/2008 2:54 AM:
> Thanks BJ,
> 
> Vijay is it ok now ? I did nothing just curious... Did you try dev ML ?
> are you sure you are still registered ? You may try to use Nabble
> instead in the meantime...
> 
> Jacques
> 
> From: "BJ Freeman" <[EMAIL PROTECTED]>
>> forwarding this so those that have access to the mailing list can check
>>
>> Vijay sent the following on 6/24/2008 12:28 PM:
>>> Hi Bj
>>>
>>> My posts are not getting published on the ofbiz user forums.
>>> Do you know why is it happening?
>>>
>>> Regards
>>> Vijay
>>>
>>
> 
> 
> 
> 



Exception in adding new product.

2008-06-26 Thread gopalbi

Hello friends i need your help,

   When i am using derby database then i am able to create a new
product.but when i am using local database as a place of derby database the
it throws Exception  in create in new product in catalog. 

The Following Errors Occurred:

Error calling event: 

org.ofbiz.webapp.event.EventHandlerException: Service invocation error
(Could not commit transaction for service [updateProduct] call: Roll back
error, could not commit transaction, was rolled back instead because of:
Error in simple-method [
[file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]:
Error running the simple-method: Error in simple-method operation []:
java.lang.IllegalArgumentException: Type id-ne not found
null)


Thanks & Regards:
Gopal Bisht
-- 
View this message in context: 
http://www.nabble.com/Exception-in-adding-new-product.-tp18130499p18130499.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



information about shipping methods

2008-06-26 Thread Fabien JALABERT


Hello,

I would like to know where is selected the shipping method depending on 
the location of the shipment adress ?

Does some one can help me ?

Thanks a lot !




Re: My Posts not getting posted on the Users Forum

2008-06-26 Thread Jacques Le Roux

Thanks BJ,

Vijay is it ok now ? I did nothing just curious... Did you try dev ML ? are you sure you are still registered ? You may try to use 
Nabble instead in the meantime...


Jacques

From: "BJ Freeman" <[EMAIL PROTECTED]>

forwarding this so those that have access to the mailing list can check

Vijay sent the following on 6/24/2008 12:28 PM:

Hi Bj

My posts are not getting published on the ofbiz user forums.
Do you know why is it happening?

Regards
Vijay







Re: can a beanObject could be sent to ofbiz sevice definition

2008-06-26 Thread Jacques Le Roux
This does not make any sense in OFBiz. Please have a look at the documentation 
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index


Jacques

From: "Aravind_RP" <[EMAIL PROTECTED]>


hai all
i greatly appreciate the responses i got for my previous query.Is it
possible to sent a bean object to ofbiz service,like if we want to set a new
address using existing ofbiz service "createPartyPostalAddress" instead of
sending each parameter and defining it in services.xml can we set a bean
object and sent it to service.

Plz help  me if anyone has solved this problem.
--
View this message in context: 
http://www.nabble.com/can-a-beanObject-could-be-sent-to-ofbiz-sevice-definition-tp18126286p18126286.html

Sent from the OFBiz - User mailing list archive at Nabble.com.