Updated var names
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
df3fbf291b
commit
24becf7872
|
@ -7,8 +7,8 @@ export default class Controller extends Component {
|
||||||
delete this.client.despiteOfClient;
|
delete this.client.despiteOfClient;
|
||||||
|
|
||||||
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
||||||
const isDataChecked = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
const hasChangedTaxData = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
||||||
if (isDataChecked && hasContactData)
|
if (hasChangedTaxData && hasContactData)
|
||||||
this.checkExistingClient();
|
this.checkExistingClient();
|
||||||
else this.save();
|
else this.save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ const app = require('vn-loopback/server/server');
|
||||||
describe('ticket makeInvoice()', () => {
|
describe('ticket makeInvoice()', () => {
|
||||||
let invoice;
|
let invoice;
|
||||||
let ticketId = 11;
|
let ticketId = 11;
|
||||||
|
const okState = 3;
|
||||||
|
|
||||||
afterAll(async done => {
|
afterAll(async done => {
|
||||||
let ticket = await app.models.Ticket.findById(11);
|
let ticket = await app.models.Ticket.findById(11);
|
||||||
|
@ -11,7 +12,7 @@ describe('ticket makeInvoice()', () => {
|
||||||
let ticketTrackings = await app.models.TicketTracking.find({
|
let ticketTrackings = await app.models.TicketTracking.find({
|
||||||
where: {
|
where: {
|
||||||
ticketFk: ticketId,
|
ticketFk: ticketId,
|
||||||
stateFk: {neq: 3}
|
stateFk: {neq: okState}
|
||||||
},
|
},
|
||||||
order: 'id DESC'
|
order: 'id DESC'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue