feat: refs #7544 crear evento claim_changeState #2552

Merged
robert merged 8 commits from 7544-claimChangeState into dev 2024-07-10 05:24:02 +00:00
4 changed files with 15 additions and 4 deletions
Showing only changes of commit f8efecd7c4 - Show all commits

View File

@ -6,7 +6,8 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`item_setVisibleDisc
vAddressFk INT)
BEGIN
/**
* Procedimiento para dar dar de baja/alta un item, si vAddressFk es NULL se entiende que se da de alta y se toma el addressFk de la configuración
* Procedimiento para dar dar de baja/alta un item, si vAdressFk es NULL
* se entiende que se da de alta y se toma el addressFk de la configuración
*
* @param vItemFk Identificador del ítem
* @param vWarehouseFk id del warehouse

View File

@ -0,0 +1,6 @@
RENAME TABLE vn.addressShortage TO vn.addressWaste;
ALTER TABLE vn.addressWaste ADD `type` ENUM('internal', 'external') NOT NULL;
INSERT IGNORE INTO vn.addressWaste (addressFk,`type`) VALUES
(2230,'external'),
(5986,'external'),
(7475,'external');

View File

@ -5,7 +5,7 @@
"AddressObservation": {
"dataSource": "vn"
},
"AddressShortage": {
"AddressWaste": {
"dataSource": "vn"
},
"BankEntity": {

View File

@ -1,15 +1,19 @@
{
"name": "AddressShortage",
"name": "AddressWaste",
"base": "VnModel",
"options": {
"mysql": {
"table": "addressShortage"
"table": "addressWaste"
}
},
"properties": {
"addressFk": {
"type": "number",
"id": true
},
"type": {
"type": "string",
"id": true
}
},
"relations": {