mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +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,
|
note: string,
|
||||||
amount: number,
|
amount: number,
|
||||||
paymentAmount: number,
|
paymentAmount: number,
|
||||||
|
currencyCode: string,
|
||||||
|
|
||||||
dueAmount: number,
|
dueAmount: number,
|
||||||
overdueDays: number,
|
overdueDays: number,
|
||||||
|
|||||||
@@ -43,5 +43,6 @@ export interface IBillReceivePageEntry {
|
|||||||
amount: number,
|
amount: number,
|
||||||
totalPaymentAmount: number,
|
totalPaymentAmount: number,
|
||||||
paymentAmount: number,
|
paymentAmount: number,
|
||||||
|
currencyCode: string,
|
||||||
date: Date|string,
|
date: Date|string,
|
||||||
};
|
};
|
||||||
@@ -61,6 +61,7 @@ export interface IPaymentReceivePageEntry {
|
|||||||
amount: number,
|
amount: number,
|
||||||
totalPaymentAmount: number,
|
totalPaymentAmount: number,
|
||||||
paymentAmount: number,
|
paymentAmount: number,
|
||||||
|
currencyCode: string,
|
||||||
date: Date|string,
|
date: Date|string,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -90,11 +90,12 @@ export default class BillPaymentsPages {
|
|||||||
return {
|
return {
|
||||||
entryType: 'invoice',
|
entryType: 'invoice',
|
||||||
billId: bill.id,
|
billId: bill.id,
|
||||||
dueAmount: bill.dueAmount,
|
|
||||||
amount: bill.amount,
|
|
||||||
billNo: bill.billNumber,
|
billNo: bill.billNumber,
|
||||||
|
amount: bill.amount,
|
||||||
|
dueAmount: bill.dueAmount,
|
||||||
totalPaymentAmount: bill.paymentAmount,
|
totalPaymentAmount: bill.paymentAmount,
|
||||||
paymentAmount: bill.paymentAmount,
|
paymentAmount: bill.paymentAmount,
|
||||||
|
currencyCode: bill.currencyCode,
|
||||||
date: bill.billDate,
|
date: bill.billDate,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,11 +30,12 @@ export default class PaymentReceivesPages {
|
|||||||
return {
|
return {
|
||||||
entryType: 'invoice',
|
entryType: 'invoice',
|
||||||
invoiceId: invoice.id,
|
invoiceId: invoice.id,
|
||||||
dueAmount: invoice.dueAmount,
|
|
||||||
amount: invoice.balance,
|
|
||||||
invoiceNo: invoice.invoiceNo,
|
invoiceNo: invoice.invoiceNo,
|
||||||
totalPaymentAmount: invoice.paymentAmount,
|
amount: invoice.balance,
|
||||||
|
dueAmount: invoice.dueAmount,
|
||||||
paymentAmount: invoice.paymentAmount,
|
paymentAmount: invoice.paymentAmount,
|
||||||
|
totalPaymentAmount: invoice.paymentAmount,
|
||||||
|
currencyCode: invoice.currencyCode,
|
||||||
date: invoice.invoiceDate,
|
date: invoice.invoiceDate,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user