Correct product key field
This commit is contained in:
parent
cc993315d6
commit
cbe9d163bf
|
|
@ -53,21 +53,6 @@ class DocumentFields {
|
|||
abstract class DocumentEntity extends Object
|
||||
with BaseEntity, SelectableEntity
|
||||
implements Built<DocumentEntity, DocumentEntityBuilder> {
|
||||
static const ALLOWED_EXTENSIONS = [
|
||||
'png',
|
||||
'svg',
|
||||
'jpeg',
|
||||
'gif',
|
||||
'jpg',
|
||||
'bmp',
|
||||
'txt',
|
||||
'doc',
|
||||
'docx',
|
||||
'xls',
|
||||
'xlsx',
|
||||
'pdf',
|
||||
];
|
||||
|
||||
factory DocumentEntity({String id}) {
|
||||
return _$DocumentEntity._(
|
||||
id: id ?? BaseEntity.nextId,
|
||||
|
|
@ -92,6 +77,21 @@ abstract class DocumentEntity extends Object
|
|||
|
||||
DocumentEntity._();
|
||||
|
||||
static const ALLOWED_EXTENSIONS = [
|
||||
'png',
|
||||
'svg',
|
||||
'jpeg',
|
||||
'gif',
|
||||
'jpg',
|
||||
'bmp',
|
||||
'txt',
|
||||
'doc',
|
||||
'docx',
|
||||
'xls',
|
||||
'xlsx',
|
||||
'pdf',
|
||||
];
|
||||
|
||||
@override
|
||||
@memoized
|
||||
int get hashCode;
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,7 @@ abstract class InvoiceEntity extends Object
|
|||
}
|
||||
|
||||
class ProductItemFields {
|
||||
static const String productKey = 'product_key';
|
||||
static const String item = 'item';
|
||||
static const String description = 'description';
|
||||
static const String unitCost = 'unit_cost';
|
||||
static const String tax = 'tax';
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ class _AccountOverview extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 16),
|
||||
padding: const EdgeInsets.only(top: 16, right: 16, left: 16),
|
||||
child: ListDivider(),
|
||||
),
|
||||
Padding(
|
||||
|
|
@ -282,7 +282,7 @@ class _AccountOverview extends StatelessWidget {
|
|||
),
|
||||
])),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 16),
|
||||
padding: const EdgeInsets.only(top: 16, right: 16, left: 16),
|
||||
child: ListDivider(),
|
||||
),
|
||||
Padding(
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
FormCard(
|
||||
child: MultiSelectList(
|
||||
options: [
|
||||
ProductItemFields.productKey,
|
||||
ProductItemFields.item,
|
||||
ProductItemFields.description,
|
||||
ProductItemFields.quantity,
|
||||
ProductItemFields.unitCost,
|
||||
|
|
@ -535,7 +535,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
|||
ProductItemFields.custom4,
|
||||
].map((field) => '\$product.$field').toList(),
|
||||
defaultSelected: [
|
||||
ProductItemFields.productKey,
|
||||
ProductItemFields.item,
|
||||
ProductItemFields.description,
|
||||
ProductItemFields.unitCost,
|
||||
ProductItemFields.quantity,
|
||||
|
|
|
|||
Loading…
Reference in New Issue