Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
f8ade01f
Commit
f8ade01f
authored
9 years ago
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
New : Add payment donation in accountancy expert
parent
e0f2c41a
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/accountancy/journal/bankjournal.php
+88
-80
88 additions, 80 deletions
htdocs/accountancy/journal/bankjournal.php
with
88 additions
and
80 deletions
htdocs/accountancy/journal/bankjournal.php
+
88
−
80
View file @
f8ade01f
...
...
@@ -40,6 +40,7 @@ require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
require_once
DOL_DOCUMENT_ROOT
.
'/adherents/class/adherent.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/sociales/class/chargesociales.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/paiement/class/paiement.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/don/class/paymentdonation.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/tva/class/tva.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/salaries/class/paymentsalary.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/fourn/class/paiementfourn.class.php'
;
...
...
@@ -120,6 +121,7 @@ $paymentsupplierstatic = new PaiementFourn($db);
$societestatic
=
new
Societe
(
$db
);
$userstatic
=
new
User
(
$db
);
$chargestatic
=
new
ChargeSociales
(
$db
);
$paymentdonstatic
=
new
PaymentDonation
(
$db
);
$paymentvatstatic
=
new
TVA
(
$db
);
$paymentsalstatic
=
new
PaymentSalary
(
$db
);
...
...
@@ -133,6 +135,7 @@ if ($result) {
$cptcli
=
(
!
empty
(
$conf
->
global
->
ACCOUNTING_ACCOUNT_CUSTOMER
)
?
$conf
->
global
->
ACCOUNTING_ACCOUNT_CUSTOMER
:
$langs
->
trans
(
"CodeNotDef"
));
$accountancy_account_salary
=
(
!
empty
(
$conf
->
global
->
SALARIES_ACCOUNTING_ACCOUNT_PAYMENT
)
?
$conf
->
global
->
SALARIES_ACCOUNTING_ACCOUNT_PAYMENT
:
$langs
->
trans
(
"CodeNotDef"
));
$accountancy_account_pay_vat
=
(
!
empty
(
$conf
->
global
->
ACCOUNTING_VAT_PAY_ACCOUNT
)
?
$conf
->
global
->
ACCOUNTING_VAT_PAY_ACCOUNT
:
$langs
->
trans
(
"CodeNotDef"
));
$accountancy_account_pay_donation
=
(
!
empty
(
$conf
->
global
->
DONATION_ACCOUNTINGACCOUNT
)
?
$conf
->
global
->
DONATION_ACCOUNTINGACCOUNT
:
$langs
->
trans
(
"CodeNotDef"
));
$tabpay
=
array
();
$tabbq
=
array
();
...
...
@@ -174,7 +177,6 @@ if ($result) {
// get_url may return -1 which is not traversable
if
(
is_array
(
$links
))
{
foreach
(
$links
as
$key
=>
$val
)
{
$tabtype
[
$obj
->
rowid
]
=
$links
[
$key
][
'type'
];
...
...
@@ -238,6 +240,13 @@ if ($result) {
$tabtp
[
$obj
->
rowid
][
$objmid
->
accountancy_code
]
+=
$obj
->
amount
;
}
}
else
if
(
$links
[
$key
][
'type'
]
==
'payment_donation'
)
{
$paymentdonstatic
->
id
=
$links
[
$key
][
'url_id'
];
$paymentdonstatic
->
fk_donation
=
$links
[
$key
][
'url_id'
];
$tabpay
[
$obj
->
rowid
][
"lib"
]
.
=
' '
.
$langs
->
trans
(
"PaymentDonation"
);
$tabtp
[
$obj
->
rowid
][
$accountancy_account_pay_donation
]
+=
$obj
->
amount
;
}
else
if
(
$links
[
$key
][
'type'
]
==
'payment_vat'
)
{
$paymentvatstatic
->
id
=
$links
[
$key
][
'url_id'
];
...
...
@@ -262,7 +271,6 @@ if ($result) {
$tabtp [$obj->rowid] [$accountancy_account_salary] += $obj->amount;
}*/
}
}
$tabbq
[
$obj
->
rowid
][
$compta_bank
]
+=
$obj
->
amount
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment