[ASTPPCOM-370] [FIX]Invoiceid should be in series. Created: 06/Apr/18 Updated: 01/Apr/21 Resolved: 01/Apr/21 |
|
| Status: | Done |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | ||
| Reporter: | aditpl | Assignee: | Samir Doshi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
While create manual invoice.It is start from first number instead of series. |
| Comments |
| Comment by Samir Doshi [ 08/Apr/18 ] |
|
Hi [~ankitdoshi] Remove the usage of invoice controller's get_invoice_date function as we have it implemented it in common.php. Here is the reference code which we have used in invoice generation script. // Get last generated invoice for admin or reseller $last_invoice_ID = $this->common->get_invoice_date("invoiceid", "", $AccountData['reseller_id']); if ($this->Error_flag) { $this->PrintLogger("GET INVOICE DATE " . $last_invoice_ID); } if ($last_invoice_ID && $last_invoice_ID > 0) { $last_invoice_ID = ($last_invoice_ID + 1); if ($last_invoice_ID < $InvoiceConf['invoice_start_from']) $last_invoice_ID = $InvoiceConf['invoice_start_from']; } else { $last_invoice_ID = $InvoiceConf['invoice_start_from']; } $last_invoice_ID = str_pad($last_invoice_ID, 6, '0', STR_PAD_LEFT); |
| Comment by aditpl [ 10/Apr/18 ] |
|
Hello [~smrdoshi] , |