[siwapp_property] Stores configuration properties that user modified. - Default configuration values are located in app.yml - When user logs into the application basic configuration is saved into user session. Example: |-----------------------------|-----|---------------------|----------------------| | KEY | VAL | TYPE | ATTRIBUTES | |-----------------------------|-----|---------------------|----------------------| | iva16 | 16 | tax | name=IVA 16%&default | | iva7 | 7 | tax | name=IVA 7% | | iva4 | 4 | tax | name=IVA 4% | | invoice_series_prefix | MH- | conf | pad:5&char:0 | | invoice_series_first_number | 0 | conf | | | ... | ... | ... | ... | | pet_name | dan | custom_client_field | type:text | |-----------------------------|-----|---------------------|----------------------| *** See ./property_list.txt *** [invoice] - id: internal identification (ej. 1) - number: + $invoice_series_prefix . ($invoice_series_first + $id) = "MH-00001" + $rectification_invoice_series_prefix . ($rectification_invoice_series_first + $id) = "MH-00001" - type: invoice, rectification - shipping and invoicing address - client name, phone and email - contact person - invoice description - invoice dates: issue and due date - invoice status: draft, opened (default), closed. If invoice status is set to draft, invoice_number will be set to null. - creation and update dates - indexes are used in autocompletion [invoice_item] These are the concepts of the invoices. [recurrent_invoice] A recurrent invoice is an invoice template. When you configure it, it is saved as draft until you release the first invoice. When you do so, $last_publishing_date is updated and a new invoice is released with current date. Periodically ($period days) a new invoice is generated with "opened" $invoice_status. Once activated, draft status disappear in edit view, but you can "freeze" invoice generation at any moment. - template_status: draft | active (default) | frozen [rectification_invoice] Se diferencia de las facturas normales en que no tienen 'due_date' y que type=rectification