Skip to content

Commit

Permalink
Increased the precision on every decimal doctrine property from the d…
Browse files Browse the repository at this point in the history
…efault 10 to 15 to allow for larger numbers to be stored
  • Loading branch information
derekclaphamfm committed Nov 22, 2016
1 parent 35ef0b9 commit 9ff8d37
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions Resources/config/doctrine/Credit.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

<field name="attentionRequired" column="attention_required" type="boolean" />
<field name="createdAt" column="created_at" type="datetime" />
<field name="creditedAmount" column="credited_amount" type="decimal" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" scale="5" />
<field name="reversingAmount" column="reversing_amount" type="decimal" scale="5" />
<field name="creditedAmount" column="credited_amount" type="decimal" precision="15" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" precision="15" scale="5" />
<field name="reversingAmount" column="reversing_amount" type="decimal" precision="15" scale="5" />
<field name="state" type="smallint" nullable="false" />
<field name="targetAmount" column="target_amount" type="decimal" scale="5" />
<field name="targetAmount" column="target_amount" type="decimal" precision="15" scale="5" />
<field name="updatedAt" column="updated_at" type="datetime" nullable="true" />

<one-to-many field="transactions" mapped-by="credit" target-entity="FinancialTransaction">
Expand Down
4 changes: 2 additions & 2 deletions Resources/config/doctrine/FinancialTransaction.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<id name="id" type="integer"><generator strategy="AUTO"/></id>

<field name="extendedData" column="extended_data" type="extended_payment_data" nullable="true" />
<field name="processedAmount" column="processed_amount" type="decimal" scale="5" />
<field name="processedAmount" column="processed_amount" type="decimal" precision="15" scale="5" />
<field name="reasonCode" column="reason_code" type="string" length="100" nullable="true" />
<field name="referenceNumber" column="reference_number" type="string" length="100" nullable="true" />
<field name="requestedAmount" column="requested_amount" type="decimal" scale="5" />
<field name="requestedAmount" column="requested_amount" type="decimal" precision="15" scale="5" />
<field name="responseCode" column="response_code" type="string" length="100" nullable="true" />
<field name="state" type="smallint" />
<field name="createdAt" column="created_at" type="datetime" />
Expand Down
20 changes: 10 additions & 10 deletions Resources/config/doctrine/Payment.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
<entity name="JMS\Payment\CoreBundle\Entity\Payment" table="payments" change-tracking-policy="DEFERRED_EXPLICIT">
<id name="id" type="integer"><generator strategy="AUTO"/></id>

<field name="approvedAmount" column="approved_amount" type="decimal" scale="5" />
<field name="approvingAmount" column="approving_amount" type="decimal" scale="5" />
<field name="creditedAmount" column="credited_amount" type="decimal" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" scale="5" />
<field name="depositedAmount" column="deposited_amount" type="decimal" scale="5" />
<field name="depositingAmount" column="depositing_amount" type="decimal" scale="5" />
<field name="approvedAmount" column="approved_amount" type="decimal" precision="15" scale="5" />
<field name="approvingAmount" column="approving_amount" type="decimal" precision="15" scale="5" />
<field name="creditedAmount" column="credited_amount" type="decimal" precision="15" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" precision="15" scale="5" />
<field name="depositedAmount" column="deposited_amount" type="decimal" precision="15" scale="5" />
<field name="depositingAmount" column="depositing_amount" type="decimal" precision="15" scale="5" />
<field name="expirationDate" column="expiration_date" type="datetime" nullable="true" />
<field name="reversingApprovedAmount" column="reversing_approved_amount" type="decimal" scale="5" />
<field name="reversingCreditedAmount" column="reversing_credited_amount" type="decimal" scale="5" />
<field name="reversingDepositedAmount" column="reversing_deposited_amount" type="decimal" scale="5" />
<field name="reversingApprovedAmount" column="reversing_approved_amount" type="decimal" precision="15" scale="5" />
<field name="reversingCreditedAmount" column="reversing_credited_amount" type="decimal" precision="15" scale="5" />
<field name="reversingDepositedAmount" column="reversing_deposited_amount" type="decimal" precision="15" scale="5" />
<field name="state" type="smallint" />
<field name="targetAmount" column="target_amount" type="decimal" scale="5" />
<field name="targetAmount" column="target_amount" type="decimal" precision="15" scale="5" />
<field name="attentionRequired" column="attention_required" type="boolean" />
<field name="expired" type="boolean" />
<field name="createdAt" column="created_at" type="datetime" />
Expand Down
20 changes: 10 additions & 10 deletions Resources/config/doctrine/PaymentInstruction.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
<entity name="JMS\Payment\CoreBundle\Entity\PaymentInstruction" table="payment_instructions" change-tracking-policy="DEFERRED_EXPLICIT">
<id name="id" type="integer"><generator strategy="AUTO"/></id>

<field name="amount" type="decimal" scale="5" />
<field name="approvedAmount" column="approved_amount" type="decimal" scale="5" />
<field name="approvingAmount" column="approving_amount" type="decimal" scale="5" />
<field name="amount" type="decimal" precision="15" scale="5" />
<field name="approvedAmount" column="approved_amount" type="decimal" precision="15" scale="5" />
<field name="approvingAmount" column="approving_amount" type="decimal" precision="15" scale="5" />
<field name="createdAt" column="created_at" type="datetime" />
<field name="creditedAmount" column="credited_amount" type="decimal" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" scale="5" />
<field name="creditedAmount" column="credited_amount" type="decimal" precision="15" scale="5" />
<field name="creditingAmount" column="crediting_amount" type="decimal" precision="15" scale="5" />
<field name="currency" type="string" length="3" />
<field name="depositedAmount" column="deposited_amount" type="decimal" scale="5" />
<field name="depositingAmount" column="depositing_amount" type="decimal" scale="5" />
<field name="depositedAmount" column="deposited_amount" type="decimal" precision="15" scale="5" />
<field name="depositingAmount" column="depositing_amount" type="decimal" precision="15" scale="5" />
<field name="extendedData" column="extended_data" type="extended_payment_data" />
<field name="paymentSystemName" column="payment_system_name" type="string" length="100" />
<field name="reversingApprovedAmount" column="reversing_approved_amount" type="decimal" scale="5" />
<field name="reversingCreditedAmount" column="reversing_credited_amount" type="decimal" scale="5" />
<field name="reversingDepositedAmount" column="reversing_deposited_amount" type="decimal" scale="5" />
<field name="reversingApprovedAmount" column="reversing_approved_amount" type="decimal" precision="15" scale="5" />
<field name="reversingCreditedAmount" column="reversing_credited_amount" type="decimal" precision="15" scale="5" />
<field name="reversingDepositedAmount" column="reversing_deposited_amount" type="decimal" precision="15" scale="5" />
<field name="state" type="smallint" />
<field name="updatedAt" column="updated_at" type="datetime" nullable="true" />

Expand Down

0 comments on commit 9ff8d37

Please sign in to comment.