fix the Loan charge pay command payload (#1619)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
68a0c0d6a1
commit
da5d1371e6
@@ -63,15 +63,8 @@ export class ViewChargeComponent {
|
|||||||
*/
|
*/
|
||||||
payCharge() {
|
payCharge() {
|
||||||
const formfields: FormfieldBase[] = [
|
const formfields: FormfieldBase[] = [
|
||||||
new InputBase({
|
|
||||||
controlName: 'amount',
|
|
||||||
label: 'Amount',
|
|
||||||
value: '',
|
|
||||||
type: 'number',
|
|
||||||
required: true
|
|
||||||
}),
|
|
||||||
new DatepickerBase({
|
new DatepickerBase({
|
||||||
controlName: 'dueDate',
|
controlName: 'transactionDate',
|
||||||
label: 'Payment Date',
|
label: 'Payment Date',
|
||||||
value: '',
|
value: '',
|
||||||
type: 'date',
|
type: 'date',
|
||||||
@@ -88,9 +81,9 @@ export class ViewChargeComponent {
|
|||||||
if (response.data) {
|
if (response.data) {
|
||||||
const locale = this.settingsService.language.code;
|
const locale = this.settingsService.language.code;
|
||||||
const dateFormat = this.settingsService.dateFormat;
|
const dateFormat = this.settingsService.dateFormat;
|
||||||
|
const prevTransactionDate: Date = response.data.value.transactionDate;
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
...response.data.value,
|
transactionDate: this.dateUtils.formatDate(prevTransactionDate, dateFormat),
|
||||||
dueDate: this.dateUtils.formatDate(response.data.value.dueDate, dateFormat),
|
|
||||||
dateFormat,
|
dateFormat,
|
||||||
locale
|
locale
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user