mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +00:00
make it translatable
This commit is contained in:
parent
d84a531c96
commit
ff61e1b4c7
@ -333,18 +333,18 @@ export function getPriceListStatusColumn(): ColumnConfig {
|
|||||||
fieldname: 'enabledFor',
|
fieldname: 'enabledFor',
|
||||||
fieldtype: 'Select',
|
fieldtype: 'Select',
|
||||||
render(doc) {
|
render(doc) {
|
||||||
let status = 'None';
|
let status = t`None`;
|
||||||
|
|
||||||
if (doc.buying && !doc.selling) {
|
if (doc.buying && !doc.selling) {
|
||||||
status = 'Buying';
|
status = t`Buying`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doc.selling && !doc.buying) {
|
if (doc.selling && !doc.buying) {
|
||||||
status = 'Selling';
|
status = t`Selling`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doc.buying && doc.selling) {
|
if (doc.buying && doc.selling) {
|
||||||
status = 'Buying & Selling';
|
status = t`Buying & Selling`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user