Skip to content

Commit

Permalink
add_stock_adjustment parameters fixed for FA 2.4 changes in API
Browse files Browse the repository at this point in the history
  • Loading branch information
apmuthu committed Apr 19, 2018
1 parent a87d5d3 commit bcc61a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_FA24ext.txt
@@ -1,3 +1,4 @@
2018-04-19 Ap.Muthu add_stock_adjustment parameters fixed for FA 2.4 changes in API
2018-04-07 poncho1234 gettext strings for Account and Months extended in extensions
2018-03-29 Ap.Muthu nb_NO core language file updated on and from Transifex
2018-03-21 Ap.Muthu en_ZA 4digit Chart updated for 15% VAT in RSA from 2018 onwards
Expand Down
8 changes: 1 addition & 7 deletions Extensions/api24/inventory.inc
Expand Up @@ -34,9 +34,6 @@ function stock_adjustment_add($info)
if (! isset($info['date'])) {
api_error(412, 'Date is required');
}
if (! isset($info['type'])) {
api_error(412, 'Movement Type is required');
}
if (! isset($info['reference'])) {
api_error(412, 'Reference is required');
}
Expand All @@ -46,9 +43,6 @@ function stock_adjustment_add($info)
if (! isset($info['standard_cost'])) {
$info['standard_cost'] = 0;
}
if (! isset($info['increase'])) {
api_error(412, 'Increase is required. (1 = true, 0 = false)');
}
if (! isset($info['memo'])) {
api_error(412, 'Memo is required');
}
Expand Down Expand Up @@ -85,7 +79,7 @@ function stock_adjustment_add($info)
* $_SESSION['gl_items']->gl_items_total_credit();
*/
// Process Order
$trans_no = add_stock_adjustment($_SESSION['adj_items']->line_items, $info['location'], $info['date'], $info['type'], $info['increase'], $info['reference'], $info['memo']);
$trans_no = add_stock_adjustment($_SESSION['adj_items']->line_items, $info['location'], $info['date'], $info['reference'], $info['memo']);

$gl_trans_no = write_journal_entries($_SESSION['gl_items'], false);

Expand Down

0 comments on commit bcc61a0

Please sign in to comment.