Fix for invoice number
This commit is contained in:
parent
16ec9fe14a
commit
ac7d65016c
|
|
@ -139,9 +139,7 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
|||
void _onChanged() {
|
||||
_debouncer.run(() {
|
||||
final invoice = widget.viewModel.invoice.rebuild((b) => b
|
||||
..number = widget.viewModel.invoice.isNew
|
||||
? ''
|
||||
: _invoiceNumberController.text.trim()
|
||||
..number = _invoiceNumberController.text.trim()
|
||||
..poNumber = _poNumberController.text.trim()
|
||||
..discount = parseDouble(_discountController.text)
|
||||
..partial = parseDouble(_partialController.text)
|
||||
|
|
|
|||
|
|
@ -97,9 +97,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
void _onChanged() {
|
||||
_debouncer.run(() {
|
||||
final invoice = widget.viewModel.invoice.rebuild((b) => b
|
||||
..number = widget.viewModel.invoice.isNew
|
||||
? ''
|
||||
: _invoiceNumberController.text.trim()
|
||||
..number = _invoiceNumberController.text.trim()
|
||||
..poNumber = _poNumberController.text.trim()
|
||||
..discount = parseDouble(_discountController.text)
|
||||
..partial = parseDouble(_partialController.text)
|
||||
|
|
|
|||
Loading…
Reference in New Issue