Okay, so I still don't totally understand the code I'm looking at but I am narrowing down problems easier. Also, the advice to check in Demo data first helps remove my production data as the problem. I backed down to SVN 6224 because I use offline payments and that is very broken in the later SVN versions (Jira issue OFBIZ-649). But I still cannot print a PDF with an offline payment type Credit Card. I narrowed the problem down to this code at Line 125 in OrderView.fo.ftl : <#if orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD"> <#assign creditCard = orderPaymentPreference.getRelatedOne("PaymentMethod").getRelatedOne("CreditC ard")> ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCar d)} <#else> ${paymentMethodType.description?if_exists} If I comment out this If statement then the PDF renders. What is happening in this code that would kill an offline credit card payment? FYI, This also does not work in the demo build. There have been great strides in the code, this is just a small nuisance. Mark ------=_NextPart_000_0000_01C6183A.B5C4C820 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)"> <style> <!-- /* Font Definitions */ @font-face {font-family:PMingLiU; panose-1:2 2 3 0 0 0 0 0 0 0;} @font-face {font-family:"\@PMingLiU"; panose-1:2 2 3 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Okay, so I still don’t totally understand the = code I’m looking at but I am narrowing down problems easier. = Also, the advice to check in Demo data first helps remove my production data as = the problem.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I backed down to SVN 6224 because I use offline = payments and that is very broken in the later SVN versions (Jira issue = OFBIZ-649). But I still cannot print a PDF with an offline payment type Credit = Card. I narrowed the problem down to this code at Line 125 in OrderView.fo.ftl = :</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><#if orderPaymentPreference.getString("paymentMethodTypeId") =3D=3D "CREDIT_CARD"> &nbs= p; </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> = &= nbsp; <#assign creditCard =3D orderPaymentPreference.getRelatedOne("PaymentMethod").getRelate= dOne("CreditCard")></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> = &= nbsp; ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditC= ard(creditCard)}</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><#else></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> = &= nbsp; ${paymentMethodType.description?if_exists}</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>If I comment out this If statement then the PDF = renders. What is happening in this code that would kill an offline credit card = payment? This also does not work in the demo build. </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Mark</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> </div> </body> </html> ------=_NextPart_000_0000_01C6183A.B5C4C820-- _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |