Add set_tax_id entity action
This commit is contained in:
parent
60ab68341f
commit
9c9045f824
|
|
@ -131,6 +131,7 @@ class EntityAction extends EnumClass {
|
||||||
static const EntityAction schedule = _$schedule;
|
static const EntityAction schedule = _$schedule;
|
||||||
static const EntityAction updatePrices = _$updatePrices;
|
static const EntityAction updatePrices = _$updatePrices;
|
||||||
static const EntityAction increasePrices = _$increasePrices;
|
static const EntityAction increasePrices = _$increasePrices;
|
||||||
|
static const EntityAction setTaxCategory = _$setTaxCategory;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ const EntityAction _$autoBill = const EntityAction._('autoBill');
|
||||||
const EntityAction _$schedule = const EntityAction._('schedule');
|
const EntityAction _$schedule = const EntityAction._('schedule');
|
||||||
const EntityAction _$updatePrices = const EntityAction._('updatePrices');
|
const EntityAction _$updatePrices = const EntityAction._('updatePrices');
|
||||||
const EntityAction _$increasePrices = const EntityAction._('increasePrices');
|
const EntityAction _$increasePrices = const EntityAction._('increasePrices');
|
||||||
|
const EntityAction _$setTaxCategory = const EntityAction._('setTaxCategory');
|
||||||
|
|
||||||
EntityAction _$valueOf(String name) {
|
EntityAction _$valueOf(String name) {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
|
@ -257,6 +258,8 @@ EntityAction _$valueOf(String name) {
|
||||||
return _$updatePrices;
|
return _$updatePrices;
|
||||||
case 'increasePrices':
|
case 'increasePrices':
|
||||||
return _$increasePrices;
|
return _$increasePrices;
|
||||||
|
case 'setTaxCategory':
|
||||||
|
return _$setTaxCategory;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentError(name);
|
throw new ArgumentError(name);
|
||||||
}
|
}
|
||||||
|
|
@ -343,6 +346,7 @@ final BuiltSet<EntityAction> _$values =
|
||||||
_$schedule,
|
_$schedule,
|
||||||
_$updatePrices,
|
_$updatePrices,
|
||||||
_$increasePrices,
|
_$increasePrices,
|
||||||
|
_$setTaxCategory,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Serializer<EntityAction> _$entityActionSerializer =
|
Serializer<EntityAction> _$entityActionSerializer =
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
// STARTER: lang key - do not remove comment
|
// STARTER: lang key - do not remove comment
|
||||||
|
'set_tax_category': 'Set Tax Category',
|
||||||
'payment_manual': 'Payment Manual',
|
'payment_manual': 'Payment Manual',
|
||||||
'tax_category': 'Tax Category',
|
'tax_category': 'Tax Category',
|
||||||
'physical_goods': 'Physical Goods',
|
'physical_goods': 'Physical Goods',
|
||||||
|
|
@ -99358,6 +99359,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
_localizedValues[localeCode]['payment_manual'] ??
|
_localizedValues[localeCode]['payment_manual'] ??
|
||||||
_localizedValues['en']['payment_manual'];
|
_localizedValues['en']['payment_manual'];
|
||||||
|
|
||||||
|
String get setTaxCategory =>
|
||||||
|
_localizedValues[localeCode]['set_tax_category'] ??
|
||||||
|
_localizedValues['en']['set_tax_category'];
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,8 @@ IconData getEntityActionIcon(EntityAction entityAction) {
|
||||||
return MdiIcons.syncIcon;
|
return MdiIcons.syncIcon;
|
||||||
case EntityAction.increasePrices:
|
case EntityAction.increasePrices:
|
||||||
return MdiIcons.arrowUpBoldBoxOutline;
|
return MdiIcons.arrowUpBoldBoxOutline;
|
||||||
|
case EntityAction.setTaxCategory:
|
||||||
|
return MdiIcons.calculator;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue