removed extraneous code
This commit is contained in:
parent
32555c47d0
commit
fef62d59a5
|
@ -23,9 +23,7 @@ module.exports = function(Self) {
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.canBeInvoiced = async id => {
|
Self.canBeInvoiced = async id => {
|
||||||
let $ = Self.app.models;
|
let client = await Self.app.models.Client.findById(id, {fields: ['id', 'isTaxDataChecked', 'hasToInvoice']});
|
||||||
|
|
||||||
let client = await $.Client.findById(id, {fields: ['id', 'isTaxDataChecked', 'hasToInvoice']});
|
|
||||||
if (client.isTaxDataChecked && client.hasToInvoice)
|
if (client.isTaxDataChecked && client.hasToInvoice)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue