Added 'accept PO number' option
This commit is contained in:
parent
e3290b7c13
commit
e2322e9c26
|
|
@ -957,6 +957,10 @@ abstract class SettingsEntity
|
|||
@BuiltValueField(wireName: 'custom_sending_email')
|
||||
String get customSendingEmail;
|
||||
|
||||
@nullable
|
||||
@BuiltValueField(wireName: 'accept_client_input_quote_approval')
|
||||
bool get acceptPurchaseOrderNumber;
|
||||
|
||||
bool get hasAddress => address1 != null && address1.isNotEmpty;
|
||||
|
||||
bool get hasLogo => companyLogo != null && companyLogo.isNotEmpty;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -406,14 +406,25 @@ class _ClientPortalState extends State<ClientPortal>
|
|||
onChanged: (value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild(
|
||||
(b) => b..enableClientPortalUploads = value))),
|
||||
BoolDropdownButton(
|
||||
label: localization.vendorDocumentUpload,
|
||||
helpLabel: localization.vendorDocumentUploadHelp,
|
||||
value: settings.enableVendorPortalUploads,
|
||||
iconData: MdiIcons.upload,
|
||||
onChanged: (value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild(
|
||||
(b) => b..enableVendorPortalUploads = value))),
|
||||
if (company.isModuleEnabled(EntityType.vendor))
|
||||
BoolDropdownButton(
|
||||
label: localization.vendorDocumentUpload,
|
||||
helpLabel: localization.vendorDocumentUploadHelp,
|
||||
value: settings.enableVendorPortalUploads,
|
||||
iconData: MdiIcons.upload,
|
||||
onChanged: (value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild(
|
||||
(b) => b..enableVendorPortalUploads = value))),
|
||||
if (company.isModuleEnabled(EntityType.purchaseOrder) &&
|
||||
company.isModuleEnabled(EntityType.quote))
|
||||
BoolDropdownButton(
|
||||
label: localization.acceptPurchaseOrderNumber,
|
||||
helpLabel: localization.acceptPurchaseOrderNumberHelp,
|
||||
value: settings.acceptPurchaseOrderNumber,
|
||||
iconData: Icons.numbers,
|
||||
onChanged: (value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild(
|
||||
(b) => b..acceptPurchaseOrderNumber = value))),
|
||||
if (!state.settingsUIState.isFiltered)
|
||||
BoolDropdownButton(
|
||||
label: localization.storefront,
|
||||
|
|
|
|||
|
|
@ -548,6 +548,7 @@ class SettingsSearch extends StatelessWidget {
|
|||
'domain',
|
||||
'client_document_upload',
|
||||
'vendor_document_upload#2022-07-06',
|
||||
'accept_purchase_order_number#2023-02-02',
|
||||
],
|
||||
[
|
||||
'client_registration',
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'accept_purchase_order_number': 'Accept Purchase Order Number',
|
||||
'accept_purchase_order_number_help':
|
||||
'Enable clients to provide a PO number when approving a quote',
|
||||
'from_email': 'From Email',
|
||||
'show_preview': 'Show Preview',
|
||||
'show_paid_stamp': 'Show Paid Stamp',
|
||||
|
|
@ -94386,6 +94389,14 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]['from_email'] ??
|
||||
_localizedValues['en']['from_email'];
|
||||
|
||||
String get acceptPurchaseOrderNumber =>
|
||||
_localizedValues[localeCode]['accept_purchase_order_number'] ??
|
||||
_localizedValues['en']['accept_purchase_order_number'];
|
||||
|
||||
String get acceptPurchaseOrderNumberHelp =>
|
||||
_localizedValues[localeCode]['accept_purchase_order_number_help'] ??
|
||||
_localizedValues['en']['accept_purchase_order_number_help'];
|
||||
|
||||
// STARTER: lang field - do not remove comment
|
||||
|
||||
String lookup(String key) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue