This commit is contained in:
Hillel Coren 2020-03-05 18:27:11 +02:00
parent 2009524020
commit aca30a489e
2 changed files with 4 additions and 3 deletions

View File

@ -98,7 +98,7 @@ abstract class InvoiceEntity extends Object
privateNotes: '', privateNotes: '',
terms: '', terms: '',
footer: '', footer: '',
designId: '1', designId: '',
taxName1: company?.settings?.defaultTaxName1 ?? '', taxName1: company?.settings?.defaultTaxName1 ?? '',
taxRate1: company?.settings?.defaultTaxRate1 ?? 0.0, taxRate1: company?.settings?.defaultTaxRate1 ?? 0.0,
taxName2: company?.settings?.defaultTaxName2 ?? '', taxName2: company?.settings?.defaultTaxName2 ?? '',

View File

@ -413,8 +413,9 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
invoice.rebuild((b) => b..assignedUserId = userId)), invoice.rebuild((b) => b..assignedUserId = userId)),
), ),
DesignPicker( DesignPicker(
onSelected: (dynamic value) => viewModel.onChanged( initialValue: invoice.designId,
invoice.rebuild((b) => b..designId = value)), onSelected: (value) => viewModel.onChanged(
invoice.rebuild((b) => b..designId = value.id)),
), ),
CustomSurcharges( CustomSurcharges(
surcharge1Controller: _surcharge1Controller, surcharge1Controller: _surcharge1Controller,