0
1
Fork 0

Compare commits

...

127 Commits

Author SHA1 Message Date
Guillermo Bonet 6fa75b3abc Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-08-06 09:48:59 +02:00
Guillermo Bonet ce230b1133 Merge pull request 'test → master' (!76) from test into master
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#76
2024-08-06 07:08:53 +00:00
Guillermo Bonet f2ca49b261 Merge pull request 'refactor: refs #7511 Changed dependences' (!75) from dev into test
gitea/hedera-web/pipeline/pr-master Build queued... Details
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#75
2024-08-06 07:08:17 +00:00
Guillermo Bonet a5b8e56506 Merge pull request 'test → master' (!66) from test into master
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#66
2024-07-23 06:23:47 +00:00
Guillermo Bonet 93562bb4dd fix: refs #7704 Bug fix
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-19 10:25:23 +02:00
Guillermo Bonet aaa9d34404 Version increased
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-19 09:40:10 +02:00
Guillermo Bonet de5740856e refactor: refs #7511 Changed dependences
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-test Build queued... Details
2024-07-19 07:50:02 +02:00
Guillermo Bonet 70746995ca Merge pull request 'dev → test' (!69) from dev into test
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#69
2024-07-18 05:59:33 +00:00
Juan Ferrer 90dea8fde9 ci(Jenkinsfile): refs #7643 Tag only master as latest
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-15 10:32:11 +02:00
Guillermo Bonet f57967cd17 Merge pull request 'feat: refs #7704 Change minQuantity' (!67) from 7704-itemMinimalQuantity into dev
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-test Build queued... Details
Reviewed-on: verdnatura/hedera-web#67
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2024-07-12 07:43:13 +00:00
Guillermo Bonet 1c54922692 feat: refs #7704 Refactor
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-07-11 14:33:15 +02:00
Guillermo Bonet 8929f8c55a feat: refs #7704 Refactor
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-07-11 14:32:56 +02:00
Guillermo Bonet 7f2c645682 feat: refs #7704 Refactor
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-07-11 13:36:21 +02:00
Guillermo Bonet 099f494101 feat: refs #7704 Change minQuantity
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-07-11 11:40:11 +02:00
Juan Ferrer ddc5c2adc7 ci: refs #7643 Jenkinsfile code clean
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-07-10 12:48:01 +02:00
Juan Ferrer 16d1e1fd69 ci: refs #7643 Debuild image updated
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-10 12:37:24 +02:00
Juan Ferrer 340c68406c ci: refs #7643 Debuild image updated
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 12:36:35 +02:00
Juan Ferrer c2f7ee1be8 ci: refs #7643 Debuild image updated
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-10 12:30:56 +02:00
Juan Ferrer 4d81b6c5b2 ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-10 12:19:57 +02:00
Juan Ferrer fba0c73402 ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 12:18:05 +02:00
Juan Ferrer 5ac6652663 ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-10 11:31:08 +02:00
Juan Ferrer 21da29ab8d ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-10 11:23:18 +02:00
Juan Ferrer 1f373f1bc3 ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 11:20:59 +02:00
Juan Ferrer 47acbb7ebb ci: refs #7643 Debuild dput debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 11:19:05 +02:00
Juan Ferrer f863d8a897 ci: refs #7643 Debuild debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 11:16:19 +02:00
Juan Ferrer 5186387162 ci: refs #7643 Reprepro debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-10 10:54:47 +02:00
Juan Ferrer fd11c1ea00 ci: refs #7643 Reprepro debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-09 17:31:24 +02:00
Juan Ferrer 8a022aac66 ci: refs #7643 Reprepro debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-09 17:03:57 +02:00
Juan Ferrer ddaff6afe9 ci: refs #7643 Reprepro debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-09 16:55:20 +02:00
Juan Ferrer bdf7a16003 ci: refs #7643 Reprepro debug
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-09 15:43:55 +02:00
Juan Ferrer 3db9314dfd ci: refs #7643 Reprepro debug & docker deploy improve
gitea/hedera-web/pipeline/head This commit looks good Details
2024-07-09 12:16:31 +02:00
Juan Ferrer 7ff9e2e97d ci: refs #7643 Reprepro includedeb improve
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-09 12:04:23 +02:00
Juan Ferrer 0d61a9de03 ci: refs #7643 Reprepro includedeb improve
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-09 11:38:58 +02:00
Juan Ferrer 979b1293a9 ci: refs #7643 Reprepro includedeb fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-09 10:45:22 +02:00
Juan Ferrer 29168a6927 ci: refs #7643 Reprepro & debuild fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-09 10:38:42 +02:00
Juan Ferrer b62185289f ci: refs #7643 Reprepro & debuild fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 14:22:15 +02:00
Juan Ferrer d66047c451 ci: refs #7643 Reprepro & debuild fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 14:20:41 +02:00
Juan Ferrer 03be5f9a56 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 14:11:04 +02:00
Juan Ferrer 96fd08b369 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:55:23 +02:00
Juan Ferrer 36573342b7 ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:43:41 +02:00
Juan Ferrer 14451121ac ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:41:43 +02:00
Juan Ferrer 44a45a25b2 ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:36:39 +02:00
Juan Ferrer 7618e65105 ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:32:42 +02:00
Juan Ferrer 1efb84dd83 ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:20:40 +02:00
Juan Ferrer 90137ab08f ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-05 13:18:18 +02:00
Juan Ferrer b73e292cb0 ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:07:53 +02:00
Juan Ferrer 444732460e ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:05:06 +02:00
Juan Ferrer ab88575c72 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:02:48 +02:00
Juan Ferrer 5cf6ef5b1c ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 13:01:49 +02:00
Juan Ferrer dcf46094f0 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 11:13:03 +02:00
Juan Ferrer c6589989d4 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 11:11:29 +02:00
Juan Ferrer 59e7999385 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 11:10:10 +02:00
Juan Ferrer 756fccaa78 ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 11:09:15 +02:00
Juan Ferrer 7174842cfa ci: refs #7643 Reprepro SSH credentials
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 11:08:44 +02:00
Juan Ferrer d6e7d3b025 ci: refs #7643 Reprepro fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:34:27 +02:00
Juan Ferrer 5bc20e9e05 ci: refs #7643 Reprepro fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:32:08 +02:00
Juan Ferrer 6be7bccff7 ci: refs #7643 Debuild debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:29:35 +02:00
Juan Ferrer bf5ba5dac1 ci: refs #7643 Debuild debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:20:07 +02:00
Juan Ferrer 0d2ac8f9fb ci: refs #7643 Debuild debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:07:37 +02:00
Juan Ferrer cb61ad5d11 ci: refs #7643 Debuild artifact
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-05 10:04:10 +02:00
Juan Ferrer 5abcf9e71d ci: refs #7643 Debuild image fixes
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-05 09:48:29 +02:00
Juan Ferrer 0952a690a5 ci: refs #7643 Debuild image fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 19:19:30 +02:00
Juan Ferrer cc5faf97da ci: refs #7643 Debuild image fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 19:04:04 +02:00
Juan Ferrer 9507292a13 fix: refs #7643 Debuild stage debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 19:00:35 +02:00
Juan Ferrer 17baf12449 fix: refs #7643 Debuild stage debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 18:48:49 +02:00
Juan Ferrer 749189d726 fix: refs #7643 Debuild stage debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-04 18:45:32 +02:00
Juan Ferrer 7a94c3a01e ci: refs #7643 Debuild image fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 18:42:34 +02:00
Juan Ferrer c4977b7997 fix: refs #7643 Debuild stage debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-04 18:10:31 +02:00
Juan Ferrer ca4457bf54 ci: refs #7643 Debuild output
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 16:28:42 +02:00
Juan Ferrer d1c4f9dba2 fix: refs #7643 Debuild stage debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-04 16:21:11 +02:00
Juan Ferrer 921b029b06 fix: refs #7643 Update debuild image
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 11:51:48 +02:00
Juan Ferrer ff63cd11c3 fix: refs #7643 Reprepro stage debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 11:28:29 +02:00
Juan Ferrer 1f1043a43c fix: refs #7643 Reprepro stage debug
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-04 11:24:45 +02:00
Juan Ferrer a868a5b540 fix: refs #7643 Reprepro stage debug
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-07-04 11:15:53 +02:00
Juan Ferrer baa596430e fix: refs #7643 Reprepro stage
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
2024-07-04 11:08:26 +02:00
Guillermo Bonet 5ca765486f Merge pull request 'test → master' (!65) from test into master
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#65
2024-06-25 07:11:48 +00:00
Guillermo Bonet 61fac85554 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-06-25 08:36:13 +02:00
Guillermo Bonet 3a714debfc Merge pull request 'dev → test' (!64) from dev into test
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#64
2024-06-21 12:29:07 +00:00
Guillermo Bonet 647dd09013 Merge pull request 'fix: refs #7498 Download invoice out error' (!63) from 7498-fixInvoiceOuts into dev
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-test Build started... Details
Reviewed-on: verdnatura/hedera-web#63
2024-06-11 06:54:44 +00:00
Guillermo Bonet 05c71c7425 refactor: refs #7498 Version increased
gitea/hedera-web/pipeline/pr-dev Build queued... Details
2024-06-11 08:54:33 +02:00
Guillermo Bonet 90e2b0abb5 refactor: refs #7498 Deleted method
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-06-07 08:51:03 +02:00
Guillermo Bonet bcbbee411f fix: refs #7498 Download invoice out error
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-05-29 10:45:34 +02:00
Guillermo Bonet 961ff02053 Merge pull request 'test' (!61) from test into master
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#61
2024-05-28 06:22:39 +00:00
Guillermo Bonet e7eb2a01fe Merge branch 'master' into test
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-05-28 06:20:48 +00:00
Juan Ferrer 98cefc8f0f feat: refs #7442 Kubernetes deploy
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-05-27 10:11:41 +02:00
Juan Ferrer e40a28b649 feat: refs #7442 Kubernetes deploy
gitea/hedera-web/pipeline/head Build queued... Details
gitea/hedera-web/pipeline/pr-master Build queued... Details
2024-05-27 10:11:03 +02:00
Guillermo Bonet f869e7413c Merge branch 'dev' into test
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-05-27 07:18:04 +02:00
Guillermo Bonet 29e800ea30 refs #7039 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-test There was a failure building this commit Details
2024-05-27 07:15:44 +02:00
Robert Ferrús 1eb98b772a Merge pull request 'feat: refs #7039 change country to name' (!57) from 7039-country-country into dev
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#57
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
2024-05-15 09:04:33 +00:00
Guillermo Bonet 1fe6816c08 Version increased
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-05-14 14:17:26 +02:00
Javi Gallego 5bbc342471 package
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-05-14 13:37:32 +02:00
Javi Gallego d808fa71d1 changeLog
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-05-14 13:25:46 +02:00
Juan Ferrer ac226205b0 Merge pull request 'feat: refs #7108 deletes exchange-rate' (!59) from 7108 into test
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#59
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-05-14 08:51:27 +00:00
Guillermo Bonet 87f17409f7 Merge pull request 'test → master' (!60) from test into master
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#60
2024-05-14 07:20:35 +00:00
Javi Gallego ae70cbaaf4 feat: refs #7108 deletes exchange-rate
gitea/hedera-web/pipeline/pr-test This commit looks good Details
2024-05-09 09:20:07 +02:00
Guillermo Bonet 6e1613a26c Merge branch '7039-country-country' of https://gitea.verdnatura.es/verdnatura/hedera-web into 7039-country-country
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-05-07 14:05:45 +02:00
Guillermo Bonet 359ddb5d18 Fix 2024-05-07 14:05:44 +02:00
Guillermo Bonet d75fe3fc00 Merge branch 'dev' into 7039-country-country
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-05-07 11:54:14 +00:00
Guillermo Bonet e6cd88ee82 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/hedera-web into test
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-05-07 13:53:37 +02:00
Guillermo Bonet a405cba00b Version increased 2024-05-07 13:53:36 +02:00
Guillermo Bonet e4f55ca9e9 Merge pull request 'dev → test' (!58) from dev into test
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#58
2024-05-07 11:51:00 +00:00
Robert Ferrús d8ea9134d4 feat: refs #7039 change country to name
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-05-07 07:29:00 +02:00
Guillermo Bonet a96859b6bb Merge pull request 'refactor: refs #7258 Deleted dependences of vn2008' (!56) from 7258-byeViewsVn2008 into dev
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-test This commit looks good Details
Reviewed-on: verdnatura/hedera-web#56
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-05-02 07:55:34 +00:00
Guillermo Bonet e210a09f6b Merge branch 'dev' into 7258-byeViewsVn2008
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-04-24 08:16:20 +00:00
Guillermo Bonet 5304a77f94 Merge branch 'test' into dev
gitea/hedera-web/pipeline/head This commit looks good Details
2024-04-24 10:06:48 +02:00
Guillermo Bonet 3f63da06f1 fix: refs #6492 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-04-24 10:00:25 +02:00
Guillermo Bonet 7d120598bc refactor: refs #7258 Deleted dependences of vn2008
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-04-24 07:55:52 +02:00
Juan Ferrer 4cf91140f7 Merge pull request '#6492 replace procedure' (!55) from 6492-useAgencyVolume into master
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#55
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-04-23 14:08:14 +00:00
Jorge Penadés 06554b7dee fix: refs #6492 replace procedure
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-04-23 12:02:04 +02:00
Juan Ferrer 83c6886ee6 feat(catalog): refs #7222 Set image aspect ratio to 1:1
gitea/hedera-web/pipeline/head This commit looks good Details
2024-04-17 10:10:40 +02:00
Jorge Penadés 4765bc78de Merge pull request 'feat: refs #6492 replace procedure' (!54) from 6492-replaceAgencyVolume into dev
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#54
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-04-12 06:49:16 +00:00
Jorge Penadés 0a9635feb2 feat: refs #6492 replace procedure
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-04-10 12:41:45 +02:00
Jorge Penadés 00c8e4b1e3 feat: refs #6492 replace procedure
gitea/hedera-web/pipeline/pr-dev This commit looks good Details
2024-04-10 12:35:44 +02:00
Guillermo Bonet 1414b6c96e refactor: refs #5167 Version increased
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-03-21 07:15:28 +01:00
Guillermo Bonet 244b3f939e Merge pull request 'refactor: refs #5167 Deleted provinces section' (!51) from 5167-removedProvince into master
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#51
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-03-21 06:03:58 +00:00
Guillermo Bonet 1d2f9061c5 refactor: refs #5167 Requested changes
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-03-11 13:23:07 +01:00
Guillermo Bonet a121750fa7 refactor: refs #5167 Deleted provinces section
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-03-11 08:52:43 +01:00
Guillermo Bonet 73ba16634e refactor: refs #5167 Deleted provinces section
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2024-03-11 08:50:35 +01:00
Juan Ferrer 2515cbcee7 ci: HOTFIX Use version to tag docker images
gitea/hedera-web/pipeline/head This commit looks good Details
2024-02-22 09:41:39 +01:00
Juan Ferrer d1cdba800d Jenkinsfile refactor
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-02-22 09:25:38 +01:00
Juan Ferrer 02ddc87755 version increased
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-02-22 09:03:28 +01:00
Juan Ferrer 7689be689f Merge branch 'master' into test
gitea/hedera-web/pipeline/pr-master This commit looks good Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-02-22 08:56:16 +01:00
Juan Ferrer 33778629e6 Merge pull request 'dev' (!49) from dev into test
gitea/hedera-web/pipeline/head There was a failure building this commit Details
gitea/hedera-web/pipeline/pr-master There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#49
2024-02-15 12:35:15 +00:00
Juan Ferrer 496061fb3c refs #6200 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2023-10-10 14:17:50 +02:00
Juan Ferrer 0b85c1230a Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/hedera-web
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2023-10-10 12:46:42 +02:00
Juan Ferrer 3ed871cb4c refs #6200 fix 2023-10-10 12:46:05 +02:00
Juan Ferrer c7159a1e13 Merge pull request 'refs #6200 test into master' (!46) from test into master
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details
Reviewed-on: verdnatura/hedera-web#46
2023-10-10 08:21:49 +00:00
39 changed files with 134 additions and 300 deletions

