Re: Moving Average Inventory

2018-08-29 Thread Vaibhav Jain
Hello James,

*cogsMethodId *column of *PartyAcctgPreferance *entity is used to define
the COGS method

There are four COGS methods are defined in the OFBiz

   - LIFO
   - FIFO
   - Average cost
   - Inventory item cost

*ProductAverageCost* entity is used to store the average cost of a product
and product average cost is updated every time whenever inventory is
received.

Hope that help

Cheers!
Vaibhav Jain
Sr. Enterprise Software Engineer
HotWax Systems
m: 782-834-1900 e: vaibhav.j...@hotwaxsystems.com


On Tue, Aug 28, 2018 at 6:44 PM  wrote:

> Thank you.  Is there a table that shows me whats remaining in inventory
> and what COGS it will go out at when sold?  So in my example below after
> the sale of 100 units on 10-5 I have 50 remaining at an average costs of
> $10.50 which is different than the original $10 I paid for those items.
>
>
>  Original Message 
> Subject: Re: Moving Average Inventory
> From: Yashwant Dhakad 
> Date: Tue, August 28, 2018 5:34 am
> To: user@ofbiz.apache.org
>
> Hi James,
> You can find the average cost of the product on this screen
> <
> https://demo-trunk.ofbiz.apache.org/facility/control/InventoryAverageCosts?facilityId=WebStoreWarehouse
> >.
> If you receive the inventory of the product then average cost is
> automatically calculated by updateProductAverageCostOnReceiveInventory
> service.
>
> Thanks & Regards
> --
> Yashwant Dhakad
>
>
> On Tue, Aug 28, 2018 at 5:39 PM  wrote:
>
> > Team I am trying to follow where the moving average inventory for an
> > item is stored in the system so I can track that things are calculating
> > correctly. Here is an example:
> >
> > On 10-1 I have a beginning inventory of 100 units @ $10
> > On 10-3 I receive a purchase order of 100 units @ $11
> >
> > So we have ($1000+$1100)/200 - Moving Average is $10.50 and we have 200
> > units at that costs
> >
> >
> > I would assume the system calculates the inventory valuation prior to
> > each sell to get an accurate Costs of Goods Sold
> >
> > On 10-5 we have a sale of 100 units. The Costs of Goods Sold should go
> > out at $10.50
> >
> > This leaves us 50 units @ 10.50 (Where does Of biz store this?)
> >
> > On 10-6 we receive a purchase order of 100 units @10.80
> >
> > We now calculate our new moving average as ((50 *
> > 10.50)+(100*10.80)/150) = $10.70 (Where does Ofbiz store this)
> >
> > On 10-7 we sell 50 units and our Costs of Goods Sold should go out @
> > $10.70
> >
> > Where in Ofbiz can I see the storing of the perpetual moving average?
> >
> > Thanks,
> >
> > James
> >
> >
>


Re: Stuck OFBiz Tutorial - A Beginners Development Guide for 16.11

2018-08-29 Thread Swapnil Mane
Hi Shane,
Glad it works for you.

Indeed, trying yourself is the best way to learn.

I would suggest you subscribe the OFBiz mailing list [1].
A lot of things happen over these lists, you can learn many things from
there.

[1] https://ofbiz.apache.org/mailing-lists.html

- Best Regards,
Swapnil M Mane,
HotWax Systems 

On Thu, Aug 30, 2018 at 1:06 AM Shane F. MacIntyre <
macinty...@d33.courts.mi.gov> wrote:

