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

View File

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

View File

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

View File

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

View File

@@ -770,7 +770,7 @@
"qty_on_hand": "Qty on hand",
"adjustment_account": "Adjustment account",
"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_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?",
@@ -1186,10 +1186,13 @@
"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?",
"auto_incrementing_number":"Auto-incrementing number",
"the_inventory_adjustment_has_been_published": "The Inventory adjustment has been published",
"are_sure_to_publish_this_inventory_adjustment": "Are you sure you want to publish this inventory?",
"inventory_adjustment.publish.success_message": "The inventory adjustment has been published successfully.",
"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_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_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"
}