WIP: feat: refs #7731 modificar columnas #3126
|
@ -16,7 +16,7 @@ BEGIN
|
|||
OR NOT (NEW.socialName <=> OLD.socialName)
|
||||
OR NOT (NEW.street <=> OLD.street)
|
||||
OR NOT (NEW.accountingAccount <=> OLD.accountingAccount)
|
||||
OR NOT (NEW.isVies <=> OLD.isVies)
|
||||
OR NOT (NEW.viesCode <=> OLD.viesCode)
|
||||
OR NOT (NEW.fi <=> OLD.fi)
|
||||
OR NOT (NEW.postcode <=> OLD.postcode)
|
||||
OR NOT (NEW.city <=> OLD.city)
|
||||
|
|
|
@ -8,7 +8,7 @@ BEGIN
|
|||
OR NOT (NEW.street <=> OLD.street)
|
||||
OR NOT (NEW.account <=> OLD.account)
|
||||
OR NOT (NEW.nif <=> OLD.nif)
|
||||
OR NOT (NEW.isVies <=> OLD.isVies)
|
||||
OR NOT (NEW.viesCode <=> OLD.viesCode)
|
||||
OR NOT (NEW.provinceFk <=> OLD.provinceFk)
|
||||
OR NOT (NEW.countryFk <=> OLD.countryFk)
|
||||
OR NOT (NEW.postCode <=> OLD.postCode)
|
||||
|
|
|
@ -40,7 +40,7 @@ AS SELECT `c`.`id` AS `id_cliente`,
|
|||
`c`.`isCreatedAsServed` AS `isCreatedAsServed`,
|
||||
`c`.`hasInvoiceSimplified` AS `hasInvoiceSimplified`,
|
||||
`c`.`salesPersonFk` AS `Id_Trabajador`,
|
||||
`c`.`isVies` AS `vies`,
|
||||
`c`.`viesCode` AS `vies`,
|
||||
`c`.`bankEntityFk` AS `bankEntityFk`,
|
||||
`c`.`typeFk` AS `typeFk`
|
||||
FROM `vn`.`client` `c`
|
||||
|
|
|
@ -73,8 +73,8 @@ module.exports = Self => {
|
|||
type: 'boolean'
|
||||
},
|
||||
{
|
||||
arg: 'isVies',
|
||||
type: 'boolean'
|
||||
arg: 'viesCode',
|
||||
type: 'any'
|
||||
},
|
||||
{
|
||||
arg: 'isToBeMailed',
|
||||
|
@ -103,10 +103,6 @@ module.exports = Self => {
|
|||
{
|
||||
arg: 'hasDailyInvoice',
|
||||
type: 'boolean'
|
||||
},
|
||||
{
|
||||
arg: 'viesCode',
|
||||
type: 'any'
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
|
|
|
@ -103,9 +103,6 @@
|
|||
"quality": {
|
||||
"type": "number"
|
||||
},
|
||||
"isVies": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isRelevant": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
|
@ -67,7 +67,6 @@ describe('Supplier updateFiscalData()', () => {
|
|||
healthRegister,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
options);
|
||||
} catch (e) {
|
||||
expect(e.message).toEqual('You cannot update these fields');
|
||||
|
@ -93,7 +92,6 @@ describe('Supplier updateFiscalData()', () => {
|
|||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
options);
|
||||
|
||||
expect(supplier.account).toEqual(account);
|
||||
|
@ -123,7 +121,6 @@ describe('Supplier updateFiscalData()', () => {
|
|||
healthRegister,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
options);
|
||||
|
||||
expect(supplier.name).toEqual(name);
|
||||
|
|
|
@ -50,9 +50,6 @@ module.exports = Self => {
|
|||
}, {
|
||||
arg: 'healthRegister',
|
||||
type: 'any'
|
||||
}, {
|
||||
arg: 'isVies',
|
||||
type: 'boolean'
|
||||
}, {
|
||||
arg: 'isTrucker',
|
||||
type: 'boolean'
|
||||
|
@ -71,7 +68,7 @@ module.exports = Self => {
|
|||
}
|
||||
});
|
||||
|
||||
Self.updateFiscalData = async(ctx, supplierId, name, nif, account, phone, sageTaxTypeFk, sageWithholdingFk, sageTransactionTypeFk, postCode, street, city, provinceFk, countryFk, supplierActivityFk, healthRegister, isVies, isTrucker, viesCode, options) => {
|
||||
Self.updateFiscalData = async(ctx, supplierId, name, nif, account, phone, sageTaxTypeFk, sageWithholdingFk, sageTransactionTypeFk, postCode, street, city, provinceFk, countryFk, supplierActivityFk, healthRegister, isTrucker, viesCode, options) => {
|
||||
const models = Self.app.models;
|
||||
const {args} = ctx;
|
||||
const myOptions = {};
|
||||
|
@ -105,7 +102,6 @@ module.exports = Self => {
|
|||
countryFk,
|
||||
supplierActivityFk,
|
||||
healthRegister,
|
||||
isVies,
|
||||
isTrucker,
|
||||
viesCode
|
||||
}, myOptions);
|
||||
|
|
|
@ -111,9 +111,6 @@
|
|||
"healthRegister": {
|
||||
"type": "string"
|
||||
},
|
||||
"isVies": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"viesCode": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue