Skip to content

Commit

Permalink
make it translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
zaqoutabed authored and 18alantom committed Jun 7, 2023
1 parent d84a531 commit ff61e1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,18 @@ export function getPriceListStatusColumn(): ColumnConfig {
fieldname: 'enabledFor',
fieldtype: 'Select',
render(doc) {
let status = 'None';
let status = t`None`;

if (doc.buying && !doc.selling) {
status = 'Buying';
status = t`Buying`;
}

if (doc.selling && !doc.buying) {
status = 'Selling';
status = t`Selling`;
}

if (doc.buying && doc.selling) {
status = 'Buying & Selling';
status = t`Buying & Selling`;
}

return {
Expand Down

0 comments on commit ff61e1b

Please sign in to comment.