added some files

This commit is contained in:
Akash Shah 2018-08-20 23:47:47 -04:00
parent bc81bc8ec1
commit 206524cbb7
3 changed files with 1719 additions and 1719 deletions

File diff suppressed because it is too large Load Diff

View File

@ -188,11 +188,10 @@ export class InvoiceComponent implements OnInit {
const selectedNodes = this.agGrid.api.getSelectedNodes();
if (selectedNodes.length) {
this.chosenInv = selectedNodes.map(node => node.data)[0];
console.log(this.chosenInv)
// console.log (this.chosenInv);
this.astuteClientService.getPODetail(this.chosenInv.ponum).then((poDetails) => {
if (poDetails) {
this.selectedPODetails = poDetails;
console.log(this.chosenInv.invoiceNumber);
this.astuteClientService.getInvoiceDetail(this.chosenInv.invoiceNumber).then ((invoiceDetails) => {
if (invoiceDetails) {
this.selectedInDetails = invoiceDetails;

View File

@ -187,7 +187,8 @@ export class AstuteClientService {
public getInvoiceDetail(invoiceId: string): Promise<any> {
console.log("*** In getInvoiceDetail()");
const url = `${this.invoiceDetailUrl}/${invoiceId}`;
const url = `${this.invoiceDetailUrl}?invoiceNumber=${invoiceId}`;
console.log(url);
return this.http.get(url)
.toPromise()
.then(response => {