This commit is contained in:
Hillel Coren 2018-09-03 12:13:51 -07:00
parent 095f5ffe18
commit 15a2ece833
1 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,8 @@ class _PaymentEditState extends State<PaymentEdit> {
final payment = widget.viewModel.payment;
//_amountController.text = payment.amount;
_amountController.text = formatNumber(payment.amount, context,
formatNumberType: FormatNumberType.input);
_transactionReferenceController.text = payment.transactionReference;
_privateNotesController.text = payment.privateNotes;
_controllers.forEach((controller) => controller.addListener(_onChanged));
@ -161,7 +162,8 @@ class _PaymentEditState extends State<PaymentEdit> {
formatNumberType: FormatNumberType.input);
viewModel.onChanged(payment.rebuild((b) => b
..invoiceId = invoiceId
..clientId = invoice.clientId));
..clientId = invoice.clientId
..amount = invoice.balance));
},
)
: Container(),