WIP: feat: refs #7731 modificar columnas #3126

Draft
robert wants to merge 6 commits from 7731-clientViesCode into dev
8 changed files with 6 additions and 23 deletions
Showing only changes of commit b3539e6c6e - Show all commits

View File

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

View File

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

View File

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

View File

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

View File

@ -103,9 +103,6 @@
"quality": {
"type": "number"
},
"isVies": {
"type": "boolean"
},
"isRelevant": {
"type": "boolean"
},

View File

@ -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);

View File

@ -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);

View File

@ -111,9 +111,6 @@
"healthRegister": {
"type": "string"
},
"isVies": {
"type": "boolean"
},
"viesCode": {
"type": "string"
}