> Thank you Swapnil!
>
>
>
> I looked at that line several times, but the duplicate text didn’t
> register in my brain. That error is fixed.
>
> I’m getting another error, but I’m going to try finding the issue myself
> for a while, before asking for more help.
>
> Hopefully it will help me get accustomed to the OFbiz framework.
>
>
>
> Thank you again,
>
> Shane
>
>
>
>
>
> *From:* Swapnil Mane 
> *Sent:* Wednesday, August 29, 2018 1:56 PM
> *To:* user@ofbiz.apache.org
> *Cc:* Shane F. MacIntyre 
> *Subject:* Re: Stuck OFBiz Tutorial - A Beginners Development Guide for
> 16.11
>
>
>
> Hi Shane,
> Welcome to the community!
>
> On cursory view, I suspect there might be typo at following line in your
> code
>
>  action="<@ofbizUrl>createOfbizDemoEvent">
>
> Instead of having createOfbizDemoEvent, it might be
> createOfbizDemoEventcreateOfbizDemo in your code.
>
>
>
> If this is not case, please share the your code snippet, so we can better
> help.
>
> - Best Regards.
>
> Swapnil M Mane,
>
> HotWax Systems 
>
>
>
>
>
> On Wed, Aug 29, 2018 at 10:46 PM Shane F. MacIntyre <
> macinty...@d33.courts.mi.gov> wrote:
>
> I’ve been slowly going through the guide found here:
>
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+16.11
>
> But I have gotten stuck. Somewhere around the “Customizing User
> Interface”, I’ve stumbled, and can’t trace where the problem is.
>
> When I try the demo by adding some data, I receive the following error:
>
> org.apache.ofbiz.webapp.control.RequestHandlerException: Unknown request
> [createOfbizDemoEvent​createOfbizDemo]; this request does not exist or
> cannot be called directly.
>
> Any help would be greatly appreciated,
>
> Shane MacIntyre
>
>


Re: Stuck OFBiz Tutorial - A Beginners Development Guide for 16.11

2018-08-29 Thread Swapnil Mane
Hi Shane,
Welcome to the community!

On cursory view, I suspect there might be typo at following line in your
code



Instead of having createOfbizDemoEvent, it might be
createOfbizDemoEventcreateOfbizDemo in your code.

If this is not case, please share the your code snippet, so we can better
help.


- Best Regards.
Swapnil M Mane,
HotWax Systems 


On Wed, Aug 29, 2018 at 10:46 PM Shane F. MacIntyre <
macinty...@d33.courts.mi.gov> wrote:

> I’ve been slowly going through the guide found here:
>
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+16.11
>
> But I have gotten stuck. Somewhere around the “Customizing User
> Interface”, I’ve stumbled, and can’t trace where the problem is.
>
> When I try the demo by adding some data, I receive the following error:
>
> org.apache.ofbiz.webapp.control.RequestHandlerException: Unknown request
> [createOfbizDemoEvent​createOfbizDemo]; this request does not exist or
> cannot be called directly.
>
> Any help would be greatly appreciated,
>
> Shane MacIntyre
>
>


Stuck OFBiz Tutorial - A Beginners Development Guide for 16.11

2018-08-29 Thread Shane F. MacIntyre
I’ve been slowly going through the guide found here:

https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+16.11

But I have gotten stuck. Somewhere around the “Customizing User Interface”, 
I’ve stumbled, and can’t trace where the problem is.

When I try the demo by adding some data, I receive the following error:

org.apache.ofbiz.webapp.control.RequestHandlerException: Unknown request 
[createOfbizDemoEvent​createOfbizDemo]; this request does not exist or cannot 
be called directly.

Any help would be greatly appreciated,

Shane MacIntyre



Re: Webpos session timeout

2018-08-29 Thread Frank Herrman
It seems I got it to work somehow, but not in the right way. I installed ofbiz 
without the full demo data (which caused me many more issues, so I wouldn't 
recommend doing that...), in that case you need to manually create the 
terminals yourself in the database. That was not the issue though, I already 
did that. But if someone has this issue as well, make sure you have done that.

I did notice in the logs an error saying posTerminalId was empty. Where this 
happens I'm not sure, but therefore I altered the code 
(specialpurpose/webpos/src/main/java/org/apache/ofbiz/webpos/WebPosEvents.java).
 In getWebPosSession() I added a check if posTerminalId is not empty:

if(UtilValidate.isEmpty(posTerminalId)) {
posTerminalId = request.getParameter("posTerminalId");
}
This is still somehow acceptable. However, this did not resolve the exception I 
was experiencing. This was raised in the same file in the posLogin method. I 
simply added a try/catch there:

try {
GenericValue userLoginNew = 
(GenericValue)session.getAttribute("userLogin");
if (userLoginNew != null && 
UtilValidate.isNotEmpty(posTerminalId)) {
webPosSession.setUserLogin(userLoginNew);
}
} catch(Exception e) {

}

