Fix: Receive Payment

Since the amount Behaviour Subject pipe was not being subscribed to
and the original Behaviour Subject as being subscribed,
 amountVal was not being populated. Now it will be.
This was creating problem where amount in receive payment was always 0
Added a check in the backend so that if any part of bill remains unsettled, it will give an error instead of silently accepting and removing the entry.
This commit is contained in:
2020-12-19 09:09:10 +05:30
parent 36915b41c1
commit 8bb6235e67
6 changed files with 19 additions and 15 deletions

View File

@ -192,7 +192,7 @@ export class SalesHomeComponent {
return;
}
const amount = this.bs.amountVal;
const type = this.bs.type();
const type = this.bs.bill.voucherType;
this.dialog
.open(ReceivePaymentComponent, {
data: {