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;
|
||||
|
||||
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
||||
const isDataChecked = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
||||
if (isDataChecked && hasContactData)
|
||||
const hasChangedTaxData = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
||||
if (hasChangedTaxData && hasContactData)
|
||||
this.checkExistingClient();
|
||||
else this.save();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ const app = require('vn-loopback/server/server');
|
|||
describe('ticket makeInvoice()', () => {
|
||||
let invoice;
|
||||
let ticketId = 11;
|
||||
const okState = 3;
|
||||
|
||||
afterAll(async done => {
|
||||
let ticket = await app.models.Ticket.findById(11);
|
||||
|
@ -11,7 +12,7 @@ describe('ticket makeInvoice()', () => {
|
|||
let ticketTrackings = await app.models.TicketTracking.find({
|
||||
where: {
|
||||
ticketFk: ticketId,
|
||||
stateFk: {neq: 3}
|
||||
stateFk: {neq: okState}
|
||||
},
|
||||
order: 'id DESC'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue