27require_once DOL_DOCUMENT_ROOT.
'/core/modules/expedition/modules_expedition.php';
38 public $version =
'dolibarr';
50 public $nom =
'Ribera';
55 public $name =
'Ribera';
63 public function info($langs)
67 $langs->load(
"bills");
71 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
72 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
73 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
74 $texte .=
'<input type="hidden" name="action" value="updateMask">';
75 $texte .=
'<input type="hidden" name="maskconstexpedition" value="EXPEDITION_RIBERA_MASK">';
76 $texte .=
'<input type="hidden" name="page_y" value="">';
78 $texte .=
'<table class="nobordernopadding centpercent">';
80 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"Shipment"), $langs->transnoentities(
"Shipment"));
81 $tooltip .= $langs->trans(
"GenericMaskCodes1");
83 $tooltip .= $langs->trans(
"GenericMaskCodes2");
85 $tooltip .= $langs->trans(
"GenericMaskCodes3");
86 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"Shipment"), $langs->transnoentities(
"Shipment"));
87 $tooltip .= $langs->trans(
"GenericMaskCodes5");
88 $tooltip .=
'<br>'.$langs->trans(
"GenericMaskCodes5b");
90 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
91 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskexpedition" value="'.
getDolGlobalString(
'EXPEDITION_RIBERA_MASK').
'">', $tooltip, 1,
'help',
'valignmiddle', 0, 3, $this->
name).
'</td>';
92 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit reposition smallpaddingimp" name="Button" value="'.$langs->trans(
"Save").
'"></td>';
109 require_once DOL_DOCUMENT_ROOT .
'/expedition/class/expedition.class.php';
110 require_once DOL_DOCUMENT_ROOT .
'/societe/class/societe.class.php';
113 $shipment->initAsSpecimen();
115 $thirdparty->initAsSpecimen();
117 $numExample = $this->
getNextValue($thirdparty, $shipment);
120 $numExample = $langs->trans(
'NotConfigured');
137 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
142 $this->error =
'NotConfigured';
146 $date = $shipment->date_shipping;
Parent Class of numbering models of sending receipts references.
Class to manage third parties objects (customers, suppliers, prospects...)
Class to manage expedition numbering rules Ribera.
info($langs)
Return default description of numbering model.
getNextValue($objsoc, $shipment)
Return next value.
getExample()
Return numbering example.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null, $objbookkeeping=null)
Return last or next value for a mask (according to area we should not reset)
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
$conf db name
Only used if Module[ID]Name translation string is not found.