fix: customer & inventory adjustment.

This commit is contained in:
elforjani13
2021-12-28 17:57:50 +02:00
parent 1e472d278a
commit e615f62ef5
5 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ export default function CustomerDetailsHeader() {
<DetailItem
label={<T id={'customer.drawer.label.customer_type'} />}
name={'type'}
children={customer?.customer_type}
children={customer?.formatted_customer_type }
/>
<DetailItem label={<T id={'customer.drawer.label.unused_credits'} />}>
0

View File

@@ -24,7 +24,7 @@ export default function InventoryAdjustmentDetailHeader() {
</DetailItem>
<DetailItem label={intl.get('type')}>
{inventoryAdjustment.type}
{inventoryAdjustment.type_formatted}
</DetailItem>
<DetailItem label={intl.get('adjustment_account')}>

View File

@@ -40,9 +40,9 @@ export const PublishAccessor = (r) => {
* Type column accessor.
*/
export const TypeAccessor = (row) => {
return row.type ? (
return row.type_formatted ? (
<Tag minimal={true} round={true} intent={Intent.NONE}>
{intl.get(row.type)}
{row.type_formatted}
</Tag>
) : (
''

View File

@@ -63,7 +63,7 @@ function ItemsListProvider({ tableState, tableStateChanged, ...props }) {
return (
<DashboardInsider
loading={isItemsLoading || isResourceLoading}
loading={isViewsLoading || isResourceLoading}
name={'items-list'}
>
<ItemsContext.Provider value={state} {...props} />

View File

@@ -1426,7 +1426,7 @@
"cash_flow_transaction.money_out": "سحب من حساب {value}",
"cash_flow_transaction.other_income_account": " حساب الإيرادات الأخرى ",
"cash_flow_transaction.other_expense_account": "حساب مصاريف اخري",
"save_and_publish": "احفظ وانشر",
"save_and_publish": "حفظ ونشر",
"cash_flow_transaction.label_transfer_from_account": "تحويل من الحساب ",
"cash_flow_transaction.label_transfer_to_account": "تحويل إلى الحساب ",
"cash_flow_transaction.label_current_account": "حساب الحالي",