mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
bug fixes
This commit is contained in:
parent
c6584e0a6c
commit
ceebb51b54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user