<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Usage</title><link>https://sourceforge.net/p/trinventum/wiki/Usage/</link><description>Recent changes to Usage</description><atom:link href="https://sourceforge.net/p/trinventum/wiki/Usage/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 15 Jul 2022 13:51:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/trinventum/wiki/Usage/feed" rel="self" type="application/rss+xml"/><item><title>Usage modified by Bogdan Drozdowski</title><link>https://sourceforge.net/p/trinventum/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -73,7 +73,7 @@

 If you get "Record version doesn't match" errors (anywhere, not just in transactions), then someone must have updated the object you're working on. Refresh the page, double-check the values, re-enter your changes and retry the operation.

-After finishing work, click the "Logout" link to cleanup the session on the server. Depending on the server settings, you may get logged-out automatically after some period of inactivity. See the `session.cookie_lifetime` entry in your php.ini file (`/etc/php.ini` on Linux) to see how long does the session cookie live for (in seconds).
+After finishing work, click the "Logout" link to clean up the session on the server. Depending on the server settings, you may get logged-out automatically after some period of inactivity. See the `session.cookie_lifetime` entry in your php.ini file (`/etc/php.ini` on Linux) to see how long does the session cookie live for (in seconds).

 ---

@@ -91,12 +91,11 @@

 To delete and re-create the database schema, run (for PostgreSQL):
 ```bash
-   bash$ psql trinventum
-   trinventum=&amp;gt; drop schema trinventum cascade; quit;
+   psql -U trinventum -d trinventum -c 'drop schema trinventum cascade'
 ```
 After this, you need to re-login to the Trinventum application as a user **with full access to the database schema** (like the schema owner `trinventum` created earlier) to re-create the structures.

-To delete and re-crete the whole database, run (for PostgreSQL, login to the system as the database user `postgres` and run):
+To delete and recreate the whole database, run (for PostgreSQL, login to the system as the database user `postgres` and run):
 ```bash
    dropdb trinventum
    createdb trinventum
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bogdan Drozdowski</dc:creator><pubDate>Fri, 15 Jul 2022 13:51:10 -0000</pubDate><guid>https://sourceforge.netc50521b745a0fef768eea621c11065dc900a3414</guid></item><item><title>Usage modified by Bogdan Drozdowski</title><link>https://sourceforge.net/p/trinventum/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -3,7 +3,7 @@

 1. the username of the DATABASE (**not** system) user you've created
 2. the password of the DATABASE user you've created
-3. the database address (IP address or hostname, can also be "/tmp" if the database is running locally using the default settings)
+3. the database address (IP address or hostname, can also be the local socket's directory (`/run/postgresql` in some versions, `/tmp` in other) if the database is running locally using the default settings )
 4. the database name, which would be `trinventum`

 After the first successful login, the database structures are created. If the current database needs to be upgraded, the required scripts are run.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bogdan Drozdowski</dc:creator><pubDate>Tue, 21 Jun 2022 20:10:31 -0000</pubDate><guid>https://sourceforge.net9585171983541dc38aa70bdd41e31e99b60d2524</guid></item><item><title>Usage modified by Bogdan Drozdowski</title><link>https://sourceforge.net/p/trinventum/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -58,8 +58,7 @@

 After clicking "Register a new transaction", you'll be presented with a transaction form.

-If modifying the product which took part in the transaction is allowed, first you choose the product type. Next, you select a product piece. You can only select
-products which are in the SELLING state (you have to set that state manually).
+If modifying the product which took part in the transaction is allowed, first you choose the product type. Next, you select a product piece. You can only select products which are in the SELLING state (you have to set that state manually).

 Then you input the rest of the transaction parameters:

@@ -92,14 +91,14 @@

 To delete and re-create the database schema, run (for PostgreSQL):
 ```bash
