Add task columns
This commit is contained in:
parent
db393aa146
commit
2ad541ebb2
|
|
@ -999,6 +999,20 @@ class ProductItemFields {
|
|||
static const String custom4 = 'custom4';
|
||||
}
|
||||
|
||||
class TaskItemFields {
|
||||
static const String productKey = 'product_key';
|
||||
static const String description = 'description';
|
||||
static const String rate = 'rate';
|
||||
static const String tax = 'tax';
|
||||
static const String hours = 'hours';
|
||||
static const String lineTotal = 'line_total';
|
||||
static const String discount = 'discount';
|
||||
static const String custom1 = 'custom1';
|
||||
static const String custom2 = 'custom2';
|
||||
static const String custom3 = 'custom3';
|
||||
static const String custom4 = 'custom4';
|
||||
}
|
||||
|
||||
abstract class InvoiceItemEntity
|
||||
implements Built<InvoiceItemEntity, InvoiceItemEntityBuilder> {
|
||||
factory InvoiceItemEntity({String productKey, double quantity}) {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
void initState() {
|
||||
super.initState();
|
||||
_focusNode = FocusScopeNode();
|
||||
_controller = TabController(vsync: this, length: 10);
|
||||
_controller = TabController(vsync: this, length: 11);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -90,10 +90,8 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
Tab(text: localization.quoteDetails),
|
||||
Tab(text: localization.creditDetails),
|
||||
Tab(text: localization.productColumns),
|
||||
Tab(text: localization.totalFields),
|
||||
/*
|
||||
Tab(text: localization.taskColumns),
|
||||
*/
|
||||
Tab(text: localization.totalFields),
|
||||
],
|
||||
),
|
||||
body: AppTabForm(
|
||||
|
|
@ -538,11 +536,30 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
prefix: 'product',
|
||||
),
|
||||
),
|
||||
/*
|
||||
FormCard(
|
||||
child: MultiSelectList(
|
||||
options: [],
|
||||
defaultSelected: [],
|
||||
options: [
|
||||
TaskItemFields.productKey,
|
||||
TaskItemFields.description,
|
||||
TaskItemFields.hours,
|
||||
TaskItemFields.rate,
|
||||
TaskItemFields.tax,
|
||||
TaskItemFields.discount,
|
||||
TaskItemFields.lineTotal,
|
||||
TaskItemFields.custom1,
|
||||
TaskItemFields.custom2,
|
||||
TaskItemFields.custom3,
|
||||
TaskItemFields.custom4,
|
||||
].map((field) => '\$task.$field').toList(),
|
||||
defaultSelected: [
|
||||
TaskItemFields.productKey,
|
||||
TaskItemFields.description,
|
||||
TaskItemFields.rate,
|
||||
TaskItemFields.hours,
|
||||
TaskItemFields.discount,
|
||||
TaskItemFields.tax,
|
||||
TaskItemFields.lineTotal,
|
||||
].map((field) => '\$task.$field').toList(),
|
||||
selected: settings.getFieldsForSection(kPdfFieldsTaskColumns),
|
||||
onSelected: (values) {
|
||||
viewModel.onSettingsChanged(settings.setFieldsForSection(
|
||||
|
|
@ -553,7 +570,6 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
prefix: 'task',
|
||||
),
|
||||
),
|
||||
*/
|
||||
FormCard(
|
||||
child: MultiSelectList(
|
||||
options: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue