Re: [MODERATE EMAIL] Install Ofbiz without demo data

2017-11-12 Thread Michael Brohl
Hi,

it‘s —load-data not __load-data...

Regards,
Michael 



> Am 13.11.2017 um 06:52 schrieb Deepak Dixit :
> 
> Hi Javier H.
> 
> Your email has been moderated,Please subscribe mailing list
> http://ofbiz.apache.org/mailing-lists.html
> 
> Thanks & Regards
> --
> Deepak Dixit
> www.hotwaxsystems.com
> www.hotwax.co
> 
> 
>> -- Forwarded message --
>> From: "Javier H." 
>> To: 
>> Cc:
>> Bcc:
>> Date: Mon, 13 Nov 2017 04:08:55 -
>> Subject: Install Ofbiz without demo data
>> Hello,
>> 
>> I try to install Ofbiz without demo data in linux but i get this error:
>> 
>> /gradlew "ofbiz ‐‐load-data readers=seed,seed-initial" loadAdminUserLogin
>> -PuserLoginId=admin
>> 
>> :ofbiz ‐‐load-data readers=seed,seed-initial (Thread[main,5,main]) started.
>> :ofbiz ‐‐load-data readers=seed,seed-initial
>> Executing task ':ofbiz ‐‐load-data readers=seed,seed-initial' (up-to-date
>> check took 0.001 secs) due to:
>>  Task has not declared any outputs.
>> Starting process 'command '/usr/lib/jvm/java-8-oracle/bin/java''. Working
>> directory: /opt/apache-ofbiz-16.11.03 Command: 
>> /usr/lib/jvm/java-8-oracle/bin/java
>> -Xms128M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country=ES
>> -Duser.language=es -Duser.variant -cp 
>> /opt/apache-ofbiz-16.11.03/build/libs/ofbiz.jar
>> org.apache.ofbiz.base.start.Start ‐‐load-data readers=seed,seed-initial
>> Successfully started process 'command '/usr/lib/jvm/java-8-oracle/
>> bin/java''
>> 
>> ===
>> unrecognized options / properties: [‐‐load-data, readers=seed,seed-initial]
>> 
>> ===
>> usage: ofbiz|ofbizDebug|ofbizBackground [-? | -d | -l 

[MODERATE EMAIL] Install Ofbiz without demo data

2017-11-12 Thread Deepak Dixit
Hi Javier H.

Your email has been moderated,Please subscribe mailing list
http://ofbiz.apache.org/mailing-lists.html

Thanks & Regards
--
Deepak Dixit
www.hotwaxsystems.com
www.hotwax.co


> -- Forwarded message --
> From: "Javier H." 
> To: 
> Cc:
> Bcc:
> Date: Mon, 13 Nov 2017 04:08:55 -
> Subject: Install Ofbiz without demo data
> Hello,
>
> I try to install Ofbiz without demo data in linux but i get this error:
>
> /gradlew "ofbiz ‐‐load-data readers=seed,seed-initial" loadAdminUserLogin
> -PuserLoginId=admin
>
> :ofbiz ‐‐load-data readers=seed,seed-initial (Thread[main,5,main]) started.
> :ofbiz ‐‐load-data readers=seed,seed-initial
> Executing task ':ofbiz ‐‐load-data readers=seed,seed-initial' (up-to-date
> check took 0.001 secs) due to:
>   Task has not declared any outputs.
> Starting process 'command '/usr/lib/jvm/java-8-oracle/bin/java''. Working
> directory: /opt/apache-ofbiz-16.11.03 Command: 
> /usr/lib/jvm/java-8-oracle/bin/java
> -Xms128M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country=ES
> -Duser.language=es -Duser.variant -cp 
> /opt/apache-ofbiz-16.11.03/build/libs/ofbiz.jar
> org.apache.ofbiz.base.start.Start ‐‐load-data readers=seed,seed-initial
> Successfully started process 'command '/usr/lib/jvm/java-8-oracle/
> bin/java''
> 
> ===
> unrecognized options / properties: [‐‐load-data, readers=seed,seed-initial]
> 
> ===
> usage: ofbiz|ofbizDebug|ofbizBackground [-? | -d | -l 

Re: Credit Memos - Please give me your process and opinions!

2017-11-12 Thread velusamy T
Hi,
I have been searching this piece of functionality for a long time in OFBIZ
forums.
As per my understanding, the system Generated Sales return is in Accounting
- AP invoice menu because of this when the customer payment created the
sales return invoice is not available on the application tab under the new
payment.

Quoting the same example

> Suppose the following:
> Order  = USD 1.000,00, and goods have been delivered
> Invoice = USD 1.000,00.
> RMA is granted for 1 time on the order, valued at USD 100,00
> Credit Note is issued for USD 100,00
> At this moment the outstanding debt (in Accounts Receivable)  is 900,00 for
> the order.


*Assume customer pays company USD 900.00, to clear his outstanding *
*When we create a new payment for that customer, payment header section we
should be entering USD 900.00 and on the application screen, we have to
select the Sales invoice USD 1000.00 & return Invoice USD 100.00. Once the
payment is confirmed system should back update both invoices as paid and
the mark the sales invoice & sales return invoice outstanding as zero.*


Please let me know if anyone knows this functionality working in Ofbiz

On Sat, Oct 28, 2017 at 9:57 PM, Mike  wrote:

> Awesome detail.  Now I know who to contact for accounting questions.  
>
> On Oct 28, 2017 2:00 AM, "Pierre Smits"  wrote:
>
> > Hi James,
> >
> > The simple answer is NOT. On invoice level. And that is regardless of
> > whether you're talking about a Sales or Purchase. A sales Credit Note (or
> > Credit Invoice) is not a payment of the Sales Invoice, and - equally so
> - a
> > Purchase Credit Note is not a payment of a Purchase Invoice. For
> > convenience purposes I will explain more below using only the sales
> domain.
> >
> > Both the Invoice and the Credit Note stem from the  Order. When the
> Invoice
> > has been generated and encompasses all elements regarding the Order, the
> > obligation of the customer to pay the (agreed) amount due has been
> > established in the debtors sub ledger and in the general ledger. When
> (due
> > to whatever reason) a Credit Note is issued, the total obligation is
> > reduced. The reference to the order (and other documents as delivery
> notes,
> > RMA's, etc) help to identify where it came from.
> >
> > So the Credit Note reduces the outstanding debt. When subsequently a
> > payment from the debtor comes in, all the appropriate Invoices and Credit
> > Notes should have payments (positive for Invoice, negative for credit
> > note).against them. If in anyway the payment is unclear Invoices and
> Credit
> > Notes should not be should not be marked against that payment. More
> > investigation is required!.
> >
> > Suppose the following:
> > Order  = USD 1.000,00, and goods have been delivered
> > Invoice = USD 1.000,00.
> > RMA is granted for 1 time on the order, valued at USD 100,00
> > Credit Note is issued for USD 100,00
> > At this moment the outstanding debt (in Accounts Receivable)  is 900,00
> for
> > the order, but the total position of the debtor can also be higher or
> > lower.
> >
> > Subsequently a payment of UDS 910,00 arrives, but the description is
> > unclear. Then you can't tell which Invoices and Credit Notes are
> > applicable. If you take the first one(s) that may seem appropriate,
> you're
> > creating a confusion that will go from bad to worse. So you need more
> > information and keep chasing the debtor.
> >
> > And when everything regarding the received payment is clear (accepted by
> > the accounting department) an accounting transaction must be created to
> > ensure that everything is correct:
> >
> > In the sub ledger the Invoice for USD 1.000,00 will be marked as paid
> > Also the Credit Note for USD 100,00 will be marked as paid
> > And an undesignated payment of USD 10,00 will also be registered.
> >
> > I trust this helps.
> >
> > Best regards,
> >
> >
> >
> >
> >
> > Pierre Smits
> >
> > ORRTIZ.COM 
> > OFBiz based solutions & services
> >
> > OFBiz Extensions Marketplace
> > http://oem.ofbizci.net/oci-2/
> >
> > On Wed, Oct 25, 2017 at 3:49 PM,  wrote:
> >
> > > I have been struggling with the Credit Memo and Vendor Credit Memo
> > > process for a while and I think this needs a real hard look.  Can
> > > someone tell me the proper way to apply a Credit Memo generated from a
> > > return to the Original Invoice from the sales order.
> > >
> > > Here is the Example
> > >
> > > Customer buys GZ1000 for a $1000 and is invoiced for $1000
> > > He returns GZ1000 and is given a credit for $1000
> > >
> > > How is that credit applied to the original invoice so it shows in
> > > accounting that the customer no longer owes $1000?
> > >
> > >
> > > Same thing on the Vendor side when returning a product back to vendor.
> > >
> > > Thanks,
> > >
> > > Jame
> > >
> >
>


EntityImport

2017-11-12 Thread Iain Fogg
I'm working on some custom data importing that will use EntityImport if 
I can get past a hurdle.

I've tried to simplify this to the bare minimum to reproduce the problem.

The EntityImport XML file contains the following trivial data:

---start---

---end---

The EntityImport Freemarker template contains:

---start---

  <#recurse doc>


<#macro @element>

---end---

Obviously, this doesn't actually DO anything, however, it still ought to 
visit the TestRoot node. Instead, the log raises an exception:


2017-11-12 23:27:49,140 |jsse-nio-8443-exec-4 |FreeMarkerWorker |E|null 
freemarker.core.NonNodeException: For "#recurse" node: Expected a node, 
but this has evaluated to an extended_hash+string 
(org.apache.xerces.dom.DeferredDocumentImpl wrapped into 
f.e.b.StringModel): ==> doc [in template 
"file:/home/sysadmin/ofbiz/local/freemarker/RecurseTest.ftl"at line 4, 
column 11]


So it's finding "doc", but it doesn't like the type and isn't recursing 
to visit the first and only child - TestRoot.


Stepping through the entityImport code, the XML is parsed and added the 
to fmcontext hashmap (with key "doc"), and is then passed to the 
FreeMarkerWorker.renderTemplate. For some reason my debug setup won't 
let me step into the

renderTemplate code to see what's happeningbeyond this.

Can anyone pin-point my problem? It seems like I'm supposed to "unwrap" 
the object that "doc" references, but it's not immediately obvious to me 
how to do that.


I'm using the latest version of the codebase (well a day or 2 old at most).