Readd packing_date (date_emballage)
This commit is contained in:
parent
7967841935
commit
d2f43a8bdd
4 changed files with 7 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ class EggController extends Controller
|
|||
}
|
||||
|
||||
$datePonte = $mobas->laying_date;
|
||||
$date_emballage = $mobas->date_emballage;
|
||||
$date_emballage = $mobas->packing_date;
|
||||
// * Compare DCR et Today
|
||||
$date_dcr = $mobas->dcr;
|
||||
$date_today = Carbon::now();
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class XmlFluxEggJob extends XmlJobs
|
|||
'code_boite' => 'box_code',
|
||||
'code_ede' => 'ede_code',
|
||||
'date_de_ponte' => 'laying_date',
|
||||
'date_emballage' => 'packing_date',
|
||||
'code_produit' => 'product_code',
|
||||
'lib_produit' => 'product_label',
|
||||
'lot_externe' => 'external_lot',
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class TraceaEgg extends Model
|
|||
'box_code',
|
||||
'ede_code',
|
||||
'laying_date',
|
||||
'packing_date',
|
||||
'product_code',
|
||||
'product_label',
|
||||
'external_lot',
|
||||
|
|
@ -50,6 +51,7 @@ class TraceaEgg extends Model
|
|||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'packing_date' => 'date',
|
||||
'laying_date' => 'date',
|
||||
'dcr' => 'date'
|
||||
];
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ class CreateTraceaEggsTable extends Migration
|
|||
->comment('Pas de description xs:integer [0-9]{6}|[0-9]{12}');
|
||||
$table->date('laying_date')
|
||||
->comment('Le date de ponte xs:date');
|
||||
$table->date('packing_date')
|
||||
->comment('Le date d\'emballage xs:date');
|
||||
$table->date('dcr')
|
||||
->comment('Date dcr ? xs:date');
|
||||
});
|
||||
|
|
@ -60,9 +62,9 @@ class CreateTraceaEggsTable extends Migration
|
|||
$table->renameColumn('code_boite', 'box_code');
|
||||
$table->renameColumn('ean13', 'ean_13');
|
||||
$table->renameColumn('date_ponte', 'laying_date');
|
||||
$table->renameColumn('date_emballage', 'packing_date');
|
||||
});
|
||||
Schema::table('tracea_eggs', function (Blueprint $table) {
|
||||
$table->dropColumn(['date_emballage']);
|
||||
$table->string('ede_code', 10)
|
||||
->comment('Le code EDE xs:string length 8')
|
||||
->change();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue