Invoice number
-
Hi,
I want to add month to the invoice number. So I edited this part of the code and added month but it is not showing up.
public function get_formatted_number( $insert = false ) { $invoice_number_format = $this->template_options['bewpi_invoice_number_format']; // Format number with the number of digits $digit_str = "%0" . $this->template_options['bewpi_invoice_number_digits'] . "s"; $digitized_invoice_number = sprintf( $digit_str, $this->number ); $year = date('Y'); $y = date('y'); $m = date('m'); // Format invoice number $formatted_invoice_number = str_replace( array( '[prefix]', '[suffix]', '[number]', '[Y]', '[y]' , '[m]' ), array( $this->template_options['bewpi_invoice_number_prefix'], $this->template_options['bewpi_invoice_number_suffix'], $digitized_invoice_number, $year, $y, $m ), $invoice_number_format );
Can you please tell me what I am doing wrong?
Thanks
Jinesh
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Invoice number’ is closed to new replies.