100
Jenkinsfile vendored
View File

@ -1,34 +1,25 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def BRANCH_ENV = [
test: 'test',
master: 'production'
]
def remote = [:]
node {
stage('Setup') {
env.NODE_ENV = BRANCH_ENV[env.BRANCH_NAME] ?: 'dev'
echo "NODE_NAME: ${env.NODE_NAME}"
echo "WORKSPACE: ${env.WORKSPACE}"
}
}
pipeline { pipeline {
agent any agent any
environment { environment {
PROJECT_NAME = 'hedera-web' PROJECT_NAME = 'hedera-web'
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
} }
stages { stages {
stage('Checkout') {
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
switch (env.BRANCH_NAME) {
case 'master':
env.NODE_ENV = 'production'
env.MAIN_REPLICAS = 3
env.CRON_REPLICAS = 1
break
case 'test':
env.NODE_ENV = 'test'
env.MAIN_REPLICAS = 1
env.CRON_REPLICAS = 0
break
}
}
setEnv()
}
}
stage('Debuild') { stage('Debuild') {
when { when {
anyOf { anyOf {
@ -38,31 +29,28 @@ pipeline {
} }
agent { agent {
docker { docker {
image 'registry.verdnatura.es/debuild:2.23.4-vn1' image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn7'
registryUrl 'https://registry.verdnatura.es/' registryUrl 'https://registry.verdnatura.es/'
registryCredentialsId 'docker-registry' registryCredentialsId 'docker-registry'
args '-v /mnt/appdata/reprepro:/reprepro'
} }
} }
steps { steps {
sh 'debuild -us -uc -b' sh 'debuild -us -uc -b'
sh 'vn-includedeb bookworm' sh 'mkdir -p debuild'
} sh 'mv ../hedera-web_* debuild'
}
stage('Container') { script {
when { def files = findFiles(glob: 'debuild/*.changes')
anyOf { files.each { file -> env.CHANGES_FILE = file.name }
branch 'master' }
branch 'test'
configFileProvider([
configFile(fileId: "dput.cf", variable: 'DPUT_CONFIG')
]) {
sshagent(credentials: ['jenkins-agent']) {
sh 'dput --config "$DPUT_CONFIG" verdnatura "debuild/$CHANGES_FILE"'
}
} }
}
environment {
CREDS = credentials('docker-registry')
}
steps {
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker-compose push'
} }
} }
stage('Deploy') { stage('Deploy') {
@ -73,15 +61,41 @@ pipeline {
} }
} }
environment { environment {
DOCKER_HOST = "${env.SWARM_HOST}" CREDS = credentials('docker-registry')
IMAGE = "$REGISTRY/verdnatura/hedera-web"
} }
steps { steps {
sh "docker stack deploy --with-registry-auth --compose-file docker-compose.yml ${env.STACK_NAME}" script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "${packageJson.version}"
env.TAG = "${packageJson.version}-build${env.BUILD_ID}"
}
sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker push $IMAGE:$TAG'
script {
if (env.BRANCH_NAME == 'master') {
sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
sh 'docker push $IMAGE:latest'
}
}
withKubeConfig([
serverUrl: "$KUBERNETES_API",
credentialsId: 'kubernetes',
namespace: 'salix'
]) {
sh 'kubectl set image deployment/hedera-web-$BRANCH_NAME hedera-web-$BRANCH_NAME=$IMAGE:$TAG'
sh 'kubectl set image deployment/hedera-web-cron-$BRANCH_NAME hedera-web-cron-$BRANCH_NAME=$IMAGE:$TAG'
}
} }
} }
} }
post { post {
unsuccessful { unsuccessful {
setEnv()
sendEmail() sendEmail()
} }
} }

