Openbravo Forum End of Life Notice

Dear Openbravo Forum User,

Because of continued very low usage we decided to stop the forums on 31st of August 2017

In case of questions: webmaster "at"

Adding component resource to end of js code


Shankar Balachandran

Posts: 182

Joined: Wed May 05, 2010 8:34 am

Post Tue Jan 13, 2015 5:02 pm

Adding component resource to end of js code

Hi All,
I have created a new module with the name 'com.kailao.newtonPrep.customizations' and added code to modify the receipt as explained in the wiki[1]. But the code OB.OBPOSPointOfSale.Print.ReceiptTemplate = '../com.kailao.newtonPrep.customizations/receipts/printreceipts.xml'; is added before the standard OB object initialization. So there is error in console that OB is not defined. Any solutions for this?

[1] ... _Templates

Jorge Castillo

Site Admin

Posts: 2

Joined: Wed Jan 09, 2013 7:50 am

Post Thu Jan 15, 2015 9:53 am

Re: Adding component resource to end of js code

Hello Shankar

About your question I guess that the problem is that you do not have in your new module a dependency to the Web POS module. Dependencies are very important in the javascript code generation because it defines the order of concatenation. So just add a dependency to Web POS and try again-

Best regards.

Return to Developers

Who is online

Users browsing this forum: No registered users and 5 guests

Website Terms

Designed by ST Software for PTF.