fix: inventory adjustment publish messages.

This commit is contained in:
a.bouhuolia
2021-08-07 08:32:52 +02:00
parent a429a78e02
commit 994da28ccd
5 changed files with 12 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ function InventoryAdjustmentPublishAlert({
publishInventoryAdjustmentMutate(inventoryId) publishInventoryAdjustmentMutate(inventoryId)
.then(() => { .then(() => {
AppToaster.show({ AppToaster.show({
message: intl.get('the_inventory_adjustment_has_been_published'), message: intl.get('inventory_adjustment.publish.success_message'),
intent: Intent.SUCCESS, intent: Intent.SUCCESS,
}); });
closeAlert(name); closeAlert(name);
@@ -59,7 +59,7 @@ function InventoryAdjustmentPublishAlert({
loading={isLoading} loading={isLoading}
> >
<p> <p>
<T id={'are_sure_to_publish_this_inventory_adjustment'} /> <T id={'inventory_adjustment.publish.alert_message'} />
</p> </p>
</Alert> </Alert>
); );

View File

@@ -1,6 +1,5 @@
import React from 'react'; import React from 'react';
import CustomerDeleteAlert from 'containers/Alerts/Customers/CustomerDeleteAlert'; import CustomerDeleteAlert from 'containers/Alerts/Customers/CustomerDeleteAlert';
// import CustomerBulkDeleteAlert from 'containers/Alerts/Customers/CustomerBulkDeleteAlert';
import ContactActivateAlert from '../../containers/Alerts/Contacts/ContactActivateAlert'; import ContactActivateAlert from '../../containers/Alerts/Contacts/ContactActivateAlert';
import ContactInactivateAlert from '../../containers/Alerts/Contacts/ContactInactivateAlert'; import ContactInactivateAlert from '../../containers/Alerts/Contacts/ContactInactivateAlert';
@@ -13,7 +12,6 @@ export default function ItemsAlerts() {
<CustomerDeleteAlert name={'customer-delete'} /> <CustomerDeleteAlert name={'customer-delete'} />
<ContactActivateAlert name={'contact-activate'} /> <ContactActivateAlert name={'contact-activate'} />
<ContactInactivateAlert name={'contact-inactivate'} /> <ContactInactivateAlert name={'contact-inactivate'} />
{/* <CustomerBulkDeleteAlert name={'customers-bulk-delete'} /> */}
</div> </div>
); );
} }

View File

@@ -39,14 +39,14 @@ export function ActionsMenu({
/> />
<If condition={original.active}> <If condition={original.active}>
<MenuItem <MenuItem
text={intl.get('inactivate_item')} text={intl.get('inactivate_customer')}
icon={<Icon icon="pause-16" iconSize={16} />} icon={<Icon icon="pause-16" iconSize={16} />}
onClick={safeCallback(onInactivate, original)} onClick={safeCallback(onInactivate, original)}
/> />
</If> </If>
<If condition={!original.active}> <If condition={!original.active}>
<MenuItem <MenuItem
text={intl.get('activate_item')} text={intl.get('activate_customer')}
icon={<Icon icon="play-16" iconSize={16} />} icon={<Icon icon="play-16" iconSize={16} />}
onClick={safeCallback(onActivate, original)} onClick={safeCallback(onActivate, original)}
/> />

View File

@@ -105,7 +105,7 @@ export const ActionsMenu = ({
<If condition={!original.is_published}> <If condition={!original.is_published}>
<MenuItem <MenuItem
icon={<Icon icon={'arrow-to-top'} size={16} />} icon={<Icon icon={'arrow-to-top'} size={16} />}
text={intl.get('publish_expense')} text={intl.get('publish_adjustment')}
onClick={safeCallback(onPublish, original)} onClick={safeCallback(onPublish, original)}
/> />
</If> </If>

View File

@@ -770,7 +770,7 @@
"qty_on_hand": "Qty on hand", "qty_on_hand": "Qty on hand",
"adjustment_account": "Adjustment account", "adjustment_account": "Adjustment account",
"inventory_adjustment_list": "Inventory Adjustment List", "inventory_adjustment_list": "Inventory Adjustment List",
"delete_adjustment": "Delete Adjustment", "delete_adjustment": "Delete adjustment",
"the_make_adjustment_has_been_created_successfully": "The make adjustment has been created successfully.", "the_make_adjustment_has_been_created_successfully": "The make adjustment has been created successfully.",
"the_adjustment_has_been_deleted_successfully": "The adjustment has been deleted successfully.", "the_adjustment_has_been_deleted_successfully": "The adjustment has been deleted successfully.",
"once_delete_this_inventory_a_adjustment_you_will_able_to_restore_it": "Once you delete this inventory a adjustment, you won't be able to restore it later. Are you sure you want to delete this invoice?", "once_delete_this_inventory_a_adjustment_you_will_able_to_restore_it": "Once you delete this inventory a adjustment, you won't be able to restore it later. Are you sure you want to delete this invoice?",
@@ -1186,10 +1186,13 @@
"terms_conditions":"Terms conditions", "terms_conditions":"Terms conditions",
"your_invoice_numbers_are_set_on_auto_increment_mod_are_you_sure_changing_this_setting":"Your invoice numbers are set on auto-increment mod. Are you sure changing this setting?", "your_invoice_numbers_are_set_on_auto_increment_mod_are_you_sure_changing_this_setting":"Your invoice numbers are set on auto-increment mod. Are you sure changing this setting?",
"auto_incrementing_number":"Auto-incrementing number", "auto_incrementing_number":"Auto-incrementing number",
"the_inventory_adjustment_has_been_published": "The Inventory adjustment has been published", "inventory_adjustment.publish.success_message": "The inventory adjustment has been published successfully.",
"are_sure_to_publish_this_inventory_adjustment": "Are you sure you want to publish this inventory?", "inventory_adjustment.publish.alert_message": "Are you sure you want to publish this inventory adjustment?",
"the_contact_has_been_activated_successfully": "The contact has been inactivated successfully.", "the_contact_has_been_activated_successfully": "The contact has been inactivated successfully.",
"the_contact_has_been_inactivated_successfully": "The contact has been inactivated successfully.", "the_contact_has_been_inactivated_successfully": "The contact has been inactivated successfully.",
"are_sure_to_inactive_this_contact": "Are you sure you want to inactive this contact ? You will be able to activate it later", "are_sure_to_inactive_this_contact": "Are you sure you want to inactive this contact ? You will be able to activate it later",
"are_sure_to_activate_this_contact": "Are you sure you want to activate this contact ? You will be able to inactivate it later" "are_sure_to_activate_this_contact": "Are you sure you want to activate this contact ? You will be able to inactivate it later",
"publish_adjustment": "Publish adjustment",
"inactivate_customer": "Inactivate customer",
"activate_customer": "Activate customer"
} }