Which is a really nasty solution. I'm sharing this since I hope someone can 
tell me why I needed to add this code and if I can solve it in another way 
without messing around with the code. Since I don't want to leave this code in 
there if not necessary. Furthermore, after logging in I still need to manually 
go to /main , so the function does not seem to return 'success', so I'm not 
there yet.

Anyway, any advice would be appreciated. Thanks!

Best regards,
Frank

Op 10-08-18 11:55 heeft Frank Herrman  geschreven:

Hi there,



Haven't got much response to this issue, is this something only happening 
to me? It just feels the webpos is much too basic right now. Does anyone know 
the status of it?



Met vriendelijke groet / kind regards,

 

Frank Herrman

Solutions Architect

 

Typify B.V.

Regulusweg 11

2516 AC Den Haag

Tel.+31 70 780 11 55

Mob. +31 62 806 52 79

E-mailf.herr...@typify.com

Web   www.typify.com



Op 31-07-18 12:34 heeft Frank Herrman  geschreven:



Hi there,



Another question from me. It seems that on different environments we 
experience issues with the webpos component. We are not able to login because 
the session expires immideatly. If we remove the cookies we can get in, but in 
the next step we are being logged out again. We experience this behaviour in 
Chrome, Firefox and Safari on multiple computers. The exact error:





The Following Errors Occurred: Error calling event: 
org.apache.ofbiz.webapp.event.EventHandlerException: Problems processing event: 
java.lang.IllegalStateException: getAttribute: Session already invalidated 
(getAttribute: Session already invalidated)

Is there something we can do about this to prevent it from happening? 
Thanks again!



kind regards,



Frank










Re: SEO Optimizer

2018-08-29 Thread Jacques Le Roux

Hi James,

Also have a look at the ecomseo alternative 
https://issues.apache.org/jira/browse/OFBIZ-5312 (sorry much and long posts)

Broadly, If you use the ecommerce component, it's the same code but different 
URLs which are more easy for SEO

See https://demo-trunk.ofbiz.apache.org/ecomseo

Jacques


Le 29/08/2018 à 16:12, Swapnil Mane a écrit :

Similar thing can be done for category

https://demo-trunk-ofbiz.apache.org/catalog/control/EditCategoryContent?productCategoryId=GB_TYS_GMS



- Best Regards,
Swapnil M Mane,
HotWax Systems 

On Wed, Aug 29, 2018 at 7:39 PM Swapnil Mane 
wrote:


Hi James,

You can do this in Content section for Product (under Catalog Menu)

https://demo-trunk-ofbiz.apache.org/catalog/control/EditProductContent?productId=GZ-2644

In  'Create New Product Content' section, you can create various product
contents like Page Title, Meta Keywords, Meta Description etc.

After creating this content, it will be reflect on the e-commerce site

https://demo-trunk-ofbiz.apache.org/ecommerce/control/product?product_id=GZ-2644

Hope this help!


- Best Regards,
Swapnil M Mane,
HotWax Systems 


On Wed, Aug 29, 2018 at 6:48 PM  wrote:


Is there an area in Ofbiz that you can enter page title, keywords,
metadata, etc for each product on your website and each category on the
site to optimize it for SEO?

Thanks,

James





Re: SEO Optimizer

2018-08-29 Thread Swapnil Mane
Similar thing can be done for category

https://demo-trunk-ofbiz.apache.org/catalog/control/EditCategoryContent?productCategoryId=GB_TYS_GMS



- Best Regards,
Swapnil M Mane,
HotWax Systems 

On Wed, Aug 29, 2018 at 7:39 PM Swapnil Mane 
wrote:

> Hi James,
>
> You can do this in Content section for Product (under Catalog Menu)
>
> https://demo-trunk-ofbiz.apache.org/catalog/control/EditProductContent?productId=GZ-2644
>
> In  'Create New Product Content' section, you can create various product
> contents like Page Title, Meta Keywords, Meta Description etc.
>
> After creating this content, it will be reflect on the e-commerce site
>
> https://demo-trunk-ofbiz.apache.org/ecommerce/control/product?product_id=GZ-2644
>
> Hope this help!
>
>
> - Best Regards,
> Swapnil M Mane,
> HotWax Systems 
>
>
> On Wed, Aug 29, 2018 at 6:48 PM  wrote:
>
>> Is there an area in Ofbiz that you can enter page title, keywords,
>> metadata, etc for each product on your website and each category on the
>> site to optimize it for SEO?
>>
>> Thanks,
>>
>> James
>>
>


