Commit 174b8623 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: add SlapOSLedgerConstraint on all * Transaction

XXX FOrces tests to fail as much as possible if ledger is not configured.
Add test to ensure constraint is configured
parent 0bf498c3
<property_sheet_list> <property_sheet_list>
<portal_type id="Accounting Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Amortisation Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Balance Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Cloud Contract"> <portal_type id="Cloud Contract">
<item>SlapOSCloudContractAccounting</item> <item>SlapOSCloudContractAccounting</item>
</portal_type> </portal_type>
...@@ -11,14 +20,24 @@ ...@@ -11,14 +20,24 @@
<portal_type id="Hosting Subscription"> <portal_type id="Hosting Subscription">
<item>SlapOSAccountingHostingSubscriptionConstraint</item> <item>SlapOSAccountingHostingSubscriptionConstraint</item>
</portal_type> </portal_type>
<portal_type id="Internal Invoice Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Open Sale Order"> <portal_type id="Open Sale Order">
<item>SlapOSAccountingOpenSaleOrderConstraint</item> <item>SlapOSAccountingOpenSaleOrderConstraint</item>
</portal_type> </portal_type>
<portal_type id="Open Sale Order Line"> <portal_type id="Open Sale Order Line">
<item>SlapOSAccountingOpenSaleOrderLineConstraint</item> <item>SlapOSAccountingOpenSaleOrderLineConstraint</item>
</portal_type> </portal_type>
<portal_type id="Payment Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Purchase Invoice Transaction">
<item>SlapOSLedgerConstraint</item>
</portal_type>
<portal_type id="Sale Invoice Transaction"> <portal_type id="Sale Invoice Transaction">
<item>SlapOSAccountingSaleInvoiceTransactionConstraint</item> <item>SlapOSAccountingSaleInvoiceTransactionConstraint</item>
<item>SlapOSLedgerConstraint</item>
</portal_type> </portal_type>
<portal_type id="Sale Packing List"> <portal_type id="Sale Packing List">
<item>SlapOSAccountingSalePackingListConstraint</item> <item>SlapOSAccountingSalePackingListConstraint</item>
......
Accounting Transaction | SlapOSLedgerConstraint
Amortisation Transaction | SlapOSLedgerConstraint
Balance Transaction | SlapOSLedgerConstraint
Cloud Contract Line | SlapOSCloudContractLineAccounting Cloud Contract Line | SlapOSCloudContractLineAccounting
Cloud Contract | SlapOSCloudContractAccounting Cloud Contract | SlapOSCloudContractAccounting
Computer Consumption TioXML File | SortIndex Computer Consumption TioXML File | SortIndex
Hosting Subscription | SlapOSAccountingHostingSubscriptionConstraint Hosting Subscription | SlapOSAccountingHostingSubscriptionConstraint
Internal Invoice Transaction | SlapOSLedgerConstraint
Open Sale Order Line | SlapOSAccountingOpenSaleOrderLineConstraint Open Sale Order Line | SlapOSAccountingOpenSaleOrderLineConstraint
Open Sale Order | SlapOSAccountingOpenSaleOrderConstraint Open Sale Order | SlapOSAccountingOpenSaleOrderConstraint
Payment Transaction | SlapOSLedgerConstraint
Purchase Invoice Transaction | SlapOSLedgerConstraint
Sale Invoice Transaction | SlapOSAccountingSaleInvoiceTransactionConstraint Sale Invoice Transaction | SlapOSAccountingSaleInvoiceTransactionConstraint
Sale Invoice Transaction | SlapOSLedgerConstraint
Sale Packing List Line | SlapOSAccountingSalePackingListLineConstraint Sale Packing List Line | SlapOSAccountingSalePackingListLineConstraint
Sale Packing List | SlapOSAccountingSalePackingListConstraint Sale Packing List | SlapOSAccountingSalePackingListConstraint
Slave Instance | InstanceAccountingSynchronisation Slave Instance | InstanceAccountingSynchronisation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment