mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-17 01:34:37 -04:00
bug fixes
This commit is contained in:
parent
c6584e0a6c
commit
ceebb51b54
@ -762,7 +762,7 @@ function GetReportTemplate2 (invoice,checkMath)
|
|||||||
}
|
}
|
||||||
if (account.country) {
|
if (account.country) {
|
||||||
y += rowHeight;
|
y += rowHeight;
|
||||||
doc.text(left, y, account.country.name);
|
doc.text(left, y, account.country ? account.country.name : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------Publish Client Details block--------------------------------------------
|
//-----------------------------Publish Client Details block--------------------------------------------
|
||||||
@ -1316,7 +1316,7 @@ function GetReportTemplate1 (invoice,checkMath)
|
|||||||
doc.setFontType("normal");
|
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());
|
var AlignLine = MaxWidth-30- (doc.getStringUnitWidth(LineTwo) * doc.internal.getFontSize());
|
||||||
y += rowHeight;
|
y += rowHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user