2
0
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:
zaqoutabed 2023-06-07 01:39:46 +03:00 committed by Alan
parent d84a531c96
commit ff61e1b4c7

View File

@ -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 {