0
1
Fork 0

Compare commits

...

79 Commits
dev ... dev

Author SHA1 Message Date
Juan Ferrer a956c268b6 Merge pull request 'refs #8480 Hide inactive items' (!101) from test into dev
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-beta There was a failure building this commit Details
Reviewed-on: verdnatura/hedera-web#101
2025-01-27 11:41:26 +00:00
Juan Ferrer 5b968b6e46 refs #8480 Hide inactive items
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-dev Build queued... Details
gitea/hedera-web/pipeline/pr-master This commit looks good Details
2025-01-27 12:25:51 +01:00
Juan Ferrer ef65622014 Merge pull request 'test into dev' (!100) from test into dev
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: verdnatura/hedera-web#100
2025-01-27 11:20:42 +00:00
Juan Ferrer 35efe67c63 refs #8471 Order confirm code fix
gitea/hedera-web/pipeline/head This commit looks good Details
gitea/hedera-web/pipeline/pr-dev Build started... Details
2025-01-24 09:13:53 +01:00
Juan Ferrer 6dbcf162ca refs #8471 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2025-01-23 16:58:06 +01:00
Juan Ferrer 20f5dc46f7 refs #8471 Fix apt key location
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2025-01-23 16:54:20 +01:00
Juan Ferrer c0ab27bd7a refs #8471 Version increased
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2025-01-23 16:35:57 +01:00
Juan Ferrer 6508a4e4f0 refs #8471 Remove transfer and later payments from frontend
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2025-01-23 16:32:09 +01:00
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
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
13 changed files with 48 additions and 67 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
node_modules
build/
dist/
config.my.php
.vscode/
.quasar

View File

@ -28,7 +28,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
# Hedera
RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | tee /etc/apt/trusted.gpg.d/verdnatura.gpg \
&& echo "deb http://apt.verdnatura.es/ bookworm main" \
> /etc/apt/sources.list.d/vn.list \
&& apt-get update \

59
Jenkinsfile vendored
View File

@ -4,6 +4,7 @@ def BRANCH_ENV = [
test: 'test',
master: 'production'
]
def remote = [:]
node {
stage('Setup') {
@ -28,35 +29,28 @@ pipeline {
}
agent {
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/'
registryCredentialsId 'docker-registry'
args '-v /mnt/appdata/reprepro:/reprepro'
}
}
steps {
sh 'debuild -us -uc -b'
sh 'vn-includedeb bookworm'
}
}
stage('Container') {
when {
anyOf {
branch 'master'
branch 'test'
}
}
environment {
CREDS = credentials('docker-registry')
}
steps {
sh 'mkdir -p debuild'
sh 'mv ../hedera-web_* debuild'
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
def files = findFiles(glob: 'debuild/*.changes')
files.each { file -> env.CHANGES_FILE = file.name }
}
configFileProvider([
configFile(fileId: "dput.cf", variable: 'DPUT_CONFIG')
]) {
sshagent(credentials: ['jenkins-agent']) {
sh 'dput --config "$DPUT_CONFIG" verdnatura "debuild/$CHANGES_FILE"'
}
}
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') {
@ -66,18 +60,35 @@ pipeline {
branch 'test'
}
}
environment {
CREDS = credentials('docker-registry')
IMAGE = "$REGISTRY/verdnatura/hedera-web"
}
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
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=$REGISTRY/hedera-web:$VERSION'
sh 'kubectl set image deployment/hedera-web-cron-$BRANCH_NAME hedera-web-cron-$BRANCH_NAME=$REGISTRY/hedera-web:$VERSION'
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'
}
}
}

2
debian/changelog vendored
View File

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

View File

@ -1,12 +1,9 @@
version: '3.7'
services:
main:
image: registry.verdnatura.es/hedera-web:${VERSION:?}
image: registry.verdnatura.es/verdnatura/hedera-web:${TAG:?}
build:
context: .
dockerfile: Dockerfile
args:
- VERSION=${VERSION:?}
cron:
image: registry.verdnatura.es/hedera-web:${VERSION:?}
command: 'cron -f'

View File

@ -18,8 +18,8 @@
LEFT JOIN image im
ON im.collectionFk = 'catalog'
AND im.name = i.image
WHERE i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search
WHERE i.isActive
AND (i.longName LIKE CONCAT('%', #search, '%') OR i.id = #search)
ORDER BY i.longName LIMIT 50
</db-model>
<custom>

View File

@ -105,7 +105,8 @@
auto-load="false"
result-index="3"
on-status-changed="onItemsChange">
CREATE OR REPLACE TEMPORARY TABLE tmp.item
DROP TEMPORARY TABLE IF EXISTS tmp.item;
CREATE TEMPORARY TABLE tmp.item
(INDEX (itemFk))
ENGINE = MEMORY
SELECT i.id itemFk

View File

@ -67,7 +67,7 @@ export default new Class({
methods = ['balance'];
selectedMethod = 'BALANCE';
} else {
methods = ['card', 'transfer', 'later'];
methods = ['card'];
if (!creditExceededCond) {
methods.push('credit');
@ -98,9 +98,6 @@ export default new Class({
case 'CARD':
id = 'cardMethod';
break;
case 'TRANSFER':
id = 'transferMethod';
break;
default:
id = null;
}

View File

@ -162,32 +162,6 @@
<t>You will be redirected to the payment.</t>
</div>
</div>
<div id="transfer-method">
<label>
<htk-radio radio-group="pay-method" value="TRANSFER"/>
<t>Bank Transfer</t>
</label>
<div>
<t>Make a transfer to one account.</t>
<htk-repeater form-id="iter">
<db-model property="model">
SELECT name, iban FROM mainAccountBank
</db-model>
<custom>
<div class="transfer-account">
<p>{{iter.name}}</p>
<p>{{iter.iban}}</p>
</div>
</custom>
</htk-repeater>
</div>
</div>
<div id="later-method">
<label>
<htk-radio radio-group="pay-method" value="LATER"/>
<t>Pay later</t>
</label>
</div>
</div>
</div>
<div class="button-bar vn-mt-md">

View File

@ -26,7 +26,7 @@
<db-model property="model">
SELECT c.id, c.name reportTitle, c.namePrefix, c.warehouse, c.family,
c.shelf, c.maxAmount, c.showPacking, c.stack, it.categoryFk realm
FROM shelfConfig c
FROM shelfMultiConfig c
JOIN vn.itemType it ON it.id = c.family
</db-model>
</htk-combo>

View File

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

View File

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

View File

@ -14,7 +14,7 @@ abstract class Method extends \Vn\Lib\Method {
$imapConf = $db->getRow(
"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");
$this->mailbox = sprintf('{%s/imap/ssl/novalidate-cert}',