Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,9 @@ private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = fals
// baseUrl/Banking/SpendMoneyTxn/spendMoneyUid/Attachment
public Uri BuildUri(CompanyFile companyFile, Guid spendMoneyUid, Guid? attachmentUid = null, string queryString = null)
{
var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString;
var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty;

return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Banking/SpendMoneyTxn", spendMoneyUid.ToString(), "/Attachment", attchUid, qs));
string text = (string.IsNullOrEmpty(queryString) ? string.Empty : (queryString.StartsWith("?") ? queryString : ("?" + queryString)));
string text2 = (attachmentUid.HasValue ? ("/" + attachmentUid.ToString()) : string.Empty);
return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Banking/SpendMoneyTxn", spendMoneyUid.ToString(), "/Attachment", text2, text));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = fals
// baseUrl/Purchase/Bill/Item/billUid/Attachment
public Uri BuildUri(CompanyFile companyFile, Guid billUid, Guid? attachmentUid = null, string queryString = null)
{
var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString;
var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty;
string text = (string.IsNullOrEmpty(queryString) ? string.Empty : (queryString.StartsWith("?") ? queryString : ("?" + queryString)));
string text2 = (attachmentUid.HasValue ? ("/" + attachmentUid.ToString()) : string.Empty);

return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Item", billUid.ToString(), "/Attachment", attchUid, qs));
return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Item", billUid.ToString(), "/Attachment", text2, text));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = fals
// baseUrl/Purchase/Bill/Miscellaneous/billUid/Attachment
public Uri BuildUri(CompanyFile companyFile, Guid billUid, Guid? attachmentUid = null, string queryString = null)
{
var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString;
var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty;
string text = (string.IsNullOrEmpty(queryString) ? string.Empty : (queryString.StartsWith("?") ? queryString : ("?" + queryString)));
string text2 = (attachmentUid.HasValue ? ("/" + attachmentUid.ToString()) : string.Empty);

return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Miscellaneous", billUid.ToString(), "/Attachment", attchUid, qs));
return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Miscellaneous", billUid.ToString(), "/Attachment", text2, text));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = fals
// baseUrl/Purchase/Bill/Professional/billUid/Attachment
public Uri BuildUri(CompanyFile companyFile, Guid billUid, Guid? attachmentUid = null, string queryString = null)
{
var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString;
var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty;
string text = (string.IsNullOrEmpty(queryString) ? string.Empty : (queryString.StartsWith("?") ? queryString : ("?" + queryString)));
string text2 = (attachmentUid.HasValue ? ("/" + attachmentUid.ToString()) : string.Empty);

return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Professional", billUid.ToString(), "/Attachment", attchUid, qs));
return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Professional", billUid.ToString(), "/Attachment", text2, text));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ private string GenerateQueryString(ErrorLevel errorLevel, bool returnBody = fals
// baseUrl/Purchase/Bill/Service/billUid/Attachment
public Uri BuildUri(CompanyFile companyFile, Guid billUid, Guid? attachmentUid = null, string queryString = null)
{
var qs = string.IsNullOrEmpty(queryString) ? string.Empty : queryString;
var attchUid = attachmentUid.HasValue ? "/" + attachmentUid.ToString() : string.Empty;
string text = (string.IsNullOrEmpty(queryString) ? string.Empty : (queryString.StartsWith("?") ? queryString : ("?" + queryString)));
string text2 = (attachmentUid.HasValue ? ("/" + attachmentUid.ToString()) : string.Empty);

return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Service", billUid.ToString(), "/Attachment", attchUid, qs));
return new Uri(string.Format("{0}/{1}/{2}{3}{4}{5}", companyFile.Uri, "Purchase/Bill/Service", billUid.ToString(), "/Attachment", text2, text));
}
}
}