mirror of
https://github.com/dyiop/astute.git
synced 2025-04-06 21:30:20 -04:00
added some files
This commit is contained in:
parent
bc81bc8ec1
commit
206524cbb7
3432
AstuteClient2/package-lock.json
generated
3432
AstuteClient2/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user