allow_sales_invoice_from_sales_order => { type => 'boolean', default => 'true', not_null => 1 },
allow_sales_invoice_from_sales_quotation => { type => 'boolean', default => 'true', not_null => 1 },
ap_changeable => { type => 'integer', default => 2, not_null => 1 },
+ ap_chart_id => { type => 'integer' },
ap_show_mark_as_paid => { type => 'boolean', default => 'true' },
ar_changeable => { type => 'integer', default => 2, not_null => 1 },
+ ar_chart_id => { type => 'integer' },
ar_paid_accno_id => { type => 'integer' },
ar_show_mark_as_paid => { type => 'boolean', default => 'true' },
articlenumber => { type => 'text' },
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
+ ap_chart => {
+ class => 'SL::DB::Chart',
+ key_columns => { ap_chart_id => 'id' },
+ },
+
+ ar_chart => {
+ class => 'SL::DB::Chart',
+ key_columns => { ar_chart_id => 'id' },
+ },
bin => {
class => 'SL::DB::Bin',
key_columns => { bin_id => 'id' },
'Password' => 'Passwort',
'Paste' => 'Einfügen',
'Paste template' => 'Vorlage einfügen',
+ 'Payable account' => 'Verbindlichkeitskonto',
'Payables' => 'Verbindlichkeiten',
'Payment' => 'Zahlungsausgang',
'Payment / Delivery Options' => 'Zahlungs- und Lieferoptionen',
'Receipt posted!' => 'Beleg gebucht!',
'Receipt, payment, reconciliation' => 'Zahlungseingang, Zahlungsausgang, Kontenabgleich',
'Receipts' => 'Zahlungseingänge',
+ 'Receivable account' => 'Forderungskonto',
'Receivables' => 'Forderungen',
'Recipients' => 'EmpfängerInnen',
'Reconcile' => 'Abgleichen',
--- /dev/null
+-- @tag: ar_ap_default
+-- @description: Standardkonten für Forderungen und Verbindlichkeiten
+-- @depends: release_3_2_0
+ALTER TABLE defaults ADD COLUMN ap_chart_id integer;
+ALTER TABLE defaults ADD FOREIGN KEY (ap_chart_id) REFERENCES chart (id);
+ALTER TABLE defaults ADD COLUMN ar_chart_id integer;
+ALTER TABLE defaults ADD FOREIGN KEY (ar_chart_id) REFERENCES chart (id);
<td align="right">[% LxERP.t8("Current assets account") %]</td>
<td>[% L.chart_picker('defaults.ar_paid_accno_id', SELF.defaults.ar_paid_accno_id, type='AR_paid', choose=1, style=style) %]<td>
</tr>
+
+ <tr>
+ <td align="right">[% LxERP.t8("Payable account") %]</td>
+ <td>[% L.chart_picker('defaults.ap_chart_id', SELF.defaults.ap_chart_id, type='AP', choose=1, style=style) %]<td>
+ </tr>
+
+ <tr>
+ <td align="right">[% LxERP.t8("Receivable account") %]</td>
+ <td>[% L.chart_picker('defaults.ar_chart_id', SELF.defaults.ar_chart_id, type='AR', choose=1, style=style) %]<td>
+ </tr>
+
</table>
</div>