2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost`
|
2024-01-15 11:31:03 +00:00
|
|
|
SQL SECURITY DEFINER
|
|
|
|
VIEW `vn`.`itemTaxCountrySpain`
|
|
|
|
AS SELECT `i`.`id` AS `id`,
|
|
|
|
`i`.`name` AS `name`,
|
|
|
|
`i`.`typeFk` AS `typeFk`,
|
|
|
|
`i`.`stems` AS `stems`,
|
|
|
|
`i`.`description` AS `description`,
|
|
|
|
`i`.`intrastatFk` AS `intrastatFk`,
|
|
|
|
`i`.`expenseFk` AS `expenseFk`,
|
|
|
|
`i`.`comment` AS `comment`,
|
|
|
|
`i`.`relevancy` AS `relevancy`,
|
|
|
|
`i`.`image` AS `image`,
|
|
|
|
`i`.`generic` AS `generic`,
|
|
|
|
`itc`.`taxClassFk` AS `taxClassFk`
|
|
|
|
FROM (
|
|
|
|
`vn`.`item` `i`
|
|
|
|
JOIN `vn`.`itemTaxCountry` `itc` ON(`itc`.`itemFk` = `i`.`id`)
|
|
|
|
)
|
|
|
|
WHERE `itc`.`countryFk` = 1
|