Skip to content

Commit

Permalink
Merge branch 'IMP_invoice_liquidation_column'
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed May 27, 2024
2 parents 90a687a + b50ab96 commit c274ce3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ INVOICES:
PAID_STATUS_OPTION_UNPAID_VERBOSE: Impagada
PAID_STATUS_OPTION_PAID_VERBOSE: Pagada
PAID_STATUS_OPTION_OPEN_VERBOSE: En procés
COMPLEMENTARY_LIQUIDATION: Complementària
HIJACK:
HIJACK_DIALOG_TITLE: Suplantant una altra usuària
USERNAME_LABEL: Usuària a suplantar
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ INVOICES:
PAID_STATUS_OPTION_PAID_VERBOSE: Pagada
PAID_STATUS_OPTION_OPEN_VERBOSE: En proceso
PAID_STATUS_OPTION_UNPAID_VERBOSE: Impagada
COMPLEMENTARY_LIQUIDATION: Complementaria
PRODUCTION:
PRODUCTION_TITLE: Producción
LABEL_CONTRACT: Contrato
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-eu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ INVOICES:
PAID_STATUS_OPTION_PAID_VERBOSE: Ordainduta
COLUMN_INVOICE_NUMBER: Faktura
COLUMN_CONTRACT: Kontratua
COMPLEMENTARY_LIQUIDATION: Osagarria
PRODUCTION:
PRODUCTION_TITLE: Ekoizpena
LEGEND_PRODUCTION: Ekoizpena (kWh)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-gl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ INVOICES:
PAID_STATUS_OPTION_OPEN: En proceso
PAID_STATUS_OPTION_UNPAID: Non
PAID_STATUS_OPTION_UNPAID_VERBOSE: Impaga
COMPLEMENTARY_LIQUIDATION: Complementaria
PRODUCTION:
PRODUCTION_TITLE: Produción
LEGEND_PRODUCTION: Produción (kWh)
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/pages/InvoicesPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ function PaymentStatusCell({ paymentStatus }) {
)
}

function LiquidationCell({ liquidation }) {
const { t } = useTranslation()
if (liquidation === 'COMPLEMENTARY')
return t('INVOICES.COMPLEMENTARY_LIQUIDATION')
return liquidation
}

PaymentStatusCell.propTypes = {
paymentStatus: PropTypes.oneOf(['paid', 'open', 'unpaid']).isRequired,
}
Expand Down Expand Up @@ -167,6 +174,7 @@ export default function InvoicesPage() {
label: t('INVOICES.COLUMN_LIQUIDATION'),
searchable: true,
numeric: false,
view: (invoice) => <LiquidationCell liquidation={invoice.liquidation} />
},
{
id: 'emission_date',
Expand Down
Empty file modified scripts/representa_manage.py
100644 → 100755
Empty file.

0 comments on commit c274ce3

Please sign in to comment.