-   psql trinventum
-   drop schema trinventum cascade;
+   bash$ psql trinventum
+   trinventum=&amp;gt; drop schema trinventum cascade; quit;
 ```
-After this, you need to re-login to Trinventum to re-create the structures.
+After this, you need to re-login to the Trinventum application as a user **with full access to the database schema** (like the schema owner `trinventum` created earlier) to re-create the structures.

-To delete and re-crete the whole database, run (for PostgreSQL):
+To delete and re-crete the whole database, run (for PostgreSQL, login to the system as the database user `postgres` and run):
 ```bash
    dropdb trinventum
    createdb trinventum
 ```
-After this, you need to re-login to Trinventum to re-create the structures.
+After this, you need to re-login to the Trinventum application as a user **with full access to the database schema** (like the schema owner `trinventum` created earlier) to re-create the structures.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bogdan Drozdowski</dc:creator><pubDate>Thu, 14 Apr 2022 18:12:47 -0000</pubDate><guid>https://sourceforge.net4e204a657ace8cd2ac924d8151f3f9b63bb67ddd</guid></item><item><title>Usage modified by Bogdan Drozdowski</title><link>https://sourceforge.net/p/trinventum/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;After installation (see &lt;a class="alink" href="/p/trinventum/wiki/Installing/"&gt;[Installing]&lt;/a&gt;), point your browser to the Trinventum login page, like &lt;a href="http://some-host/trinventum/login.php." rel="nofollow"&gt;http://some-host/trinventum/login.php.&lt;/a&gt;&lt;br/&gt;
You enter 4 parameters there:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;the username of the DATABASE (&lt;strong&gt;not&lt;/strong&gt; system) user you've created&lt;/li&gt;
&lt;li&gt;the password of the DATABASE user you've created&lt;/li&gt;
&lt;li&gt;the database address (IP address or hostname, can also be "/tmp" if the database is running locally using the default settings)&lt;/li&gt;
&lt;li&gt;the database name, which would be &lt;code&gt;trinventum&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After the first successful login, the database structures are created. If the current database needs to be upgraded, the required scripts are run.&lt;/p&gt;
&lt;p&gt;After logging in to the application, you're presented with the list of currently-existing categories of product types (there will be one during the first run - Uncategorised products).&lt;/p&gt;
&lt;p&gt;Use the "Categories" link to add new product type categories (this is optional).&lt;/p&gt;
&lt;p&gt;To add a new product, use the "Add a new product" link. Supply all the details and press "Add product". Remember that the photos you add will take at least the same amount of space in the database as on disk, so keep the photographs smaller than usual. You can use the &lt;code&gt;convert&lt;/code&gt; utility from the&lt;br/&gt;
&lt;a class="" href="https://imagemagick.org" rel="nofollow"&gt;ImageMagick&lt;/a&gt; package to shrink image sizes:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    convert original.jpg -resize &lt;span class="m"&gt;50&lt;/span&gt;% smaller_copy.jpg
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The "50%" means to shrink both the width and height to 50% of the original size (thus effectively making the image have 4 times fewer pixels). To shrink all images in the current directory, run&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    &lt;span class="k"&gt;for&lt;/span&gt; i &lt;span class="k"&gt;in&lt;/span&gt; *.jpg&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; convert &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$i&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; -resize &lt;span class="m"&gt;50&lt;/span&gt;% &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$i&lt;/span&gt;&lt;span class="s2"&gt;-small.jpg"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This utility can also change the image format (you can convert from JPEG to other picture formats, like PNG).&lt;/p&gt;
&lt;p&gt;If everything goes well, you'll be redirected back to the main page with the new product already visible.&lt;/p&gt;
&lt;p&gt;Click the product ID or the photo (intentionally shrunk) to modify the product type.&lt;/p&gt;
&lt;p&gt;You'll see the current product details (click the photo to see it in its full size) and a form to modify the details.&lt;br/&gt;
Depending on the settings, you can perform one of these operations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Update all the product details at the same time.&lt;br/&gt;
    Due to HTML/browser limitations, the photo field will be empty (so you need to upload the same photo each time when you want to update the details).&lt;br/&gt;
    The rest of the details will be pre-filled. Change the required fields and press "Update product". All the data (including the photo) will be modified by this  operation.&lt;/li&gt;
&lt;li&gt;Update the product details one by one.&lt;br/&gt;
    You can use the "Update" button in every field to change the value of just that field in the product.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In both cases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;if you modify the cost, the cost of all product pieces will be modified,&lt;/li&gt;
&lt;li&gt;you cannot decrease the number of product pieces, but you can increase it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below the product type details, you'll see a list of current product pieces of the given type. To modify a piece, click on its ID. You can only change the status between READY and SELLING (which means that the product is put for sale). When the piece is SOLD, you can't change it back to READY or SELLING, you can update only the cost then, unless:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the piece's transaction is modified to actually select another piece, or&lt;/li&gt;
&lt;li&gt;the transaction is deleted, in which case the product piece's status is changed automatically to READY.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below the list of product pieces you'll see a list of product sales, showing which buyers bought the pieces and which sellers sold them. You can also see the history of the changes made to the product definition.&lt;/p&gt;
&lt;p&gt;Use the "Manage sellers" and "Manage buyers" to add and modify buyers and sellers, required to register transactions.&lt;/p&gt;
&lt;p&gt;Use the "Manage transactions" to see a list of currently-registered transactions (the "List all transactions" link) and register new ones (the "Register a new transaction" link).&lt;/p&gt;
&lt;p&gt;After clicking "Register a new transaction", you'll be presented with a transaction form.&lt;/p&gt;
&lt;p&gt;If modifying the product which took part in the transaction is allowed, first you choose the product type. Next, you select a product piece. You can only select&lt;br/&gt;
products which are in the SELLING state (you have to set that state manually).&lt;/p&gt;
&lt;p&gt;Then you input the rest of the transaction parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the buyer (selected from the list of registered buyers)&lt;/li&gt;
&lt;li&gt;the seller (selected from the list of registered sellers)&lt;/li&gt;
&lt;li&gt;selling price&lt;/li&gt;
&lt;li&gt;paying status (pain/unpaid)&lt;/li&gt;
&lt;li&gt;sending status (sent/unsent)&lt;/li&gt;
&lt;li&gt;selling date&lt;/li&gt;
&lt;li&gt;sending price&lt;/li&gt;
&lt;li&gt;sending cost&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you get "Record version doesn't match" errors (anywhere, not just in transactions), then someone must have updated the object you're working on. Refresh the page, double-check the values, re-enter your changes and retry the operation.&lt;/p&gt;
&lt;p&gt;After finishing work, click the "Logout" link to cleanup the session on the server. Depending on the server settings, you may get logged-out automatically after some period of inactivity. See the &lt;code&gt;session.cookie_lifetime&lt;/code&gt; entry in your php.ini file (&lt;code&gt;/etc/php.ini&lt;/code&gt; on Linux) to see how long does the session cookie live for (in seconds).&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;To backup the database, for PostgreSQL, you would do:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    pg_dump -Fc trinventum &amp;gt; trinventum.dmp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and provide the DATABASE user password.&lt;/p&gt;
&lt;p&gt;To restore the database, for PostgreSQL, you would do:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    pg_restore -d trinventum trinventum.dmp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and provide the DATABASE user password.&lt;/p&gt;
&lt;p&gt;To delete and re-create the database schema, run (for PostgreSQL):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    psql trinventum
    drop schema trinventum cascade&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;After this, you need to re-login to Trinventum to re-create the structures.&lt;/p&gt;
&lt;p&gt;To delete and re-crete the whole database, run (for PostgreSQL):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    dropdb trinventum
    createdb trinventum
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;After this, you need to re-login to Trinventum to re-create the structures.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bogdan Drozdowski</dc:creator><pubDate>Mon, 28 Mar 2022 21:05:14 -0000</pubDate><guid>https://sourceforge.net5f90ac0d1d7c313c66115b8f24d5489681f5832b</guid></item></channel></rss>