Skip to content

Commit

Permalink
Merge pull request idurar#883 from Gregsai/issues/fix-status-are-not-…
Browse files Browse the repository at this point in the history
…translated-in-RecordPayment

fixed translation issue in RecordPayment (status and payment status)
  • Loading branch information
salahlalami authored Dec 17, 2023
2 parents ad694f6 + 92e9bed commit fbdca04
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export default function Payment({ config, currentItem }) {
currentErp.year || ''
}`}
ghost={false}
tags={<Tag color="volcano">{currentErp.status}</Tag>}
tags={
<Tag color="volcano">
{currentErp.status && translate(currentErp.status)}
</Tag>
}
// subTitle="This is cuurent erp page"
extra={[
<Button
Expand Down Expand Up @@ -102,7 +106,7 @@ export default function Payment({ config, currentItem }) {
<Descriptions.Item label={translate('phone')}>{client.phone}</Descriptions.Item>
<Divider dashed />
<Descriptions.Item label={translate('payment status')}>
{currentErp.paymentStatus}
{currentErp.paymentStatus && translate(currentErp.paymentStatus)}
</Descriptions.Item>
<Descriptions.Item label={translate('sub total')}>
{money.amountFormatter({ amount: currentErp.subTotal })}
Expand Down

0 comments on commit fbdca04

Please sign in to comment.