Skip to content

Commit

Permalink
New core version 2021.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Apr 11, 2021
1 parent 223e3ac commit d356d81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update && \
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && \
docker-php-ext-install bcmath gd mysqli pdo pdo_mysql pgsql zip

ENV FS_VERSION 2021.04
ENV FS_VERSION 2021.1

# Download FacturaScripts
ADD https://facturascripts.com/DownloadBuild/1/${FS_VERSION} /tmp/facturascripts.zip
Expand Down
15 changes: 11 additions & 4 deletions fsmaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ class Edit'.$modelName.' extends \\FacturaScripts\\Core\\Lib\\ExtendedController
public function getModelClassName() {
return "'.$modelName.'";
}
public function getPageData() {
$pageData = parent::getPageData();
$pageData["title"] = "'.$modelName.'";
$pageData["icon"] = "fas fa-search";
return $pageData;
}
}');
$xmlviewFilename = $this->isCoreFolder() ? 'Core/XMLView/Edit'.$modelName.'.xml' : 'XMLView/Edit'.$modelName.'.xml';
if(file_exists($xmlviewFilename)) {
Expand Down Expand Up @@ -303,6 +310,10 @@ public static function tableName() {
echo '* '.$tableFilename."\n";
file_put_contents($tableFilename, '<?xml version="1.0" encoding="UTF-8"?>
<table>
<column>
<name>creationdate</name>
<type>timestamp</type>
</column>
<column>
<name>id</name>
<type>serial</type>
Expand All @@ -311,10 +322,6 @@ public static function tableName() {
<name>name</name>
<type>character varying(100)</type>
</column>
<column>
<name>creationdate</name>
<type>timestamp</type>
</column>
<constraint>
<name>'.$tableName.'_pkey</name>
<type>PRIMARY KEY (id)</type>
Expand Down

0 comments on commit d356d81

Please sign in to comment.