mirror of
https://github.com/dyiop/astute.git
synced 2025-04-06 21:30:20 -04:00
made it remaining qty instead of remaining amt
This commit is contained in:
parent
37e2b03121
commit
f896706aac
|
@ -425,7 +425,7 @@
|
|||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success"
|
||||
(click)="addInvoice(inNumIn.value, poNumIn.value, coNumIn.value, pmtStatusIn.value, notesIn.value, certIn.value, 1, new)"
|
||||
(click)="addInvoice(inNumIn.value, poNumIn.value, coNumIn.value, pmtStatusIn.value, newBillAmt, notesIn.value, certIn.value, 1, new)"
|
||||
[disabled]="!(inNumIn.value && poNumIn.value && pmtStatusIn.value && newBillAmt && notesIn.value && certIn.value)">
|
||||
Confirm
|
||||
</button>
|
||||
|
|
|
@ -182,23 +182,21 @@ export class InvoiceComponent implements OnInit {
|
|||
updateNewBillAmt () {
|
||||
let tot = 0;
|
||||
this.newInDetails.forEach((d) => {
|
||||
tot += parseInt(d.qty, 10) * parseInt(d.fee, 10);
|
||||
tot += +d.qty * +d.fee;
|
||||
});
|
||||
this.newBillAmt = tot;
|
||||
}
|
||||
|
||||
assignActity(): void {
|
||||
window.open('/invoice-gen');
|
||||
$(
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
getSelectedRows() {
|
||||
const selectedNodes = this.agGrid.api.getSelectedNodes();
|
||||
if (selectedNodes.length) {
|
||||
this.chosenInv = selectedNodes.map(node => node.data)[0];
|
||||
this.astuteClientService.getPODetail(this.chosenInv.ponum).then((poDetails) => {
|
||||
// console.log (this.chosenInv);
|
||||
this.astuteClientService.getPODetail(this.chosenInv.poNum).then((poDetails) => {
|
||||
if (poDetails) {
|
||||
this.selectedPODetails = poDetails;
|
||||
this.astuteClientService.getInvoiceDetail(this.chosenInv.invoiceNumber).then ((invoiceDetails) => {
|
||||
|
@ -291,6 +289,7 @@ export class InvoiceComponent implements OnInit {
|
|||
"pmtReceivedDate": this.formatDate(new Date()),
|
||||
'invoiceStatus': status
|
||||
};
|
||||
console.log (invData);
|
||||
|
||||
this.astuteClientService.createInvoice(invData)
|
||||
.catch((response) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user