mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: handle item error.
This commit is contained in:
@@ -104,6 +104,14 @@ export const handleDeleteErrors = (errors) => {
|
||||
intent: Intent.DANGER,
|
||||
});
|
||||
}
|
||||
if (
|
||||
errors.find((error) => error.type === 'ITEM_HAS_ASSOCIATED_TRANSACTIONS')
|
||||
) {
|
||||
AppToaster.show({
|
||||
message: intl.get('item.error.you_could_not_delete_item_has_associated'),
|
||||
intent: Intent.DANGER,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -1795,13 +1795,10 @@
|
||||
"profit_loss_sheet.percentage_of_row": "% التغير الأفقي",
|
||||
"profit_loss_sheet.percentage_of_expense": "% التغير في المصاريف",
|
||||
"profit_loss_sheet.percentage_of_income": "% التغير الإيرادات",
|
||||
|
||||
"report.balance_sheet_comparison.title": "مقارنة الميزانية العمومية",
|
||||
"report.balance_sheet_comparison.desc": "يعرض أصول الشركة والتزاماتها وحقوق المساهمين في نقطة زمنية محددة مقارنة بالسنة الماضية.",
|
||||
|
||||
"report.profit_loss_sheet_comparison.title": "مقارنة قائمة الدخل",
|
||||
"report.profit_loss_sheet_comparison.desc": "يعرض الإيرادات والتكاليف والمصاريف المتكبدة في نقطة محددة ومقارنة بالعام السابق.",
|
||||
|
||||
"warehouse_locations.label": "المخازن",
|
||||
"warehouse_locations.column.warehouse_name": "اسم المخزن",
|
||||
"warehouse_locations.column.quantity": "الكمية",
|
||||
@@ -2007,5 +2004,6 @@
|
||||
"receipt.branch_button.label": "الفرع: {label}",
|
||||
"receipt.warehouse_button.label": "المخزن: {label}",
|
||||
"warehouse_transfer.empty_status.title": "",
|
||||
"warehouse_transfer.empty_status.description": ""
|
||||
"warehouse_transfer.empty_status.description": "",
|
||||
"item.error.you_could_not_delete_item_has_associated": "لا يمكنك حذف العنصر لديه معاملات مرتبطة به "
|
||||
}
|
||||
@@ -1440,6 +1440,7 @@
|
||||
"AP_aging_summary.filter_options.label": "Filter vendors",
|
||||
"item.error.type_cannot_change_with_item_has_transactions": "Cannot change item type to inventory with item has associated transactions.",
|
||||
"item.error.cannot_change_inventory_account": "Cannot change item inventory account while the item has transactions.",
|
||||
"item.error.you_could_not_delete_item_has_associated":"You could not delete item that has associated transactions",
|
||||
"customer.link.customer_details": "Customer details ({amount})",
|
||||
"bad_debt.dialog.written_off_amount": "Written-off amount",
|
||||
"bad_debt.dialog.bad_debt": "Bad debt",
|
||||
|
||||
Reference in New Issue
Block a user