ajency / cashflow-issue-tracker

Issue Tracker for issues
0 stars 1 forks source link

BUG - On payment of the invoice, the balance did not get updated. #837

Closed HazelColaco19 closed 4 years ago

HazelColaco19 commented 4 years ago

Describe the bug On payment of the invoice, the balance did not get updated

Payment and invoice ID's

Parent Invoice JSOn:

{ "transactionType": "Invoice", "source": "tally", "data": [ { "id": 1, "parentId": 66, "description": "invoice of 222", "lineItemAccountChildCategory": null, "lineItemAccountCategory": "Telephone", "lineItemAccountSubType": "Utilities", "lineItemCategoryId": 79, "amount": 222.2222, "balance": 222, "currency": "USD", "createDate": "2020-06-12", "txnDate": "2020-06-12", "lastModifiedDate": "2020-06-12", "dueDate": "2020-06-12", "paymentStatus": "Pending", "customer": "Latesh" } ] }

PAYMENT Request:

{ "transactionType": "Payment", "source": "tally", "data": [ { "id": 1, "parentId": 66, "parentAccountingCategoryName": "Telephone", "parentAccountingCategoryId": 34, "parentPaymentCategoryType": "Utilities", "lineItemAccountChildCategory": null, "lineItemAccountCategory": "Telephone", "lineItemAccountSubType": "Utilities", "lineItemCategoryId": 79, "amount": 222, "currency": "USD", "createDate": "2020-06-12", "txnDate": "2020-06-12", "lastModifiedDate": "2020-06-12", "customer": "Nutan", "invoiceId": "66", "invoiceLineItemId": 1 } ] }

The Amount in Invoice does not get updated.

image

legred21 commented 4 years ago

issue existed in generating id of invoice. id generated string was having bill id and bill line item id. Fixed by replacing bill id by invoice id and bill line item id by invoice line item id

HazelColaco19 commented 4 years ago

fixed

image