Zen Cart Logo
Forums / All Other Contributions/Addons / Invoice - Balance due not calculating correctly with module "Edit Orders"

Invoice - Balance due not calculating correctly with module "Edit Orders"

Locked

Views: 2,348

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Jul 2008, 3:23 AM
#1
aatech avatar

aatech

New Zenner

Join Date:
Dec 2006
Posts:
87
Plugin Contributions:
0

Invoice - Balance due not calculating correctly with module "Edit Orders"

I have installed Edit orders and super orders. When I edit the order and add to it the Balance due stays the same as before in the Super Invoice? Subtotal changes correctly though.

Please see image.

Here's the code that corresponds to the Balance due:

         '            <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($so->balance_due) . '</strong></td>' . "\n" .        

and here's the code for total:

         '            <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .

I tried to put the total as the Balance due but was unsuccessful...

Any Help Is Appreciated.

24 Aug 2008, 12:34 AM
#2
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Invoice - Balance due not calculating correctly with module "Edit Orders"

AATech,

Unfortunately this just seems to be a problem.

The only solution we have so far is clicking the update totals in superorders screen. Which is a pain, but . . .

I haven't looked into this in depth, but from my reconning, if you get the "refresh update totals" to post automatically into superorders function included in the form function in editorders it should update both at the same time.

I have this on my list of things to do when I get time, but hasn't been done yet. Note that the new version of edit orders doesn't fix this problem.

Hope this helps in some way and if you get the form function from edit orders to refresh the totals in superorders would greatly appreciate if you could post the fix, otherwise if I get to it first I'll post it.

Max

24 Aug 2008, 6:33 AM
#3
aatech avatar

aatech

New Zenner

Join Date:
Dec 2006
Posts:
87
Plugin Contributions:
0

Re: Invoice - Balance due not calculating correctly with module "Edit Orders"

Hi Max,

Thanks for the reply... Since no one replied... I just removed the total from the invoice and made subtotal to total. Client was happy so I stopped messing with the code any further... But this is something that should probably get implemented with the new Versions for Edit Order...

If you do come up with the solution, it will be very usefull.

Best Of Luck,

AA TECH

25 Sep 2008, 10:25 AM
#4
aronchi avatar

aronchi

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Invoice - Balance due not calculating correctly with module "Edit Orders"

FuzzyBunny:

Unfortunately this just seems to be a problem.

The only solution we have so far is clicking the update totals in superorders screen. Which is a pain, but . . .

I have both edit orders and super orders but I don't find any update totals or refresh totals.

If I change a value the subtotal of my order is reset, so this mod is unusable with zen cart 1.3.8

anyone solved?

25 Sep 2008, 5:14 PM
#5
aatech avatar

aatech

New Zenner

Join Date:
Dec 2006
Posts:
87
Plugin Contributions:
0

Re: Invoice - Balance due not calculating correctly with module "Edit Orders"

No... I just removed the total and made the subtotal as the main total.

25 Sep 2008, 6:40 PM
#6
aronchi avatar

aronchi

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Invoice - Balance due not calculating correctly with module "Edit Orders"

I cannot remove the total, because total and subtotal are reset.