mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix(Payments): add currency code to payment entries in edit/new pages.
This commit is contained in:
@@ -41,6 +41,7 @@ export interface IBill {
|
||||
note: string,
|
||||
amount: number,
|
||||
paymentAmount: number,
|
||||
currencyCode: string,
|
||||
|
||||
dueAmount: number,
|
||||
overdueDays: number,
|
||||
|
||||
@@ -43,5 +43,6 @@ export interface IBillReceivePageEntry {
|
||||
amount: number,
|
||||
totalPaymentAmount: number,
|
||||
paymentAmount: number,
|
||||
currencyCode: string,
|
||||
date: Date|string,
|
||||
};
|
||||
@@ -61,6 +61,7 @@ export interface IPaymentReceivePageEntry {
|
||||
amount: number,
|
||||
totalPaymentAmount: number,
|
||||
paymentAmount: number,
|
||||
currencyCode: string,
|
||||
date: Date|string,
|
||||
};
|
||||
|
||||
|
||||
@@ -90,11 +90,12 @@ export default class BillPaymentsPages {
|
||||
return {
|
||||
entryType: 'invoice',
|
||||
billId: bill.id,
|
||||
dueAmount: bill.dueAmount,
|
||||
amount: bill.amount,
|
||||
billNo: bill.billNumber,
|
||||
amount: bill.amount,
|
||||
dueAmount: bill.dueAmount,
|
||||
totalPaymentAmount: bill.paymentAmount,
|
||||
paymentAmount: bill.paymentAmount,
|
||||
currencyCode: bill.currencyCode,
|
||||
date: bill.billDate,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,11 +30,12 @@ export default class PaymentReceivesPages {
|
||||
return {
|
||||
entryType: 'invoice',
|
||||
invoiceId: invoice.id,
|
||||
dueAmount: invoice.dueAmount,
|
||||
amount: invoice.balance,
|
||||
invoiceNo: invoice.invoiceNo,
|
||||
totalPaymentAmount: invoice.paymentAmount,
|
||||
amount: invoice.balance,
|
||||
dueAmount: invoice.dueAmount,
|
||||
paymentAmount: invoice.paymentAmount,
|
||||
totalPaymentAmount: invoice.paymentAmount,
|
||||
currencyCode: invoice.currencyCode,
|
||||
date: invoice.invoiceDate,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user