Local Food Cooperative Software
The Jist: This software operates on an order cycle instead of an “always open” system. Producers/farmers can log in and add products to their product catalog at anytime for sale. During a designated time, cooperative members place orders.
Always make back-ups before applying changes.
___v1.4.1___
Features
- Admin: Financial Report bug fix
- Admin: Pending Producers interface
New files:
- shop/admin/producers-pending.php
Quick way to approve a producer to log in and add products
Changed files:
Database changes:
- UPDATE `transactions_types` SET `ttype_name`='Producer Total' WHERE `ttype_id`='35';
___v1.4.1 Changed Files Details___
Changed files:
- shop/admin/report-financial.php
lines 84-99
built in transaction_producer_id into the array so the producer totals don’t clump
Find:
$t_all[$row['transaction_member_id']][$row['transaction_delivery_id']][$row['transaction_type']][] = $row;
Change to:
$t_all[$row['transaction_member_id']][$row['transaction_delivery_id']][$row['transaction_producer_id']][$row['transaction_type']][] = $row;
Find: foreach($t_all as $member_id=>$t0){
Replace the foreach loop:
foreach($t_all as $member_id=>$t0){
foreach($t0 as $delivery_id=>$t1){
foreach($t1 as $producer_id=>$tP){
foreach($tP as $type=>$t2){
if(is_array($t2[0]) && $t2[0]['ttype_parent']==22){// Invoice types - only pulling most recent set of totals
$transactions[] = $t2[0];
} else {
foreach($t2 as $key=>$value){
$transactions[] = $value;
}
}
}
}
}
}
- shop/admin/index.php
lines 67
added link to pending producers
Find:
<li> <a href="producers_labels.php">ALL Producers</a></li>
Add above that:
<li> <a href="producers-pending.php">Pending Producers</a></li>
<br /><br />