1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

bug fixes

This commit is contained in:
Hillel Coren 2014-02-25 16:04:00 +02:00
parent c6584e0a6c
commit ceebb51b54

View File

@ -762,7 +762,7 @@ function GetReportTemplate2 (invoice,checkMath)
}
if (account.country) {
y += rowHeight;
doc.text(left, y, account.country.name);
doc.text(left, y, account.country ? account.country.name : '');
}
//-----------------------------Publish Client Details block--------------------------------------------
@ -1316,7 +1316,7 @@ function GetReportTemplate1 (invoice,checkMath)
doc.setFontType("normal");
var LineTwo= account.address1+' '+account.address2+account.city+' '+account.country.name;
var LineTwo= account.address1+' '+account.address2+account.city+' '+(account.country ? account.country.name : '');
var AlignLine = MaxWidth-30- (doc.getStringUnitWidth(LineTwo) * doc.internal.getFontSize());
y += rowHeight;