function add_budget($account, $dim1, $dim2, $amounts)
{
function add_budget($account, $dim1, $dim2, $amounts)
{
foreach($amounts as $date => $amount) {
add_update_gl_budget_trans($date, $account, $dim1, $dim2, $amount);
foreach($amounts as $date => $amount) {
add_update_gl_budget_trans($date, $account, $dim1, $dim2, $amount);
function delete_budget($account, $dim1, $dim2, $dates)
{
function delete_budget($account, $dim1, $dim2, $dates)
{
foreach($amounts as $date) {
delete_gl_budget_trans($date, $account, $dim1, $dim2);
foreach($amounts as $date) {
delete_gl_budget_trans($date, $account, $dim1, $dim2);