ExtendedCost
Код:
Index: include/report_generator.php
===================================================================
--- include/report_generator.php (revision 33)
+++ include/report_generator.php (working copy)
@@ -547,11 +547,18 @@
{
if ($data['ExtendedCost']>0)
{
- if ($cost = getExtendCost($data['ExtendedCost']))
+ if ($cost = getExtendCost(abs($data['ExtendedCost'])))
r_excostCost($cost);
else
- echo 'Ex cost '.$data['ExtendedCost'];
+ echo 'Ex cost '.abs($data['ExtendedCost']);
}
+ if ($data['ExtendedCost']<0)
+ {
+ if ($cost = getExtendCost(abs($data['ExtendedCost'])))
+ r_excostCost($cost);
+ else
+ echo 'Ex cost '.money($data['BuyPrice']).''.abs($data['ExtendedCost']);
+ }
else
echo money($data['BuyPrice']);
}
Не факт, что учел все.)