Re: SEO Optimizer

2018-08-29 Thread Swapnil Mane
Hi James,

You can do this in Content section for Product (under Catalog Menu)
https://demo-trunk-ofbiz.apache.org/catalog/control/EditProductContent?productId=GZ-2644

In  'Create New Product Content' section, you can create various product
contents like Page Title, Meta Keywords, Meta Description etc.

After creating this content, it will be reflect on the e-commerce site
https://demo-trunk-ofbiz.apache.org/ecommerce/control/product?product_id=GZ-2644

Hope this help!


- Best Regards,
Swapnil M Mane,
HotWax Systems 


On Wed, Aug 29, 2018 at 6:48 PM  wrote:

> Is there an area in Ofbiz that you can enter page title, keywords,
> metadata, etc for each product on your website and each category on the
> site to optimize it for SEO?
>
> Thanks,
>
> James
>


SEO Optimizer

2018-08-29 Thread james
Is there an area in Ofbiz that you can enter page title, keywords,
metadata, etc for each product on your website and each category on the
site to optimize it for SEO? 

Thanks,

James


Re: How to use bootstrap 4 for my UI

2018-08-29 Thread Madhi Krishnan
Hii julien..

Thank you for your time...

On Fri, Aug 24, 2018 at 12:39 PM Julien NICOLAS 
wrote:

> Hi Madhi,
>
> I understand that it's not easy to create a new theme but as Taher told
> you, you must start by Customizing an existing theme. This is what I've
> done several years ago with success.
>
> Using bootstrap before the common theme mechanism obliged you to modify
> a lot of things in the framework, now it's really possible but... It
> will be a pain as well if you don't know how works HTMLRenderer in OFBiz.
>
> Each theme extend the common theme via theme.xml file. In the theme.xml
> file, you can change the html renderer location for all elements (form,
> menu, etc.). Create a specific copy of HTML renderer contained in common
> theme folder to your theme folder and add the path in your theme.xml file.
>
> Then modify HTML renderer to fit to bootstrap.
>
> You'll see that it's in the theme.xml that we define js, css, etc. file
> that could be included in the header and the footer. Now, you can dig
> further and ask for more specific questions.
>
> HTH,
>
> Julien.
>
>
> Le 24/08/2018 à 08:36, Madhi Krishnan a écrit :
> > thank you all ...
> > that helped me a lot...
> >
> > On Sat, Aug 18, 2018 at 4:23 PM, Pierre Smits 
> > wrote:
> >
> >> https://github.com/ORRTIZ/bbasic
> >>
> >>
> >> Best regards,
> >>
> >> Pierre Smits
> >>
> >> Apache Trafodion , Vice President
> >> Apache Directory , PMC Member
> >> Apache Incubator , committer
> >> Apache OFBiz , contributor since 2008
> >> Apache Steve , committer
> >>
> >> On Sat, Aug 18, 2018 at 12:53 PM, Pierre Smits 
> >> wrote:
> >>
> >>> Hi Madhi,
> >>>
> >>> I started something similar in 2016, and made it available on GitHub.
> See
> >>> [1] and take your queue from there.
> >>>
> >>>
> >>> Best regards,
> >>>
> >>> Pierre Smits
> >>>
> >>> Apache Trafodion , Vice President
> >>> Apache Directory , PMC Member
> >>> Apache Incubator , committer
> >>> Apache OFBiz , contributor (without
> >> privileges)
> >>> since 2008
> >>> Apache Steve , committer
> >>>
> >>> On Sat, Aug 18, 2018 at 12:30 PM, Madhi Krishnan <
> >>> madhi.krish...@udyogmandir.in> wrote:
> >>>
>  I think i subject itself tells my doubt..
>  can any one tell how to use bootstarp and other tools to make the UI
> >> more
>  attractive..
> 
> >>>
>
>