View File

@ -1,36 +1,58 @@
# Hedera # Hedera
Hedera is the main web page for Verdnatura. Hedera is the main web shop page for Verdnatura.
## Getting Started ## Prerequisites
Required dependencies. Required applications.
* PHP >= 7.0 * PHP >= 8.4
* Node.js >= 8.0 * Node.js >= 20.0
### Web application Take a look to *debian/control* file to see additional dependencies.
Launch fronted. Copy config.php to *config.my.php* and place your DB config there.
### Installing dependencies and launching
Pull from repository.
Run this commands on project root directory to install Node dependencies.
``` ```
npm run front $ npm install
``` ```
Launch backend. Install project dependences (debian/control).
Pull from repository [php-vn-lib](https://gitea.verdnatura.es/verdnatura/php-vn-lib) and install [dependences](https://gitea.verdnatura.es/verdnatura/php-vn-lib/src/branch/master/debian/control) of this project.
Configure config.php file.
Launch project fronted.
``` ```
npm run db $ npm run front
npm run back ```
php -S 127.0.0.1:3001 -t . index.php
Launch salix backend.
```
$ npm run db
$ npm run back
```
Launch project backend.
```
$ php -S 127.0.0.1:3001 -t . index.php
``` ```
### Command line ### Command line
Run server side method from command line. Run server side method from command line.
``` ```
php hedera-web.php -m method_path $ php hedera-web.php -m method_path
``` ```
## Built with ## Built with
* [nodejs](https://nodejs.org/)
* [php](https://www.php.net/)
* [Webpack](https://webpack.js.org/) * [Webpack](https://webpack.js.org/)
* [MooTools](https://mootools.net/) * [MooTools](https://mootools.net/)
* [TinyMCE](https://www.tinymce.com/) * [TinyMCE](https://www.tinymce.com/)

View File

@ -12,6 +12,8 @@
* *
* - http://www.mydomain.org -> config.www.php * - http://www.mydomain.org -> config.www.php
* - http://test.mydomain.org -> config.test.php * - http://test.mydomain.org -> config.test.php
*
* Put the password in base64.
*/ */
return [ return [
/** /**
@ -22,7 +24,7 @@ return [
,'port' => 3306 ,'port' => 3306
,'schema' => 'hedera' ,'schema' => 'hedera'
,'user' => 'hedera-web' ,'user' => 'hedera-web'
,'pass' => '' ,'pass' => '' // base64 encoded
,'tz' => 'Europe/madrid' ,'tz' => 'Europe/madrid'
] ]
]; ];

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (23.40.6) stable; urgency=low hedera-web (24.14.11) stable; urgency=low
* Initial Release. * Initial Release.

1
debian/cron.d vendored
View File

@ -3,7 +3,6 @@ MAILTO=webmaster
*/2 * * * * root hedera-web.php -m edi/load */2 * * * * root hedera-web.php -m edi/load
0 23 * * * root hedera-web.php -m edi/clean 0 23 * * * root hedera-web.php -m edi/clean
0 5 * * * root hedera-web.php -m edi/update 0 5 * * * root hedera-web.php -m edi/update
0 5 * * * root hedera-web.php -m misc/exchange-rate
0 0 * * * root hedera-web.php -m image/sync 0 0 * * * root hedera-web.php -m image/sync
0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null 0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null
0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null 0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null

View File

@ -1,47 +1,9 @@
version: '3.7' version: '3.7'
services: services:
main: main:
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?} image: registry.verdnatura.es/verdnatura/hedera-web:${TAG:?}
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args: args:
- VERSION=${VERSION:?} - VERSION=${VERSION:?}
ports:
- 80
configs:
- source: config
target: /etc/hedera-web/config.my.php
volumes:
- /mnt/appdata:/mnt/storage
- /mnt/appdata/image:/var/lib/hedera-web/image-db
- /mnt/appdata/vn-access:/var/lib/hedera-web/vn-access
deploy:
replicas: ${MAIN_REPLICAS:?}
placement:
constraints:
- node.role == worker
resources:
limits:
memory: 2G
cron:
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
command: 'cron -f'
configs:
- source: config
target: /etc/hedera-web/config.my.php
volumes:
- /mnt/appdata:/mnt/storage
- /mnt/appdata/image:/var/lib/hedera-web/image-db
deploy:
replicas: ${CRON_REPLICAS:?}
placement:
constraints:
- node.role == worker
resources:
limits:
memory: 1G
configs:
config:
external: true
name: ${PROJECT_NAME:?}-${BRANCH_NAME:?}

View File

@ -65,8 +65,8 @@
one-way="true" one-way="true"
one-time="true"> one-time="true">
<db-model property="model"> <db-model property="model">
SELECT id, country FROM vn.country SELECT id, name FROM vn.country
ORDER BY country ORDER BY name
</db-model> </db-model>
</htk-combo> </htk-combo>
</div> </div>

View File

@ -3,12 +3,5 @@ import './style.scss';
export default new Class({ export default new Class({
Extends: Hedera.Form, Extends: Hedera.Form,
Template: require('./ui.xml'), Template: require('./ui.xml'),
onShowClick(column, agencyId) {
this.hash.setAll({
form: 'agencies/provinces',
agency: agencyId
});
}
}); });

View File

@ -1,5 +1,4 @@
ListByAgency: Paquets per agència ListByAgency: Paquets per agència
ShowByProvince: Mostrar desglose per província
Agency: Agència Agency: Agència
Exps: Exps. Exps: Exps.
Bundles: Paquets Bundles: Paquets

View File

@ -1,5 +1,4 @@
ListByAgency: Bundles by agency ListByAgency: Bundles by agency
ShowByProvince: Show breakdown by province
Agency: Agency Agency: Agency
Exps: Exps. Exps: Exps.
Bundles: Bundles Bundles: Bundles

View File

@ -1,5 +1,4 @@
ListByAgency: Bultos por agencia ListByAgency: Bultos por agencia
ShowByProvince: Mostrar desglose por provincia
Agency: Agencia Agency: Agencia
Exps: Exps. Exps: Exps.
Bundles: Bultos Bundles: Bultos

View File

@ -1,5 +1,4 @@
ListByAgency: Liste par agence ListByAgency: Liste par agence
ShowByProvince: Montrer par province
Agency: Agence Agency: Agence
Exps: Expéditeur Exps: Expéditeur
Bundles: Cartons Bundles: Cartons

View File

@ -1,5 +1,4 @@
ListByAgency: Bultos por agencia ListByAgency: Bultos por agencia
ShowByProvince: Mostrar desglosse por Distrito
Agency: Agencia Agency: Agencia
Exps: Exps. Exps: Exps.
Bundles: Bultos Bundles: Bultos

View File

@ -7,14 +7,9 @@
<htk-grid> <htk-grid>
<db-model property="model"> <db-model property="model">
<custom> <custom>
CALL vn2008.agencia_volume () CALL vn.agencyVolume()
</custom> </custom>
</db-model> </db-model>
<htk-column-button
column="agency_id"
icon="search"
tip="_ShowByProvince"
on-clicked="onShowClick"/>
<htk-column-text title="_Agency" column="Agencia"/> <htk-column-text title="_Agency" column="Agencia"/>
<htk-column-spin title="_Exps" column="expediciones"/> <htk-column-spin title="_Exps" column="expediciones"/>
<htk-column-spin title="_Bundles" column="Bultos"/> <htk-column-spin title="_Bundles" column="Bultos"/>

View File

@ -1,7 +0,0 @@
import './style.scss';
export default new Class({
Extends: Hedera.Form,
Template: require('./ui.xml')
});

View File

@ -1,6 +0,0 @@
ByProvince: Desglose per província
Return: Tornar
SelectAgency: Selecciona una agència al llistat de l'esquerra
Province: Província
Expeditions: Exps.
Left: Falten

View File

@ -1,6 +0,0 @@
ByProvince: Breakdown by province
Return: Return
SelectAgency: Select an agency
Province: Province
Expeditions: Exps.
Left: Left

View File

@ -1,6 +0,0 @@
ByProvince: Desglose por provincia
Return: Volver
SelectAgency: Selecciona una agencia
Province: Provincia
Expeditions: Exps.
Left: Faltan

View File

@ -1,6 +0,0 @@
ByProvince: Par province
Return: Retour
SelectAgency: Sélectionnez une agence
Province: Province
Expeditions: Expéditions
Left: Restant

View File

@ -1,6 +0,0 @@
ByProvince: Desglosse por Distritos
Return: Voltar
SelectAgency: Seleccione uma agência
Province: Distrito
Expeditions: Exps.
Left: Faltam

View File

@ -1,18 +0,0 @@
<vn>
<div id="title">
<h1><t>ByProvince</t></h1>
</div>
<div id="form" class="provinces vn-w-sm">
<div class="box">
<htk-grid>
<db-model property="model" lot="hash">
CALL vn2008.desglose_volume(#agency)
</db-model>
<htk-column-text title="_Province" column="Provincia"/>
<htk-column-spin title="_Expeditions" column="expediciones"/>
<htk-column-spin title="_Bundles" column="Bultos"/>
<htk-column-spin title="_Left" column="Prevision"/>
</htk-grid>
</div>
</div>
</vn>

View File

@ -275,7 +275,7 @@
} }
& > .htk-image { & > .htk-image {
width: 100%; width: 100%;
height: 180px; height: 210px;
& > img { & > img {
height: initial; height: initial;

View File

@ -117,7 +117,7 @@
SELECT i.id, i.longName item, i.subName, SELECT i.id, i.longName item, i.subName,
i.tag5, i.value5, i.tag6, i.value6, i.tag5, i.value5, i.tag6, i.value6,
i.tag7, i.value7, i.tag8, i.value8, i.tag7, i.value7, i.tag8, i.value8,
i.relevancy, i.size, i.category, i.minQuantity, i.relevancy, i.size, i.category, b.minQuantity,
k.name ink, p.name producer, o.name origin, k.name ink, p.name producer, o.name origin,
b.available, b.price, b.`grouping`, b.available, b.price, b.`grouping`,
i.image, im.updated i.image, im.updated
@ -126,19 +126,13 @@
LEFT JOIN vn.ink k ON k.id = i.inkFk LEFT JOIN vn.ink k ON k.id = i.inkFk
LEFT JOIN vn.producer p ON p.id = i.producerFk LEFT JOIN vn.producer p ON p.id = i.producerFk
LEFT JOIN vn.origin o ON o.id = i.originFk LEFT JOIN vn.origin o ON o.id = i.originFk
LEFT JOIN image im LEFT JOIN image im ON im.collectionFk = 'catalog'
ON im.collectionFk = 'catalog'
AND im.name = i.image AND im.name = i.image
WHERE b.available > 0 WHERE b.available > 0
ORDER BY i.relevancy DESC, i.name, i.size ORDER BY i.relevancy DESC, i.name, i.size
LIMIT 5000; LIMIT 5000;
DROP TEMPORARY TABLE DROP TEMPORARY TABLE tmp.item;
tmp.item, CALL vn.ticketCalculatePurge();
tmp.ticketCalculateItem,
tmp.ticketComponentPrice,
tmp.ticketComponent,
tmp.ticketLot,
tmp.zoneGetShipped;
</db-model> </db-model>
<db-form id="$card" v-model="card" model="items"/> <db-form id="$card" v-model="card" model="items"/>
<vn-lot id="card-lot"/> <vn-lot id="card-lot"/>

View File

@ -120,7 +120,7 @@
form-id="iter" form-id="iter"
on-change="onAddressChange"> on-change="onAddressChange">
<db-model property="model" id="addresses"> <db-model property="model" id="addresses">
SELECT a.id, a.nickname, p.name province, a.city, a.street, a.isActive, c.country SELECT a.id, a.nickname, p.name province, a.city, a.street, a.isActive, c.name
FROM myAddress a FROM myAddress a
LEFT JOIN vn.province p ON p.id = a.provinceFk LEFT JOIN vn.province p ON p.id = a.provinceFk
JOIN vn.country c ON c.id = p.countryFk JOIN vn.country c ON c.id = p.countryFk

View File

@ -3,30 +3,17 @@ import './style.scss';
export default new Class({ export default new Class({
Extends: Hedera.Form, Extends: Hedera.Form,
Template: require('./ui.xml'), Template: require('./ui.xml'),
donwloadRenderer(column, invoice) {
var invoiceId = invoice.$.id;
if (invoice.$.hasPdf && invoiceId) { onDownloadClick(column, value, row) {
var params = { var model = this.$.invoices;
srv: 'rest:dms/invoice', var hasPdf = model.get(row, 'hasPdf');
invoice: invoiceId, var id = model.get(row, 'id');
access_token: this.conn.token
};
Object.assign(column, { if (hasPdf && id) {
tip: _('Download PDF'), let params = Vn.Url.makeUri({ access_token: this.conn.token });
disabled: false, window.open(`/api/InvoiceOuts/${id}/download?${params}`);
icon: 'download',
href: '?'+ Vn.Url.makeUri(params)
});
} else } else
Object.assign(column, { Htk.Toast.showWarning(_('Request the invoice to your salesperson'));
tip: _('Request the invoice to your salesperson'),
disabled: true,
icon: 'warning',
href: null
});
} }
}); });

View File

@ -6,7 +6,7 @@
<htk-grid <htk-grid
class="box vn-w-sm" class="box vn-w-sm"
show-header="false"> show-header="false">
<db-model property="model" id="tickets"> <db-model property="model" id="invoices">
SELECT id, ref, issued, amount, hasPdf SELECT id, ref, issued, amount, hasPdf
FROM myInvoice FROM myInvoice
ORDER BY issued DESC ORDER BY issued DESC
@ -16,8 +16,9 @@
<htk-column-date title="_Date" column="issued" format="_%e %b %Y"/> <htk-column-date title="_Date" column="issued" format="_%e %b %Y"/>
<htk-column-spin title="_Import" column="amount" unit="€" digits="2"/> <htk-column-spin title="_Import" column="amount" unit="€" digits="2"/>
<htk-column-button <htk-column-button
renderer="donwloadRenderer" icon="download"
target="_blank"/> tip="_Download PDF"
on-clicked="onDownloadClick"/>
</htk-grid> </htk-grid>
</div> </div>
</vn> </vn>

View File

@ -26,8 +26,8 @@
<label><t>Realm</t></label> <label><t>Realm</t></label>
<htk-combo form="lot" column="realm" not-null="false"> <htk-combo form="lot" column="realm" not-null="false">
<db-model property="model"> <db-model property="model">
SELECT id, reino FROM vn2008.reinos SELECT id, name FROM vn.itemCategory
WHERE display != FALSE ORDER BY reino WHERE display ORDER BY name
</db-model> </db-model>
</htk-combo> </htk-combo>
</div> </div>

View File

@ -25,9 +25,9 @@
on-ready="this.onConfigChange()"> on-ready="this.onConfigChange()">
<db-model property="model"> <db-model property="model">
SELECT c.id, c.name reportTitle, c.namePrefix, c.warehouse, c.family, SELECT c.id, c.name reportTitle, c.namePrefix, c.warehouse, c.family,
c.shelf, c.maxAmount, c.showPacking, c.stack, t.reino_id realm c.shelf, c.maxAmount, c.showPacking, c.stack, it.categoryFk realm
FROM shelfConfig c FROM shelfMultiConfig c
JOIN vn2008.Tipos t ON t.tipo_id = c.family JOIN vn.itemType it ON it.id = c.family
</db-model> </db-model>
</htk-combo> </htk-combo>
</div> </div>
@ -39,8 +39,8 @@
<label><t>Reign</t></label> <label><t>Reign</t></label>
<htk-combo form="lot" name="realm"> <htk-combo form="lot" name="realm">
<db-model property="model"> <db-model property="model">
SELECT id, reino FROM vn2008.reinos SELECT id, name FROM vn.itemCategory
WHERE display != FALSE ORDER BY reino WHERE display ORDER BY name
</db-model> </db-model>
</htk-combo> </htk-combo>
</div> </div>
@ -48,8 +48,8 @@
<label><t>Family</t></label> <label><t>Family</t></label>
<htk-combo form="lot" name="family"> <htk-combo form="lot" name="family">
<db-model property="model" lot="lot"> <db-model property="model" lot="lot">
SELECT tipo_id, Tipo FROM vn2008.Tipos SELECT id, name FROM vn.itemType
WHERE reino_id = #realm ORDER BY Tipo WHERE categoryFk = #realm ORDER BY name
</db-model> </db-model>
</htk-combo> </htk-combo>
</div> </div>

View File

@ -40,9 +40,7 @@ export const routes = {
}, },
agencies: { agencies: {
packages: packages:
() => import('agencies/packages'), () => import('agencies/packages')
provinces:
() => import('agencies/provinces')
}, },
cms: { cms: {
about: about:

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "24.8.0", "version": "24.8.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hedera-web", "name": "hedera-web",
"version": "24.8.0", "version": "24.8.1",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"js-yaml": "^3.12.1", "js-yaml": "^3.12.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "24.8.0", "version": "24.14.11",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

View File

@ -1,21 +0,0 @@
<?php
use Vn\Web\Security;
use Vn\Web\Util;
use Vn\Lib;
class Invoice extends Vn\Web\RestRequest {
const PARAMS = ['invoice'];
const SECURITY = Security::INVOKER;
function run($db) {
$pdfPath = $db->getValueFromFile(__DIR__ .'/invoice',
['invoice' =>(int) $_GET['invoice']]);
if (!$pdfPath)
throw new Lib\UserException(s('Invoice id not found'));
Util::printFile($pdfPath);
}
}

View File

@ -1,5 +0,0 @@
SELECT CONCAT_WS('/', c.pdfsDir, vn.invoiceOut_getPath(#invoice))
FROM config c
JOIN myInvoice i
WHERE i.id = #invoice

View File

@ -8,7 +8,7 @@ class Clean extends Edi\Method {
$cleanPeriod = $db->getValue( $cleanPeriod = $db->getValue(
"SELECT ic.cleanPeriod "SELECT ic.cleanPeriod
FROM imapConfig ic FROM imapMultiConfig ic
JOIN util.config c ON c.environment = ic.environment"); JOIN util.config c ON c.environment = ic.environment");
$deleted = 0; $deleted = 0;

View File

@ -14,7 +14,7 @@ abstract class Method extends \Vn\Lib\Method {
$imapConf = $db->getRow( $imapConf = $db->getRow(
"SELECT ic.host, ic.user, ic.pass, ic.successFolder, ic.errorFolder "SELECT ic.host, ic.user, ic.pass, ic.successFolder, ic.errorFolder
FROM imapConfig ic FROM imapMultiConfig ic
JOIN util.config c ON c.environment = ic.environment"); JOIN util.config c ON c.environment = ic.environment");
$this->mailbox = sprintf('{%s/imap/ssl/novalidate-cert}', $this->mailbox = sprintf('{%s/imap/ssl/novalidate-cert}',

View File

@ -18,7 +18,7 @@ class Segment {
switch ($type) { switch ($type) {
case Type::DATE: case Type::DATE:
$tmp = Date.vnNew(); $tmp = new Date();
$tmp->setDate(substr($v, 0, 4), substr($v, 4, 2), substr($v, 6, 2)); $tmp->setDate(substr($v, 0, 4), substr($v, 4, 2), substr($v, 6, 2));
return $tmp; return $tmp;
case Type::TIME: case Type::TIME:

View File

@ -1,41 +0,0 @@
<?php
/**
* Ejemplo:
* <Cube><Cube time="2010-12-10"><Cube currency="USD" rate="1.3244"/>
*/
class ExchangeRate extends Vn\Lib\Method {
function run($db) {
$db->selectDb('vn2008');
// Indica la URL del archivo
$xml = new SimpleXMLElement(
'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml', 0, TRUE);
$date = $db->getValue("SELECT MAX(date) fecha FROM reference_rate");
$maxDate = $date ? DateTime::createFromFormat('Y-m-d', $date) : NULL;
foreach ($xml->Cube[0]->Cube as $cube) {
$xmlDate = new DateTime($cube['time']);
// Si existen datos más recientes de la máxima fecha los añade
if ($maxDate <= $xmlDate)
foreach ($cube->Cube as $subCube)
if ($subCube['currency'] == 'USD') {
$params = [
'date' => $xmlDate,
'rate' => $subCube['rate']
];
$db->query(
'REPLACE INTO reference_rate(moneda_id, date, rate)
VALUES(2, #date, #rate)',
$params
);
}
}
$db->queryFromFile(__DIR__.'/exrate-add');
}
}

View File

@ -1,6 +0,0 @@
INSERT INTO reference_rate (moneda_id, date, rate)
SELECT 2, TIMESTAMPADD (DAY, 1, r1.date), r1.rate
FROM reference_rate r1
LEFT JOIN reference_rate r2
ON TIMESTAMPADD(DAY, 1, r1.date) = r2.date
WHERE r2.date IS NULL AND r1.date < TIMESTAMPADD (DAY, -2, CURDATE())